/* ==========================================================================
   VARIABLES DE COLOR E INSTITUCIONALES (ESTILOS GLOBALES)
   ========================================================================== */
:root {
    --azul-navy: #0A192F;
    --azul-secundario: #112240;
    --blanco-fondo: #F8F9FA;
    --rojo-ejecutivo: #BD1E24;
    --gris-texto: #333333;
    --gris-claro: #E2E8F0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--blanco-fondo);
    color: var(--gris-texto);
    line-height: 1.6;
}

/* ==========================================================================
   COMPONENTE: BARRA DE NAVEGACIÓN SUPERIOR (HEADER FIJO)
   ========================================================================== */
.barra-navegacion {
    position: fixed; /* Se queda congelada arriba al hacer scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(10, 25, 47, 0.85); /* Azul Navy con transparencia */
    backdrop-filter: blur(10px); /* Efecto esmerilado premium en Mac/Safari */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    /* CORREGIDO: Eliminada diagonal rota para asegurar prioridad absoluta */
    z-index: 99999 !important;
}

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

/* ==========================================================================
   NUEVO LOGOTIPO CORPORATIVO APILADO (DOS COLORES - ALINEADO BAJO LA "P")
   ========================================================================== */
.logotipo {
    text-decoration: none;
    display: flex;
    flex-direction: column; /* Apila una palabra sobre la otra */
    justify-content: center;
    line-height: 1.1; /* Sella el espacio vertical entre ambas palabras */
    transition: transform 0.3s ease;
}

.logotipo:hover {
    transform: scale(1.02); /* Pequeño efecto flotante en tu Mac */
}

/* Palabra Superior: Blanco Puro e Institucional */
.linea-superior {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800; /* Tipografía ejecutiva gruesa */
    letter-spacing: -0.5px;
}

/* Palabra Inferior: Amarillo de Estatus Financiero */
.linea-inferior {
    color: #FFD700; /* Tu amarillo dorado de autoridad */
    font-size: 22px; /* Ligeramente más pequeña para equilibrar el peso visual */
    font-weight: 800;
    letter-spacing: -0.5px;
    
    /* EL TRUCO MAESTRO: Se desplaza hacia la derecha 4.2 caracteres, 
       colocándose exactamente debajo de la "p" de BookkeeP_ing */
    margin-left: 7.2ch; 
}





/* Menú de Enlaces */
.menu-enlaces {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu-enlaces a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.menu-enlaces a:hover {
    color: var(--rojo-ejecutivo);
}

/* Botón de acceso rápido al CRM */
.btn-crm-nav {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.btn-crm-nav:hover {
    background-color: #ffffff !important;
    color: var(--azul-navy) !important;
    box-shadow: 0 4px 10px rgba(255,255,255,0.1);
}

/* ==========================================================================
   DISEÑO RESPONSIVO EXCLUSIVO PARA MÓVILES (HASTA 768px)
   ========================================================================== */
@media (max-width: 768px) { /* CORREGIDO: Llave abierta correctamente */
    
    /* El menú pasa a ser una cortina desplegable limpia */
    .menu-enlaces {
        position: fixed;
        top: 80px;
        left: -100%; 
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #0A192F !important; 
        display: flex !important; 
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        z-index: 99998 !important; 
        padding: 40px;
    }
}

/* ==========================================================================
   COMPONENTE: SECCIÓN HERO (PORTADA PRINCIPAL)
   ========================================================================== */
.seccion-hero {
    background-color: var(--azul-navy);
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* CORREGIDO: Espacio unificado. 80px del menú fijo + 60px de aire visual */
    padding: 140px 20px 60px 20px; 
    position: relative;
    overflow: hidden;
}

/* Contenedor que limita el ancho de la página de forma elegante */
.contenedor-hero {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* Ajustes de la Columna de Texto (Izquierda) */
.texto-hero {
    flex: 1;
    max-width: 650px;
    color: #ffffff;
}

.badge-usa {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFD700; 
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.texto-hero h1 {
    font-size: 42px;
    line-height: 1.25;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.subtitulo-hero {
    font-size: 18px;
    color: var(--gris-claro);
    margin-bottom: 30px;
}


/* Regla de conversión: Resalta el ahorro en el color del dinero estadounidense */
.resalto-verde {
    color: #0aad4f; /* Un verde brillante y enérgico, idéntico al de tus checks de confianza */
    font-weight: 800; /* Lo hacemos un poco más grueso para que resalte aún más */
}



.beneficios-rapidos p {
    font-size: 15px;
    color: #0aad4f; 
    margin-bottom: 10px;
    font-weight: 600;
}

/* Ajustes de la Columna del Formulario (Derecha) */
.formulario-hero {
    flex: 1;
    max-width: 480px;
    display: flex;
    justify-content: flex-end;
}


/* ==========================================================================
   LLAMADO A LA ACCIÓN INTERMEDIO EN EL HERO (VERSIÓN BLANCO PREMIUM BOLD)
   ========================================================================== */
.llamado-accion-hero {
    font-size: 34px; /* Aumentado ligeramente para darle máxima presencia */
    font-weight: 800; /* Grosor máximo (Ultra Bold) */
    color: #ffffff; /* Blanco Puro para un contraste perfecto sobre el azul navy */
    margin-top: 25px;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Sutil sombra que hace flotar las letras */
}

/* Ajuste responsive automático para pantallas de celulares */
@media (max-width: 768px) {
    .llamado-accion-hero {
        font-size: 26px; /* Se adapta al tamaño de la pantalla del teléfono */
        text-align: center; /* Centrado perfecto en móviles */
        margin-top: 20px;
        margin-bottom: 15px;
    }
}






/* ==========================================================================
   ESTILOS PREMIUM AJUSTADOS PARA LA CALCULADORA GIGANTE
   ========================================================================== */
.contenedor-calculadora-principal {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    width: 100%;
    border-top: 5px solid var(--rojo-ejecutivo);
}




.titulo-calculadora-premium {
    color: var(--azul-navy);
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 4px;
}

.micro-soporte-titulo {
    font-size: 13px;
    color: #0aad4f;
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
}

/* CAJA DE NÚMERO GIGANTE OPTIMIZADA */
.input-grupo-simbolo-gigante {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.moneda-gigante {
    position: absolute;
    left: 15px;
    font-size: 26px;
    font-weight: 800;
    color: var(--azul-navy);
}

.input-grupo-simbolo-gigante input {
    width: 100%;
    padding: 12px 15px 12px 40px !important;
    font-size: 28px;
    font-weight: 800;
    color: var(--azul-navy);
    border: 2px solid #CBD5E1;
    border-radius: 6px;
    background-color: #F8F9FA;
}

/* SECCIÓN DESPLEGABLE DE TARJETAS HORIZONTALES */
.seccion-seleccion-pago {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    margin-bottom: 0;
}

.seccion-seleccion-pago.mostrar-elementos {
    max-height: 300px;
    opacity: 1;
    margin-top: 25px;
    margin-bottom: 25px;
}

.lbl-llamativa-seleccion {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--rojo-ejecutivo);
    margin-bottom: 2opx;
    text-align: center;
    text-transform: 1.2;
    letter-spacing: -0.5px;
    text-transform: none; /* Mantiene la tipografía natural y elegante */
}

/* GRUPO DE LAS 3 TARJETAS EXPUESTAS */
.grupo-tarjetas-precio {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.tarjeta-precio-check {
    flex: 1;
    cursor: pointer;
}

.tarjeta-precio-check input {
    display: none;
}







/* 1. LAS 3 TARJETAS IDENTICAS POR DEFECTO (LIMPIAS Y SUTILES) */
.contenido-tarjeta {
    background-color: #F8F9FA;
    border: 2px solid #CBD5E1;
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lbl-descuento-tarjeta {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 4px;
}

.monto-tarjeta {
    font-size: 20px;
    font-weight: 800;
    color: var(--azul-navy);
    line-height: 1.1;
    transition: color 0.25s ease;
}

.lbl-tiempo-tarjeta {
    font-size: 11px;
    color: #64748B;
    margin-top: 2px;
}

/* 2. EFECTO MAESTRO: CUALQUIER TARJETA SELECCIONADA PASA A FONDO VERDE PASTEL Y LÍNEA VERDE GIGANTE */
.tarjeta-precio-check input:checked + .contenido-tarjeta {
    background-color: #E8F8F0; /* Hermoso fondo verde pastel limpio */
    border-color: #0aad4f;     /* Línea verde brillante de éxito financiero */
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.15); /* Sutil brillo verde */
}

/* Cambios de color en los textos internos de la tarjeta cuando está seleccionada */
.tarjeta-precio-check input:checked + .contenido-tarjeta .monto-tarjeta {
    color: #1EBE56; /* El precio se ilumina en verde oscuro legible */
}

.tarjeta-precio-check input:checked + .contenido-tarjeta .lbl-descuento-tarjeta {
    color: #1EBE56;
}








/* CUADRO DE CIERRE CORPORATIVO CON MARCO ORO GIGANTE */
.cuadro-cierre-dorado {
    background-color: var(--azul-navy);
    border: 2px solid #FFD700;
    border-radius: 8px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    margin-bottom: 0;
}

.cuadro-cierre-dorado.mostrar-cuadro {
    max-height: 400px;
    opacity: 1;
    margin-bottom: 25px;
    padding: 22px;
}

.linea-garantizada {
    font-size: 14px;
    font-weight: 600;
    color: var(--gris-claro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resalto-oro-grande {
    color: #FFD700;
    font-size: 28px;
    font-weight: 900;
    margin-top: 5px;
}

.divisor-sutil {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 15px 0;
}

/* SECCIÓN DE COMPARATIVA ANUAL DE ALTO IMPACTO */
.bloque-comparativa-anual { 
    text-align: center; 
}

.txt-compara-proveedor { 
    font-size: 14px; 
    color: var(--gris-claro); 
    margin-bottom: 12px; 
}

.txt-tachado-blanco {
    text-decoration: line-through;
    color: #EF4444;
    font-weight: 700;
    font-size: 15px;
}

.caja-nosotros-pagaras {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.lbl-con-nosotros {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.numero-verde-gigante {
    display: block;
    font-size: 38px;
    font-weight: 900;
    color: #0aad4f;
    line-height: 1.1;
    margin: 6px 0;
}

.lbl-ahorro-total-final {
    display: block;
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
}

/* Alerta y Botón de Acción Principal */
.alerta-tiempo-limitado { 
    font-size: 12px; 
    font-weight: 800; 
    color: var(--rojo-ejecutivo); 
    text-align: center; 
    margin-bottom: 15px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.btn-contactanos-ya { 
    background-color: var(--rojo-ejecutivo); 
    color: #ffffff; 
    border: none; 
    padding: 16px 20px; 
    font-size: 18px; 
    font-weight: 900; 
    width: 100%; 
    border-radius: 4px; 
    cursor: pointer; 
    box-shadow: 0 4px 15px rgba(189, 30, 36, 0.4); 
    transition: all 0.3s ease; 
}

.btn-contactanos-ya:hover { 
    background-color: #961418; 
    transform: translateY(-2px); 
}




/* ==========================================================================
   CORRECCIÓN DE CONTRASTE: BOTÓN ALTERNATIVO NITIDO Y ULTRA ELEGANTE
   ========================================================================== */
.btn-alternativo-atrasados {
    background-color: #0A192F !important; /* Forzamos el fondo Azul Navy profundo */
    color: #ffffff !important;            /* Forzamos las letras en Blanco Puro */
    border: 2px solid #FFD700 !important; /* Contorno en Amarillo Oro brillante */
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 800; /* Tipografía ultra gruesa y legible */
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px; /* Separación perfecta del botón rojo de arriba */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: block; /* Asegura su comportamiento de bloque rectangular */
    text-align: center;
}

.btn-alternativo-atrasados:hover {
    background-color: #FFD700 !important; /* Al pasar el mouse, el fondo se vuelve Amarillo Oro */
    color: #0A192F !important;            /* Las letras cambian a Azul Navy para contraste */
    border-color: #ffffff !important;     /* El borde se vuelve blanco */
    transform: translateY(-2px);          /* Micro-flotación premium */
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

/* Ajuste responsive para celulares */
@media (max-width: 480px) {
    .btn-alternativo-atrasados {
        font-size: 16px;
        padding: 14px 15px;
    }
}







/* ==========================================================================
   ESTILOS DE LA CAJA MODAL (POPUP FLOTANTE DEL FORMULARIO DE CAPTURA)
   ========================================================================== */
.modal-formulario-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 25, 47, 0.88); /* Azul Navy profundo con opacidad */
    backdrop-filter: blur(8px); /* Esmerilado premium */
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start; /* CAMBIADO: Alinea al inicio para que el scroll empiece arriba */
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 999999 !important;
    overflow-y: auto; /* NUEVO: Habilita el scroll vertical si el modal es más alto que la pantalla */
    padding: 40px 10px; /* NUEVO: Espacio de colchón arriba y abajo para que nunca se pegue al borde */
}

.modal-formulario-overlay.modal-activo {
    opacity: 1;
    pointer-events: auto;
}

.modal-formulario-ventana {
    background-color: #ffffff;
    padding: 35px 40px;
    border-radius: 8px;
    width: 92%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    border-top: 6px solid var(--rojo-ejecutivo);
    margin: auto 0; /* NUEVO: Centrado inteligente que respeta los límites de la pantalla */
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.modal-formulario-overlay.modal-activo .modal-formulario-ventana {
    transform: translateY(0);
}

.boton-cerrar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.boton-cerrar-modal:hover {
    color: var(--rojo-ejecutivo);
}

.modal-formulario-ventana h3 {
    color: var(--azul-navy);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.sub-modal {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.4;
}

.campo-modal {
    margin-bottom: 18px;
}

.campo-modal label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--azul-navy);
    margin-bottom: 6px;
}

.campo-modal input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

.btn-enviar-final {
    background-color: var(--rojo-ejecutivo);
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.btn-enviar-final:hover {
    background-color: #961418;
}




/* ==========================================================================
   ESTILOS DEL TÍTULO DE TRANSICIÓN INTERMEDIO
   ========================================================================== */
.contenedor-titulo-transicion {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    margin-bottom: 0;
    text-align: center;
}

/* Animación de entrada fluida */
.contenedor-titulo-transicion.mostrar-titulo {
    max-height: 100px;
    opacity: 1;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* El texto: Tamaño idéntico a los hermanos mayores pero en color verde de éxito */
.lbl-llamativa-tarjeta-cierre {
    font-size: 32px; /* Mismo tamaño imponente de alta jerarquía corporativa */
    font-weight: 800;
    color: #0aad4f; /* Verde financiero vibrante de alta conversión */
    line-height: 1.2;
    letter-spacing: -0.5px;
}






/* ==========================================================================
   CORRECCIÓN DEFINITIVA DE DESBORDAMIENTO RESPONSIVE EN CELULARES
   ========================================================================== */
@media (max-width: 480px) {
    /* Forzamos a que el contenedor de tarjetas crezca libremente de forma vertical */
    .seccion-seleccion-pago.mostrar-elementos {
        max-height: none !important; /* Elimina el tope de altura en celulares */
        opacity: 1;
        margin-top: 25px;
        margin-bottom: 25px;
    }

    /* Apilamos las tarjetas verticalmente de forma limpia */
    .grupo-tarjetas-precio {
        flex-direction: column;
        gap: 12px; /* Añade una separación elegante entre tarjetas */
    }

    /* Ajustamos los tamaños de texto para que no se encimen en pantallas pequeñas */
    .lbl-llamativa-seleccion { 
        font-size: 26px; /* Reducimos ligeramente el tamaño en celular para que no ocupe 4 líneas */
    }
    
    .monto-tarjeta { 
        font-size: 24px; 
    }
    
    .numero-verde-gigante { 
        font-size: 32px; 
    }

    /* Aseguramos que el cuadro dorado de cierre crezca libremente según su nuevo contenido */
    .cuadro-cierre-dorado.mostrar-cuadro {
        max-height: none !important;
        padding: 20px 15px;
    }
}


    /* Reducción controlada del nuevo título en pantallas de celulares */
    .lbl-llamativa-tarjeta-cierre { 
        font-size: 26px; 
    }







.campo {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--azul-navy);
    font-size: 14px;
}

input[type="text"], input[type="email"], input[type="tel"], select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--rojo-ejecutivo);
    box-shadow: 0 0 5px rgba(189, 30, 36, 0.2);
}

.btn-enviar {
    background-color: var(--rojo-ejecutivo);
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.btn-enviar:hover {
    background-color: #961418;
}

.campo-trampa {
    display: none !important;
    visibility: hidden;
}

/* ==========================================================================
   DISEÑO RESPONSIVO PARA TABLETS (HASTA 992px)
   ========================================================================== */
@media (max-width: 992px) {
    .contenedor-hero {
        flex-direction: column; 
        text-align: center;
        justify-content: center;
    }

    .texto-hero {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .texto-hero h1 {
        font-size: 32px;
    }

    .formulario-hero {
        max-width: 100%;
        width: 100%;
        justify-content: center;
    }
}






/* ==========================================================================
/* 1. EL CONTENEDOR (Actúa como una ventana de cine) */
.contenedor-parallax-premium {
    position: relative;
    width: 100%;
    min-height: 50vh; /* Altura de la sección */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. LA CAPA INVISIBLE DETRÁS (Lleva la imagen y crea el efecto real) */
.capa-fondo-espejo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Es más alta que el contenedor para simular el movimiento */
    background-image: url('../img/fondo-contable.jpg'); /* Tu ruta real de imagen */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    
    /* CAPA OSCURA INTEGRADA (Para legibilidad de textos) */
    background-color: rgba(10, 25, 47, 0.75);
    background-blend-mode: overlay;
    
    /* El truco maestro: Desactivamos el attachment fixed y usamos transformaciones */
    background-attachment: scroll;
    
    /* Aceleración por hardware para Mac e iPhone */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    z-index: 1;
}

/* 3. EL TEXTO COMERCIAL (Por encima de todo) */
.contenido-parallax-real {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #FFFFFF;
    padding: 40px 20px;
}

/* ==========================================================================
   🛡️ AJUSTE DINÁMICO PARA MÓVILES (Optimización de Batería y Rendimiento)
   ========================================================================== */
@media (max-width: 1024px) {
    .capa-fondo-espejo {
        height: 100%; /* En celulares se ajusta al ras para evitar consumo de memoria */
        transform: none;
        will-change: auto;
    }
}


/* ==========================================================================
   OPTIMIZACIÓN RESPONSIVA Y COMPORTAMIENTO DEL MENÚ EN MÓVILES
   ========================================================================== */
@media (max-width: 768px) {
    
    /* Forzamos espacio limpio arriba para que el Hero no se esconda */
    .seccion-hero {
        padding-top: 160px !important; 
        padding-bottom: 40px;
    }

    .contenedor-hero {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .texto-hero h1 {
        font-size: 28px; 
    }

    .badge-usa {
        margin-bottom: 15px;
    }

    .formulario-hero {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .seccion-parallax h2 {
        font-size: 24px;
    }

    /* --- MENÚ HAMBURGUESA INTELIGENTE --- */
    .menu-check-control {
        display: none;
    }

    .icono-hamburguesa {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 100000 !important; /* Prioridad por encima de la barra */
    }

    .icono-hamburguesa span {
        width: 100%;
        height: 3px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Cortina móvil unificada (CORREGIDOS conflictos de duplicación) */
    .menu-enlaces {
        position: fixed;
        top: 80px;
        left: -100%; 
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(10, 25, 47, 0.98) !important; 
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex !important;
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: left 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        z-index: 99998 !important;
        padding: 40px;
        list-style: none;
    }

    .menu-enlaces a {
        font-size: 22px; 
    }

    /* CONTROL DE DISPARO: El comportamiento de apertura queda libre de bloqueos */
    .menu-check-control:checked ~ .menu-enlaces {
        left: 0 !important;
    }

    /* Animación fluida de la Hamburguesa a la X Roja */
    .menu-check-control:checked ~ .icono-hamburguesa span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--rojo-ejecutivo);
    }

    .menu-check-control:checked ~ .icono-hamburguesa span:nth-child(2) {
        opacity: 0;
    }

    .menu-check-control:checked ~ .icono-hamburguesa span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--rojo-ejecutivo);
    }
}

/* Ocultar elementos de control en pantallas de escritorio */
@media (min-width: 769px) {
    .icono-hamburguesa, .menu-check-control {
        display: none;
    }
}









/* ==========================================================================
   SOLUCIÓN DE NAVEGACIÓN Y MARGEN SUPERIOR (CORREGIDO)
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* Mantiene el texto blanco en todos los estados (elimina el rojo) */
.barra-navegacion .menu-enlaces a,
.barra-navegacion .menu-enlaces a:visited,
.barra-navegacion .menu-enlaces a:active,
.barra-navegacion .menu-enlaces a:focus {
    color: #ffffff !important;
    outline: none;
}

/* Cambia a verde corporativo al pasar el cursor */
.barra-navegacion .menu-enlaces a:hover {
    color: #0aad4f !important;
}

