/* VARIABLES Y CONFIGURACIÓN GLOBAL - ESTILO ÁUREA PREMIUM */ 
:root {
    --bg-deep: #050505;
    /* CAMBIO: Simplificado el gradiente para evitar errores */
    --bg-gradient: linear-gradient(180deg, #1a2332 0%, #050505 80%);
    
    /* Efecto Cristal (Glassmorphism) */
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-blur: 20px;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    /* Acentos de Marca */
    --accent-green: #00D98B;
    --accent-glow: rgba(0, 217, 139, 0.4);
    --accent-hover: #00b372;
    --accent-gold: #D4AF37;
    --danger: #ef4444;
    
    --font-main: 'Inter', sans-serif;
    --max-width: 700px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-deep);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

/* CONTENEDOR PRINCIPAL (GLASS CARD) */
.quiz-container {
    width: 100%;
    max-width: var(--max-width);
    
    /* Efecto Cristal */
    background-color: var(--card-bg);
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    border: 1px solid var(--card-border);
    
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
    
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: height 0.3s ease;
}

/* GESTIÓN DE PANTALLAS */
.screen {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    height: 100%;
    width: 100%;
}

/* INTRODUCCIÓN */
.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    height: 100%;
    justify-content: center;
}

.intro-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.intro-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 450px;
}

/* ========================================
   NUEVOS ESTILOS AGREGADOS
   ======================================== */

/* WARNING BADGE (NUEVO) */
.warning-badge {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* HERO SUBTITLE (NUEVO) */
.hero-subtitle {
    font-size: 1.15rem !important;
    color: var(--text-secondary) !important;
    max-width: 500px !important;
    line-height: 1.7 !important;
}

/* BENEFITS SECTION (NUEVO) */
.benefits-section {
    width: 100%;
    background: rgba(0, 217, 139, 0.03);
    border: 1px solid rgba(0, 217, 139, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem 0;
}

.benefits-intro {
    font-size: 1rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.benefit-tier {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.benefit-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 0.75rem;
}

.benefit-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.benefit-price strong {
    color: white;
    font-size: 1.1rem;
}

.benefits-footer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
}

/* REALITY SECTION (NUEVO) */
.reality-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-green);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
}

.reality-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.reality-intro {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.reality-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.reality-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    position: relative;
}

.reality-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: bold;
    font-size: 1.2rem;
}

.reality-contrast {
    margin: 1.5rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.reality-contrast strong {
    color: var(--accent-green);
    font-weight: 600;
}

.reality-conclusion {
    margin: 1rem 0;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.reality-challenge {
    margin: 1rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

.reality-cta {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--accent-green);
    text-align: center;
}

/* BUTTON DISCLAIMER (NUEVO) */
.btn-disclaimer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

/* FAQ SECTION (NUEVO) */
.faq-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}

.faq-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.faq-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-q {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.faq-a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* URGENCY BANNER (NUEVO) */
.urgency-banner {
    width: 100%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(217, 70, 239, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    color: #fca5a5;
    line-height: 1.6;
}

.urgency-banner strong {
    color: white;
    font-weight: 700;
}

/* ========================================
   FIN DE NUEVOS ESTILOS
   ======================================== */

/* INPUTS ESTILIZADOS */
.form-group {
    width: 100%;
    max-width: 350px;
    text-align: left;
    margin-top: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background-color: rgba(0,0,0,0.3);
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
}

.form-group input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 217, 139, 0.1);
}

.error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
    text-align: center;
}

/* QUIZ HEADER */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.progress-container {
    flex: 1;
    margin-right: 3rem;
}

#progress-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-green);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.timer-container.urgent {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* PREGUNTAS Y OPCIONES */
.question-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.question-area h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    font-weight: 600;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.option-btn {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    padding: 20px;
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-family: var(--font-main);
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    background-color: rgba(255,255,255,0.08);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

.option-btn.selected {
    background-color: rgba(0, 217, 139, 0.1);
    border-color: var(--accent-green);
    color: white;
    box-shadow: 0 0 20px rgba(0, 217, 139, 0.05) inset;
}

/* FOOTER Y BOTONES */
.quiz-footer {
    margin-top: 3rem;
    display: flex;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-green);
    color: #000;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    background-color: white;
    color: black;
}

.btn-secondary:disabled {
    background-color: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.2);
    cursor: not-allowed;
    box-shadow: none;
}

/* LOADING ANIMATION (Minimalista) */
#screen-loading {
    align-items: center;
    justify-content: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--accent-green);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (min-width: 700px) {
    .options-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .quiz-container {
        padding: 4rem;
    }
    
    .question-area h2 {
        font-size: 1.8rem;
    }
    
    /* NUEVO: Responsive para benefits grid */
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .intro-content h1 {
        font-size: 2rem;
    }
    
    .warning-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
    
    .benefits-section {
        padding: 1.5rem;
    }
    
    .benefit-card {
        padding: 1rem;
    }
    
    .reality-section {
        padding: 1.25rem;
    }
    
    .faq-section {
        padding: 1.25rem;
    }
}

/* --- NUEVOS ESTILOS: INDICADORES Y SHARE --- */

/* 1. SECCIÓN INDICADORES (Botones Dobles) */
.indicators-wrapper {
    margin: 2rem 0;
    width: 100%;
}

.indicators-label {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.indicators-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.indicator-btn {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.indicator-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent-green, #00D98B);
    transform: translateY(-2px);
}

.indicator-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.indicator-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 2. SECCIÓN INSTAGRAMMABLE (Share Card) */
.share-container {
    margin: 3rem 0;
    text-align: center;
}

.share-card {
    background: linear-gradient(145deg, #1a1a1a, #000);
    border: 1px solid var(--accent-green, #00D98B);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 217, 139, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

/* Efecto de brillo en la tarjeta */
.share-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.share-badge {
    display: inline-block;
    background: var(--accent-green, #00D98B);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.share-tier-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.share-score-display {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-family: monospace;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
    display: inline-block;
    width: 100%;
}

.share-cta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (min-width: 600px) {
    .indicators-grid { grid-template-columns: 1fr 1fr; }
}