/* =========================================
   VARIABLES DE MARCA (CELAYA INGENIERÍA)
   ========================================= */
:root {
    --color-primary: #F1BE3B; /* Amarillo/Dorado */
    --color-secondary: #00C2D1; /* Cian/Turquesa */
    --color-dark: #000000;
    --font-heading: 'Nunito', 'Tsukushi A Round Gothic', sans-serif;
    --font-body: 'PT Sans', sans-serif;
}

/* =========================================
   RESET BÁSICO
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--color-dark);
}

/* =========================================
   CONTENEDOR PRINCIPAL Y FONDO
   ========================================= */
.background-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Usando la imagen IA como solicitaste */
    background-image: url('fondo_ai.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

/* Capa oscura superpuesta (Overlay) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* Oscurecido al 65% para contraste */
    z-index: 1; 
}

/* =========================================
   BARRA DE NAVEGACIÓN (HEADER)
   ========================================= */
.navbar {
    position: relative;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
}

.logo-container .logo {
    height: 144px; /* Tamaño del logo (ajustable) */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-secondary); /* Cian al pasar el mouse */
}

/* =========================================
   CONTENIDO CENTRAL (HERO)
   ========================================= */
.content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    flex-grow: 1; /* Ocupa el espacio restante */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.content p {
    font-size: 1.2rem;
    max-width: 100%;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    white-space: nowrap;
}

/* =========================================
   BOTONES DE LLAMADA A LA ACCIÓN
   ========================================= */
.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary); /* Amarillo */
    color: var(--color-dark);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--color-dark);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    color: #aaaaaa;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
}

/* =========================================
   RESPONSIVE (DISPOSITIVOS MÓVILES)
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center; /* Centrar elementos horizontalmente */
        padding: 20px 0;
        gap: 10px;
    }

    .nav-links a {
        padding: 15px; /* Área de toque más grande para celulares */
        font-size: 1.1rem; /* Texto ligeramente más grande */
        width: 100%; /* Ocupar todo el ancho para facilitar el clic */
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .logo-container .logo {
        height: 100px;
    }

    .content h1 {
        font-size: 2.5rem;
    }
    
    .content p {
        font-size: 1rem;
        white-space: normal;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-container .logo {
        height: 80px;
    }
    .content h1 {
        font-size: 1.8rem;
    }
    .content p {
        font-size: 0.9rem;
    }
}
