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

        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --secondary: #a78bfa;
            --accent: #fbbf24;
            --text-dark: #1f2937;
            --text-light: #6b7280;
            --bg-light: #f9fafb;
            --white: #ffffff;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            overflow-x: hidden;
        }

        body.modal-open {
            overflow: hidden;
        }

        .site-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.5rem 2rem;
            width: 100%;
            z-index: 100;
        }

        .site-nav--transparent {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            color: #ffffff;
        }

        .site-nav--solid {
            position: sticky;
            top: 0;
            background: var(--white);
            color: var(--text-dark);
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
        }

        .nav-brand {
            font-weight: 700;
            font-size: 1.1rem;
            text-decoration: none;
            color: inherit;
        }

        .nav-brand:hover {
            opacity: 0.85;
        }

        .site-nav--transparent .nav-brand {
            color: #ffffff;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .nav-greeting {
            font-weight: 500;
        }

        .nav-link-button {
            border-radius: 9999px;
            padding: 0.45rem 1.1rem;
            font-weight: 600;
            font-size: 0.95rem;
            border: 1px solid transparent;
            background: transparent;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .nav-link-button--ghost {
            border-color: rgba(255, 255, 255, 0.4);
            color: inherit;
        }

        .site-nav--solid .nav-link-button--ghost {
            border-color: rgba(99, 102, 241, 0.25);
            color: var(--text-dark);
        }

        .nav-link-button--ghost:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .site-nav--solid .nav-link-button--ghost:hover {
            background: rgba(99, 102, 241, 0.08);
        }

        .nav-link-button--primary {
            background: var(--accent);
            border-color: var(--accent);
            color: var(--text-dark);
            box-shadow: 0 8px 20px rgba(251, 191, 36, 0.25);
        }

        .nav-link-button--primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 30px rgba(251, 191, 36, 0.35);
        }

        .auth-modal {
            max-width: 420px;
            width: 100%;
            text-align: left;
            position: relative;
            z-index: 1001;
        }

        .auth-modal .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 1.25rem;
            color: var(--text-light);
            cursor: pointer;
        }

        .auth-modal .modal-close:hover {
            color: var(--text-dark);
        }

        .auth-tabs {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .auth-tabs button {
            flex: 1;
            border-radius: 9999px;
            border: 1px solid var(--primary);
            padding: 0.45rem 1rem;
            background: transparent;
            color: var(--primary);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .auth-tabs button.active {
            background: var(--primary);
            color: var(--white);
        }

        .auth-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .auth-form.hidden {
            display: none;
        }

        .auth-form label {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-dark);
        }

        .auth-form input {
            width: 100%;
            padding: 0.65rem;
            border: 1px solid #d1d5db;
            border-radius: 10px;
        }

        .auth-form button {
            align-self: stretch;
        }

        .auth-error {
            color: #dc2626;
            font-size: 0.9rem;
        }

        .auth-error.hidden {
            display: none;
        }

        .dashboard-body {
            background: var(--bg-light);
        }

        .dashboard-container {
            max-width: 1100px;
            margin: 6rem auto 4rem;
            padding: 0 1.5rem;
            display: grid;
            gap: 2rem;
        }

        .dashboard-split {
            display: grid;
            gap: 2rem;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        }

        .dashboard-card {
            background: var(--white);
            border-radius: 18px;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
            padding: 2rem;
        }

        .dashboard-card h2 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .dashboard-card h3 {
            font-size: 1.2rem;
            margin-bottom: 0.75rem;
        }

        .dashboard-card p {
            margin-bottom: 1rem;
        }

        .dashboard-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 1rem;
        }

        .empty-state {
            padding: 1rem;
            border: 1px dashed rgba(99, 102, 241, 0.3);
            border-radius: 12px;
            background: rgba(99, 102, 241, 0.05);
            color: var(--text-light);
        }

        .report-content {
            white-space: pre-line;
            text-align: left;
            line-height: 1.6;
            color: var(--text-dark);
        }

        /* --- Report modal: lectura cómoda --- */
        .report-modal-content {
            width: min(1100px, 92vw);
            height: min(88vh, 920px);
            max-width: 92vw;
            max-height: 88vh;
            padding: 2rem 2.25rem;
            overflow: hidden; /* el scroll lo tendrá el contenido, no la caja entera */
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        /* El texto largo scrollea aquí */
        .report-modal-content .report-scroll {
            flex: 1;
            min-height: 0; /* CLAVE para que funcione el scroll dentro de un flex */
            overflow-y: auto;
            padding-right: 0.5rem; /* aire para scrollbar */
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }

        /* El <pre> solo pinta el texto */
        .report-modal-content .report-content {
            margin: 0;
            font-size: 1rem;
            line-height: 1.65;
        }

        /* En móvil: casi pantalla completa */
        @media (max-width: 768px) {
            .report-modal-content {
                width: 96vw;
                height: 92vh;
                max-width: 96vw;
                max-height: 92vh;
                padding: 1.25rem 1.1rem;
                border-radius: 12px;
                display: flex;
                flex-direction: column;
            }

            .report-modal-content .report-scroll {
                flex: 1;
                min-height: 0;
            }

            .report-modal-content .report-content {
                font-size: 1rem;
                line-height: 1.7;
            }
        }

        .report-insights p {
            margin-bottom: 0.75rem;
            text-align: left;
        }

        .chat-messages {
            max-height: 320px;
            overflow-y: auto;
            margin-bottom: 1.5rem;
            padding-right: 0.5rem;
        }

        .chat-message {
            display: flex;
            margin-bottom: 0.75rem;
        }

        .chat-message span {
            padding: 0.75rem 1rem;
            border-radius: 12px;
            max-width: 80%;
            line-height: 1.4;
        }

        .chat-message.user {
            justify-content: flex-end;
        }

        .chat-message.user span {
            background: var(--primary);
            color: var(--white);
        }

        .chat-message.assistant span {
            background: rgba(99, 102, 241, 0.12);
            color: var(--text-dark);
        }

        .chat-form {
            display: flex;
            gap: 0.75rem;
        }

        .chat-form textarea {
            flex: 1;
            min-height: 100px;
            resize: vertical;
            padding: 0.75rem;
            border: 1px solid #d1d5db;
            border-radius: 12px;
            font-family: inherit;
        }

        .subscription-status {
            font-size: 0.95rem;
            color: var(--text-light);
        }

        .dashboard-login-prompt {
            max-width: 420px;
            margin: 8rem auto;
            text-align: center;
        }

        .site-nav--solid .nav-greeting {
            color: var(--text-dark);
        }

        @media (max-width: 768px) {
            .dashboard-container {
                margin-top: 5rem;
            }
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
            background-size: cover;
        }

        .hero-content {
            text-align: center;
            color: white;
            padding: 2rem;
            position: relative;
            z-index: 1;
            max-width: 800px;
            animation: fadeInUp 1s ease;
        }

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

        .hero h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 800;
            margin-bottom: 1.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }

        .hero p {
            font-size: 1.25rem;
            margin-bottom: 2rem;
            opacity: 0.95;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .features-list {
            list-style: none;
            margin-bottom: 2rem;
        }

        .features-list li {
            display: inline-block;
            margin: 0.5rem;
            padding: 0.5rem 1rem;
            background: rgba(255,255,255,0.2);
            border-radius: 30px;
            backdrop-filter: blur(10px);
            animation: slideIn 1s ease forwards;
            animation-delay: 0.3s;
            opacity: 0;
        }

        @keyframes slideIn {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .features-list li:nth-child(1) { animation-delay: 0.3s; }
        .features-list li:nth-child(2) { animation-delay: 0.4s; }
        .features-list li:nth-child(3) { animation-delay: 0.5s; }

        .cta-button {
            display: inline-block;
            padding: 1rem 3rem;
            background: var(--accent);
            color: var(--text-dark);
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(251, 191, 36, 0.4);
        }

        .badge {
            display: inline-block;
            margin-top: 1.5rem;
            padding: 0.5rem 1rem;
            background: rgba(255,255,255,0.1);
            border-radius: 20px;
            font-size: 0.9rem;
            backdrop-filter: blur(10px);
        }

        /* How it Works Section */
        .how-it-works {
            padding: 5rem 2rem;
            background: var(--bg-light);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            color: var(--text-dark);
            margin-bottom: 1rem;
            font-weight: 700;
        }

        .section-subtitle {
            text-align: center;
            color: var(--text-light);
            margin-bottom: 3rem;
            font-size: 1.1rem;
        }

        .steps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .step-card {
            background: white;
            padding: 2rem;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .step-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
        }

        .step-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        }

        .step-number {
            display: inline-block;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border-radius: 50%;
            text-align: center;
            line-height: 50px;
            font-weight: bold;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .step-title {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text-dark);
        }

        .step-description {
            color: var(--text-light);
            line-height: 1.8;
        }

        /* Benefits Section */
        .benefits {
            padding: 5rem 2rem;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        }

        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .benefit-card {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }

        .benefit-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }

        .benefit-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .benefit-title {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--text-dark);
        }

        .benefit-text {
            color: var(--text-light);
            font-size: 0.95rem;
        }

        /* CTA Section */
        .cta-section {
            padding: 5rem 2rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            text-align: center;
            color: white;
        }

        .cta-section h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .cta-section p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            opacity: 0.95;
        }

        .cta-secondary {
            background: white;
            color: var(--primary-dark);
        }

        .cta-secondary:hover {
            background: var(--bg-light);
        }

        /* =============================================
           RESPONSIVE — solo afecta a móvil (≤768px)
           ============================================= */
        @media (max-width: 768px) {
            /* --- NAV: centrar y evitar solapamiento --- */
            .site-nav {
                flex-direction: column;
                gap: 0.5rem;
                padding: 0.75rem 1rem;
            }

            .nav-actions {
                flex-wrap: wrap;
                justify-content: center;
                gap: 0.4rem;
            }

            .nav-link-button {
                padding: 0.3rem 0.75rem;
                font-size: 0.82rem;
            }

            .nav-greeting {
                font-size: 0.85rem;
                width: 100%;
                text-align: center;
            }

            /* --- HERO --- */
            .hero {
                min-height: auto;
                padding: 6rem 1rem 2.5rem;
            }

            .hero-content {
                padding: 0.5rem;
            }

            .hero h1 {
                font-size: 1.7rem;
                margin-bottom: 1rem;
            }

            .hero p {
                font-size: 0.95rem;
                margin-bottom: 1.25rem;
            }

            /* Features list: vertical en móvil */
            .features-list {
                margin-bottom: 1.5rem;
            }

            .features-list li {
                display: block;
                margin: 0.35rem auto;
                font-size: 0.88rem;
                max-width: 90%;
            }

            /* CTA button más compacto */
            .cta-button {
                padding: 0.8rem 2rem;
                font-size: 0.95rem;
            }

            /* Badge más compacto */
            .badge {
                font-size: 0.78rem;
                padding: 0.35rem 0.7rem;
            }

            /* Ocultar elementos flotantes decorativos */
            .float-element {
                display: none;
            }

            /* --- SECCIONES DE CONTENIDO --- */
            .section-title {
                font-size: 1.65rem;
            }

            .section-subtitle {
                font-size: 0.92rem;
                margin-bottom: 1.5rem;
            }

            .how-it-works, .benefits {
                padding: 2.5rem 1rem;
            }

            .steps-grid, .benefits-grid {
                grid-template-columns: 1fr;
                margin-top: 1.25rem;
                gap: 1.25rem;
            }

            .step-card, .benefit-card {
                padding: 1.25rem;
            }

            .step-card:hover, .benefit-card:hover {
                transform: none;
            }

            .step-title {
                font-size: 1.2rem;
            }

            .step-description {
                font-size: 0.92rem;
                line-height: 1.6;
            }

            .step-number {
                width: 40px;
                height: 40px;
                line-height: 40px;
                font-size: 1.2rem;
            }

            .benefit-icon {
                font-size: 2.5rem;
            }

            /* --- FAQ --- */
            .faq {
                padding: 2.5rem 1rem;
            }

            .faq .step-card {
                padding: 1rem;
            }

            .faq .step-title {
                font-size: 1rem !important;
            }

            .faq .section-subtitle {
                font-size: 0.88rem;
            }

            /* --- CTA FINAL --- */
            .cta-section {
                padding: 3rem 1rem;
            }

            .cta-section h2 {
                font-size: 1.6rem;
            }

            /* --- AUTH MODAL --- */
            .auth-modal {
                max-width: 92vw;
                padding: 1.25rem;
            }

            /* --- QUIZ --- */
            .quiz-body {
                padding: 1rem;
            }

            .quiz-container {
                padding: 1.25rem;
                border-radius: 12px;
            }
        }

        /* Pantallas muy pequeñas (< 380px) */
        @media (max-width: 380px) {
            .hero h1 {
                font-size: 1.4rem;
            }

            .hero p {
                font-size: 0.88rem;
            }

            .nav-brand {
                font-size: 1rem;
            }

            .cta-button {
                padding: 0.7rem 1.5rem;
                font-size: 0.88rem;
            }

            .section-title {
                font-size: 1.4rem;
            }
        }

        /* Floating elements */
        .float-element {
            position: absolute;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        .float-1 {
            width: 80px;
            height: 80px;
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }

        .float-2 {
            width: 60px;
            height: 60px;
            top: 70%;
            right: 10%;
            animation-delay: 2s;
        }

        .float-3 {
            width: 100px;
            height: 100px;
            bottom: 10%;
            left: 5%;
            animation-delay: 4s;
        }
/* Quiz Page Styles */
.quiz-body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    overflow-y: auto;
}

.quiz-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom,
      radial-gradient(ellipse 50% 60% at 10% 20%, rgba(255,255,255,0.08) 0%, transparent 60%),
      radial-gradient(ellipse 40% 40% at 90% 80%, rgba(80,40,160,0.15) 0%, transparent 60%);
    background-size: cover;
    pointer-events: none;
}

.quiz-container {
    position: relative;
    z-index: 1;
    background: var(--white);
    box-shadow: 0 24px 64px rgba(40, 20, 100, 0.2), 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    padding: 40px 44px 36px;
    margin: 0 auto;
}

/* Quiz topbar */
.quiz-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.quiz-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--primary);
    text-decoration: none;
}
.quiz-chapter-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Dual progress */
.progress-wrap {
    margin-bottom: 40px;
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.progress-chapter-name {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 500;
}
.progress-question-count {
    font-size: 12px;
    color: var(--text-light);
}
.progress-bar-track {
    height: 2px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 2px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 0.4s ease;
}
.chapter-dots {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}
.chapter-dot {
    height: 3px;
    flex: 1;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 2px;
    transition: background 0.3s ease;
}
.chapter-dot.active {
    background: var(--primary);
}
.chapter-dot.done {
    background: rgba(99, 102, 241, 0.35);
}

/* Question block */
.question-block {
    margin-bottom: 36px;
}
.question-number-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 12px;
}
.question-text-display {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 400;
    color: var(--text-dark);
}
.question-text-display.text-red-500 {
    color: #ef4444;
}
.selection-hint {
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* Intro screen */
.intro-screen {
    margin-bottom: 36px;
}
.intro-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}
.intro-body {
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Chapter 0 rich intro */
.intro-eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 14px;
}
.intro-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 18px;
}
.intro-heading em {
    font-style: italic;
    color: var(--primary);
}
.intro-subtext {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 300;
    max-width: 480px;
    margin-bottom: 40px;
}
.intro-divider {
    height: 1px;
    background: rgba(99, 102, 241, 0.1);
    margin-bottom: 32px;
}
.intro-rules {
    display: flex;
    gap: 12px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}
.intro-rule {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 160px;
}
.intro-rule-icon {
    width: 34px;
    height: 34px;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.intro-rule-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.intro-rule-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.intro-rule-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
}
.intro-rule-desc {
    font-size: 11.5px;
    color: var(--text-light);
    line-height: 1.5;
    font-weight: 300;
}
.intro-time-hint {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}
.intro-time-hint svg {
    width: 13px;
    height: 13px;
    stroke: var(--text-light);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.outro-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 1.4;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 32px;
    text-align: center;
}

/* Cards grid (Q1 special) */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 40px;
}
.q1-card {
    background: #fafafa;
    border: 1.5px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 20px 18px 18px;
    cursor: pointer;
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      transform 0.15s ease,
      box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    user-select: none;
}
.q1-card:hover {
    background: #f4f2ff;
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.08);
}
.q1-card.selected {
    background: #ede9ff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 6px 20px rgba(99, 102, 241, 0.12);
}
.q1-card.selected .q1-card-icon svg {
    stroke: var(--primary);
}
.q1-card.selected .q1-card-name {
    color: var(--primary);
}
.q1-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.q1-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: #b0a8d8;
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease;
}
.q1-card:hover .q1-card-icon svg {
    stroke: var(--secondary);
}
.q1-card-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    line-height: 1.2;
    margin-bottom: 2px;
}
.q1-card-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    font-weight: 300;
}

/* Standard question options (radio/checkbox) */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}
.option-item {
    background: #fafafa;
    border: 1.5px solid rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.45;
    user-select: none;
}
.option-item:hover {
    background: #f4f2ff;
    border-color: rgba(99, 102, 241, 0.25);
}
.option-item.selected {
    background: #ede9ff;
    border-color: var(--primary);
}
.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.option-item .order-label {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
    display: none;
}
.option-item .order-label:not(.hidden) {
    display: inline;
}

/* Other input (for "Otro" options) */
.other-input {
    width: calc(100% - 28px);
    margin-left: 28px;
    margin-top: 8px;
    padding: 10px 14px;
    border: 1.5px solid rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    display: none;
    transition: border-color 0.2s;
}
.other-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Textarea (open questions) */
.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    resize: vertical;
    min-height: 100px;
    margin-bottom: 32px;
    transition: border-color 0.2s;
}
.input-field:focus {
    outline: none;
    border-color: var(--primary);
}

/* Navigation buttons */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-back {
    background: none;
    border: none;
    color: var(--text-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}
.btn-back:hover { color: var(--text-dark); }
.btn-back:disabled { opacity: 0.3; cursor: default; }
.btn-next-quiz {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s, opacity 0.2s, transform 0.15s;
    opacity: 0.4;
    pointer-events: none;
}
.btn-next-quiz.active {
    opacity: 1;
    pointer-events: all;
}
.btn-next-quiz.active:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

/* Divider */
.quiz-divider {
    height: 1px;
    background: rgba(99, 102, 241, 0.1);
    margin: 0 0 40px;
}

/* ── Chapter Transition Screen ── */
.transition-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
}
.transition-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ede9ff, #dbd4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    animation: transPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: scale(0.6);
}
@keyframes transPopIn {
    to { opacity: 1; transform: scale(1); }
}
.transition-badge svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: transDrawCheck 0.4s ease forwards 0.4s;
}
@keyframes transDrawCheck {
    to { stroke-dashoffset: 0; }
}
.chapter-done-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0;
    animation: transFadeUp 0.4s ease forwards 0.6s;
}
.chapter-done-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 16px;
    opacity: 0;
    animation: transFadeUp 0.4s ease forwards 0.75s;
}
.chapter-done-outro {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.65;
    max-width: 400px;
    font-weight: 300;
    margin-bottom: 36px;
    opacity: 0;
    animation: transFadeUp 0.4s ease forwards 0.9s;
}
.summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: transFadeUp 0.4s ease forwards 1.05s;
}
.pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f3ff;
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 100px;
    padding: 6px 14px 6px 10px;
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 400;
}
.pill svg {
    width: 13px;
    height: 13px;
    stroke: var(--secondary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.next-preview {
    width: 100%;
    background: #fafafa;
    border: 1.5px solid rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    opacity: 0;
    animation: transFadeUp 0.4s ease forwards 1.2s;
}
.next-preview-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.next-label {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}
.next-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}
.next-desc {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 300;
    margin-top: 2px;
    line-height: 1.5;
}
.next-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ede9ff, #dbd4ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 16px;
}
.next-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.btn-continue {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 36px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    opacity: 0;
    animation: transFadeUp 0.4s ease forwards 1.3s;
}
.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
/* Completing dot animation for transition */
.chapter-dot.completing {
    background: rgba(99, 102, 241, 0.15);
    position: relative;
    overflow: hidden;
}
.chapter-dot.completing::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
    animation: transFillDot 0.6s ease forwards 0.3s;
}
@keyframes transFillDot {
    to { left: 0; }
}
@keyframes transFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
    .chapter-done-title { font-size: 22px; }
    .next-preview { flex-direction: column; gap: 12px; align-items: flex-start; }
    .next-icon { margin-left: 0; }
    .transition-body { padding: 0 8px; }
    .summary-pills { gap: 6px; }
    .pill { font-size: 11px; padding: 5px 10px 5px 8px; }
}

/* Block section kept for final/partial sections */
.block-section { margin: 2rem 0; transition: opacity 0.5s ease; }
.block-section.hidden { display: none; }
.block-intro {
  white-space: pre-line;
}
.question-wrapper { margin-bottom: 1rem; }
.question-label { margin-bottom: 0.5rem; font-weight: 600; display: block; }
.block-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* Quiz responsive */
@media (max-width: 500px) {
    .cards-grid { grid-template-columns: 1fr; }
    .question-text-display { font-size: 22px; }
    .quiz-container { padding: 24px 20px 24px; border-radius: 14px; }
    .quiz-topbar { margin-bottom: 20px; }
    .quiz-chapter-label { margin-left: 12px; }
    .progress-wrap { margin-bottom: 28px; }
    .intro-title { font-size: 22px; }
    .intro-heading { font-size: 26px; }
    .intro-rules { flex-direction: column; }
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-overlay.hidden { display: none; }
.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 400px;
    width: 100%;
    text-align: center;
}
/* Buttons */
.cta-button.small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.primary-btn {
    background: var(--primary-dark);
    color: var(--white);
}
.primary-btn:hover { background: var(--primary); }
.secondary-btn {
    background: var(--text-light);
    color: var(--white);
}
.secondary-btn:hover { background: var(--text-dark); }
.success-btn {
    background: #16a34a;
    color: var(--white);
}
.success-btn:hover { background: #15803d; }
.disabled { opacity: 0.5; cursor: not-allowed; }
.no-anim { animation: none; }
.text-red-500 { color: #ef4444; }
/* Result Pages */
.result-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.result-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}
.result-container {
    position: relative;
    z-index: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}
.result-container h1 { margin-bottom: 1rem; font-size: 1.5rem; }
.result-container p { margin-bottom: 1.5rem; }
.link { color: var(--primary-dark); text-decoration: underline; }
.link:hover { color: var(--primary); }
/* Utility classes */
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.italic { font-style: italic; }
.list-disc { list-style: disc; }
.pl-5 { padding-left: 1.25rem; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }
.opacity-0 { opacity: 0; }
.text-gray-600 { color: var(--text-light); }
.text-gray-700 { color: var(--text-dark); }
.text-gray-500 { color: var(--text-light); }
.text-gray-800 { color: var(--text-dark); }
.text-blue-600 { color: var(--primary-dark); }
.text-blue-600:hover { color: var(--primary); }
.underline { text-decoration: underline; }
.mt-4 { margin-top: 1rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.p-6 { padding: 1.5rem; }
.p-2 { padding: 0.5rem; }
.p-1 { padding: 0.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.shadow { box-shadow: 0 5px 10px rgba(0,0,0,0.08); }
.border { border-width: 1px; border-style: solid; }
.border-gray-300 { border-color: #d1d5db; }
.bg-white { background: var(--white); }
.bg-blue-600 { background: var(--primary-dark); }
.bg-gray-500 { background: #6b7280; }
.bg-gray-200 { background: #e5e7eb; }
.bg-green-600 { background: #16a34a; }
.text-white { color: var(--white); }
.text-gray-700 { color: var(--text-dark); }
.hover\:bg-gray-600:hover { background: #4b5563; }
.hover\:bg-blue-600:hover { background: var(--primary); }
.hover\:bg-green-700:hover { background: #15803d; }
.hover\:text-blue-800:hover { color: var(--primary-dark); }
.transition-colors { transition: background 0.3s ease, color 0.3s ease; }
.duration-500 { transition-duration: 0.5s; }
.cursor-not-allowed { cursor: not-allowed; }
.opacity-50 { opacity: 0.5; }
.inline-block { display: inline-block; }
