    /* Remediation landing — scoped styles. Reuses the .proto-* namespace from the
       English landing's playbook (split-view product mock); adds remedial-specific
       sections: hero, cycle diagram, pillars, before/after, FAQ, publications. */

    /* ----------------------------------------------------------------
       HERO
       ---------------------------------------------------------------- */
    .remedial-hero {
        background: linear-gradient(135deg, #8754A1 0%, #4BC6BD 100%);
        position: relative;
        overflow: hidden;
    }
    .remedial-hero::before {
        content: '';
        position: absolute;
        top: -60px; right: -60px;
        width: 320px; height: 320px;
        background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
        border-radius: 50%;
    }
    .remedial-hero::after {
        content: '';
        position: absolute;
        bottom: -90px; left: -90px;
        width: 420px; height: 420px;
        background: radial-gradient(circle, rgba(250,176,59,0.18), transparent);
        border-radius: 50%;
    }

    /* Evidence link — discreet, world-class. The "79%" is the protagonist (yellow + bold + dotted underline)
       and a small external-link icon hints at the source. Tooltip carries the full citation on desktop. */
    .hero-evidence-link {
        color: rgba(255, 255, 255, 0.95);
        text-decoration: none;
        position: relative;
        transition: color 0.2s ease;
    }
    .hero-evidence-link:hover,
    .hero-evidence-link:focus {
        color: #fff;
        text-decoration: none;
    }
    .hero-evidence-link strong {
        color: #FAB03B;
        font-weight: 800;
        border-bottom: 1.5px dotted rgba(250, 176, 59, 0.55);
        padding-bottom: 1px;
        transition: border-bottom-color 0.2s ease;
    }
    .hero-evidence-link:hover strong,
    .hero-evidence-link:focus strong {
        border-bottom-color: #FAB03B;
    }
    .hero-evidence-icon {
        font-size: 0.7em;
        margin-left: 7px;
        opacity: 0.6;
        display: inline-block;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .hero-evidence-link:hover .hero-evidence-icon,
    .hero-evidence-link:focus .hero-evidence-icon {
        opacity: 1;
        transform: translate(2px, -2px);
    }
    .hero-evidence-link:focus-visible {
        outline: 2px solid #FAB03B;
        outline-offset: 4px;
        border-radius: 3px;
    }

    /* ----------------------------------------------------------------
       CYCLE DIAGRAM (section 2) — replaces a live game demo with an animated
       loop that explains the post-evaluation product cycle.
       ---------------------------------------------------------------- */
    .cycle-stage {
        max-width: 1100px;
        margin: 0 auto;
        position: relative;
    }
    .cycle-track {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
        align-items: stretch;
        gap: 14px;
    }
    .cycle-node {
        background: #fff;
        border-radius: 16px;
        padding: 24px 18px;
        text-align: center;
        box-shadow: 0 4px 16px rgba(135, 84, 161, 0.08);
        position: relative;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        border-top: 4px solid #8754A1;
    }
    .cycle-node:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(135, 84, 161, 0.16);
    }
    .cycle-node[data-step="2"] { border-top-color: #4BC6BD; }
    .cycle-node[data-step="3"] { border-top-color: #FAB03B; }
    .cycle-node[data-step="4"] { border-top-color: #FF5630; }

    .cycle-icon {
        width: 64px; height: 64px;
        border-radius: 50%;
        background: linear-gradient(135deg, #8754A1, #4BC6BD);
        color: #fff;
        font-size: 1.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 14px;
        box-shadow: 0 6px 18px rgba(135, 84, 161, 0.25);
    }
    .cycle-node[data-step="2"] .cycle-icon { background: linear-gradient(135deg, #4BC6BD, #35A8A0); box-shadow: 0 6px 18px rgba(75, 198, 189, 0.3); }
    .cycle-node[data-step="3"] .cycle-icon { background: linear-gradient(135deg, #FAB03B, #E0952A); box-shadow: 0 6px 18px rgba(250, 176, 59, 0.3); }
    .cycle-node[data-step="4"] .cycle-icon { background: linear-gradient(135deg, #FF5630, #E64526); box-shadow: 0 6px 18px rgba(255, 86, 48, 0.3); }

    .cycle-step {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #8898AA;
        font-weight: 700;
        margin-bottom: 6px;
    }
    .cycle-title {
        font-family: 'Nunito', sans-serif;
        font-weight: 900;
        color: #2D3748;
        font-size: 1.05rem;
        margin-bottom: 8px;
        line-height: 1.25;
    }
    .cycle-desc {
        font-size: 0.88rem;
        color: #52617A;
        margin: 0;
        line-height: 1.45;
    }
    .cycle-arrow {
        align-self: center;
        color: #B0B7C3;
        font-size: 1.4rem;
        line-height: 1;
        animation: cycle-arrow-pulse 2.4s ease-in-out infinite;
    }
    @keyframes cycle-arrow-pulse {
        0%, 100% { color: #B0B7C3; transform: translateX(0); }
        50%      { color: #8754A1; transform: translateX(4px); }
    }

    .cycle-loopback {
        margin: 32px auto 0 auto;
        max-width: 460px;
        background: linear-gradient(135deg, #F6F0FB, #E8FAF7);
        border-radius: 30px;
        padding: 14px 22px;
        text-align: center;
        color: #6B418A;
        font-size: 0.95rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 4px 16px rgba(135, 84, 161, 0.08);
    }
    .cycle-loopback i {
        animation: cycle-spin 4s linear infinite;
        color: #8754A1;
    }
    @keyframes cycle-spin {
        from { transform: rotate(0deg); }
        to   { transform: rotate(360deg); }
    }

    /* Concrete timeline below the cycle — anchors duration claims with verifiable per-step times. */
    .cycle-timeline {
        margin: 36px auto 0 auto;
        max-width: 920px;
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    .cycle-tick {
        flex: 1 1 220px;
        background: #fff;
        border-radius: 14px;
        padding: 14px 18px;
        text-align: center;
        box-shadow: 0 4px 16px rgba(135, 84, 161, 0.08);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .cycle-tick strong {
        font-family: 'Nunito', sans-serif;
        font-weight: 900;
        font-size: 1.6rem;
        color: #8754A1;
        line-height: 1;
    }
    .cycle-tick span {
        font-size: 0.92rem;
        color: #52617A;
        line-height: 1.35;
    }
    .cycle-tick-sep {
        align-self: center;
        color: #B0B7C3;
        font-size: 1rem;
    }
    @media (max-width: 767px) {
        .cycle-timeline { flex-direction: column; align-items: stretch; gap: 10px; }
        .cycle-tick-sep { display: none; }
        .cycle-tick { padding: 12px 16px; }
        .cycle-tick strong { font-size: 1.35rem; }
    }

    /* ----------------------------------------------------------------
       REAL CASE / TESTIMONIAL — Vimeo embed with school attribution
       ---------------------------------------------------------------- */
    .case-video-wrapper {
        max-width: 920px;
        margin: 0 auto;
        position: relative;
    }
    .case-video-wrapper iframe {
        background: #000;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(135, 84, 161, 0.25);
    }
    /* Results callout — concrete numbers verbatim from the school's video. */
    .case-results {
        margin-top: 22px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        background: linear-gradient(135deg, #F6F0FB, #E8FAF7);
        border-radius: 14px;
        padding: 18px 16px;
    }
    .case-results-item {
        text-align: center;
        padding: 6px 8px;
        border-right: 1px solid rgba(135, 84, 161, 0.12);
    }
    .case-results-item:last-child { border-right: none; }
    .case-results-item strong {
        display: block;
        font-family: 'Nunito', sans-serif;
        font-weight: 900;
        font-size: 1.85rem;
        color: #8754A1;
        line-height: 1;
        margin-bottom: 4px;
    }
    .case-results-item span {
        font-size: 0.82rem;
        color: #52617A;
        line-height: 1.3;
    }
    @media (max-width: 575px) {
        .case-results { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
        .case-results-item { border-right: none; border-bottom: 1px solid rgba(135, 84, 161, 0.12); padding-bottom: 10px; }
        .case-results-item:last-child { border-bottom: none; padding-bottom: 0; }
        .case-results-item strong { font-size: 1.55rem; }
    }

    /* Two-up pull quote layout — dual attribution (Directora + Jefa Técnico). */
    .case-quotes {
        margin-top: 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .case-quote {
        background: #fff;
        border-radius: 14px;
        padding: 22px 22px 18px 22px;
        margin: 0;
        box-shadow: 0 4px 16px rgba(135, 84, 161, 0.08);
        position: relative;
        border-left: 4px solid #8754A1;
    }
    .case-quote:nth-child(2) { border-left-color: #4BC6BD; }
    .case-quote::before {
        content: '\201C';
        position: absolute;
        top: 8px; left: 14px;
        font-size: 3rem;
        line-height: 1;
        color: rgba(135, 84, 161, 0.18);
        font-family: Georgia, serif;
        pointer-events: none;
    }
    .case-quote:nth-child(2)::before { color: rgba(75, 198, 189, 0.22); }
    .case-quote blockquote {
        margin: 0 0 14px 0;
        padding: 0;
        font-size: 1rem;
        line-height: 1.55;
        color: #2D3748;
        font-style: italic;
        font-weight: 500;
        position: relative;
        z-index: 1;
    }
    .case-quote figcaption {
        line-height: 1.3;
        padding-top: 12px;
        border-top: 1px solid #F0F2F7;
    }
    .case-quote figcaption strong {
        display: block;
        color: #2D3748;
        font-weight: 800;
        font-size: 0.95rem;
    }
    .case-quote figcaption span {
        color: #52617A;
        font-size: 0.82rem;
    }
    @media (max-width: 767px) {
        .case-quotes { grid-template-columns: 1fr; gap: 12px; }
    }

    .case-attribution {
        margin-top: 18px;
        background: #fff;
        border-radius: 14px;
        padding: 14px 18px;
        display: flex;
        align-items: center;
        gap: 14px;
        box-shadow: 0 4px 16px rgba(135, 84, 161, 0.08);
    }
    .case-attribution-icon {
        width: 48px; height: 48px;
        border-radius: 12px;
        background: linear-gradient(135deg, #8754A1, #4BC6BD);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    .case-attribution-body { line-height: 1.3; }
    .case-attribution-body strong {
        display: block;
        color: #2D3748;
        font-weight: 800;
        font-size: 1.05rem;
    }
    .case-attribution-body span {
        color: #52617A;
        font-size: 0.9rem;
    }

    /* Artifact card — surfaces the PDF the UTP receives. Direct answer to
       "what does the deliverable look like on paper?". */
    .case-artifact {
        margin-top: 14px;
        background: linear-gradient(135deg, #FFF6E7 0%, #FFE9B8 100%);
        border-radius: 14px;
        padding: 16px 18px;
        display: flex;
        align-items: center;
        gap: 14px;
        box-shadow: 0 4px 16px rgba(196, 124, 10, 0.10);
        border-left: 4px solid #FAB03B;
    }
    .case-artifact-icon {
        width: 48px; height: 48px;
        border-radius: 12px;
        background: #fff;
        color: #C24919;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(196, 124, 10, 0.15);
    }
    .case-artifact-body { flex: 1; line-height: 1.35; min-width: 0; }
    .case-artifact-body strong {
        display: block;
        color: #2D3748;
        font-weight: 800;
        font-size: 1rem;
        margin-bottom: 2px;
    }
    .case-artifact-body span {
        color: #52617A;
        font-size: 0.88rem;
    }
    .case-artifact-cta {
        background: #8754A1;
        color: #fff;
        font-weight: 800;
        font-size: 0.88rem;
        padding: 10px 18px;
        border-radius: 30px;
        text-decoration: none;
        white-space: nowrap;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(135, 84, 161, 0.25);
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }
    .case-artifact-cta:hover,
    .case-artifact-cta:focus {
        background: #6B418A;
        color: #fff;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(135, 84, 161, 0.35);
    }
    @media (max-width: 575px) {
        .case-artifact { flex-direction: column; text-align: center; align-items: stretch; gap: 12px; }
        .case-artifact-icon { margin: 0 auto; }
        .case-artifact-cta { align-self: center; }
    }

    /* Closing CTA for the case section — invites visitors to replicate Cornou's result.
       Closes the testimonial with the visitor's voice (not a product deliverable click). */
    .case-replicate {
        margin-top: 14px;
        background: linear-gradient(135deg, #F6F0FB 0%, #E8FAF7 100%);
        border-radius: 14px;
        padding: 18px 22px;
        display: flex;
        align-items: center;
        gap: 18px;
        box-shadow: 0 4px 16px rgba(135, 84, 161, 0.10);
        border-left: 4px solid #8754A1;
    }
    .case-replicate-body { flex: 1; line-height: 1.35; min-width: 0; }
    .case-replicate-body strong {
        display: block;
        color: #2D3748;
        font-weight: 800;
        font-size: 1.05rem;
        margin-bottom: 2px;
    }
    .case-replicate-body span {
        color: #52617A;
        font-size: 0.9rem;
    }
    .case-replicate-cta {
        background: #8754A1;
        color: #fff;
        font-weight: 800;
        font-size: 0.92rem;
        padding: 12px 22px;
        border-radius: 30px;
        text-decoration: none;
        white-space: nowrap;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(135, 84, 161, 0.25);
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, gap 0.18s ease;
        display: inline-flex;
        align-items: center;
        /* Reset native button styles — this class is used both as <a> and <button>. */
        border: none;
        cursor: pointer;
        font-family: inherit;
    }
    .case-replicate-cta:focus-visible {
        outline: 3px solid #FAB03B;
        outline-offset: 3px;
    }
    .case-replicate-cta:hover,
    .case-replicate-cta:focus {
        background: #6B418A;
        color: #fff;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(135, 84, 161, 0.35);
    }
    @media (max-width: 575px) {
        .case-replicate { flex-direction: column; text-align: center; align-items: stretch; gap: 12px; }
        .case-replicate-cta { align-self: center; }
    }

    /* Tablet+: stack cycle as 2x2 (no horizontal arrows fitting <992px). */
    @media (max-width: 991px) {
        .cycle-track {
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }
        .cycle-arrow { display: none; }
    }
    @media (max-width: 575px) {
        .cycle-track { grid-template-columns: 1fr; }
        .cycle-node { padding: 18px 14px; }
    }

    /* ----------------------------------------------------------------
       PILLARS (section 3) — the 3 differentiators cards
       ---------------------------------------------------------------- */
    .pillar-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        cursor: default;
        border-radius: 16px;
        overflow: hidden;
    }
    .pillar-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(0,0,0,0.10) !important;
    }
    .pillar-icon {
        width: 70px; height: 70px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #fff;
    }
    .pillar-icon-input   { background: linear-gradient(135deg, #4BC6BD, #35A8A0); box-shadow: 0 8px 22px rgba(75, 198, 189, 0.3); }
    .pillar-icon-insight { background: linear-gradient(135deg, #FAB03B, #E0952A); box-shadow: 0 8px 22px rgba(250, 176, 59, 0.3); }
    .pillar-icon-action  { background: linear-gradient(135deg, #FF5630, #E64526); box-shadow: 0 8px 22px rgba(255, 86, 48, 0.3); }

    .pillar-border-input   { border-top: 4px solid #4BC6BD !important; }
    .pillar-border-insight { border-top: 4px solid #FAB03B !important; }
    .pillar-border-action  { border-top: 4px solid #FF5630 !important; }

    /* ----------------------------------------------------------------
       HOW IT WORKS (section 6) — 3-step B2B onboarding
       ---------------------------------------------------------------- */
    .how-step {
        position: relative;
        text-align: center;
    }
    .how-step-number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 90px; height: 90px;
        border-radius: 50%;
        background: linear-gradient(135deg, #8754A1, #4BC6BD);
        color: #fff;
        font-size: 2.4rem;
        font-weight: 900;
        margin-bottom: 1.2rem;
        box-shadow: 0 10px 30px rgba(135, 84, 161, 0.25);
    }

    /* ----------------------------------------------------------------
       BEFORE / AFTER comparison card (right column of "Why Umáximo")
       ---------------------------------------------------------------- */
    .before-after-card { border-radius: 16px; }
    .ba-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        border-radius: 10px;
        margin-bottom: 8px;
        font-size: 0.95rem;
        line-height: 1.35;
        text-align: left;
    }
    .ba-before {
        background: #FFF5F2;
        color: #C24919;
    }
    .ba-after {
        background: #E8FAF7;
        color: #16A085;
        margin-bottom: 18px;
        font-weight: 700;
    }
    .ba-icon {
        width: 28px; height: 28px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.78rem;
        color: #fff;
        flex-shrink: 0;
    }
    .ba-before .ba-icon { background: #FF5630; }
    .ba-after  .ba-icon { background: #16A085; }
    .ba-text { flex: 1; }

    /* ----------------------------------------------------------------
       FAQ accordion
       ---------------------------------------------------------------- */
    .faq-item h3 { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }
    .faq-item {
        border: 1px solid #e9ecef;
        border-radius: 12px;
        margin-bottom: 12px;
        overflow: hidden;
        transition: box-shadow 0.2s ease;
    }
    .faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
    .faq-question {
        width: 100%;
        background: #fff;
        border: none;
        text-align: left;
        padding: 18px 22px;
        font-weight: 700;
        font-size: 1.05rem;
        color: #52617A;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .faq-question[aria-expanded="true"] { color: #8754A1; }
    .faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
    .faq-chevron { transition: transform 0.2s ease; color: #8754A1; }
    .faq-answer {
        padding: 0 22px 18px 22px;
        color: #576279;
        line-height: 1.7;
        display: none;
    }
    .faq-answer.open { display: block; }
    .faq-question:focus-visible { outline: 3px solid #FAB03B; outline-offset: -3px; }

    /* ----------------------------------------------------------------
       Publications cards
       ---------------------------------------------------------------- */
    .remedial-post-card {
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        border-radius: 14px;
        overflow: hidden;
    }
    .remedial-post-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 36px rgba(135, 84, 161, 0.14) !important;
    }
    .remedial-post-img {
        aspect-ratio: 16 / 9;
        object-fit: cover;
        width: 100%;
    }
    .remedial-post-card a { text-decoration: none; }

    /* ----------------------------------------------------------------
       Accessibility — skip link
       ---------------------------------------------------------------- */
    .remedial-skip-link {
        position: absolute;
        top: -100px;
        left: 0;
        background: #8754A1;
        color: #fff;
        padding: 10px 18px;
        border-radius: 0 0 8px 0;
        z-index: 9999;
        text-decoration: none;
        font-weight: 700;
    }
    .remedial-skip-link:focus {
        top: 0;
        color: #fff;
        text-decoration: none;
    }

    /* =======================================================================
       PRODUCT PROTOTYPE (.proto-*) — interactive in-page mock of the UTP/teacher
       view (insight cards + differentiated plan) and the student practice view.
       Scoped entirely under .proto-* to avoid collisions with the rest of the
       landing or the global layout.
       ======================================================================= */
    .proto-stage {
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 20px 60px 20px;
        perspective: 1400px;
    }
    .proto-glow {
        position: absolute;
        inset: -40px -20px;
        background:
            radial-gradient(ellipse at 30% 45%, rgba(135, 84, 161, 0.20), transparent 55%),
            radial-gradient(ellipse at 75% 60%, rgba(75, 198, 189, 0.18), transparent 55%);
        filter: blur(20px);
        pointer-events: none;
        z-index: 0;
    }
    .proto-panels {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 28px;
    }
    .proto-panel {
        background: #F4F5F9;
        border-radius: 14px;
        overflow: hidden;
        position: relative;
        flex: 0 0 auto;
        transition: transform 0.5s cubic-bezier(.22,.61,.36,1);
        box-shadow:
            0 30px 60px -18px rgba(30, 30, 60, 0.30),
            0 12px 28px -10px rgba(135, 84, 161, 0.18),
            0 2px 6px rgba(0, 0, 0, 0.05);
    }
    .proto-panel-teacher {
        width: 580px;
        transform: rotateZ(-1.2deg) translateY(12px);
        transform-origin: right center;
        z-index: 1;
    }
    .proto-panel-student {
        width: 420px;
        transform: rotateZ(1.2deg) translateY(-12px);
        transform-origin: left center;
        z-index: 2;
        margin-left: -20px;
    }
    .proto-stage:hover .proto-panel-teacher,
    .proto-stage:hover .proto-panel-student {
        transform: rotateZ(0deg) translateY(0);
    }

    /* Inside the split-view, sidebars are dropped and inner layouts are tightened so
       the content reads naturally at panel-width. */
    .proto-panel-teacher .proto-sidebar,
    .proto-panel-student .proto-sidebar-right { display: none; }
    .proto-panel-teacher .proto-teacher { grid-template-columns: 1fr; min-height: 0; }
    .proto-panel-student .proto-student-view { grid-template-columns: 1fr; padding: 22px 20px; }
    .proto-panel-teacher .proto-main { padding: 22px 24px 24px 24px; gap: 18px; }
    .proto-panel-teacher .proto-topbar { margin-bottom: 4px; }
    .proto-panel-teacher .proto-kpi-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .proto-panel-teacher .proto-kpi { padding: 12px 14px; }
    .proto-panel-teacher .proto-kpi-label { font-size: 0.7rem; line-height: 1.2; }
    .proto-panel-teacher .proto-kpi-value { font-size: 1.5rem; }
    .proto-panel-teacher .proto-student { grid-template-columns: 28px 1fr auto; gap: 10px; padding: 7px 8px; }
    .proto-panel-teacher .proto-student-initials { width: 28px; height: 28px; font-size: 0.68rem; }
    .proto-panel-teacher .proto-student-info strong { font-size: 0.86rem; }
    .proto-panel-teacher .proto-student-progress { display: none; }
    .proto-panel-teacher .proto-student-badge { font-size: 0.66rem; padding: 2px 8px; }

    /* Student panel: exercise-centered, no chips */
    .proto-panel-student .proto-topstrip { padding: 14px 18px; }
    .proto-panel-student .proto-xp { width: 140px; }
    .proto-panel-student .proto-exercise { padding: 18px; }
    .proto-panel-student .proto-alts { grid-template-columns: 1fr 1fr; gap: 8px; }
    .proto-panel-student .proto-alt { padding: 10px 8px; }
    .proto-panel-student .proto-alt-label { font-size: 0.78rem; }
    .proto-panel-student .proto-character { font-size: 2.4rem; }
    .proto-panel-student .proto-bubble { font-size: 0.88rem; }
    .proto-panel-student .proto-play-btn { width: 44px; height: 44px; }

    /* --- TEACHER VIEW --- */
    .proto-teacher {
        display: grid;
        grid-template-columns: 220px 1fr;
        min-height: 580px;
    }
    .proto-sidebar {
        background: #fff;
        border-right: 1px solid #EEF0F5;
        padding: 18px 14px;
        display: flex;
        flex-direction: column;
    }
    .proto-brand {
        font-family: 'Nunito', sans-serif;
        font-weight: 900;
        color: #8754A1;
        font-size: 1.25rem;
        letter-spacing: -0.5px;
        margin-bottom: 18px;
        padding-left: 4px;
    }
    .proto-brand .proto-brand-accent { color: #4BC6BD; }
    .proto-user {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        background: linear-gradient(135deg, rgba(135,84,161,0.08), rgba(75,198,189,0.08));
        border-radius: 10px;
        margin-bottom: 16px;
    }
    .proto-avatar-circle {
        width: 38px; height: 38px;
        border-radius: 50%;
        background: linear-gradient(135deg, #8754A1, #4BC6BD);
        color: #fff;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    .proto-user-meta { line-height: 1.15; min-width: 0; }
    .proto-user-meta strong { color: #2D3748; font-size: 0.88rem; display: block; }
    .proto-user-meta span { color: #8898AA; font-size: 0.75rem; }
    .proto-nav { list-style: none; padding: 0; margin: 0; flex: 1; }
    .proto-nav li {
        padding: 9px 12px;
        margin-bottom: 3px;
        border-radius: 8px;
        color: #52617A;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.15s ease;
    }
    .proto-nav li:hover { background: #F6F0FB; color: #8754A1; }
    .proto-nav li.active {
        background: linear-gradient(135deg, #8754A1, #4BC6BD);
        color: #fff;
    }
    .proto-nav li.active:hover { color: #fff; }
    .proto-nav i { width: 16px; text-align: center; }
    .proto-sidebar-footer {
        font-size: 0.72rem;
        color: #B0B7C3;
        padding-top: 12px;
        border-top: 1px solid #EEF0F5;
    }

    .proto-main { padding: 20px 24px; overflow: hidden; }
    .proto-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
    }
    .proto-breadcrumb { font-size: 0.82rem; color: #8898AA; }
    .proto-breadcrumb strong { color: #2D3748; font-weight: 700; }
    .proto-breadcrumb .sep { margin: 0 6px; color: #CBD2D9; }
    .proto-topbar-right { display: flex; align-items: center; gap: 14px; }
    .proto-bell {
        position: relative;
        width: 34px; height: 34px;
        border-radius: 50%;
        background: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #8898AA;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    .proto-bell:hover { color: #8754A1; transform: translateY(-1px); }
    .proto-bell-dot {
        position: absolute;
        top: 7px; right: 8px;
        width: 8px; height: 8px;
        background: #FF5630;
        border: 2px solid #fff;
        border-radius: 50%;
    }

    .proto-kpi-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        margin-bottom: 18px;
    }
    .proto-kpi {
        background: #fff;
        border-radius: 12px;
        padding: 14px 16px;
        box-shadow: 0 2px 10px rgba(135,84,161,0.06);
        border-left: 4px solid #8754A1;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .proto-kpi:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(135,84,161,0.12);
    }
    .proto-kpi.accent-teal { border-left-color: #4BC6BD; }
    .proto-kpi.accent-orange { border-left-color: #FF5630; }
    .proto-kpi-label { color: #8898AA; font-size: 0.74rem; font-weight: 600; margin-bottom: 4px; }
    .proto-kpi-value {
        font-size: 1.55rem;
        font-weight: 900;
        color: #2D3748;
        line-height: 1.1;
        font-family: 'Nunito', sans-serif;
    }
    .proto-kpi-sub { font-size: 0.72rem; color: #52617A; margin-top: 2px; }
    .proto-kpi-sub .up { color: #4BC6BD; font-weight: 700; }
    .proto-kpi-sub .down { color: #FF5630; font-weight: 700; }
    .proto-kpi-cta {
        margin-top: 10px;
        border: none;
        background: linear-gradient(135deg, #8754A1, #4BC6BD);
        color: #fff;
        font-size: 0.72rem;
        font-weight: 800;
        padding: 6px 14px;
        border-radius: 20px;
        cursor: pointer;
        white-space: nowrap;
        box-shadow: 0 4px 12px rgba(135, 84, 161, 0.22);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    .proto-kpi-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(135, 84, 161, 0.3);
    }
    .proto-kpi-urgent {
        display: inline-block;
        font-size: 0.68rem;
        font-weight: 800;
        color: #C24919;
        background: #FFEBE3;
        padding: 2px 8px;
        border-radius: 10px;
        margin-left: 6px;
        vertical-align: middle;
        letter-spacing: 0.2px;
    }

    /* Trust-signals chip row above the stage */
    .proto-meta-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin: 0 auto 24px auto;
        max-width: 960px;
    }
    .proto-meta-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        border: 1px solid #EEE9F5;
        color: #52617A;
        font-size: 0.82rem;
        font-weight: 700;
        padding: 8px 16px;
        border-radius: 30px;
        box-shadow: 0 2px 8px rgba(135,84,161,0.06);
    }
    .proto-meta-chip i { color: #8754A1; }

    /* Inner teacher sub-grid */
    .proto-subgrid { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .proto-card {
        background: #fff;
        border-radius: 12px;
        padding: 16px 18px;
        box-shadow: 0 2px 10px rgba(135, 84, 161, 0.06);
    }
    .proto-card-title {
        font-size: 0.92rem;
        font-weight: 800;
        color: #2D3748;
        margin-bottom: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .proto-card-title .proto-card-tag {
        font-size: 0.68rem;
        background: #F2EEF7;
        color: #8754A1;
        padding: 3px 10px;
        border-radius: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    /* Insight cards grid (QUE/QUIEN/DONDE/COMO) — the analysis layer's signature view */
    .proto-insight-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .proto-insight {
        background: #FAFBFD;
        border-radius: 10px;
        padding: 10px 12px;
        position: relative;
    }
    .proto-insight strong {
        display: block;
        font-size: 0.82rem;
        color: #2D3748;
        font-weight: 800;
        line-height: 1.3;
        margin: 6px 0 3px 0;
    }
    .proto-insight span {
        font-size: 0.72rem;
        color: #52617A;
        line-height: 1.4;
        display: block;
    }
    .proto-insight-tag {
        display: inline-block;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.6px;
        padding: 2px 8px;
        border-radius: 8px;
    }

    /* Students list */
    .proto-students { list-style: none; padding: 0; margin: 0; }
    .proto-student {
        display: grid;
        grid-template-columns: 34px 1fr auto;
        align-items: center;
        gap: 10px;
        padding: 8px 6px;
        border-bottom: 1px solid #F3F4F8;
        transition: background 0.15s ease;
        cursor: pointer;
    }
    .proto-student:last-child { border-bottom: none; }
    .proto-student:hover { background: #FAFAFE; }
    .proto-student-initials {
        width: 34px; height: 34px;
        border-radius: 50%;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 0.82rem;
    }
    .proto-student-info { min-width: 0; }
    .proto-student-info strong { display: block; font-size: 0.88rem; color: #2D3748; font-weight: 700; }
    .proto-student-progress {
        height: 4px;
        background: #F0F2F7;
        border-radius: 3px;
        margin-top: 4px;
        overflow: hidden;
    }
    .proto-student-progress > div {
        height: 100%;
        background: linear-gradient(90deg, #4BC6BD, #8754A1);
    }
    .proto-student-badge {
        font-size: 0.68rem;
        padding: 3px 9px;
        border-radius: 10px;
        font-weight: 800;
        color: #fff;
        white-space: nowrap;
        letter-spacing: 0.2px;
    }
    /* Intervention type colors — remedial/refuerzo/extension */
    .proto-badge-remedial  { background: #FF5630; }
    .proto-badge-refuerzo  { background: #FAB03B; }
    .proto-badge-extension { background: #4BC6BD; }

    /* --- STUDENT VIEW --- */
    .proto-student-view {
        background: linear-gradient(180deg, #FDFBFF 0%, #EEF6F5 100%);
        min-height: 580px;
        padding: 16px 20px 20px 20px;
        display: grid;
        grid-template-columns: 1fr 240px;
        gap: 16px;
    }
    .proto-student-main { display: flex; flex-direction: column; }
    .proto-topstrip {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        border-radius: 14px;
        padding: 10px 14px;
        box-shadow: 0 2px 8px rgba(135,84,161,0.08);
        margin-bottom: 14px;
    }
    .proto-player { display: flex; align-items: center; gap: 10px; }
    .proto-player-avatar {
        width: 40px; height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #FAB03B, #FF5630);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        box-shadow: 0 4px 12px rgba(255,86,48,0.25);
    }
    .proto-player-meta strong { color: #2D3748; font-size: 0.92rem; font-weight: 800; display: block; }
    .proto-xp {
        width: 110px;
        height: 6px;
        background: #F0F2F7;
        border-radius: 4px;
        margin-top: 3px;
        overflow: hidden;
    }
    .proto-xp > div {
        height: 100%;
        width: 62%;
        background: linear-gradient(90deg, #8754A1, #4BC6BD);
        border-radius: 4px;
    }
    .proto-chips { display: flex; gap: 8px; }
    .proto-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: #FFF6E7;
        color: #C47C0A;
        font-weight: 800;
        font-size: 0.82rem;
        padding: 5px 11px;
        border-radius: 20px;
    }
    .proto-chip.streak { background: #FFE8E2; color: #E64526; }

    .proto-exercise {
        background: #fff;
        border-radius: 16px;
        padding: 18px 20px;
        box-shadow: 0 6px 20px rgba(135,84,161,0.1);
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .proto-exercise-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    .proto-exercise-title { font-size: 0.82rem; font-weight: 800; color: #8754A1; letter-spacing: 0.2px; }
    .proto-exercise-counter { font-size: 0.78rem; color: #8898AA; font-weight: 600; }
    .proto-speaker-row {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 12px;
        background: linear-gradient(135deg, #F6F0FB, #E8FAF7);
        border-radius: 14px;
        margin-bottom: 14px;
    }
    .proto-character {
        font-size: 2.8rem;
        line-height: 1;
        flex-shrink: 0;
        animation: proto-bob 2.2s ease-in-out infinite;
    }
    @keyframes proto-bob {
        0%, 100% { transform: translateY(0); }
        50%      { transform: translateY(-4px); }
    }
    .proto-bubble {
        background: #fff;
        border-radius: 14px;
        padding: 10px 14px;
        color: #2D3748;
        font-size: 0.95rem;
        font-weight: 700;
        position: relative;
        flex: 1;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    .proto-bubble::before {
        content: '';
        position: absolute;
        left: -7px;
        top: 50%;
        transform: translateY(-50%);
        border: 7px solid transparent;
        border-right-color: #fff;
        border-left: 0;
    }
    .proto-bubble small {
        display: block;
        font-weight: 500;
        color: #8898AA;
        font-size: 0.78rem;
        margin-top: 2px;
    }
    .proto-play-btn {
        width: 48px; height: 48px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(135deg, #8754A1, #4BC6BD);
        color: #fff;
        font-size: 1.1rem;
        cursor: pointer;
        box-shadow: 0 6px 16px rgba(135,84,161,0.3);
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }
    .proto-play-btn:hover { transform: scale(1.08); }
    .proto-play-btn:focus-visible { outline: 3px solid #FAB03B; outline-offset: 3px; }
    .proto-play-btn.playing { animation: proto-pulse 1s ease-in-out infinite; }
    @keyframes proto-pulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(135,84,161,0.55); }
        50%      { box-shadow: 0 0 0 14px rgba(135,84,161,0); }
    }

    /* Waveform — subtle motion when audio plays */
    .proto-wave {
        display: flex;
        align-items: center;
        gap: 3px;
        height: 36px;
        padding: 0 6px;
    }
    .proto-wave span {
        width: 3px;
        background: linear-gradient(180deg, #8754A1, #4BC6BD);
        border-radius: 2px;
        height: 30%;
        transition: height 0.15s ease;
    }
    .proto-speaker-row.playing .proto-wave span { animation: proto-wave-anim 0.9s ease-in-out infinite; }
    .proto-speaker-row.playing .proto-wave span:nth-child(1)  { animation-delay: 0.00s; }
    .proto-speaker-row.playing .proto-wave span:nth-child(2)  { animation-delay: 0.08s; }
    .proto-speaker-row.playing .proto-wave span:nth-child(3)  { animation-delay: 0.16s; }
    .proto-speaker-row.playing .proto-wave span:nth-child(4)  { animation-delay: 0.24s; }
    .proto-speaker-row.playing .proto-wave span:nth-child(5)  { animation-delay: 0.32s; }
    .proto-speaker-row.playing .proto-wave span:nth-child(6)  { animation-delay: 0.40s; }
    .proto-speaker-row.playing .proto-wave span:nth-child(7)  { animation-delay: 0.48s; }
    .proto-speaker-row.playing .proto-wave span:nth-child(8)  { animation-delay: 0.56s; }
    .proto-speaker-row.playing .proto-wave span:nth-child(9)  { animation-delay: 0.64s; }
    .proto-speaker-row.playing .proto-wave span:nth-child(10) { animation-delay: 0.72s; }
    @keyframes proto-wave-anim {
        0%, 100% { height: 25%; }
        50%      { height: 85%; }
    }

    /* Alternatives grid (text-based for inference exercises) */
    .proto-alts {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 14px;
    }
    .proto-alt {
        background: #fff;
        border: 2px solid #EEF0F5;
        border-radius: 12px;
        padding: 12px 10px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
    }
    .proto-alt:hover {
        border-color: #8754A1;
        transform: translateY(-3px);
        box-shadow: 0 8px 18px rgba(135,84,161,0.14);
    }
    .proto-alt-word {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 56px;
    }
    .proto-alt-label {
        font-family: 'Nunito', sans-serif;
        font-weight: 700;
        font-size: 0.82rem;
        color: #2D3748;
        line-height: 1.3;
    }
    .proto-alt.correct {
        border-color: #4BC6BD;
        background: #E8FAF7;
        animation: proto-shake-ok 0.4s ease;
    }
    .proto-alt.wrong {
        border-color: #FF5630;
        background: #FFE8E2;
        animation: proto-shake-err 0.4s ease;
    }
    @keyframes proto-shake-ok {
        0%, 100% { transform: scale(1); }
        50%      { transform: scale(1.05); }
    }
    @keyframes proto-shake-err {
        0%, 100% { transform: translateX(0); }
        25%      { transform: translateX(-5px); }
        75%      { transform: translateX(5px); }
    }
    .proto-alt.disabled { pointer-events: none; opacity: 0.55; }
    .proto-feedback {
        min-height: 30px;
        text-align: center;
        font-weight: 800;
        font-size: 0.88rem;
        padding: 8px 12px;
        border-radius: 10px;
        margin-bottom: 12px;
        display: none;
    }
    .proto-feedback.show { display: block; }
    .proto-feedback.ok  { background: #E8FAF7; color: #16A085; }
    .proto-feedback.err { background: #FFE8E2; color: #E64526; }

    .proto-progress { height: 10px; background: #F0F2F7; border-radius: 6px; overflow: hidden; }
    .proto-progress > div {
        height: 100%;
        width: 30%;
        background: linear-gradient(90deg, #4BC6BD, #8754A1);
        border-radius: 6px;
        transition: width 0.3s ease;
    }
    .proto-progress-label {
        display: flex;
        justify-content: space-between;
        font-size: 0.78rem;
        color: #8898AA;
        font-weight: 600;
        margin-top: 6px;
    }

    /* Student sidebar (right) */
    .proto-sidebar-right { display: flex; flex-direction: column; gap: 12px; }
    .proto-side-card {
        background: #fff;
        border-radius: 14px;
        padding: 12px 14px;
        box-shadow: 0 2px 10px rgba(135,84,161,0.08);
    }
    .proto-side-title {
        font-size: 0.78rem;
        color: #8898AA;
        font-weight: 700;
        margin-bottom: 8px;
    }
    .proto-next { display: flex; align-items: center; gap: 10px; }
    .proto-next-thumb {
        width: 42px; height: 42px;
        border-radius: 10px;
        background: linear-gradient(135deg, #FAB03B, #FF5630);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    .proto-next-info strong { display: block; color: #2D3748; font-size: 0.85rem; font-weight: 800; }
    .proto-next-info span { color: #8898AA; font-size: 0.72rem; }
    .proto-medals { display: flex; justify-content: space-around; gap: 6px; }
    .proto-medal {
        width: 48px; height: 48px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        background: linear-gradient(135deg, #FFE9B8, #FAB03B);
        box-shadow: 0 4px 10px rgba(250,176,59,0.3);
        cursor: default;
        transition: transform 0.2s ease;
    }
    .proto-medal:hover { transform: translateY(-3px) rotate(-6deg); }
    .proto-medal.silver { background: linear-gradient(135deg, #E8EDF4, #B0B7C3); box-shadow: 0 4px 10px rgba(176,183,195,0.3); }
    .proto-medal.bronze { background: linear-gradient(135deg, #F5CBA7, #C47C0A); box-shadow: 0 4px 10px rgba(196,124,10,0.3); }

    /* Tablet (<1080px): stack panels vertically — 580+420+28 gap overflows below that. */
    @media (max-width: 1079px) {
        .proto-stage { padding: 20px 10px 40px 10px; }
        .proto-panels { flex-direction: column; gap: 28px; }
        .proto-panel {
            width: 100%;
            max-width: 580px;
            margin-left: 0 !important;
            transform: none !important;
        }
        .proto-stage:hover .proto-panel { transform: none !important; }
        .proto-teacher { grid-template-columns: 1fr; }
        .proto-student-view { grid-template-columns: 1fr; }
    }

    /* Mobile (<576px): tighten spacings, single-column insight grid + alts */
    @media (max-width: 575px) {
        .proto-main { padding: 14px; }
        .proto-kpi-row { grid-template-columns: 1fr; }
        .proto-kpi-value { font-size: 1.35rem; }
        .proto-student-view { padding: 12px; }
        .proto-insight-grid { grid-template-columns: 1fr; }
        .proto-panel-student .proto-alts { grid-template-columns: 1fr; }
        .proto-character { font-size: 2.2rem; }
        .proto-bubble { font-size: 0.85rem; padding: 8px 10px; }
    }
