/* ==========================================================================
   MOTOR DE FONDO DINÁMICO (IDÉNTICO A ZONA VIP)
   ========================================================================== */
:root {
    --color-primary: #d4fc1b;      /* Verde flúor por defecto */
    --foco-luces: #3a4d28;         /* Resplandor verde */
    --fondo-base: #090b08;         /* Fondo ultra oscuro */
}

/* Variaciones de color */
[data-theme="verde"] { --color-primary: #d4fc1b; --foco-luces: #3a4d28; }
[data-theme="azul"] { --color-primary: #00d2ff; --foco-luces: #143547; }
[data-theme="naranja"] { --color-primary: #ff6b4a; --foco-luces: #4a2418; }

/* Variaciones de brillo sobre el fondo */
[data-brightness="oscuro"] { --fondo-base: #090b08; }
[data-brightness="medio"] { --fondo-base: #131811; }
[data-brightness="claro"] { --fondo-base: #222b1f; }

/* Aplicación del fondo a la pantalla completa */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    
    /* 1. Forzamos a eliminar cualquier imagen de fondo previa */
    background-image: none !important; 
    
    /* 2. Aplicamos el degradado dinámico */
    background: radial-gradient(circle at 50% 0%, var(--foco-luces) 0%, var(--fondo-base) 75%) !important;
    
    font-family: 'Inter', sans-serif;
    color: #fff;
    transition: background 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 1. La Tarjeta Base (Totalmente transparente) */
.badge-card {
    width: 400px;
    min-height: 580px;
    background: transparent !important;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2); 
    box-shadow: 0 40px 80px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
}

/* 2. Parte Superior (Cristal Blanco) */
.badge-top-section {
    height: 240px;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Brillo del cristal superior */
.badge-top-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.badge-photo-area {
    width: 100%;             /* Ocupa todo el ancho disponible del contenedor */
    max-width: 400px;        /* Evita que se haga gigantesca en pantallas de ordenador */
    height: auto;            /* Hace que la altura se adapte proporcionalmente a la imagen */
    margin: 0 auto -50px auto; /* Centrada y con margen negativo abajo para "pisar" sutilmente el login-box */
    border: none;            /* Eliminamos el borde blanco antiguo */
    border-radius: 0;        /* Ya no necesita esquinas redondeadas de tarjeta */
    z-index: 5;
    overflow: visible;       /* Permitimos que las raquetas o siluetas respiren si sobresalen */
    
    /* Cambiamos la sombra de la caja por una sombra de silueta (drop-shadow) */
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
    -webkit-filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

/* Nos aseguramos de que la etiqueta <img> de dentro se adapte al 100% de este nuevo espacio */
.badge-photo-area img {
    width: 100%;
    height: auto;
    display: block;
}

/* 3. Divisoria VIP (Sólida para separar ambientes) */
.badge-divider {
    background: rgba(0, 0, 0, 1);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0px;
    font-size: 1.8rem;
    position: relative;
    z-index: 10;
}

/* 4. Parte Inferior (Cristal Naranja) */
.badge-bottom-section {
    /* Copiamos la altura o dejamos que el contenido mande */
    min-height: 200px; 
    
    /* USAMOS EL MISMO TIPO DE FONDO QUE ARRIBA (RGBA directo) */
    /* El 0.45 es el nivel de transparencia. No uses la variable --color-atp aquí */
    background: rgba(255, 87, 34, 0.0) !important; 
    
    /* COPIAMOS EL FILTRO EXACTO DE ARRIBA */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    padding: 30px;
    position: relative;
    z-index: 10;
    
    /* Quitamos cualquier borde grueso que pudiera molestar */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* IMPORTANTE: Asegúrate de que no haya un '::before' o '::after' 
   antiguo de badge-bottom-section que esté poniendo un color sólido. 
   Por si acaso, los reseteamos: */
.badge-bottom-section::before,
.badge-bottom-section::after {
    display: none !important;
}

/* IMPORTANTE: Forzamos que el formulario sea invisible para que no tape nada */
.badge-bottom-section form {
    background: transparent !important;
    background-color: transparent !important;
}

/* 5. Inputs y Botones */
.badge-input-pro {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    color: #000;
    font-weight: 600;
    box-sizing: border-box;
}

.btn-pro {
    width: 100%;
    background: #000;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    border: none;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Enlaces del pie en blanco para que se vean sobre el naranja */
.badge-footer-links a {
    color: #fff !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

/* Forzamos que el formulario y cualquier contenedor interno no tengan color */
.badge-bottom-section form, 
.badge-bottom-section div {
    background: transparent !important;
}


/* Contenedor relativo para posicionar el ojo dentro */
.password-container {
    position: relative;
    width: 100%;
}

/* Estilo del icono del ojo */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 15px; /* Ajusta este valor si tu input es más alto o bajo */
    cursor: pointer;
    color: #666;
    z-index: 20;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--color-atp);
}

/* Evitar que el texto de la contraseña choque con el icono */
#password_login {
    padding-right: 45px !important;
}

/* ==========================================================================
   LA CAJA DE ACREDITACIÓN VIP (CON BRILLO EXTERIOR)
   ========================================================================== */
.badge-card { 
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    
    /* Un borde sutil para definir el cristal */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;

    /* EL TRUCO DEL BRILLO: Combinamos una sombra oscura difusa con el halo flúor de tu tema */
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5), 
        0 0 30px rgba(212, 252, 27, 0.15); /* Brillo base */
        
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

/* ==========================================================================
   ADAPTACIÓN DEL BRILLO SEGÚN EL TEMA COMPARTIDO
   ========================================================================== */
[data-theme="verde"] .badge-card {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 252, 27, 0.25);
    border-color: rgba(212, 252, 27, 0.2) !important;
}

[data-theme="azul"] .badge-card {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 210, 255, 0.25);
    border-color: rgba(0, 210, 255, 0.2) !important;
}

[data-theme="naranja"] .badge-card {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 107, 74, 0.25);
    border-color: rgba(255, 107, 74, 0.2) !important;
}
/* Estilos para el Modal de Privacidad */
.vip-modal-backdrop {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.vip-modal-window {
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.vip-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vip-modal-header h3 {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.vip-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.vip-modal-close:hover { color: #fff; }

.vip-modal-body {
    padding: 20px;
    overflow-y: auto; /* Permite scroll si el texto es largo en móviles */
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
}

.vip-modal-body p {
    margin: 0 0 15px 0;
}
.vip-modal-body p:last-child { margin: 0; }
.vip-modal-body strong { color: #fff; }

.vip-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: flex-end;
}