/* ═══════════════════════════════════════════════════════════════
   ESTILOS - Cuando estudiar tiene sentido
   Infografía interactiva sobre motivación académica
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES (DARK MODE ONLY) ── */
:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --text-primary: #eaeaea;
    --text-secondary: #d4d4d4;
    --text-muted: #b8b8b8;
    --red: #e53935;
    --red-light: #ef5350;
    --teal: #00bfa5;
    --teal-light: #26a69a;
    --blue: #42a5f5;
    --blue-light: #64b5f6;
    --orange: #ff9800;
    --orange-light: #ffb74d;
    --gold: #ffd700;
    --gold-light: #ffeb3b;
    --brown: #8d6e63;
    --brown-light: #a1887f;
    --brown-dark: #5d4037;
    --shadow: 0 4px 20px rgba(0,0,0,0.5);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.7);
    --white: #ffffff;
}

/* ── RESET ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ── BASE ── */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ── PARTICLES CANVAS ── */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ── HEADER ── */
.hero {
    background: transparent;
    text-align: center;
    padding: 44px 20px 36px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-3%, 2%) rotate(2deg); }
    50% { transform: translate(-1%, 3%) rotate(0deg); }
    75% { transform: translate(2%, -1%) rotate(-2deg); }
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--text-primary);
    position: relative;
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateY(30px);
    animation: titleIntro 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes titleIntro {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero .subtitle {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    animation: subtitleIntro 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes subtitleIntro {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ── MAIN CONTAINER ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ── TIMELINE ── */
.timeline {
    position: relative;
    padding-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--text-muted), var(--teal), var(--red), var(--text-muted));
    transform: translateX(-50%);
    border-radius: 4px;
}

/* ── SECTION CARDS ── */
.section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section:nth-child(odd) { flex-direction: row; }
.section:nth-child(even) { flex-direction: row-reverse; }

.section .card {
    width: calc(50% - 50px);
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: default;
    border-top: 4px solid transparent;
    overflow: hidden;
}

.section .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(135deg, var(--red), var(--teal), var(--blue), var(--orange));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section .card:hover::before { opacity: 1; }
.section .card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px) scale(1.02);
}

.section .node {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 18px;
    height: 18px;
    background: var(--bg-primary);
    border: 3px solid var(--teal);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgba(0,191,165,0.12);
}

.section.visible .node { animation: pulse 2s ease-in-out; }

@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.4); }
    100% { transform: translateX(-50%) scale(1); }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.card-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: inherit;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card:hover .card-icon::after {
    opacity: 0.6;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.card-number {
    font-family: 'Merriweather', serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    color: var(--text-muted);
}

.card-title {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-body p, .card-body li {
    font-size: 1.01rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.card-body ul {
    padding-left: 0;
    list-style: none;
}

.card-body ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}

.card-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* ── COLOR THEMES ── */
.card.theme-red    { border-top-color: var(--red); }
.card.theme-blue   { border-top-color: var(--blue); }
.card.theme-teal   { border-top-color: var(--teal); }
.card.theme-orange { border-top-color: var(--orange); }
.card.theme-gold   { border-top-color: var(--gold); }
.card.theme-brown  { border-top-color: var(--brown); }

.icon-red    { background: linear-gradient(135deg, var(--red), var(--red-light)); }
.icon-blue   { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.icon-teal   { background: linear-gradient(135deg, var(--teal), var(--teal-light)); }
.icon-orange { background: linear-gradient(135deg, var(--orange), var(--orange-light)); }
.icon-gold   { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }
.icon-brown  { background: linear-gradient(135deg, var(--brown), var(--brown-light)); }

.theme-red .card-number, .theme-red .card-title    { color: var(--red); }
.theme-blue .card-number, .theme-blue .card-title   { color: var(--blue); }
.theme-teal .card-number, .theme-teal .card-title   { color: var(--teal); }
.theme-orange .card-number, .theme-orange .card-title { color: var(--orange); }
.theme-gold .card-number, .theme-gold .card-title   { color: #c77900; }
.theme-brown .card-number, .theme-brown .card-title  { color: var(--brown); }

/* ── FORMULA BANNER ── */
.formula-banner {
    text-align: center;
    margin: 10px 0 50px;
    position: relative;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.formula-banner.visible {
    opacity: 1;
    transform: scale(1);
}

.formula-inner {
    display: inline-block;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    color: var(--text-primary);
    padding: 18px 40px;
    border-radius: 50px;
    font-family: 'Merriweather', serif;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 700;
    box-shadow: 0 6px 30px rgba(0,0,0,0.5);
    letter-spacing: 0.3px;
    border: 1px solid var(--text-muted);
}

.formula-inner .equals { color: var(--gold); margin: 0 8px; font-size: 1.3em; }
.formula-inner .plus { color: var(--teal-light); margin: 0 6px; }
.formula-inner .quote { color: var(--orange-light); font-style: italic; }

/* ── FORMULA VISUALIZATION ── */
.formula-viz {
    margin-top: 30px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--text-muted);
}

.formula-viz-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.formula-viz-bar-container { flex: 1; max-width: 200px; }

.formula-viz-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text-secondary);
}

.formula-viz-bar {
    height: 30px;
    border-radius: 15px;
    background: var(--bg-primary);
    overflow: hidden;
}

.formula-viz-bar-fill {
    height: 100%;
    border-radius: 15px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.formula-viz-bar-fill.expectancy { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.formula-viz-bar-fill.value { background: linear-gradient(90deg, var(--teal), var(--teal-light)); }
.formula-viz-bar-fill.motivation { background: linear-gradient(90deg, var(--red), var(--red-light)); }
.formula-viz-bar-fill.animated { width: 85%; }
.formula-viz-bar-fill.animated-high { width: 95%; }

.formula-viz-operator { font-size: 2rem; font-weight: 700; color: var(--text-primary); }

.formula-viz-result {
    text-align: center;
    margin-top: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--teal), #00897b);
    color: var(--white);
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.formula-viz-result.show { opacity: 1; transform: translateY(0); }

/* ── CONCLUSION ── */
.conclusion {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.conclusion.visible { opacity: 1; transform: translateY(0); }

.conclusion-box {
    display: inline-block;
    background: linear-gradient(135deg, var(--teal), #00897b);
    color: var(--text-primary);
    padding: 22px 44px;
    border-radius: 16px;
    font-family: 'Merriweather', serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    box-shadow: 0 6px 30px rgba(0,0,0,0.5);
    max-width: 720px;
}

/* ── CONCLUSION → QUIZ SEPARATOR ── */
.quiz-separator {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--blue));
    border-radius: 3px;
    margin: 36px auto;
    opacity: 0.45;
}

.quiz-separator[style] { margin: 36px auto !important; }

/* ── FOOTER ── */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 44px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer h3 {
    font-family: 'Merriweather', serif;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.footer p, .footer li {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer ul { list-style: none; padding: 0; }
.footer ul li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.footer .reference {
    font-size: 0.82rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-muted);
}

.footer .reference a {
    color: var(--teal);
    text-decoration: none;
}

.footer .reference a:hover { text-decoration: underline; }

/* ── DETAIL PANELS ── */
.detail-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    color: var(--white);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-toggle:hover {
    filter: brightness(1.15);
    transform: scale(1.03);
}

.detail-toggle .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

.detail-toggle i { transition: transform 0.3s ease; }
.detail-toggle.open i { transform: rotate(180deg); }

.detail-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
}

.detail-content.open { max-height: 600px; opacity: 1; }

.detail-inner {
    padding-top: 14px;
    border-top: 1px dashed rgba(255,255,255,0.12);
    margin-top: 14px;
}

/* ── HIGHLIGHT KEYWORDS ── */
.highlight { font-weight: 600; color: var(--text-primary); }

/* ── TOOLTIP ── */
.tooltip-trigger {
    border-bottom: 2px dotted currentColor;
    cursor: help;
    position: relative;
}

.tooltip-trigger:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 400;
    white-space: normal;
    width: 220px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    line-height: 1.4;
    border: 1px solid var(--text-muted);
}

/* ── PROGRESS INDICATOR ── */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--teal), var(--blue));
    z-index: 1000;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ── BACK TO TOP ── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--teal); border-color: var(--teal); color: var(--white); transform: translateY(-2px); }

/* ── COMPONENTS LIST ── */
.component-item {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: default;
}

.component-item:hover {
    background: rgba(0,191,165,0.06);
    transform: translateX(4px);
}

.component-label { font-weight: 700; color: var(--orange); }

/* ── FINDINGS LIST ── */
.finding-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.finding-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--white);
    margin-top: 2px;
}

.finding-icon.icon-gold   { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }
.finding-icon.icon-teal   { background: linear-gradient(135deg, var(--teal), var(--teal-light)); }
.finding-icon.icon-blue   { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }

/* ── STRENGTHS LIST ── */
.strength-item { padding: 6px 0; }

.strength-label { font-weight: 700; }
.strength-label.confianza { color: var(--blue); }
.strength-label.interes { color: var(--teal); }
.strength-label.utilidad { color: var(--orange); }

/* ── DARK/LIGHT MODE TOGGLE ── */
/* ── POPUP/MODAL ── */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid var(--text-muted);
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--text-muted);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.popup-title {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-right: 50px;
    line-height: 1.25;
}

.popup-body {
    color: var(--text-secondary);
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.popup-body p {
    margin-bottom: 20px;
}

/* ── CLICKABLE QUESTIONS IN POPUP ── */
.popup-question {
    background: var(--bg-primary);
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-primary);
}

.popup-question:hover {
    border-color: var(--teal);
    background: var(--bg-secondary);
    transform: translateX(10px);
}

.popup-question.active {
    border-color: var(--teal);
    background: var(--teal);
    color: var(--text-primary);
}

.popup-answer {
    display: none;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-top: 15px;
    border-left: 4px solid var(--teal);
}

.popup-answer.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* ── COMPACT CARD FOR SECTIONS 1 & 2 ── */
.card.compact {
    cursor: pointer;
    padding: 30px 35px 25px;
    min-height: 200px;
}

.card.compact:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card.compact .card-body {
    display: none;
}

.card.compact .card-icon {
    width: 160px;
    height: 160px;
    font-size: 2rem;
}

.card.compact .card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.card.compact .card-title {
    font-size: 1.6rem;
}

.card.compact .click-hint {
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 15px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.card.compact:hover .click-hint {
    opacity: 1;
    color: var(--teal);
}

.card:not(.compact) .click-hint {
    display: none;
}

/* ── STICKY NAVIGATION ── */
.sticky-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sticky-nav.show { opacity: 1; }

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover, .nav-dot.active { background: var(--teal); transform: scale(1.3); }

.nav-dot::after {
    content: attr(data-label);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid var(--text-muted);
}

.nav-dot:hover::after { opacity: 1; }

/* ── PROGRESS CIRCLES ── */
.progress-circle {
    width: 40px;
    height: 40px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.progress-circle svg { transform: rotate(-90deg); }
.progress-circle circle { fill: none; stroke-width: 4; }
.progress-circle .bg { stroke: var(--bg-primary); }
.progress-circle .progress {
    stroke: var(--teal);
    stroke-linecap: round;
    stroke-dasharray: 113;
    stroke-dashoffset: 113;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.progress-circle .progress.animated { stroke-dashoffset: 17; }
.progress-circle .number {
    position: absolute;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── STATS COUNTER ── */
.stat-counter {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Merriweather', serif;
    color: var(--teal);
    transition: color 0.3s ease;
}

.stat-counter[data-animated='true'] {
    color: var(--teal-light);
}

/* ── QUOTE BOX ── */
.quote-box {
    background: linear-gradient(135deg, rgba(0,191,165,0.1), rgba(66,165,245,0.08));
    border-left: 4px solid var(--teal);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
    font-style: italic;
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
}

.quote-box::before {
    content: '"';
    font-size: 4rem;
    color: var(--teal);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: 'Merriweather', serif;
}

/* ── QUIZ SECTION ── */
.quiz-section {
    background: var(--bg-secondary);
    padding: 44px 40px;
    border-radius: 24px;
    margin-top: 40px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.quiz-header {
    text-align: center;
    margin-bottom: 28px;
}

.quiz-header-icon {
    font-size: 2.4rem;
    color: var(--teal);
    display: block;
    margin-bottom: 10px;
}

.quiz-header h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.quiz-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* Progress bar */
.quiz-progress-track {
    height: 6px;
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    border-radius: 6px;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-progress-label {
    text-align: right;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* Steps */
.quiz-step {
    display: none !important;
}

.quiz-step.active {
    display: block !important;
    animation: quizStepIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

@keyframes quizStepIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.quiz-step-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.expectancy-badge {
    background: rgba(66,165,245,0.18);
    color: var(--blue-light);
    border: 1px solid rgba(66,165,245,0.3);
}

.value-badge {
    background: rgba(0,191,165,0.18);
    color: var(--teal);
    border: 1px solid rgba(0,191,165,0.3);
}

.quiz-question-text {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.quiz-options-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.quiz-btn {
    display: inline-block;
    padding: 13px 28px;
    min-width: 148px;
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 40px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.2px;
}

.quiz-btn:hover {
    border-color: var(--teal);
    color: var(--text-primary);
    background: rgba(0,191,165,0.08);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,191,165,0.18);
}

.quiz-btn.selected {
    border-color: var(--teal);
    background: rgba(0,191,165,0.18);
    color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,191,165,0.22);
}

/* Result panel */
.quiz-result-panel {
    display: none !important;
}

.quiz-result-panel.show {
    display: block !important;
    animation: quizStepIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-result-scores {
    text-align: center;
    margin-bottom: 24px;
}

.result-score-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 18px 30px;
    border-radius: 20px;
}

.result-score-badge.result-high  { background: linear-gradient(135deg, rgba(0,191,165,0.25), rgba(0,137,123,0.25)); border: 2px solid var(--teal); }
.result-score-badge.result-medium { background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(251,192,45,0.2)); border: 2px solid var(--gold); }
.result-score-badge.result-low   { background: linear-gradient(135deg, rgba(229,57,53,0.2), rgba(239,83,80,0.2)); border: 2px solid var(--red); }

.result-score-number {
    font-family: 'Merriweather', serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-primary);
}

.result-score-max {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 600;
}

.result-score-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 8px;
    align-self: center;
}

.quiz-result-main {
    padding: 28px;
    border-radius: 18px;
    text-align: center;
    margin-bottom: 20px;
}

.quiz-result-main.result-high  { background: linear-gradient(135deg, rgba(0,191,165,0.15), rgba(0,137,123,0.1)); border: 1px solid rgba(0,191,165,0.3); }
.quiz-result-main.result-medium { background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(251,192,45,0.1)); border: 1px solid rgba(255,215,0,0.3); }
.quiz-result-main.result-low   { background: linear-gradient(135deg, rgba(229,57,53,0.12), rgba(239,83,80,0.1)); border: 1px solid rgba(229,57,53,0.3); }

.result-main-icon { font-size: 2.6rem; margin-bottom: 10px; }

.result-main-title {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.result-main-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto;
}

/* Dimensions */
.quiz-result-dimensions {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.07);
}

.result-dimensions-title {
    font-family: 'Merriweather', serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
}

.result-dimensions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.result-dim-card {
    padding: 16px;
    border-radius: 14px;
}

.result-dim-card.expectancy-dim { background: rgba(66,165,245,0.1); border: 1px solid rgba(66,165,245,0.2); }
.result-dim-card.value-dim      { background: rgba(0,191,165,0.1); border: 1px solid rgba(0,191,165,0.2); }

.dim-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.dim-bar-wrap {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.dim-bar-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.dim-bar-fill.value-fill {
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

.dim-score {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.result-profile {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.07);
    text-align: left;
}

.profile-icon { font-size: 1.8rem; flex-shrink: 0; }

.result-profile strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.result-profile p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.quiz-restart-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 28px;
    border-radius: 12px;
    border: 2px solid var(--text-muted);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-restart-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .quiz-section { padding: 28px 20px; }
    .quiz-options-grid { flex-direction: column; align-items: center; }
    .quiz-btn { width: 100%; max-width: 320px; }
    .result-dimensions-grid { grid-template-columns: 1fr; }
}

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

/* ── FLOW DIAGRAM ── */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.flow-node {
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flow-node { transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.flow-node:hover { transform: scale(1.1); }
.flow-node.expectancy { background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: var(--white); }
.flow-node.value { background: linear-gradient(135deg, var(--teal), var(--teal-light)); color: var(--white); }
.flow-node.motivation { background: linear-gradient(135deg, var(--red), var(--red-light)); color: var(--white); }

.flow-arrow { font-size: 1.5rem; color: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
    .timeline::before { left: 24px; }
    .section {
        flex-direction: row !important;
        padding-left: 50px;
    }
    .section .card { width: 100%; }
    .section .node { left: 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .formula-inner { padding: 16px 24px; }
    .sticky-nav { display: none; }
}
