/* ═══════════════════════════════════════════════════════
   OpoSquirrel Design System — styles.css
   Temario Informática FP · 2026
   ═══════════════════════════════════════════════════════ */

/* ── 1. RESET & CUSTOM PROPERTIES ── */

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

:root {
    /* Colors */
    --primary: #0066cc;
    --primary-focus: #0071e3;
    --ink: #1d1d1f;
    --ink-muted: #6e6e73;
    --ink-light: #86868b;
    --canvas: #ffffff;
    --parchment: #f5f5f7;
    --dark-tile: #272729;
    --on-dark: #ffffff;
    --on-dark-muted: rgba(255,255,255,0.75);
    --danger: #ff3b30;
    --success: #34c759;
    --warning: #ff9f0a;
    --border: #d2d2d7;
    --border-light: #e8e8ed;

    /* Mascot */
    --mascot-fur: #a65e33;
    --mascot-hoodie: #5d2a2c;
    --mascot-pencil-red: #e24c3d;
    --mascot-pencil-blue: #4a90e2;
    --mascot-pencil-yellow: #f8cf4a;

    /* Typography */
    --font-display: "Inter", "SF Pro Display", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "SF Pro Text", system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 5rem;
    --space-2xl: 7.5rem;

    /* Radii */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-product: 0 10px 20px rgba(0,0,0,0.22);
    --shadow-hover: 0 4px 14px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 0 4px rgba(0,102,204,0.15);

    /* Layout */
    --max-w: 1080px;
    --header-h: 68px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html {
    background-color: #f2f2f4;
    scroll-behavior: smooth;
}

body {
    max-width: 1280px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: -0.015em;
    color: var(--ink);
    background: var(--canvas);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    box-shadow: 0 0 50px rgba(0,0,0,0.06);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── 2. LAYOUT PRIMITIVES ── */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--space-xl) 0;
}

.section--tight {
    padding: var(--space-lg) 0;
}

/* Canvas tiles */
.canvas { background: var(--canvas); color: var(--ink); }
.parchment { background: var(--parchment); color: var(--ink); }
.dark-tile { background: var(--dark-tile); color: var(--on-dark); }
.dark-tile .ink-muted,
.dark-tile .caption,
.dark-tile .section-desc { color: var(--on-dark-muted); }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.stack {
    display: flex;
    flex-direction: column;
}
.stack--sm { gap: var(--space-sm); }
.stack--md { gap: var(--space-md); }
.stack--lg { gap: var(--space-lg); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── 3. TYPOGRAPHY ── */

.display {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.headline {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.subhead {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
}

h1, .h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 600; line-height: 1.07; letter-spacing: -0.02em; }
h2, .h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h3, .h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
h4, .h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.3; }

.body-lg { font-size: 1.25rem; line-height: 1.65; }
.body { font-size: 18px; line-height: 1.6; }
.caption { font-size: 0.94rem; color: var(--ink-muted); }
.ink-muted { color: var(--ink-muted); }

.kicker {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: var(--space-xs);
}

.dark-tile h1, .dark-tile h2, .dark-tile h3, .dark-tile h4,
.dark-tile .display, .dark-tile .headline, .dark-tile .subhead {
    color: var(--on-dark);
}

.dark-tile .kicker { color: var(--primary-focus); }

em, i { font-style: italic; }

.section-header {
    max-width: 680px;
    margin-bottom: var(--space-lg);
}
.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-top: 12px;
}

/* ── 4. COMPONENTS ── */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47;
    letter-spacing: -0.022em;
    border-radius: var(--radius-pill);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
}
.btn--primary:hover {
    background: var(--primary-focus);
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(0,102,204,0.25);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--border);
}
.btn--ghost:hover {
    border-color: var(--ink);
    transform: scale(1.04);
}

.btn--white {
    background: #fff;
    color: var(--ink);
}
.btn--white:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-hover);
}

.btn--sm { padding: 8px 18px; font-size: 0.85rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

.dark-tile .btn--ghost {
    color: var(--on-dark);
    border-color: rgba(255,255,255,0.3);
}
.dark-tile .btn--ghost:hover {
    border-color: #fff;
}

.link-arrow {
    font-weight: 500;
    color: var(--primary);
    transition: color 0.2s;
}
.link-arrow:hover { color: var(--primary-focus); }
.link-arrow::after { content: ' →'; }

/* Cards */
.card {
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
}
.card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card--flat {
    border: 1px solid transparent;
    background: var(--parchment);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card--flat:hover {
    background: var(--canvas);
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card--dark {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--on-dark);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card--dark:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255, 255, 255, 0.20);
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 102, 204, 0.15);
}

.card--horizontal {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    background: var(--canvas);
}
.card--horizontal .card__icon {
    font-size: 2.4rem;
    margin-bottom: 0;
    flex-shrink: 0;
    margin-top: 4px;
}
.card--horizontal .card__img-container {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
    position: relative;
}
.card--horizontal .card__img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.card--horizontal:hover .card__img-container img {
    transform: scale(1.08);
}
.card--horizontal .card__content-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 600px) {
    .card--horizontal {
        flex-direction: column;
        gap: 16px;
    }
    .card--horizontal .card__img-container {
        width: 100%;
        height: 160px;
    }
}

.card--split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    background: var(--canvas);
    padding: 0 !important; /* Force padding override of standard card */
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.card--split:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card--split .card__img-container {
    width: 140px;
    flex-shrink: 0;
    position: relative;
    border-right: 1px solid var(--border-light);
}

.card--split .card__img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card--split:hover .card__img-container img {
    transform: scale(1.06);
}

.card--split .card__content-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 20px 24px;
    flex-grow: 1;
}

@media (max-width: 600px) {
    .card--split {
        flex-direction: column;
        align-items: stretch;
    }
    .card--split .card__img-container {
        width: 100%;
        height: 160px;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    .card--split .card__content-wrap {
        padding: 20px 24px;
    }
}

/* Promo Banner */
.promo-banner {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    background: var(--parchment);
    padding: 32px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}
.promo-banner__icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fffaf2;
    border: 2px solid rgba(255, 159, 10, 0.3);
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 159, 10, 0.08);
}
.promo-banner__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}
.promo-banner__label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--warning);
    display: block;
}
.promo-banner__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
    line-height: 1.35;
}
.promo-banner__body {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--ink-muted);
}
.promo-banner__body strong {
    font-weight: 600;
    color: var(--ink);
}

.promo-banner__list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.promo-banner__list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink-muted);
}
.promo-banner__list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.promo-banner__list-text {
    flex-grow: 1;
    padding-top: 4px;
}
.promo-banner__list-text strong {
    color: var(--ink);
    font-weight: 600;
}

.promo-banner__mascot {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--canvas);
    border: 1.5px solid rgba(255, 159, 10, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 159, 10, 0.04);
}
.promo-banner__mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    display: block;
}

@media (max-width: 600px) {
    .promo-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px;
    }
    .promo-banner__mascot {
        width: 180px;
        height: 180px;
        margin: 0 auto 16px auto;
        align-self: center;
    }
}

.card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1;
}

.card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.card__body {
    color: var(--ink-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}
.dark-tile .card__body { color: var(--on-dark-muted); }

/* Stat counters */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stat-counter {}
.stat-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
    display: block;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-top: 6px;
    display: block;
}

/* Stat callout (big number + text block) */
.stat-callout {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: var(--parchment);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}
.stat-callout__number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    line-height: 1;
}
.stat-callout__text {
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.55;
}
.stat-callout__mascot {
    width: 120px;
    height: auto;
    flex-shrink: 0;
    margin-left: auto;
}

/* Testimonials */
.testimonial {
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.testimonial:hover { transform: scale(1.02); }

.testimonial__stars {
    color: #ff9f0a;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial__quote {
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial__name { font-weight: 600; font-size: 0.9rem; }
.testimonial__role { font-size: 0.8rem; color: var(--ink-muted); }

/* Blockquote */
.pullquote {
    border-left: 4px solid var(--primary);
    padding: 20px 28px;
    margin: var(--space-md) 0;
    background: var(--parchment);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--ink);
}
.pullquote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--ink-muted);
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid var(--border-light);
}
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--ink-muted);
    transition: transform 0.3s;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item summary:hover { color: var(--primary); }
.faq-item .faq-answer {
    padding: 0 0 20px;
    color: var(--ink-muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Temario table rows */
.topic-table { width: 100%; border-collapse: collapse; }
.topic-table thead th {
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    padding: 12px 16px;
    border-bottom: 2px solid var(--border);
}
.topic-row {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}
.topic-row:hover { background: var(--parchment); }
.topic-row td {
    padding: 14px 16px;
    font-size: 0.95rem;
    vertical-align: top;
}
.topic-row__num {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    width: 48px;
    text-align: center;
}
.topic-row__block {
    color: var(--ink-muted);
    font-size: 0.85rem;
    width: 220px;
}
.topic-row__title { color: var(--ink); }
.topic-row__sample {
    width: 140px;
    text-align: right;
}
.topic-row__sample a {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
}
.topic-row__sample a:hover { color: var(--primary-focus); }

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: var(--space-md);
}
.tab {
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    background: var(--parchment);
    color: var(--ink-muted);
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.tab.active, .tab:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Audio player */
.audio-widget {
    background: var(--dark-tile);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    color: var(--on-dark);
    display: flex;
    gap: 24px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s, box-shadow 0.25s;
}
.audio-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}
.audio-widget__cover {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.03);
}
.audio-widget__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.audio-widget__content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.audio-widget__label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--on-dark-muted);
    margin-bottom: 4px;
}
.audio-widget__title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.audio-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}
.btn-play-clean {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
}
.btn-play-clean:hover {
    transform: scale(1.08);
    background: var(--primary-focus);
}
.progress-bar-clean {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}
.time-clean {
    font-size: 0.8rem;
    color: var(--on-dark-muted);
    font-variant-numeric: tabular-nums;
    min-width: 90px;
    text-align: right;
}

/* Simulator */
.simulator-widget {
    border-radius: var(--radius-lg);
    padding: 36px;
}
.dark-tile .simulator-widget,
.chapter-dark .simulator-widget {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.sim-body-selector { display: flex; gap: 8px; margin-bottom: var(--space-md); }
.sim-body-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    color: var(--ink-muted);
    background: transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.sim-body-btn:hover {
    color: var(--ink);
    border-color: var(--ink);
}
.sim-body-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Dark theme button overrides */
.chapter-dark .sim-body-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--on-dark-muted);
}
.chapter-dark .sim-body-btn:hover {
    color: var(--on-dark);
    border-color: var(--on-dark);
}
.chapter-dark .sim-body-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.sim-slider-group { margin-bottom: var(--space-sm); }
.sim-slider-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.sim-slider-row label { font-size: 0.9rem; }
.sim-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
}
.sim-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--border); /* Visible solid light grey track */
    outline: none;
}
.chapter-dark .sim-slider {
    background: rgba(255,255,255,0.15); /* Translucent track on dark theme */
}
.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.sim-result-box {
    text-align: center;
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    background: var(--parchment);
    border: 1px solid var(--border-light);
}
.dark-tile .sim-result-box,
.chapter-dark .sim-result-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}
.sim-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
    color: var(--ink-muted);
}
.chapter-dark .sim-label {
    color: var(--on-dark-muted);
}
.sim-probability {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}
.sim-probability.high { color: var(--success); }
.sim-probability.medium { color: var(--warning); }
.sim-probability.low { color: var(--danger); }

.sim-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.08); /* Solid soft grey track for light backgrounds */
    border-radius: 4px;
    margin: 16px 0;
    overflow: hidden;
}
.chapter-dark .sim-bar {
    background: rgba(255, 255, 255, 0.15); /* Translucent track on dark backgrounds */
}
.sim-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
}
.sim-tip {
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.5;
}
.sim-tip strong {
    color: var(--ink);
}
.chapter-dark .sim-tip {
    color: var(--on-dark-muted);
}
.chapter-dark .sim-tip strong {
    color: var(--on-dark);
}
.sim-chart-wrap { margin-top: var(--space-md); }
.sim-chart-label { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 8px; display: block; }
.chapter-dark .sim-chart-label { color: var(--on-dark-muted); }
#sim-chart { width: 100%; height: 200px; }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.pricing-card--premium {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}
.pricing-card--premium:hover {
    box-shadow: 0 0 0 2px var(--primary), 0 8px 30px rgba(0,102,204,0.12);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
}

.pricing-card__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.pricing-card__price {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 8px;
}

.pricing-card__desc {
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: 24px;
}

.pricing-features {
    margin-bottom: 28px;
}
.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}
.pricing-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* Purchase form */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--canvas);
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* Sample list items */
.sample-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--canvas);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
}
.sample-item:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-hover);
}
.sample-item__icon { font-size: 1.5rem; flex-shrink: 0; }
.sample-item__info { flex: 1; }
.sample-item__title { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.sample-item__meta { font-size: 0.8rem; color: var(--ink-muted); }
.sample-item__audio {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* ── 5. HEADER & FOOTER ── */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}
.brand:hover {
    transform: scale(1.02);
}
.brand__temario { color: var(--ink); }
.brand__informatica { color: var(--primary); }
.brand__fp { color: var(--mascot-fur); }
.brand__es { color: var(--ink-light); font-weight: 500; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-muted);
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 6px 0;
}
.nav-links a:hover {
    color: var(--ink);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-pill);
}
.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header .btn--primary.btn--sm {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 22px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Footer (Premium Dark Theme) */
.footer {
    background: var(--dark-tile);
    color: var(--on-dark);
    padding: var(--space-xl) 0 var(--space-lg);
}
.footer .brand {
    color: #ffffff;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: var(--space-lg);
}
.footer-brand p {
    font-size: 0.9rem;
    color: var(--on-dark-muted);
    margin-top: 8px;
    line-height: 1.5;
}
.footer-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin-bottom: 12px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 0.9rem;
    color: var(--on-dark-muted);
    transition: color 0.2s;
    text-decoration: none;
}
.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    font-size: 0.8rem;
    color: var(--on-dark-muted);
}

/* ── 6. MASCOT INTEGRATION ── */

.mascot {
    max-width: 100%;
    height: auto;
}
.mascot--hero {
    max-width: 420px;
    filter: none;
    animation: none;
}
.mascot--sm {
    max-width: 200px;
    filter: drop-shadow(var(--shadow-product));
}
.mascot--xs {
    max-width: 120px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}
.mascot--aside {
    max-width: 160px;
    opacity: 0.92;
}
.mascot--center {
    margin: 0 auto;
    max-width: 220px;
}

/* ── 7. ANIMATIONS ── */

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

.fade-up, .fade-in, .fade-right, .fade-left {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4,0,0,1), transform 0.7s cubic-bezier(0.4,0,0,1);
}
.fade-up { transform: translateY(30px); }
.fade-in { transform: none; }
.fade-right { transform: translateX(-30px); }
.fade-left { transform: translateX(30px); }

.fade-up.visible, .fade-in.visible, .fade-right.visible, .fade-left.visible {
    opacity: 1;
    transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── 8. STRATEGY PAGE ── */

.strategy-text-wrap {
    max-width: 760px;
    margin: 0 auto;
    box-sizing: border-box;
}

.bg-white {
    background: #ffffff;
}

.chapter {
    scroll-margin-top: calc(var(--header-h) + 24px);
}
.chapter-number {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.chapter-number.accent { color: var(--primary); }
.chapter-number.danger { color: var(--danger); }
.chapter-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.chapter-lead {
    font-size: 1.05rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* Checklist sections */
.checklist-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 16px;
    margin-top: var(--space-md);
}

.editorial-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: var(--space-md);
}
.editorial-list li {
    padding-left: 0;
}
.editorial-list li strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}
.editorial-list li p {
    color: var(--ink-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Mistake cards */
.mistake-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: var(--space-md) 0; }
.mistake-card {
    background: var(--canvas);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.mistake-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.mistake-card__img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}
.mistake-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mistake-card:hover .mistake-card__img {
    transform: scale(1.05);
}
.mistake-card__content {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}
.mistake-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0;
    line-height: 1.35;
}
.mistake-card p {
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

/* Practice cards */
.practice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: var(--space-md) 0; }
.practice-card {
    background: var(--parchment);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform 0.2s;
}
.practice-card:hover { transform: scale(1.02); }
.practice-card__num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 12px;
}
.practice-card h4 { font-size: 1rem; margin-bottom: 6px; }
.practice-card p { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.5; }
.practice-card__tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(0,102,204,0.1);
    color: var(--primary);
}

/* Exam day tips */
.tip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Hero Section specific */
.hero {
    padding: 36px 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}
.hero .kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 102, 204, 0.07);
    border: 1px solid rgba(0, 102, 204, 0.16);
    border-radius: var(--radius-pill);
    color: var(--primary);
    width: fit-content;
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: -0.01em;
    font-size: 0.85rem;
}
.hero .display {
    margin-bottom: 20px;
}
.hero .section-desc {
    font-size: 1.15rem;
    max-width: 560px;
    margin-top: 0;
}
.hero .btn {
    margin-top: var(--space-md);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.text-primary {
    color: var(--primary);
}

.hero-top-row {
    align-items: center; /* Beautiful centered alignment */
}

.hero-top-row .mascot--hero {
    max-width: 380px; /* Scaled down slightly to provide breathing room and prevent overlapping */
    margin: 0 auto;
}


.hero-bullets {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 0;
    list-style: none;
    margin: 0;
    position: relative;
}

/* Glowing timeline connector line behind icons */
.hero-bullets::before {
    content: '';
    position: absolute;
    left: 37px; /* 16px padding-left of item + 21px (half of 42px icon) */
    top: 33px; /* vertical center of the first icon */
    bottom: 33px; /* vertical center of the last icon */
    width: 2px;
    background: linear-gradient(to bottom, 
        #ff3b30 0%, 
        #0066cc 30%, 
        #ff9f0a 65%, 
        #0066cc 100%
    );
    z-index: 1;
    opacity: 0.85;
}

/* Hero bullets item styling as micro-cards */
.hero-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 2;
    background: var(--canvas);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    border: 1px solid transparent;
}

.hero-bullet-item:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    border-color: var(--border-light);
}

.hero-bullet-icon-container {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.hero-bullet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--canvas);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid var(--border-light);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    flex-shrink: 0;
}

.hero-bullet-item:hover .hero-bullet-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-bullet-icon--danger {
    border-color: rgba(255, 59, 48, 0.4);
    color: #ff3b30;
    background: #fff5f5;
}
.hero-bullet-icon--primary {
    border-color: rgba(0, 102, 204, 0.4);
    color: #0066cc;
    background: #f0f7ff;
}
.hero-bullet-icon--success {
    border-color: rgba(52, 199, 89, 0.4);
    color: #34c759;
    background: #f2fbf4;
}
.hero-bullet-icon--warning {
    border-color: rgba(255, 159, 10, 0.4);
    color: #ff9f0a;
    background: #fffaf2;
}

.hero-bullet-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 6px;
}

.hero-bullet-content span {
    font-size: 1.12rem;
    line-height: 1.5;
    color: var(--ink-muted);
    font-weight: 450;
}

.hero-bullet-content strong {
    color: var(--ink);
    font-weight: 600;
}

/* Hero Bottom Grid and CTA Card */
.hero-bottom-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    margin-top: 44px;
    align-items: stretch;
}

.hero-bullets-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Premium blue gradient CTA card */
.hero-cta-card {
    background: linear-gradient(135deg, #0071e3 0%, #002574 100%);
    border: none;
    border-radius: var(--radius-md);
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 12px 30px rgba(0, 37, 116, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Subtle gloss glass shine overlay */
.hero-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 80%);
    pointer-events: none;
}

.cta-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.cta-card-desc {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
    margin-bottom: 6px;
}

.cta-card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

/* White button on blue gradient */
.hero-cta-card .btn--primary {
    background: #ffffff;
    color: #0055d4;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 37, 116, 0.15);
}

.hero-cta-card .btn--primary:hover {
    background: #f5f5f7;
    color: #0044b3;
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.hero-cta-card .btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    font-weight: 500;
}

.hero-cta-card .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    transform: scale(1.03);
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* Author credit in strategy */
.author-credit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: var(--space-md);
}
.author-credit img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}
.author-credit__name { font-weight: 600; font-size: 0.9rem; }
.author-credit__role { font-size: 0.8rem; color: var(--ink-muted); }

/* Sidebar sample CTA */
.sidebar-cta {
    background: var(--parchment);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}
.sidebar-cta__price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ink);
    margin: 12px 0 8px;
}
.sidebar-cta__label {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-bottom: var(--space-md);
}

/* ── 9. RESPONSIVE ── */

@media (max-width: 768px) {
    :root {
        --space-xl: 3.5rem;
        --space-2xl: 5rem;
    }

    .split { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-bottom-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }

    .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }

    .mistake-grid { grid-template-columns: 1fr; }
    .practice-grid { grid-template-columns: 1fr; }
    .tip-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .hero .split { gap: var(--space-md); }
    .mascot--hero { max-width: 280px; margin: 0 auto; }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.2rem; }
    .menu-toggle { display: flex; }

    .header .btn--primary.btn--sm { display: none; }

    .stat-callout { flex-direction: column; text-align: center; }
    .stat-callout__mascot { margin-left: 0; }

    /* Muestras layout */
    .muestras-layout { grid-template-columns: 1fr !important; }
    .sidebar-cta { position: static; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: var(--space-xl) 0 var(--space-lg); }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .trust-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-num { font-size: 2rem; }
    .tabs { flex-wrap: wrap; }
    .audio-widget {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: center;
    }
    .audio-widget__cover {
        width: 72px;
        height: 72px;
        margin: 0 auto;
    }
    .audio-widget__title {
        white-space: normal;
        margin-bottom: 12px;
    }
    .audio-controls {
        gap: 12px;
    }
}

/* ── 10. MUESTRAS CATALOG LAYOUT & STYLES ── */

.sample-catalog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    padding-top: var(--space-md);
    padding-bottom: var(--space-xl);
}

.sample-catalog-main {
    width: 100%;
}

/* Temario & Muestras Tabs capsule style */
.temario-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-md);
    background: var(--parchment);
    padding: 5px;
    border-radius: var(--radius-pill);
    width: max-content;
    max-width: 100%;
    border: 1px solid var(--border-light);
}

.temario-tab {
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    color: var(--ink-muted);
    border: none;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    white-space: nowrap;
}

.temario-tab.active {
    background: var(--canvas);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.temario-tab:hover:not(.active) {
    color: var(--ink);
}

.temario-panel {
    display: none;
}

.temario-panel.active {
    display: block;
}

/* Temario Table — Premium Style with Sidebar */

/* Layout: Main + Sidebar */
.temario-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

.temario-main {
    min-width: 0;
}

.temario-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

/* Table wrapper */
.temario-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    background: var(--canvas);
}

.temario-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.temario-table thead th {
    text-align: left;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    padding: 14px 20px;
    background: var(--parchment);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 2;
}

.temario-table thead th:last-child {
    text-align: right;
    width: 140px;
}

.temario-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s ease, opacity 0.2s ease;
}

.temario-table tbody tr:hover {
    background: rgba(0, 102, 204, 0.02);
}

.temario-table tbody tr:last-child {
    border-bottom: none;
}

.temario-table tbody tr.hidden-row {
    display: none;
}

/* Column: Theme (Number + Title merged) */
.col-theme {
    padding: 14px 20px;
    font-size: 0.92rem;
    color: var(--ink);
    line-height: 1.5;
    vertical-align: top;
}

.theme-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--primary);
    background: rgba(0, 102, 204, 0.07);
    padding: 3px 8px;
    border-radius: 6px;
    margin-right: 10px;
    letter-spacing: 0.02em;
    min-width: 38px;
    text-align: center;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Column: Block tag */
.col-block-tag {
    padding: 14px 16px;
    vertical-align: top;
    white-space: nowrap;
}

.block-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* Block tag color palette */
.block-tag--hw       { background: #eef2ff; color: #4338ca; }
.block-tag--data     { background: #f3e8ff; color: #7c3aed; }
.block-tag--os       { background: #ecfdf5; color: #059669; }
.block-tag--prog     { background: #fff7ed; color: #c2410c; }
.block-tag--db       { background: #ecfeff; color: #0891b2; }
.block-tag--eng      { background: #fdf2f8; color: #be185d; }
.block-tag--net      { background: #eef2ff; color: #4f46e5; }

/* Column: Action */
.col-action {
    padding: 14px 20px;
    vertical-align: top;
    text-align: right;
}

.row-sample {
    background: rgba(0, 102, 204, 0.04);
}

.row-sample td:first-child {
    border-left: 3px solid var(--primary);
}

.row-sample:hover {
    background: rgba(0, 102, 204, 0.07) !important;
}

.btn-sample {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.15);
}

.btn-sample:hover {
    background: #0052a3;
    border-color: #0052a3;
    color: #ffffff;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
}

.btn-sample svg {
    flex-shrink: 0;
}

/* Sidebar filter card */
.filter-card {
    background: var(--canvas);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.filter-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 4px;
}

.filter-card__subtitle {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.block-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.block-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}

.block-filter:hover {
    background: var(--parchment);
}

.block-filter input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.block-filter__name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
}

.block-filter__count {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-muted);
    background: var(--parchment);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    min-width: 24px;
    text-align: center;
}

.filter-divider {
    height: 1px;
    background: var(--border-light);
    margin: 12px 0;
}

.filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.filter-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.filter-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.filter-btn--active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.filter-btn--active:hover {
    background: var(--primary-focus);
    border-color: var(--primary-focus);
}

/* Visible count badge */
.temario-visible-count {
    font-size: 0.82rem;
    color: var(--ink-muted);
    font-weight: 500;
    text-align: center;
    padding: 10px 0;
}

.temario-visible-count strong {
    color: var(--primary);
    font-weight: 700;
}

/* Temario utility classes */
.text-accent { color: var(--primary); }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.85rem; }
.pes-sai-legend { margin-top: 12px; }

/* Legacy bg/cta classes for temario page */
.bg-alt { background: var(--parchment); }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* Temario responsive */
@media (max-width: 1024px) {
    .temario-layout {
        grid-template-columns: 1fr;
    }
    .temario-sidebar {
        position: static;
        order: -1;
    }
    .block-filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .block-filter {
        padding: 6px 10px;
        background: var(--parchment);
        border-radius: var(--radius-pill);
        gap: 6px;
    }
    .block-filter__count {
        background: var(--canvas);
    }
    .filter-actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .temario-table .col-block-tag {
        display: none;
    }
    .temario-table thead th:nth-child(2) {
        display: none;
    }
    .temario-tabs {
        width: 100%;
        overflow-x: auto;
    }
    .temario-tab {
        font-size: 0.82rem;
        padding: 6px 14px;
    }
    .col-theme {
        padding: 12px 14px;
    }
    .col-action {
        padding: 12px 14px;
    }
}


/* Sample lists items */
.sample-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sample-list-item {
    background: var(--canvas);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sample-list-item a {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    width: 100%;
}

.sample-list-item:hover {
    transform: translateX(4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.sl-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--primary);
    background: rgba(0, 102, 204, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    min-width: 50px;
    text-align: center;
}

.sl-emoji {
    font-size: 1.25rem;
}

.sl-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.4;
}

.sl-badge {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-muted);
    background: var(--parchment);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.sl-audio {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(52, 199, 89, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Sidebar Muestras */
.sample-sidebar {
    width: 100%;
    min-width: 0;
}

.sidebar-sticky {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sidebar-card {
    background: var(--canvas);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.sidebar-card.promo {
    background: var(--parchment);
    border: none;
}

.sidebar-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
}

.sidebar-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-features li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sf-icon {
    font-size: 1.3rem;
    line-height: 1;
    margin-top: 2px;
}

.sidebar-features div strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}

.sidebar-features div p {
    font-size: 0.82rem;
    color: var(--ink-muted);
    line-height: 1.4;
}

/* CTA Sidebar Card */
.sidebar-card.cta {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid rgba(0, 102, 204, 0.15);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.04);
    text-align: center;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
}

.sidebar-card.cta h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    margin-top: 0;
    margin-bottom: 10px;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.sidebar-card.cta p {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.55;
    margin-bottom: 20px;
    margin-top: 0;
}

.sidebar-card.cta .btn-cta-sidebar {
    width: 100%;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, #0052a3 100%);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.sidebar-card.cta .btn-cta-sidebar:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.25);
    background: linear-gradient(135deg, var(--primary-focus) 0%, #005cb8 100%);
}

.sidebar-card.cta .btn-cta-sidebar:active {
    transform: translateY(0);
}

.sidebar-card.cta .btn-ghost-sidebar {
    width: 100%;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}

.sidebar-card.cta .btn-ghost-sidebar:hover {
    background: rgba(0, 102, 204, 0.05);
    border-color: var(--primary);
    color: var(--primary-focus);
}

/* Responsive catalog adjustments */
@media (max-width: 1024px) {
    .sample-catalog-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .sidebar-sticky {
        position: static;
        flex-direction: row;
        gap: 24px;
    }
    .sidebar-card {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .sidebar-sticky {
        flex-direction: column;
        gap: 16px;
    }
    
    .sample-list-item a {
        grid-template-columns: auto 1fr;
        gap: 8px 12px;
        padding: 14px 16px;
    }
    
    .sl-title {
        grid-column: 1 / -1;
        font-size: 0.9rem;
    }
    
    .sl-num {
        grid-row: 1;
        grid-column: 1;
    }
    
    .sl-emoji {
        display: none;
    }
    
    .sl-badge {
        grid-row: 1;
        grid-column: 2;
        justify-self: start;
    }
    
    .sl-audio {
        grid-row: 1;
        grid-column: 2;
        justify-self: end;
    }
}

/* Utility */
.mt-2 { margin-top: var(--space-sm); }
.mt-4 { margin-top: var(--space-md); }
.mt-8 { margin-top: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-md); }
.mb-6 { margin-bottom: var(--space-lg); }

/* ── 11. SECONDARY PAGE HERO ── */
.page-hero {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-hero--light {
    background: linear-gradient(180deg, var(--parchment) 0%, var(--canvas) 100%);
    border-bottom: 1px solid var(--border-light);
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-float-mascot {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.06));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 102, 204, 0.07);
    border: 1px solid rgba(0, 102, 204, 0.16);
    border-radius: var(--radius-pill);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: none;
    letter-spacing: -0.01em;
    align-self: flex-start;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-title i {
    font-style: italic;
    font-weight: 400;
    color: var(--ink-light);
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--ink-muted);
    letter-spacing: -0.01em;
    max-width: 680px;
}

.hero-subtitle strong {
    color: var(--ink);
}

@media (max-width: 768px) {
    .page-hero .hero-top-row {
        text-align: center;
    }
    .page-hero .hero-badge {
        align-self: center;
    }
    .page-hero .hero-title {
        font-size: 2.1rem;
    }
}

/* ── 12. SINGLE SAMPLE THEME PAGES LAYOUT & AUDIO PLAYER ── */

.sample-layout {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 48px;
    align-items: start;
    padding-top: var(--space-md);
    padding-bottom: var(--space-xl);
}

.sample-main {
    width: 100%;
}

.sample-breadcrumb {
    background: var(--parchment);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
    color: var(--ink-muted);
}

.sample-breadcrumb a {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
}

.sample-breadcrumb a:hover {
    color: var(--primary-focus);
}

.breadcrumb-sep {
    margin: 0 8px;
    color: var(--border);
}

.sample-header {
    margin-bottom: var(--space-md);
}

.sample-badge-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 24px;
}

.sample-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}

.sample-badge.free {
    background: rgba(0, 102, 204, 0.08);
    color: var(--primary);
}

.sample-badge.audio {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

/* ── 13. FULL-WIDTH PROMO SECTION BEFORE FOOTER ── */
.sample-promo-section {
    width: 100%;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    border-top: 1px solid rgba(0, 102, 204, 0.15);
    border-bottom: 1px solid rgba(0, 102, 204, 0.15);
    padding: 56px 0;
    margin-top: 64px;
    box-sizing: border-box;
}

.sample-promo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.sample-promo-top {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 48px;
    align-items: flex-start;
}

.promo-left h3 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ink);
    margin-top: 0;
    margin-bottom: 12px;
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.promo-left p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0;
    text-align: left;
}

.sdb-features-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
}

.sdb-features-grid li {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--ink-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.sdb-features-grid li strong {
    color: var(--ink);
    font-weight: 600;
}

.sdb-features-grid li span {
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.sample-promo-bottom {
    margin-top: 40px;
    border-top: 1px solid rgba(0, 102, 204, 0.1);
    padding-top: 32px;
}

.sdb-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 20px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 102, 204, 0.12);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.04);
    box-sizing: border-box;
    gap: 24px;
}

.sdb-cta-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.sdb-cta-info .sdb-box-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-muted);
}

.sdb-cta-info .sdb-subnote {
    font-size: 0.78rem;
    color: var(--ink-light);
    font-weight: 500;
}

.sdb-cta-button .btn-cta-bar {
    padding: 12px 32px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, #0052a3 100%);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.sdb-cta-button .btn-cta-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.3);
    background: linear-gradient(135deg, var(--primary-focus) 0%, #005cb8 100%);
}

.sdb-cta-button .btn-cta-bar:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
}

.sdb-cta-badge .sdb-note {
    font-size: 0.85rem;
    color: var(--ink-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sdb-box-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink-muted);
    margin-bottom: 2px;
}

.sdb-action .btn-cta {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, #0052a3 100%);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.sdb-action .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.3);
    background: linear-gradient(135deg, var(--primary-focus) 0%, #005cb8 100%);
}

.sdb-action .btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
}

.sdb-note {
    font-size: 0.85rem;
    color: var(--ink-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.sdb-subnote {
    font-size: 0.78rem;
    color: var(--ink-light);
    font-weight: 500;
    margin-top: -4px;
}

/* Audio Sidebar Card & Playlist Player */
.audio-sidebar-card {
    background: var(--dark-tile);
    color: var(--on-dark);
    border-radius: var(--radius-lg);
    border: none;
    overflow: hidden;
    box-shadow: var(--shadow-product);
}

.audio-playlist {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.playlist-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.playlist-header h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--on-dark);
    margin-bottom: 4px;
}

.playlist-count {
    font-size: 0.85rem;
    color: var(--on-dark-muted);
    font-weight: 500;
}

.playlist-tracks {
    display: flex;
    flex-direction: column;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.1);
}

/* Customize scrollbar for the playlist */
.playlist-tracks::-webkit-scrollbar {
    width: 6px;
}

.playlist-tracks::-webkit-scrollbar-track {
    background: transparent;
}

.playlist-tracks::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.playlist-tracks::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Track Button */
.track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--on-dark-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.track:last-child {
    border-bottom: none;
}

.track:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--on-dark);
}

.track.active {
    background: rgba(0, 102, 204, 0.15);
    color: var(--on-dark);
    font-weight: 600;
}

.track.playing {
    background: rgba(0, 102, 204, 0.25);
    color: #fff;
    font-weight: 600;
}

.track-play-icon {
    font-size: 0.8rem;
    color: var(--primary-focus);
    width: 16px;
    text-align: center;
}

.track-num {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    width: 18px;
    text-align: center;
}

.track.active .track-num {
    color: var(--primary-focus);
}

.track-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Player Bottom Bar */
.player-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-player-play {
    background: var(--primary);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0, 66, 132, 0.3);
}

.btn-player-play:hover {
    transform: scale(1.08);
    background: var(--primary-focus);
}

.player-progress {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.player-progress-fill {
    height: 100%;
    background: var(--primary-focus);
    border-radius: var(--radius-pill);
    width: 0%;
    transition: width 0.1s linear;
}

.player-time {
    font-size: 0.8rem;
    color: var(--on-dark-muted);
    min-width: 42px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Responsive individual sample page adjustments */
@media (max-width: 1024px) {
    .sample-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .sample-download-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 24px;
        gap: 24px;
    }
    .sdb-content p {
        text-align: center;
    }
    .sdb-features {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 12px;
    }
    .sdb-action {
        min-width: 100%;
    }
    
    /* Bottom promo responsive overrides */
    .sample-promo-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .sdb-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .sdb-action-bar {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 20px;
    }
    .sdb-cta-info {
        text-align: center;
    }
    .sdb-cta-button {
        width: 100%;
    }
    .sdb-cta-button .btn-cta-bar {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .sdb-cta-badge .sdb-note {
        justify-content: center;
    }
}

/* ── Chapter 1 Premium Story Cards ── */
.story-box {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.08) 0%, rgba(255, 59, 48, 0.03) 100%);
    padding: 28px 32px;
    border: 1.5px solid rgba(255, 59, 48, 0.22);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.story-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.07);
}

.strategy-pivot {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.08) 0%, rgba(52, 199, 89, 0.03) 100%);
    padding: 28px 32px;
    border: 1.5px solid rgba(52, 199, 89, 0.25);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.strategy-pivot:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(52, 199, 89, 0.12);
}

/* Horizontal layout: text left, score right */
.story-box--horizontal,
.strategy-pivot--horizontal {
    display: flex;
    align-items: center;
    gap: 32px;
}

.story-box__content {
    flex: 1;
    min-width: 0;
}

.story-box__title {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.story-box__text {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.story-box__score {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.story-box__score:hover {
    transform: scale(1.08);
}

.story-box__score--fail {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 2px solid rgba(255, 59, 48, 0.3);
}

.story-box__score--pass {
    background: linear-gradient(135deg, #f0fff4 0%, #dcffe4 100%);
    border: 2px solid rgba(52, 199, 89, 0.35);
}

.story-box__score-num {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.story-box__score--fail .story-box__score-num {
    color: var(--danger);
}

.story-box__score--pass .story-box__score-num {
    color: var(--success);
}

.story-box__score-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
}

/* Practice card icon */
.practice-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 102, 204, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: background 0.25s ease;
}

.practice-card:hover .practice-card__icon {
    background: rgba(0, 102, 204, 0.14);
}

/* Responsive spacing overrides for story cards */
@media (max-width: 768px) {
    .story-box, .strategy-pivot, .rubric-sheet {
        padding: 24px 18px;
    }
    .story-box--horizontal,
    .strategy-pivot--horizontal {
        flex-direction: column;
        text-align: center;
    }
    .story-box--horizontal ul,
    .strategy-pivot--horizontal ul {
        text-align: left;
    }
    .story-box__score {
        width: 80px;
        height: 80px;
    }
    .story-box__score-num {
        font-size: 1.5rem;
    }
}

/* Premium Score Badges */
.score-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--canvas);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    margin: 16px 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.score-badge:hover {
    transform: scale(1.02);
}
.score-badge__num {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.score-badge__label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* Rubric Sheet Styling */
.rubric-sheet {
    background: #fafafa;
    border: 1px dashed var(--primary);
    padding: 28px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono, monospace);
    font-size: 0.9rem;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.015);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rubric-sheet:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04), inset 0 2px 8px rgba(0,0,0,0.015);
}

/* Premium Practice Card List Styler */
.practice-card__list {
    margin: 12px 0 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ink-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.practice-card__list li {
    position: relative;
    padding-left: 16px;
}

.practice-card__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.1;
}

/* Theme bullet colors */
.practice-card.green-theme .practice-card__list li::before {
    color: var(--success);
}
.practice-card.yellow-theme .practice-card__list li::before {
    color: var(--warning);
}
.practice-card.blue-theme .practice-card__list li::before {
    color: var(--primary);
}






