/*
 * ARCHIVO: age-gate.css
 * Estilos del Age Gate
 */

/* 1. Bloqueo estricto de scroll en TODA la pantalla */
html.age-gate-active, 
body.age-gate-active { 
    overflow: hidden !important; 
    height: 100vh !important; 
    margin: 0; 
}

/* 2. Contenedor Principal Anclado (Adiós scrollbar) */
/* 2. Contenedor Principal (El único que debe ser fixed) */
#eredita-age-gate {
    position: fixed; 
    inset: 0;
    z-index: 999999; /* Jefe supremo */
    display: flex; 
    align-items: center; 
    justify-content: center;
    pointer-events: auto !important; /* Asegura que la capa base acepte clicks */
}

/* 3. El Fondo (Overlay) - CAMBIO CLAVE */
.age-gate-overlay {
    position: absolute; /* Cambiamos de fixed a absolute */
    inset: 0;
    z-index: 1; /* Al fondo del contenedor padre */
    background-color: #0A2037;
    
    /* EL TRUCO: Los clicks pasan de largo hacia los botones */
    pointer-events: none; 
}

/* 4. El Contenido (Donde está el botón) */
.age-gate-content {
    position: relative; 
    z-index: 10; /* Por encima del overlay (1) */
    pointer-events: auto; /* Acepta clicks */
    text-align: center; 
    max-width: 600px; 
    width: 90%;
}

/* 5. El Botón */
#ag-yes-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 20; /* Aseguramos jerarquía máxima */
}

.ag-logo { 
    margin-bottom: 1.5rem; 
    height: auto;
}

.ag-title { 
    font-family: 'Castoro', serif; 
    font-size: 3rem; 
    letter-spacing: 2px;
    margin-bottom: 1rem; 
    color: #E3C16B; 
}

.ag-subtitle { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.2rem; 
    margin-bottom: 2.5rem; 
    color: #FFFFFF; 
    line-height: 1.4;
}

/* 6. Botones (Simétricos y Premium) */
.ag-buttons { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
}

.btn-ag {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 0;
    width: 180px; 
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    text-transform: capitalize;
}

.btn-ag-gold {
    background-color: #E3C16B; 
    color: #0A2037; 
}
.btn-ag-gold:hover { 
    background-color: #cfa84a; 
}

.btn-ag-cream {
    background-color: #EFE9E0; 
    color: #0A2037;
    text-decoration: none;
    display: flex; 
    align-items: center;
    justify-content: center;
}
.btn-ag-cream:hover { 
    background-color: #dcd4c7; 
    color:#0A2037;
}
/* ========================================================================
   8. SELECTOR DE IDIOMAS (Preparado para GSAP)
   ======================================================================== */

#eredita-age-gate .eredita-lang-selector {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 100;
}

#eredita-age-gate .lang-globe-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #0A2037;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

#eredita-age-gate .lang-globe-icon svg {
    width: 24px;
    height: 24px;
    stroke: #E3C16B;
    transition: stroke 0.2s ease;
}

#eredita-age-gate .eredita-lang-selector:hover .lang-globe-icon {
    border-color: #E3C16B;
    box-shadow: 0 0 15px rgba(227, 193, 107, 0.2);
}

#eredita-age-gate .lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin: 10px 0 0 0;
    padding: 15px 0;
    list-style: none;
    background-color: rgba(10, 32, 55, 0.95);
    border-radius: 4px;
    border: 1px solid rgba(227, 193, 107, 0.2);
    min-width: 120px;
    visibility: hidden;
    opacity: 0;
}

#eredita-age-gate .lang-dropdown::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}
/* =========================================
   FIX PREMIUM DROPDOWN AGE GATE
   ========================================= */

#eredita-age-gate .lang-dropdown {
    padding: 15px 18px;
}

#eredita-age-gate .lang-dropdown li {
    list-style: none;
    margin-bottom: 14px;
}

#eredita-age-gate .lang-dropdown li:last-child {
    margin-bottom: 0;
}

#eredita-age-gate .lang-dropdown a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease, transform 0.2s ease;
}

#eredita-age-gate .lang-dropdown a:hover,
#eredita-age-gate .lang-dropdown a.active {
    color: #E3C16B;
    transform: translateX(3px);
}

#eredita-age-gate .lang-flag img {
    width: 18px;
    height: auto;
    display: block;
    border-radius: 2px;
}


/* ========================================================================
   9. TOOLTIP DEL BOTÓN "NO"
   ======================================================================== */
.ag-no-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%); /* Lo centra perfectamente bajo el botón */
    margin-top: 15px; /* Separación del botón */
    padding: 12px 20px;
    
    /* Mismos estilos que el lang-dropdown */
    background-color: rgba(10, 32, 55, 0.95);
    border: 1px solid rgba(227, 193, 107, 0.3);
    border-radius: 4px;
    
    /* Tipografía */
    color: #E3C16B;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    
    /* Control del ancho para que el texto baje de línea si es largo */
    width: max-content;
    max-width: 260px;
    white-space: normal;
    
    z-index: 100;
    
    /* Oculto por defecto para que GSAP lo anime */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* El triangulito superior (Caret) */
.ag-no-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent rgba(10, 32, 55, 0.95) transparent;
}