/* =================================================================== */
/*        LANDING.CSS - v7.0 (FINAL - FIXED SPACING & MODALS)
/* =================================================================== */

#landing-view {
    /* --- VARIABLES --- */
    --ln-surface-glass: rgba(5, 8, 12, 0.95); /* Casi opaco para mejor lectura */
    --ln-border: rgba(255, 255, 255, 0.2);
    --ln-accent-gold: #FFD700;
    --ln-text-main: #ffffff;
    --ln-text-sec: #bbbbbb;
    
    --ln-font-titles: 'Cinzel', serif;
    --ln-font-body: 'Poppins', sans-serif;
    --ln-font-cta: 'Teko', sans-serif;

    width: 100%; height: 100%; position: relative;
    color: var(--ln-text-main); font-family: var(--ln-font-body);
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
}

/* =================================================================== */
/*      1. ESTRUCTURA GLOBAL Y FONDO
/* =================================================================== */

body {
    background: radial-gradient(circle at center, #1B2735 0%, #090A0F 100%);
    overflow: hidden; margin: 0;
}

#warp-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}

#landing-view .welcome-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100;
    display: flex; justify-content: center; align-items: center;
    background: rgba(0,0,0,0.6); 
    padding: 10px; 
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease;
}

#landing-view .welcome-overlay.show { opacity: 1; visibility: visible; }

/* =================================================================== */
/*      2. EL MODAL CINCELADO (ESTILO UNIFICADO)
/* =================================================================== */

/* Aplica al modal principal, al de reset y al de beneficios */
#landing-view .welcome-modal-container,
#custom-reset-modal .modal-content,
#benefits-modal .modal-content {
    background-color: var(--ln-surface-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Cincelado */
    border: 1px solid var(--ln-border);
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.9), 
        inset 0 0 0 1px rgba(255,255,255,0.08);

    border-radius: 20px;
    
    /* COMPACTO */
    width: 100%; 
    max-width: 320px !important; /* Forzamos tamaño pequeño en todos */
    max-height: 85vh; 
    
    padding: 25px 20px;
    margin: auto;
    
    display: flex; 
    flex-direction: column; 
    position: relative;
    overflow: hidden; 
}

/* =================================================================== */
/*      3. LOGO (GRANDE Y ANIMADO)
/* =================================================================== */

#landing-view .animated-logo-modal {
    max-width: 80px; /* AUMENTADO */
    height: auto;
    margin: 0 auto 15px auto; 
    display: block;
    filter: drop-shadow(0 0 10px rgba(233, 30, 99, 0.4));
    animation: slowBounce 3s ease-in-out infinite;
}

@keyframes slowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =================================================================== */
/*      4. SCROLL Y LAYOUT INTERNO
/* =================================================================== */

#landing-view #auth-container,
#landing-view .pricing-grid-container {
    flex: 1 1 auto;       
    min-height: 0;        
    overflow-y: auto;     
    padding: 5px;     
    margin-bottom: 5px;
}

#landing-view .welcome-step {
    display: none; 
    flex-direction: column;
    height: 100%; 
    overflow: hidden;
}
#landing-view .welcome-step.active { display: flex; }

/* =================================================================== */
/*      5. FORMULARIOS Y ESPACIADO (ARREGLADO)
/* =================================================================== */

/* Toggle Switch */
#landing-view .form-toggle {
    display: flex; 
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--ln-border);
    border-radius: 10px; padding: 4px; margin-bottom: 20px;
    flex-shrink: 0;
}
#landing-view .form-toggle-btn {
    flex: 1; padding: 8px; font-size: 0.8rem; color: #aaa;
    background: transparent; border: none; cursor: pointer; border-radius: 6px;
}
#landing-view .form-toggle-btn.active {
    background: rgba(255,255,255,0.15); color: #fff; font-weight: bold;
}

/* Inputs */
#landing-view .auth-form input,
#custom-reset-modal input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--ln-border);
    color: #fff;
    width: 100%; 
    padding: 12px 40px 12px 15px; /* Espacio a la derecha para el ojo */
    border-radius: 10px;
    margin-bottom: 15px; 
    font-size: 0.9rem;
    box-sizing: border-box;
}

/* Contenedor relativo para el password */
#landing-view .form-group.password-group,
#custom-reset-modal .password-group {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}
/* El input dentro del grupo no lleva margen bottom porque lo lleva el grupo */
#landing-view .form-group.password-group input { margin-bottom: 0; }

/* EL OJO (VISOR) - POSICIONADO CORRECTAMENTE */
#landing-view .password-toggle-icon,
#custom-reset-modal .password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 1rem;
    /* CAMBIO: Z-index alto para asegurar que recibe el clic sobre el input */
    z-index: 100 !important; 
    pointer-events: auto;
}

/* =================================================================== */
/*      6. BOTONES Y ENLACES (SEPARADOS)
/* =================================================================== */

/* Contenedor de botones principales */
#landing-view .welcome-actions {
    display: flex; 
    flex-direction: column; 
    gap: 15px; /* SEPARACIÓN ENTRE BOTONES */
    margin: 10px 0;
    flex-shrink: 0;
}

#landing-view .btn {
    width: 100%; padding: 12px; border-radius: 10px;
    font-family: var(--ln-font-cta); font-size: 1.1rem;
    cursor: pointer; border: none; 
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
#landing-view .btn-primary-glow {
    background: var(--ln-accent-gold); color: #000; font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
#landing-view .btn-secondary {
    background: #e0e0e0; color: #000; font-weight: 700;
}

/* Enlaces "Olvidaste contraseña" e "Iniciar sesión" */
#landing-view .forgot-password-link,
#landing-view .welcome-login-link {
    display: block;
    text-align: center;
    margin-top: 20px;     /* SEPARACIÓN SUPERIOR */
    margin-bottom: 10px;  /* SEPARACIÓN INFERIOR */
    color: #bbb;
    font-size: 0.8rem;
}

#landing-view a, 
#landing-view .forgot-password-link {
    color: var(--ln-accent-gold); 
    text-decoration: none;
    font-weight: 600;
}
#landing-view a:hover { color: #fff; text-decoration: underline; }

/* =================================================================== */
/*      7. ARREGLO DE LOS MODALES EXTERNOS (Reset & Beneficios)
/* =================================================================== */

/* Modal Restablecer Contraseña (FIX TAMAÑO) */
#custom-reset-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
}
/* El .modal-content de este ya está estilizado en la sección 2 */

#custom-reset-modal h3 {
    font-family: var(--ln-font-titles); color: #fff; 
    text-align: center; margin-bottom: 10px;
}

/* Modal Beneficios (FIX VIDEOS EXPLOSIVOS) */
#benefits-modal video {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    display: block;
    margin-bottom: 15px;
}

#benefits-modal ul { 
    padding: 0; margin: 0 0 15px 0; list-style: none; text-align: left;
}
#benefits-modal li {
    font-size: 0.85rem; color: #ddd; margin-bottom: 8px; display: flex; gap: 8px;
}
#benefits-modal li i { color: var(--ln-accent-gold); margin-top: 3px; }

/* Títulos y textos generales */
#landing-view .welcome-title, #landing-view h3 {
    font-family: var(--ln-font-titles); font-size: 1.1rem; color: #fff;
    text-align: center; margin: 0 0 10px 0;
}
#landing-view .makumoto-pink { color: #E91E63; display: block; font-size: 1.3rem; margin-top: 5px; }
#landing-view .welcome-subtitle { font-size: 0.8rem; color: #ccc; text-align: center; margin-bottom: 15px; }

/* Flecha de volver */
#landing-view .welcome-back-btn,
.modal-close-btn {
    position: absolute; top: 15px; left: 15px;
    width: 35px; height: 35px;
    background: rgba(255,255,255,0.1); border: 1px solid var(--ln-border); border-radius: 50%;
    color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 20;
}
/* =================================================================== */
/*      PARCHE FINAL DE CORRECCIÓN (v8.0)
/*      Pega esto AL FINAL de landing.css
/* =================================================================== */

/* 1. ESPACIADO Y BOTONES (Ni muy juntos, ni aislados) */
#landing-view .welcome-actions {
    gap: 8px;           /* Reducido para que no estén "aislados" */
    margin-bottom: 5px; /* Pegarlos un poco más al texto de abajo */
}

#landing-view .welcome-login-link {
    margin-top: 8px;    /* Acercar "Inicia sesión" al botón */
    margin-bottom: 0;
}

/* Quitar el resplandor (glow) del botón, dejar solo el del logo */
#landing-view .btn-primary-glow {
    box-shadow: none;   
    border: 1px solid #FFD700; /* Borde fino para mantener estilo */
}

/* 2. ENLACE "OLVIDASTE CONTRASEÑA" (Distinto y separado) */
#landing-view .forgot-password-link {
    color: #90CAF9;     /* Azul claro para diferenciarlo del dorado */
    margin-top: 25px;   /* Separarlo bien de los inputs */
    margin-bottom: 15px;
    display: block;
    text-align: center;
}

/* 3. INPUTS (Hacerlos cajas visibles y obvias) */
#landing-view .auth-form input,
#custom-reset-modal input {
    background-color: #0d0d0d; /* Fondo casi negro sólido */
    border: 1px solid #444;    /* Borde gris visible */
    color: #fff;
    text-align: center;        /* Texto centrado como pediste */
}
#landing-view .auth-form input:focus {
    background-color: #000;
    border-color: #FFD700;
}

/* 4. ARREGLO DE CREADORES (CONTENEDORES VISIBLES) */
/* El fondo de la tarjeta debe ser sólido para que se lea el texto */
#landing-view .pricing-card {
    background-color: #121212; /* Fondo sólido oscuro */
    border: 1px solid #333;
}

/* Bloques para los textos de la lista */
#landing-view .features-list li {
    background-color: rgba(255, 255, 255, 0.05); /* Bloque grisaceo */
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    color: #e0e0e0;
}

/* 5. ARREGLO MODAL BENEFICIOS (HEADER) */
/* Esto separa el título del botón de cerrar y evita encimados */
#benefits-modal .modal-header,
#landing-view .modal-header { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    position: relative;
}

/* Asegurar que la X o el botón cerrar no tengan texto encimado */
.modal-close-btn {
    position: relative; /* Reset de posición absoluta */
    top: auto; left: auto; right: auto;
    background: transparent;
    border: 1px solid #555;
    margin: 0;
}
/* =================================================================== */
/*      PARCHE FINAL v9.0 (ACOPLAMIENTO ESTRICTO)
/*      Pega esto AL FINAL de landing.css
/* =================================================================== */

/* 1. TEXTOS LEGALES Y LINKS (Pequeños y Centrados) */
#landing-view .auth-form p,
#landing-view .form-text {
    font-size: 0.7rem !important; /* Letra muy pequeña */
    text-align: center !important;
    width: 100%;
    margin-top: 10px;
    color: #bbb;
}

/* 2. TARJETAS DE PRECIOS (Arreglo Iconos y Listas) */
#landing-view .plan-header {
    flex-direction: column !important; /* Icono arriba del texto */
    text-align: center !important;
    gap: 5px;
}

#landing-view .plan-icon {
    font-size: 1.2rem !important; /* Icono pequeño */
    margin-bottom: 5px;
}

#landing-view .features-list {
    margin-top: 10px;
    padding-left: 0 !important; /* Quita espacio de viñetas */
}

#landing-view .features-list li {
    background-color: #000 !important; /* FONDO NEGRO */
    border: 1px solid #333;
    list-style-type: none !important; /* SIN PUNTOS */
    font-size: 0.75rem !important;    /* Letra chica */
    padding: 8px !important;
    margin-bottom: 5px;
    text-align: center; /* Texto centrado dentro del bloque */
    justify-content: center;
}

/* 3. MODAL RESTABLECER CONTRASEÑA (Diminuto) */
#custom-reset-modal .modal-content {
    max-width: 260px !important; /* Ancho muy reducido */
    padding: 20px 15px !important;
    min-height: auto !important;
}

#custom-reset-modal h3 {
    font-size: 1rem !important;
}

#custom-reset-modal input {
    font-size: 0.85rem !important;
    margin-bottom: 10px !important;
}

#custom-reset-modal .btn {
    margin-top: 5px;
    width: 100%;
}

/* 4. QUITAR BRILLOS Y EFECTOS (Botones planos) */
#landing-view .btn-primary-glow,
#landing-view .btn {
    box-shadow: none !important; /* ADIÓS BRILLO */
    text-shadow: none !important;
    transition: background 0.2s !important; /* Solo cambio de color suave */
}

#landing-view .btn-primary-glow:hover {
    background-color: #FFC107 !important; /* Amarillo un poco más oscuro al hover */
}

/* 5. MODAL DE TEXTOS LEGALES (El nuevo modal pequeño) */
#legal-modal-overlay {
    background: rgba(0,0,0,0.95) !important; /* Fondo casi negro total */
    z-index: 99999;
}
#legal-modal-content {
    background: #111 !important;
    border: 1px solid #333;
    max-width: 300px !important;
    max-height: 60vh !important; /* Pequeño con scroll */
    border-radius: 15px;
    padding: 0 !important; /* Padding controlado interno */
    display: flex; flex-direction: column;
}
#legal-modal-body {
    padding: 15px;
    overflow-y: auto;
    font-size: 0.8rem;
    color: #ccc;
    text-align: center; /* Texto centrado */
    line-height: 1.4;
}
#legal-modal-header {
    padding: 10px;
    border-bottom: 1px solid #333;
    text-align: center;
    font-family: 'Cinzel', serif;
    color: #FFD700;
}
/* =================================================================== */
/*      PARCHE v10.0 - SEPARACIÓN DE PLANES Y LIMPIEZA
/*      Pega esto AL FINAL de landing.css
/* =================================================================== */

/* 1. SEPARACIÓN DE PLANES (CONTENEDORES DISTINTOS) */
#landing-view .pricing-card {
    margin-bottom: 30px !important; /* Gran separación entre tarjetas */
    background-color: #000 !important; /* Fondo negro sólido */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    position: relative;
    overflow: hidden;
}

/* 2. PLAN ELITE (Color Morado) */
#landing-view .pricing-card.plan-elite {
    border: 2px solid #673AB7 !important; /* Borde Morado */
    background: linear-gradient(180deg, rgba(103, 58, 183, 0.15) 0%, rgba(0,0,0,1) 100%) !important;
}

/* 3. PLAN ADVANCED (Color Naranja) */
#landing-view .pricing-card.plan-advanced {
    border: 2px solid #FF9800 !important; /* Borde Naranja */
    background: linear-gradient(180deg, rgba(255, 152, 0, 0.15) 0%, rgba(0,0,0,1) 100%) !important;
}

/* 4. LIMPIEZA VISUAL MODAL BENEFICIOS */
/* Ocultar cualquier texto "Cerrar" que haya quedado huerfano abajo */
#benefits-modal .modal-footer,
#benefits-modal .btn-close-action {
    display: none !important; 
}
/* =================================================================== */
/*      CORRECCIONES DE ESPECIFICIDAD (v12.0 - CLEAN CODE)
/*      Gana por jerarquía, no por !important.
/* =================================================================== */

/* 1. DOMAR MODALES DE SISTEMA (Errores, Alertas)
   Usamos la ruta completa para ganar especificidad: body > overlay > content */
body .modal-overlay .modal-content,
body .modal-dialog,
div[id^="swal"] {
    width: 90%;
    max-width: 300px;         /* Tamaño compacto */
    background-color: #050505; /* Negro profundo */
    border: 1px solid #333;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

/* Títulos de las alertas */
body .modal-overlay h3,
body .modal-dialog h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

/* Textos de las alertas */
body .modal-overlay p,
body .modal-dialog p {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Botones de las alertas (OK) */
body .modal-overlay button,
body .modal-dialog button {
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 8px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}
body .modal-overlay button:hover {
    background-color: #333;
}

/* 2. ARREGLO PANTALLA "VERIFICA TU CORREO" */

/* El enlace "Reenviar código" específico */
#landing-view .resend-action-link {
    display: block;           /* Comportamiento de bloque para margenes */
    margin-top: 25px;         /* Separación del botón amarillo */
    margin-bottom: 5px;
    font-weight: 400;         /* Letra fina */
    font-size: 0.75rem;       /* Letra pequeña */
    color: #64B5F6;           /* Azul claro */
    text-decoration: none;
    cursor: pointer;
}

#landing-view .resend-action-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Ajuste del botón Verificar para que no se pegue */
#landing-view #verify-and-proceed-btn {
    margin-top: 15px;
    width: 100%;
}
/* =================================================================== */
/*      PARCHE v14.0 - MODO COMPACTO MÓVIL (SOLUCIÓN SCROLL)
/*      Reduce tamaños y activa el scroll en celulares pequeños
/* =================================================================== */

@media (max-width: 480px), (max-height: 700px) {

    /* 1. ACTIVAR SCROLL EN EL MODAL PRINCIPAL */
    #landing-view .welcome-modal-container {
        max-height: 90vh !important;       /* Darle más altura disponible */
        overflow-y: auto !important;       /* ¡CRÍTICO! Permitir scroll si no cabe */
        -webkit-overflow-scrolling: touch; /* Scroll suave en iPhone */
        padding: 15px 15px !important;     /* Reducir relleno interno */
        justify-content: flex-start !important; /* Alinear arriba para permitir scroll */
    }

    /* 2. HACER EL LOGO PEQUEÑO */
    #landing-view .animated-logo-modal {
        max-width: 50px !important;        /* Reducir drásticamente (estaba en 80px) */
        margin-bottom: 10px !important;
        margin-top: 10px !important;
    }

    /* 3. REDUCIR TEXTOS GIGANTES */
    #landing-view .welcome-title {
        font-size: 1rem !important;        /* Título más chico */
        line-height: 1.2 !important;
    }
    
    #landing-view .makumoto-pink {
        font-size: 1.2rem !important;      /* Nombre de marca ajustado */
    }

    #landing-view .welcome-subtitle {
        font-size: 0.75rem !important;     /* Subtítulo compacto */
        margin-bottom: 10px !important;
    }

    #landing-view .welcome-question {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
        color: #ddd !important;
    }

    /* 4. COMPACTAR BOTONES */
    #landing-view .welcome-actions {
        gap: 8px !important;               /* Menos espacio entre botones */
        margin: 5px 0 !important;
    }

    #landing-view .btn {
        padding: 10px !important;          /* Botones menos gordos */
        font-size: 0.9rem !important;      /* Texto de botón legible pero chico */
        min-height: auto !important;
    }

    /* 5. AJUSTAR ENLACE INFERIOR */
    #landing-view .welcome-login-link {
        margin-top: 10px !important;
        font-size: 0.75rem !important;
        padding-bottom: 10px;              /* Espacio extra abajo para poder scrollear */
    }
    
    /* Asegurar que los pasos internos no bloqueen el scroll */
    #landing-view .welcome-step {
        height: auto !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
    }
}
/* =================================================================== */
/*      PARCHE FINAL v11.0 (UX COLORS & MODALS)
/*      Pega esto AL FINAL de landing.css
/* =================================================================== */

/* 1. COLOR DEL ENLACE "OLVIDASTE TU CONTRASEÑA" */
/* Lo hacemos dorado/amarillo para que resalte sobre negro */
#landing-view .forgot-password-link,
#landing-view .link-simple {
    color: #FFD700 !important; /* Amarillo Makumoto */
    margin-top: 20px !important;
    font-size: 0.85rem !important;
    text-decoration: none;
    display: block;
    text-align: center;
    cursor: pointer;
    opacity: 0.9;
}
#landing-view .forgot-password-link:hover,
#landing-view .link-simple:hover {
    color: #fff !important;
    text-decoration: underline;
    opacity: 1;
}

/* 2. VENTANAS DE AVISO (Dialogs/Alerts) - Estilo limpio */
body .modal-dialog,
body .swal2-popup {
    background-color: #111 !important;
    border: 1px solid #333 !important;
    border-radius: 16px !important;
    color: #fff !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8) !important;
}

/* Títulos de alertas */
body .modal-dialog h4 {
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    margin-bottom: 10px;
}

/* Texto de alertas */
body .modal-dialog p {
    color: #ccc !important;
    font-size: 0.9rem !important;
}

/* Botón OK de alertas */
body .modal-dialog button {
    background: #FFD700 !important; /* Botón Amarillo */
    color: #000 !important;
    border: none !important;
    font-weight: bold !important;
    border-radius: 50px !important;
    padding: 10px 25px !important;
    margin-top: 10px;
}

/* 3. INPUT DE PASSWORD CON OJO (Ajuste fino) */
/* Aseguramos que el icono no se superponga con el texto */
#reset-new-password {
    padding-right: 40px !important; /* Espacio para el icono */
}
/* =================================================================== */
/*      PARCHE FINAL v12.0 (CAPAS Y BOTONES DE CIERRE)
/*      Pega esto AL FINAL de landing.css
/* =================================================================== */

/* 1. FORZAR QUE LAS ALERTAS ESTÉN ENCIMA DE TODO (CRÍTICO) */
/* El modal de reset tiene z-index 100000, así que la alerta necesita más */
body .modal-overlay,
body .modal-dialog,
body .swal2-container {
    z-index: 2147483647 !important; /* El valor máximo permitido en CSS */
}

/* 2. ESTILO DE LA "X" DE CERRAR MEJORADO */
.close-modal-x {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background 0.2s;
    z-index: 500 !important;
}

.close-modal-x:hover {
    background: rgba(255, 0, 0, 0.3) !important;
    color: #ff4444 !important;
}
/* =================================================================== */
/*      DISEÑO FINAL COMPACTO (IOS FIX + CLEAN WHITE)
/*      Fondo blanco sólido, cero espacios muertos, logo morado.
/* =================================================================== */

/* 1. CONTENEDOR MODAL (Sólido y Compacto) */
#auth-wall-overlay .modal-content,
#custom-reset-modal .modal-content {
    background-color: #ffffff !important; /* BLANCO PURO (No transparente) */
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
    
    /* TAMAÑO Y ESPACIADO (SOLUCIÓN IOS) */
    width: 85% !important;
    max-width: 320px !important;
    padding: 15px 10px !important; /* Padding mínimo para aprovechar pantalla */
    margin: 0 auto !important;
    
    max-height: 85vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* 2. HEADER Y LOGO (MORADO) */
.auth-header {
    margin-bottom: 5px !important;
    text-align: center !important;
}

/* Transformar la imagen roja a morada con filtros */
.auth-logo-pulse {
    width: 35px !important; /* Logo pequeño */
    margin-bottom: 0px !important;
    /* Esto rota el matiz del rojo al morado */
    filter: hue-rotate(280deg) brightness(0.9) contrast(1.2) !important; 
}

/* Título MAKUMOTO (Fuente distinta, Morado) */
.auth-title-neon {
    font-family: 'Orbitron', sans-serif !important; /* Fuente Tecno/Gruesa */
    color: #9C27B0 !important; /* MORADO */
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    margin: 5px 0 0 0 !important;
    text-transform: uppercase;
    text-shadow: none !important;
}

/* Subtítulo (Pequeño, Gris, Otra fuente) */
.auth-subtitle {
    font-family: 'Poppins', sans-serif !important;
    color: #888888 !important; /* GRIS */
    font-size: 0.65rem !important; /* Muy pequeño */
    font-weight: 400 !important;
    margin-top: 2px !important;
    margin-bottom: 10px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* 3. SWITCHER (PESTAÑAS) - SUPER COMPACTO */
.auth-switcher-compact {
    background: #f5f5f5 !important;
    border-radius: 8px !important;
    padding: 2px !important;
    margin-bottom: 10px !important;
    border: 1px solid #ddd !important;
    min-height: 30px !important; /* Altura forzada pequeña */
}

.auth-switcher-compact button {
    padding: 5px 0 !important; /* Botones delgados */
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #999 !important;
}

.auth-switcher-compact .switch-btn.active {
    background: #fff !important;
    color: #9C27B0 !important; /* Texto Morado */
    border: 1px solid #9C27B0 !important; /* Borde Morado Fino */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

/* 4. INPUTS (SIN AIRE) */
.input-group { 
    margin-bottom: 6px !important; /* Mínima separación */
}

input, .mk-input {
    background: #ffffff !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
    border-radius: 8px !important;
    padding: 8px 10px !important; /* Input bajito */
    font-size: 0.85rem !important;
    height: 38px !important; /* Altura fija controlada */
}
input:focus { border-color: #9C27B0 !important; background: #fff !important; }

/* 5. CÓDIGO AFILIADO (ARREGLO DE COLOR) */
.affiliate-compact {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

#toggle-affiliate {
    font-size: 0.65rem !important;
    color: #E91E63 !important; /* ROSA (No Cyan) */
    border: 1px solid #E91E63 !important; /* Borde Rosa */
    background: #fff !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
}

/* 6. BOTÓN PRINCIPAL (ANCHO TOTAL, SIN SOMBRAS RARAS) */
.btn-auth-action, .btn-auth-login {
    width: 100% !important;
    margin-top: 10px !important;
    padding: 10px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important; /* Menos redondo para ahorrar espacio visual */
    background: linear-gradient(90deg, #E91E63 0%, #9C27B0 100%) !important;
    box-shadow: none !important;
}

/* 7. LINKS */
.link-simple, a {
    font-size: 0.7rem !important;
    color: #9C27B0 !important; /* Morado */
    margin-top: 10px !important;
}

/* 8. ELIMINAR BASURA VISUAL VIEJA */
.auth-card-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.auth-card-container::before, .auth-card-container::after { display: none !important; }

/* 9. VENTANA DE ALERTAS (DIALOGS) */
body .modal-dialog {
    background: #fff !important;
    color: #000 !important;
    border-radius: 10px !important;
    padding: 15px !important;
}
body .modal-dialog h4 { color: #9C27B0 !important; margin: 0 0 5px 0 !important; }
body .modal-dialog p { font-size: 0.8rem !important; }
body .modal-dialog button { 
    background: #000 !important; 
    color: #fff !important;
    padding: 5px 15px !important;
    font-size: 0.8rem !important;
}
/* =================================================================== */
/*      PARCHE FINAL v13.0 (Z-INDEX NUCLEAR PARA ALERTAS)
/*      Pega esto AL FINAL de landing.css
/* =================================================================== */

/* Forzar que las alertas y diálogos estén ENCIMA del modal de login */
body .modal-dialog,
body .swal2-container,
body .modal-overlay.alert-mode {
    z-index: 2147483647 !important; /* Máximo valor posible */
    position: fixed !important;
}

/* Asegurar que el fondo oscuro de la alerta también tape todo */
body .modal-overlay {
    background-color: rgba(0,0,0,0.85); /* Unificar opacidad */
}