body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #1e2a44 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.1"><path d="M0 50 H100 M50 0 V100" stroke="#2ecc71"/></svg>') repeat;
    color: #e8e8e8;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    background: #2c3e50;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    color: #2ecc71;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

nav ul li { margin: 0 20px; }
nav ul li a {
    text-decoration: none;
    color: #d3d3d3;
    transition: color 0.3s;
    cursor: pointer;
}
nav ul li a:hover { color: #2ecc71; }

.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    color: #d3d3d3;
    transition: transform 0.3s, color 0.3s;
}

.lang-btn:hover { transform: scale(1.1); color: #2ecc71; }

section {
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

#home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
}

.home-content {
    max-width: 1200px;
    width: 90%;
}

.terminal-container { margin: 0 auto 40px; }
.terminal {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    color: #2ecc71;
    position: relative;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 4s steps(30, end) infinite alternate;
    border-right: 2px solid #2ecc71;
}

@keyframes typing {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 100%; }
}

@keyframes blink {
    50% { border-right-color: transparent; }
}

.terminal::after {
    content: '';
    position: absolute;
    right: 0;
    width: 2px;
    height: 100%;
    background: #2ecc71;
    animation: blink 0.5s step-end infinite;
}

h1 { font-size: 48px; font-weight: 600; margin: 0; color: #ffffff; line-height: 1.2; }

.slogan {
    font-size: 26px;
    font-weight: 300;
    color: #2ecc71;
    margin: 15px auto 25px;
}

p { font-size: 22px; font-weight: 300; margin: 25px auto; }

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px;
    background: #e67e22;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }

#services {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: #2c3e50;
}

.services-content, .contact-content {
    width: 45%;
    min-width: 300px;
    margin: 20px auto;
}

h2 { font-size: 32px; font-weight: 400; margin-bottom: 30px; color: #ffffff; }

.service-card {
    background: #34495e;
    padding: 15px 20px;
    margin: 10px auto;
    border-radius: 10px;
    max-width: 400px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    min-height: 60px; /* Altura mínima para consistencia */
}

.service-card .icon {
    font-size: 24px;
    margin-right: 15px;
    color: #2ecc71;
    flex-shrink: 0; /* Evita que el icono se comprima */
}

.service-card p {
    margin: 0;
    font-size: 16px;
    flex: 1; /* Permite que el texto ocupe el espacio disponible */
    text-align: left;
    line-height: 1.4; /* Mejora la legibilidad */
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 20px auto;
}

label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    color: #d3d3d3;
    font-size: 16px;
}

input, textarea {
    padding: 12px;
    border: 1px solid #2ecc71;
    border-radius: 8px;
    background: #34495e;
    color: #d3d3d3;
}

button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #e67e22;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover { background: #f39c12; }

#about { background: #1e2a44; }
#about ul { list-style: none; padding: 0; max-width: 600px; margin: 0 auto; }
#about ul li { text-align: left; padding-left: 20px; border-left: 3px solid #2ecc71; margin: 15px 0; }

#blog { background: #2c3e50; }
.blog-card {
    background: #34495e;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.blog-card h3 { color: #2ecc71; font-size: 20px; }

footer { text-align: center; padding: 30px; font-size: 14px; background: #2c3e50; color: #d3d3d3; }

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 10px 20px;
    }

    .logo {
        margin: 0 0 10px 0;
        font-size: 24px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 10px 0;
    }

    .language-switcher {
        position: static;
        transform: none;
        margin-top: 10px;
    }

    #home {
        padding-top: 120px;
    }

    h1 {
        font-size: 32px;
    }

    .slogan {
        font-size: 20px;
    }

    p {
        font-size: 18px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    .services-content, .contact-content {
        width: 100%;
    }

    h2 {
        font-size: 28px;
    }

    .service-card {
        max-width: 100%;
        padding: 10px 15px;
    }

    .service-card p {
        font-size: 14px;
    }

    .terminal {
        font-size: 18px;
    }

    form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .service-card {
        margin: 15px 10px;
        padding: 15px;
    }
    
    h1 {
        font-size: 28px;
    }

    .slogan {
        font-size: 18px;
    }

    p {
        font-size: 16px;
    }

    .btn {
        margin: 10px auto;
        padding: 12px 30px;
        font-size: 14px;
    }

    .terminal {
        font-size: 16px;
    }

    h2 {
        font-size: 24px;
    }

    .service-card p {
        font-size: 13px;
    }

    .service-card .icon {
        font-size: 20px;
        margin-right: 10px;
    }
}

