/* Global Colors & Variables */
:root {
    --bg-dark: #050505;
    --bg-darker: #000000;
    --bg-card: #0a0a0a;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-gradient: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #996515 100%);
    
    --alert-red: #ff2a2a;
    --alert-orange: #ff6b00;
    
    --glass-border: rgba(212, 175, 55, 0.2);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    --font-heading: 'Sora', sans-serif; /* Fallback: Outfit */
    --font-body: 'Sora', sans-serif;    /* Fallback: Inter */
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
.text-gold { color: var(--gold-primary); }
.text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section { padding: 4rem 0; position: relative; }
.section-darker { background-color: var(--bg-darker); }

/* ---------- PREMIUM BACKGROUNDS ---------- */

.bg-grid {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(90deg, rgba(212,175,55,0.02) 1px, transparent 1px),
        linear-gradient(rgba(212,175,55,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    position: relative;
}

.bg-grid::before, .bg-grid::after,
.bg-mesh::before, .bg-mesh::after,
.bg-particles::before, .bg-particles::after,
.bg-steel-dark::before, .bg-steel-dark::after {
    content: "";
    position: absolute;
    left: 0; width: 100%; height: 150px;
    pointer-events: none;
    z-index: 1;
}

.bg-grid::before, .bg-mesh::before, .bg-particles::before, .bg-steel-dark::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-dark), transparent);
}

.bg-grid::after, .bg-mesh::after, .bg-particles::after, .bg-steel-dark::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.bg-mesh {
    background:
        radial-gradient(at 10% 20%, rgba(212, 175, 55, 0.1) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(212, 175, 55, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(212, 175, 55, 0.04) 0px, transparent 70%),
        var(--bg-dark);
    position: relative;
    background-attachment: fixed;
}

.bg-particles {
    background:
        radial-gradient(circle at 10% 20%, rgba(212,175,55,0.12) 1px, transparent 1.5px),
        radial-gradient(circle at 70% 60%, rgba(212,175,55,0.1) 1px, transparent 1.5px),
        radial-gradient(circle at 40% 80%, rgba(247,226,122,0.1) 1px, transparent 1.5px),
        var(--bg-dark);
    background-size: 150px 150px;
    position: relative;
}

.bg-steel-dark {
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 50%, #050505 100%);
    position: relative;
    overflow: hidden;
}

.bg-steel-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.015), rgba(255,255,255,0.015) 1px, transparent 1px, transparent 4px);
    opacity: 0.3;
    pointer-events: none;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--bg-darker);
    background: var(--gold-gradient);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

/* Cards & Glassmorphism */
.card-glass {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s;
}
.card-glass:hover { transform: translateY(-5px); border-color: var(--gold-primary); }

/* ---------- CARD 1 (SHADOW + GLOW ATRÁS) ---------- */
.card-glow {
    background: #111;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 25px 70px rgba(212, 175, 55, 0.35);
    transition: all 0.3s ease;
}

.card-glow:hover {
    transform: translateY(-10px);
}

.card-glow::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--gold-primary), #f7e27a, var(--gold-primary));
    border-radius: 20px;
    filter: blur(20px);
    opacity: 0.4;
    z-index: -1;
}

/* ---------- CARD 2 (GRADIENT PREMIUM) ---------- */
.card-gradient {
    background: linear-gradient(135deg, #1a1a1a, #0c0c0c);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-gradient:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
}

.card-gradient::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
}

/* Specific Component Styles */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--gold-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.social-proof {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.social-proof-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Alert Box */
.alert-box {
    background: linear-gradient(145deg, #111, #000);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

.alert-box::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: var(--gold-gradient);
    border-radius: 13px;
    z-index: -1;
    opacity: 0.3;
}

.alert-box p { font-size: 1.3rem; font-weight: 600; color: var(--text-primary); }
.alert-icon {
    font-size: 2rem;
    color: var(--gold-primary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}
.alert-icon.left { left: 2rem; }
.alert-icon.right { right: 2rem; }

/* Dictionary Style */
.dict-card {
    background: var(--bg-card);
    border-left: 4px solid var(--gold-primary);
    padding: 2rem;
    margin: 0 auto 2rem auto;
    max-width: 800px;
    text-align: left;
}
.dict-term { font-size: 1.8rem; font-family: serif; margin-bottom: 0.5rem; }
.dict-def { color: var(--text-secondary); font-style: italic; margin-bottom: 1rem; }
.dict-body { font-size: 1.1rem; line-height: 1.8; }
.formula-box {
    background: #111;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-family: monospace;
    font-size: 1.2rem;
}

/* Risk Cards */
.risk-card {
    border-color: rgba(255, 42, 42, 0.3);
    position: relative;
}
.risk-card h3 { color: var(--alert-red); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;}
.risk-card p { color: var(--text-secondary); }

/* Custom Grid: 3 top, 2 bottom */
.grid-5-special {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}
.grid-5-special > div:nth-child(1),
.grid-5-special > div:nth-child(2),
.grid-5-special > div:nth-child(3) { grid-column: span 2; }
.grid-5-special > div:nth-child(4) { grid-column: 2 / span 2; }
.grid-5-special > div:nth-child(5) { grid-column: 4 / span 2; }

/* Feature Cards */
.feature-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
    background: rgba(212, 175, 55, 0.1);
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
}
.feature-icon.center { margin: 0 auto 1rem auto; }

/* WhatsApp Section */
.wa-section img { max-width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.6); }

/* Guarantee */
.guarantee-icon {
    font-size: 5rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

/* Quote */
.quote-section { font-size: 2rem; font-style: italic; color: var(--text-secondary); max-width: 800px; margin: 0 auto; }

/* Final CTA */
.final-cta-card {
    background: var(--gold-gradient);
    color: var(--bg-darker);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
}
.final-cta-card h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.final-cta-card p { font-size: 1.2rem; margin-bottom: 2rem; font-weight: 600;}
.btn-dark {
    background: var(--bg-darker);
    color: var(--gold-primary);
    border: 2px solid var(--bg-darker);
}
.btn-dark:hover {
    background: transparent;
    color: var(--bg-darker);
    border-color: var(--bg-darker);
}

/* Quiz Popup Styles */
.quiz-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.quiz-container {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.quiz-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}
.quiz-close:hover { color: var(--gold-primary); }

.quiz-progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}
.quiz-progress-bar {
    height: 100%;
    background: var(--gold-gradient);
    width: 0%;
    transition: width 0.4s ease;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}
.quiz-step.active { display: block; }

.quiz-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold-primary);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.quiz-option {
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    color: var(--text-primary);
    font-size: 1rem;
}
.quiz-option:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
}
.quiz-option.selected {
    background: var(--gold-primary);
    color: var(--bg-darker);
    font-weight: 700;
}

.quiz-input-group {
    margin-bottom: 2rem;
}
.quiz-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.quiz-input-group input, .quiz-input-group textarea, .quiz-input-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.quiz-input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
    cursor: pointer;
}

.quiz-input-group select option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.quiz-input-group input:focus, .quiz-input-group textarea:focus, .quiz-input-group select:focus {
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.1);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.btn-quiz-next, .btn-quiz-prev {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-quiz-next {
    background: var(--gold-gradient);
    color: var(--bg-darker);
    border: none;
    flex: 1;
}
.btn-quiz-prev {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}
.btn-quiz-prev:hover { color: var(--gold-primary); border-color: var(--gold-primary); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .section { padding: 2.5rem 0; }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .grid-3, .grid-2, .results-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .grid-5-special {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .grid-5-special > div {
        grid-column: span 1 !important;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .social-proof {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding-left: 1rem;
    }
    
    .alert-box {
        padding: 2rem 1.5rem;
    }
    
    .alert-box p {
        font-size: 1.1rem;
    }
    
    .alert-icon {
        display: none;
    }
    
    .final-cta-card {
        padding: 2.5rem 1.5rem;
    }
    
    .final-cta-card h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .quiz-container { padding: 2rem 1.5rem; }
    .hero-title { font-size: 2rem; }
}
