@media screen and (max-width: 768px) {
    nav ul.nav-links {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        top: 60px; /* Ajusta según la altura de tu navbar */
        left: 0;
        width: 100%;
        background: white; /* Color de fondo */
        flex-direction: column;
        padding: 10px 0;
        text-align: center;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    /* Cuando el menú esté activo, se mostrará */
    nav ul.nav-links.active {
        visibility: visible;
        opacity: 1;
        display: flex;
    }

    /* Mostrar el botón del menú hamburguesa */
    nav .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        background: none;
        border: none;
        color: #333;
        position: absolute;
        top: 15px;
        right: 20px;
    }
}

/* Estilos base del botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000;
}

/* Estilos de las líneas del botón hamburguesa */
.menu-toggle span {
    display: block;
    width: 100%;
    height: 4px;
    background: #003366; /* Azul oscuro */
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Animación para convertirlo en "X" cuando el menú está abierto */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Ocultar el menú normal en pantallas pequeñas */
@media screen and (max-width: 768px) {
    nav ul.nav-links {
        display: none; /* Oculta el menú */
    }

    .menu-toggle {
        display: flex; /* Mostrar el botón hamburguesa */
    }

    nav ul.nav-links.active {
        display: flex; /* Mostrar el menú cuando se abre */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 15px;
        border-radius: 5px;
    }
}


/* --- GENERAL --- */

html, body{
    scroll-behavior: smooth !important;
    overflow: auto !important;
    height: auto !important;
}


body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    background-color: #002f6c; /* Azul oscuro */
    color: white;
    text-align: center;
}

/* Eliminar el margen predeterminado del navegador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3 {
    font-weight: 600; /* Letras más gruesas para títulos */
}

nav ul li a {
    font-weight: 500; /* Un poco más grueso que el texto normal */
}

/* --- HEADER Y NAVBAR --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    backdrop-filter: blur(8px);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    padding: 0 40px;
}



.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%; /* Reduce el ancho para centrarlo un poco más */
    max-width: 1400px;
    margin: 0 auto; /* Centra horizontalmente */
}

/* --- Logo ligeramente centrado pero alineado a la izquierda --- */
.logo {
    flex: 0.4;
    text-align: left;
}

    .logo img {
        height: 80px;
        width: auto;
        max-width: 250px;
    }

/* --- Menú de navegación más centrado pero a la derecha --- */
nav {
    flex: 1.2;
    text-align: right;
}

    nav ul {
        list-style: none;
        padding: 0;
        display: flex;
        justify-content: flex-end;
    }

        nav ul li {
            margin: 0 15px; /* Ajusta el espaciado entre elementos */
        }

            nav ul li a {
                text-decoration: none;
                color: darkblue;
                font-weight: bold;
                transition: color 0.3s;
            }

                nav ul li a:hover {
                    color: deepskyblue;
                }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    width: 100vw;
    height: 77vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #002f6c;
    font-weight: bold;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
}

    /* Contenedor de imágenes para el fondo */
    .hero .background-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        /* Ajuste de las imágenes para que cubran correctamente */
        .hero .background-container img {
            position: absolute;
            width: 100%;
            height: 100%;
            min-height: 100%;
            object-fit: cover;
            opacity: 0;
            filter: blur(5px);
            transition: opacity 2s ease-in-out, filter 2s ease-in-out;
        }

            /* Hace que la imagen activa se vea */
            .hero .background-container img.active {
                opacity: 1;
            }

    /* Lámina blanca translúcida */
    .hero::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.4);
        z-index: 2;
    }

    /* Texto en negro y nítido */
    .hero .content {
        position: relative;
        z-index: 3;
        text-align: center;
        color: white !important;
        font-family: 'Montserrat', sans-serif; /* Fuente más elegante */
        font-weight: bold;
        text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7); /* Mejor contraste */
    }

        .hero .content h1 {
            font-size: 3.5rem;
            font-weight: 900;
            letter-spacing: 1.5px;
        }

        .hero .content p {
            font-size: 1.4rem;
            font-weight: 600;
        }
    /* --- BOTÓN EN HERO --- */

    .hero .btn-hero {
        color: white; /* Color blanco como el texto del hero */
        font-size: 1.2rem;
        font-weight: bold;
        text-decoration: none; /* Sin subrayado */
        transition: color 0.3s ease-in-out;
    }

        .hero .btn-hero:hover {
            color: black; /* Se vuelve negro al pasar el cursor */
        }




/* --- SECCIÓN QUIÉNES SOMOS --- */
.quienes-somos {
    background: white;
    text-align: center;
    padding: 70px 20px;
    font-family: 'Montserrat', sans-serif;
}

    .quienes-somos .container {
        max-width: 850px;
        margin: auto;
    }

    .quienes-somos h2 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #002f6c;
        margin-bottom: 10px;
        text-transform: uppercase;
    }

/* Línea decorativa debajo del título */
.linea-decorativa {
    width: 100px;
    height: 4px;
    background: #009dca; /* Azul celeste */
    margin: 10px auto 25px;
    border-radius: 3px;
}

.quienes-somos p {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
}


/* --- SECCIÓN GENERADORES --- */
.generadores {
    background: #f8f9fa; /* Fondo gris claro */
    text-align: center;
    padding: 80px 20px;
    font-family: 'Montserrat', sans-serif;
}

    /* --- SECCIÓN TÍTULO GENERADORES --- */
    .generadores h2 {
        font-size: 2.5rem; /* Mismo tamaño que la sección anterior */
        font-weight: 700; /* Negrita */
        color: #002f6c; /* Azul oscuro */
        text-align: center;
        margin-bottom: 20px;
        position: relative;
    }

        /* Línea decorativa celeste */
        .generadores h2::after {
            content: "";
            display: block;
            width: 100px;
            height: 4px;
            background: #009dca; /* Azul celeste */
            margin: 8px auto 0;
            border-radius: 3px;
        }

    /* Contenedor de generadores */
    .generadores .container {
        max-width: 1100px;
        margin: auto;
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }

.card-generador {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    width: 48%; /* Dos columnas */
}

    .card-generador:hover {
        transform: translateY(-5px);
    }

    .card-generador img {
        width: 100%;
        height: 200px; /* Tamaño uniforme */
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .card-generador h3 {
        font-size: 1.8rem;
        color: #002f6c;
        margin-bottom: 10px;
    }

    .card-generador p {
        font-size: 1.1rem;
        color: #555;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    /* --- LISTA DE CARACTERÍSTICAS (UL y LI) --- */
    .card-generador ul {
        list-style-type: disc; /* Viñetas */
        margin: 15px 0 0 20px; /* Espaciado */
        text-align: left;
        color: #333; /* Mismo color que los párrafos */
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .card-generador li {
        margin-bottom: 8px; /* Espaciado entre elementos */
    }

    
    /* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Botón para cerrar */
.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ccc;
}


/* Contenedor de la sección de contacto */
.contacto {
    background: white;
    text-align: center;
    padding: 60px 20px;
    font-family: 'Montserrat', sans-serif;
}

    .contacto .container {
        max-width: 600px;
        margin: auto;
    }

    .contacto h2 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #002f6c;
        margin-bottom: 10px;
        text-transform: uppercase;
    }

/* Información de contacto */
.contacto-info {
    text-align: center;
    margin-bottom: 20px;
}

    .contacto-info p {
        font-size: 1.1rem;
        color: #333;
        margin: 5px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contacto-info i {
        color: #005bb5;
        font-size: 1.2rem;
        margin-right: 8px;
    }

/* Formulario */
.contacto form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contacto input,
.contacto textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Botón de enviar */
.btn-enviar {
    background: #002f6c;
    color: white;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

    .btn-enviar:hover {
        background: #005bb5;
    }

/* Contenedor centrado */
.whatsapp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* Más espaciado entre el texto y el icono */
    margin-top: 30px; /* Espaciado respecto al botón de enviar */
}

/* Texto con color verde predeterminado */
.whatsapp-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #25D366; /* Verde de WhatsApp */
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

/* Ícono de WhatsApp más grande y clickeable */
.whatsapp-icon {
    width: 30px; /* Más grande */
    height: 30px;
    cursor: pointer;
}

/* Cambia de color al pasar el mouse */
.whatsapp-text:hover {
    color: #002f6c; /* Se vuelve blanco al pasar el cursor */
}




/* Espaciado adicional antes del footer */
.contacto {
    margin-bottom: 50px;
}



/* --- PLACEHOLDER CONSISTENTE --- */
input::placeholder,
textarea::placeholder {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #666;
}




/* --- FOOTER --- */
footer {
    background: #002f6c;
    color: white;
    padding: 10px 0;
    margin-top: 20px;
}
