
        /* ===================================================================== */
        /* NEO-BRUTALIST POP / EDITORIAL CINÉTICA                                */
        /* ===================================================================== */
        :root {
            --vanilla: #FDF9EE;
            --violet: #5B2EFF;
            --mandarin: #FF6B2C;
            --mandarin-dark: #B83B08;
            --lime: #C7F62B;
            --ink: #181326;
        }

        html,
        body {
            background-color: var(--vanilla);
            color: var(--ink);
            overflow-x: clip;
        }

        h1,
        h2,
        h3,
        .font-display {
            font-family: 'Bricolage Grotesque', sans-serif;
            letter-spacing: -0.02em;
            word-spacing: 0.04em;
        }

        /* Fixed top reading progress bar (4px) */
        #reading-progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 4px;
            width: 0%;
            z-index: 100;
            background: linear-gradient(90deg, #C7F62B 0%, #FF6B2C 52%, #5B2EFF 100%);
            transition: width 0.08s linear;
        }

        /* Neo-Brutalist primitives */
        .brutal-border {
            border: 2px solid var(--ink);
        }

        .brutal-shadow {
            border: 2px solid var(--ink);
            box-shadow: 4px 4px 0 var(--ink);
        }

        .brutal-shadow-lg {
            border: 2px solid var(--ink);
            box-shadow: 6px 6px 0 var(--ink);
        }

        .brutal-btn {
            border: 2px solid var(--ink);
            box-shadow: 4px 4px 0 var(--ink);
            transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.15s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.15s ease;
        }

        @media (hover: hover) and (pointer: fine) {
            .brutal-btn:hover {
                transform: translate(-2px, -2px);
                box-shadow: 6px 6px 0 var(--ink);
            }
        }

        .brutal-btn:active {
            transform: translate(3px, 3px);
            box-shadow: 1px 1px 0 var(--ink);
        }

        /* Bilingo Logo Wink + Tilt + 3 Sparks */
        .bilingo-bubble {
            transform-origin: center;
        }

        .bilingo-eye-open {
            opacity: 1;
            transition: opacity 0.08s ease;
        }

        .bilingo-eye-wink {
            opacity: 0;
            transition: opacity 0.08s ease;
        }

        .bilingo-sparks {
            opacity: 0;
            transform-box: fill-box;
            transform-origin: bottom left;
            transform: scale(0.35) translate(-3px, 3px);
            transition: opacity 0.14s ease, transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .bilingo-bubble.is-winking .bilingo-eye-open {
            opacity: 0;
        }

        .bilingo-bubble.is-winking .bilingo-eye-wink {
            opacity: 1;
        }

        .bilingo-bubble.is-winking .bilingo-sparks {
            opacity: 1;
            transform: scale(1) translate(0, 0);
        }

        .bilingo-bubble.is-winking {
            animation: logoPop 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes logoPop {
            0% {
                transform: translateY(0px) rotate(0deg) scale(1);
            }

            40% {
                transform: translateY(-3px) rotate(-8deg) scale(1.08);
            }

            75% {
                transform: translateY(1px) rotate(3deg) scale(0.98);
            }

            100% {
                transform: translateY(0px) rotate(0deg) scale(1);
            }
        }

        /* Animated lime highlighter sweep in H1 */
        .hero-highlight {
            position: relative;
            display: inline-block;
            z-index: 1;
        }

        .hero-highlight::after {
            content: "";
            position: absolute;
            left: -4px;
            right: -4px;
            bottom: 4px;
            height: 0.34em;
            background-color: var(--lime);
            border-radius: 4px;
            z-index: -1;
            transform: scaleX(0);
            transform-origin: left center;
            animation: sweepHighlight 0.85s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }

        @keyframes sweepHighlight {
            to {
                transform: scaleX(1);
            }
        }

        /* Pac-Man Bilingo GPU positioning & chomping jaws */
        #pacman-bilingo {
            left: 0;
            transform: translate3d(-46px, -50%, 0);
            will-change: transform;
        }

        .pacman-jaw-top,
        .pacman-jaw-bottom {
            transform-origin: 22px 22px;
        }

        .is-chomping .pacman-jaw-top {
            animation: chompTop 0.18s ease-in-out infinite alternate;
        }

        .is-chomping .pacman-jaw-bottom {
            animation: chompBottom 0.18s ease-in-out infinite alternate;
        }

        @keyframes chompTop {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(-34deg);
            }
        }

        @keyframes chompBottom {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(34deg);
            }
        }

        /* Kinetic Marquee Ribbon */
        .marquee-wrapper {
            overflow: hidden;
            display: flex;
        }

        .marquee-track {
            display: flex;
            width: max-content;
            flex-shrink: 0;
            animation: clubiMarquee 26s linear infinite;
            will-change: transform;
        }

        .marquee-group {
            display: flex;
            align-items: center;
            gap: 2rem;
            padding-right: 2rem;
            flex-shrink: 0;
        }

        @media (hover: hover) and (pointer: fine) {
            .marquee-wrapper:hover .marquee-track {
                animation-play-state: paused;
            }
        }

        @keyframes clubiMarquee {
            0% {
                transform: translate3d(0, 0, 0);
            }

            100% {
                transform: translate3d(-50%, 0, 0);
            }
        }

        /* Karaoke Scroll Reveal */
        .k-word {
            color: #181326;
            transition: color 0.22s ease, background-size 0.28s ease;
            display: inline;
        }

        .js-karaoke-ready .k-word {
            color: rgba(24, 19, 38, 0.26);
        }

        .js-karaoke-ready .k-word.is-lit {
            color: #181326;
        }

        .k-hl-lime {
            background-image: linear-gradient(transparent 62%, #C7F62B 62%);
            background-repeat: no-repeat;
            background-size: 100% 100%;
            border-radius: 3px;
            padding: 0 2px;
        }

        .js-karaoke-ready .k-hl-lime {
            background-size: 0% 100%;
        }

        .js-karaoke-ready .k-hl-lime.is-lit {
            background-size: 100% 100%;
        }

        .k-hl-mandarin {
            background-image: linear-gradient(transparent 62%, rgba(255, 107, 44, 0.38) 62%);
            background-repeat: no-repeat;
            background-size: 100% 100%;
            border-radius: 3px;
            padding: 0 2px;
        }

        .js-karaoke-ready .k-hl-mandarin {
            background-size: 0% 100%;
        }

        .js-karaoke-ready .k-hl-mandarin.is-lit {
            background-size: 100% 100%;
        }

        /* Hide native cursor on desktop over scratch canvas */
        @media (hover: hover) and (pointer: fine) {
            #scratch-canvas {
                cursor: none;
            }
        }

        /* Phrase flip animation */
        @keyframes phraseSwap {
            0% {
                opacity: 0;
                transform: translateY(10px) scale(0.98);
            }

            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .phrase-animate {
            animation: phraseSwap 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        }

        /* Level slider thumb transitions + keyboard focus ring */
        #bilingo-thumb {
            transition: left 0.14s cubic-bezier(0.22, 1, 0.36, 1), transform 0.14s ease;
        }

        #level-range:active+#bilingo-thumb-wrap #bilingo-thumb {
            transform: translate(-50%, -50%) scale(1.12);
        }

        #level-range:focus-visible+#bilingo-thumb-wrap #bilingo-thumb {
            outline: 3px solid var(--violet);
            outline-offset: 4px;
            border-radius: 9999px;
        }

        /* Scratch Ticket notched sides */
        .ticket-notch-left,
        .ticket-notch-right {
            position: absolute;
            top: 50%;
            width: 24px;
            height: 24px;
            background-color: var(--vanilla);
            border: 2px solid var(--ink);
            border-radius: 9999px;
            transform: translateY(-50%);
            z-index: 25;
            pointer-events: none;
        }

        .ticket-notch-left {
            left: -13px;
        }

        .ticket-notch-right {
            right: -13px;
        }

        /* ===================================================================== */
        /* CHAT FAQ — SCROLL Y ALINEACIÓN BLINDADOS (DERECHA USUARIO / IZQ BOT)  */
        /* ===================================================================== */
        #chat-thread {
            height: 340px;
            max-height: 340px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 0.875rem;
            background-color: rgba(253, 249, 238, 0.65);
            scroll-behavior: smooth;
        }

        .chat-row-user {
            display: flex;
            justify-content: flex-end;
            width: 100%;
        }

        .chat-row-bot {
            display: flex;
            justify-content: flex-start;
            align-items: flex-end;
            width: 100%;
        }

        .chat-bubble-user {
            max-width: 82%;
            padding: 0.65rem 1rem;
            border-radius: 1rem 1rem 0.2rem 1rem;
            background-color: var(--violet);
            color: #FFFFFF;
            border: 2px solid var(--ink);
            box-shadow: 2px 2px 0 var(--ink);
            font-weight: 600;
        }

        .chat-bubble-bot {
            max-width: 85%;
            padding: 0.75rem 1rem;
            border-radius: 1rem 1rem 1rem 0.2rem;
            background-color: var(--lime);
            color: var(--ink);
            border: 2px solid var(--ink);
            box-shadow: 2px 2px 0 var(--ink);
            font-weight: 500;
        }

        .chat-bubble-typing {
            padding: 0.65rem 1rem;
            border-radius: 1rem 1rem 1rem 0.2rem;
            background-color: #FFFFFF;
            border: 2px solid var(--ink);
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Chat typing dots & bubble pop-in */
        @keyframes typingBounce {

            0%,
            80%,
            100% {
                transform: translateY(0);
                opacity: 0.45;
            }

            40% {
                transform: translateY(-4px);
                opacity: 1;
            }
        }

        .typing-dot {
            animation: typingBounce 1s infinite ease-in-out;
        }

        .typing-dot:nth-child(2) {
            animation-delay: 0.15s;
        }

        .typing-dot:nth-child(3) {
            animation-delay: 0.3s;
        }

        @keyframes chatPop {
            0% {
                opacity: 0;
                transform: translateY(8px) scale(0.96);
            }

            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .chat-bubble-in {
            animation: chatPop 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }

        /* Pulse highlight when CTA pre-selects a form field */
        @keyframes fieldPulse {
            0% {
                background-color: var(--lime);
            }

            100% {
                background-color: #FFFFFF;
            }
        }

        .field-pulse {
            animation: fieldPulse 1s ease-out;
        }

        /* Subtle editorial dots */
        .bg-dots-subtle {
            background-image: radial-gradient(rgba(24, 19, 38, 0.11) 1.2px, transparent 1.2px);
            background-size: 22px 22px;
        }

        /* Pac-Man Excuses: siempre 1 sola línea con escala automática en móvil */
        #pacman-excuses-layer {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: center;
            gap: clamp(5px, 1.8vw, 14px);
            padding-left: 10px;
            padding-right: 10px;
            background-color: #FFFFFF;
        }

        .pac-excuse-text {
            font-family: 'Space Mono', monospace;
            font-weight: 700;
            color: var(--ink);
            white-space: nowrap;
            font-size: clamp(9.5px, 2.55vw, 13.5px);
            letter-spacing: -0.03em;
        }

        .pac-excuse-dot {
            width: clamp(5px, 1.4vw, 8px);
            height: clamp(5px, 1.4vw, 8px);
            border-radius: 9999px;
            background-color: var(--mandarin);
            flex-shrink: 0;
        }

        @media (min-width: 640px) {
            .pac-excuse-text {
                letter-spacing: 0;
            }
        }

        /* Accesibilidad: reducir movimiento si el usuario lo prefiere */
        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

            .marquee-track,
            .bilingo-bubble.is-winking,
            .is-chomping .pacman-jaw-top,
            .is-chomping .pacman-jaw-bottom,
            .phrase-animate,
            .chat-bubble-in,
            .typing-dot,
            .field-pulse {
                animation: none !important;
            }

            .hero-highlight::after {
                animation: none !important;
                transform: scaleX(1);
            }

            .js-karaoke-ready .k-word {
                color: #181326 !important;
            }

            .js-karaoke-ready .k-hl-lime,
            .js-karaoke-ready .k-hl-mandarin {
                background-size: 100% 100% !important;
            }
        }
    