/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #4dffff; /* Cian brillante futurista */
    --primary-hover: #00c2c2; /* Cian más oscuro para hover */
    --background-dark: #0d1117; /* Fondo principal oscuro (estilo GitHub) */
    --background-light: #161b22; /* Fondo para elementos como cards y header */
    --text-primary: #c9d1d9; /* Color de texto principal */
    --text-secondary: #8b949e; /* Color de texto secundario/párrafos */
    --border-color: #30363d; /* Color para bordes sutiles */
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Encabezado y Navegación --- */
.header {
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color); /* Reemplaza la sombra */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none; /* Oculto en desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* --- Secciones --- */
main section {
    padding: 60px 0;
}

/* --- Sección Hero --- */
.hero {
    /* El fondo se hereda del body, eliminamos el color específico */
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff; /* Título principal en blanco para mayor impacto */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary); /* Usamos el color de texto secundario */
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #000; /* Texto oscuro para contraste con el cian brillante */
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: var(--primary-hover);
}

/* --- Servicios --- */
.services h2, .about h2, .contact h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #fff; /* Títulos de sección en blanco */
}

.service-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color); /* Borde sutil en lugar de sombra */
    text-align: center;
    flex-basis: 30%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-secondary);
}

/* --- Formulario de Contacto --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    background-color: var(--background-light);
    color: var(--text-primary);
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: var(--text-secondary);
}

/* --- Pie de Página --- */
.footer {
    /* El fondo se hereda del body */
    color: var(--text-secondary);
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* --- Responsividad --- */
@media (max-width: 768px) {
    .nav ul {
        /* Ocultar el menú por defecto en móvil */
        position: absolute;
        top: 67px; /* Ajustar a la altura del header */
        left: 0;
        right: 0;
        background-color: var(--background-light);
        flex-direction: column;
        width: 100%;
        text-align: center;
        border-top: 1px solid var(--border-color);
        
        /* Transición para ocultar/mostrar */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .nav ul.active {
        /* Mostrar el menú */
        max-height: 300px; /* Suficiente para los enlaces */
        padding: 10px 0;
    }

    .nav ul li {
        padding: 10px 0;
    }

    .hamburger {
        display: block; /* Mostrar el hamburger en móvil */
    }

    /* Animación del hamburger a 'X' */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services h2, .about h2, .contact h2 {
        font-size: 2rem;
    }

    .service-cards {
        flex-direction: column;
    }

    
}


/* --- Mensajes de Estado del Formulario --- */
#form-status {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    min-height: 1.5em; /* Reserva espacio para evitar que el layout salte */
}

.status-success {
    color: #28a745; /* Verde para éxito */
}

.status-error {
    color: #dc3545; /* Rojo para error */
}
