/* Stronger jade and maize accents — scoped to the /aprender dashboard. */

/* ── Welcome banner (course hero) ───────────────────────────────────── */
.welcome-banner-course{background:radial-gradient(ellipse 70% 60% at 20% 30%,#fffde6,transparent 60%),linear-gradient(145deg,#eef6e6,#e6f1db);border:1px solid #d4e5c5;box-shadow:0 4px 24px #2a4e200a,0 1px 0 #c5d9b060;border-radius:22px}
.welcome-banner-course mark{background:linear-gradient(transparent 10%,#f9d85888 10% 90%,transparent 90%);border-radius:4px;padding:0 5px}
.welcome-banner-course .btn{background:linear-gradient(135deg,#248060,#1b6652);box-shadow:4px 4px 0 #b8d4c0,0 0 0 1px #1b665220;border:0}
.welcome-banner-course .btn:hover{transform:translateY(-2px);box-shadow:5px 6px 0 #a8c9b0;filter:none}
.hero-course-facts{color:#2a4a28;background:#ffffff60;border:1px solid #d0e2c0;padding:7px 12px;border-radius:30px;width:max-content}
.hero-course-facts i{background:#8aad70}
.course-eyebrow>span{background:linear-gradient(135deg,#8abf6e,#6a9e50)}
.course-language-sticker{box-shadow:0 4px 12px #2a4e2015,0 1px 0 #fff;border:1px solid #cfe0ba}
.hero-lesson-badge{box-shadow:0 8px 20px #2a4b2618;border:1px solid #d2e4c2}
.hero-lesson-badge>span{background:linear-gradient(135deg,#edf5e3,#e0efd4);box-shadow:inset 0 1px 0 #fff}
.course-photo-halo{background:radial-gradient(ellipse,#d4e8b5,#c8dfa8);border-color:#bad6a0;box-shadow:0 0 0 14px #d8e9c220}

/* ── Stat cards ──────────────────────────────────────────────────────── */
.stat-card{border-color:#ccddc5;border-top:3px solid #1b6652;background:linear-gradient(160deg,#ffffff,#f9fdf7);box-shadow:0 3px 14px #1b665208,0 1px 3px #1b665206;border-radius:14px}
.stat-card:nth-child(2){border-top-color:#c99320;background:linear-gradient(160deg,#fff,#fffcf5)}
.stat-card:nth-child(3){border-top-color:#217b76;background:linear-gradient(160deg,#fff,#f4fbfb)}
.stat-card strong{color:#132e22;font-size:20px}
.stat-card small{color:#4a6252;font-size:10px}
.small-icon.orange{background:linear-gradient(135deg,#fff3e1,#ffe9cb);color:#b87a26;box-shadow:0 2px 8px #b8782610}
.small-icon.green{background:linear-gradient(135deg,#e6f8ef,#d5f0e3);color:#2d8a5e;box-shadow:0 2px 8px #2d8a5e10}
.small-icon.purple{background:linear-gradient(135deg,#f1edff,#e7e0fc);color:#7460d9;box-shadow:0 2px 8px #7460d910}

/* ── Lesson cards ────────────────────────────────────────────────────── */
.lesson-card{background:#fff;border-color:#dae6d4;border-radius:16px;box-shadow:0 2px 10px #1b665208,0 1px 3px #1b665205;transition:transform .18s cubic-bezier(.22,1,.36,1),box-shadow .18s cubic-bezier(.22,1,.36,1)}
.lesson-card:hover{transform:translateY(-5px) scale(1.01);box-shadow:0 14px 36px #1b665218,0 4px 8px #1b66520c}
.lesson-glyph{text-shadow:2px 3px 0 #ffffff50,0 0 20px #ffffff20}
.lesson-badge{background:rgba(255,255,255,.92);color:#1a5438;border:1px solid rgba(255,255,255,.7);font-weight:800;letter-spacing:.8px;backdrop-filter:blur(4px)}
.lesson-number{color:#326b4e;font-weight:800;letter-spacing:1.2px}
.lesson-card h3{color:#172e22;font-weight:700;line-height:1.4}
.lesson-description{color:#526a5a}
.lesson-start{background:linear-gradient(135deg,#f3faf5,#eaf4ee);border:1px solid #c8dfc8;color:#2a6e4e;border-radius:9px;font-weight:700;transition:background .15s,transform .12s,box-shadow .12s;box-shadow:0 2px 0 #c0d8c0}
.lesson-start:hover{background:linear-gradient(135deg,#1b6652,#123f33);color:#fff;border-color:#1b6652;transform:translateY(-1px);box-shadow:0 3px 0 #0f3b30}
.lesson-start.completed{background:linear-gradient(135deg,#e4f5eb,#d8f0e2);color:#1a5a37;border-color:#8fc4a2;box-shadow:0 2px 0 #a8d4b8}
.lesson-start.premium-start{background:linear-gradient(135deg,#f1edff,#fff2d0);color:#8c6420;border-color:#d4aa58;box-shadow:0 2px 0 #c89a3c}
.lesson-start.premium-start:hover{background:linear-gradient(135deg,#7460d9,#d69a1c);color:#fff;border-color:#5a48c0;box-shadow:0 3px 0 #4030a0}
.lesson-card.is-current-lesson{border-color:#1b6652;box-shadow:0 0 0 2px #1b665222,0 4px 16px #1b665215}
.lesson-card.is-current-lesson .lesson-start{background:linear-gradient(135deg,#1b6652,#237d60);color:#fff;border-color:#1b6652;box-shadow:0 2px 0 #0f3b30}

/* ── Curriculum units ────────────────────────────────────────────────── */
.curriculum-unit{border-color:#c0d4ba;box-shadow:0 4px 16px #0f3b300d,0 1px 4px #0f3b300a;border-radius:16px}
.curriculum-unit>.curriculum-unit-heading,.curriculum-unit[open]>.curriculum-unit-heading{background:linear-gradient(115deg,#1d6e56 0%,#145244 55%,#0f3b30 100%);color:#fff;border-bottom-color:#2c765e;box-shadow:inset 0 1px 0 #ffffff14}
.curriculum-unit-copy h3{color:#fff;font-weight:700;letter-spacing:-.3px}
.curriculum-unit-copy p{color:#d8ece4}
.curriculum-unit-number{color:#f0b429;letter-spacing:1.5px;font-weight:800}
.curriculum-unit-icon{background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.8);box-shadow:0 2px 8px #00000018;color:#1b6652}
.curriculum-unit-score{background:linear-gradient(135deg,#f5be3a,#f0b429);color:#1a2e00;font-weight:800;box-shadow:0 2px 6px #f0b42930;border-radius:8px}
.curriculum-unit-heading .curriculum-chevron{filter:brightness(0) invert(1);opacity:.85}
.curriculum-unit-lessons{background:linear-gradient(180deg,#f2f7ef,#eef4ea);padding:18px}
.curriculum-unit-lessons .lesson-card{border-color:#c5d8bc;background:#fff;box-shadow:0 2px 8px #1b665208}
.curriculum-unit-lessons .lesson-card:nth-child(4n+1) .lesson-visual{background:linear-gradient(135deg,#2a8f6e 0%,#1b6652 60%,#124538 100%)}
.curriculum-unit-lessons .lesson-card:nth-child(4n+2) .lesson-visual{background:linear-gradient(135deg,#8870e0 0%,#7460d9 60%,#4a38b0 100%)}
.curriculum-unit-lessons .lesson-card:nth-child(4n+3) .lesson-visual{background:linear-gradient(135deg,#2a8f8a 0%,#217b76 60%,#154e4b 100%)}
.curriculum-unit-lessons .lesson-card:nth-child(4n+4) .lesson-visual{background:linear-gradient(135deg,#c48930 0%,#b47a27 60%,#8a5c1c 100%)}
.lesson-topic-medallion{background:rgba(255,255,255,.95);border:1px solid rgba(255,255,255,.8);box-shadow:0 4px 14px #082e3028,0 1px 0 #ffffff80}
.curriculum-unit-lessons .lesson-start,.lesson-card.is-current-lesson .lesson-start{background:linear-gradient(135deg,#1d6e56,#1b6652);color:#fff;border-color:#1b6652;font-weight:700;box-shadow:0 2px 0 #0f3b30}
.curriculum-unit-lessons .lesson-start:hover{background:linear-gradient(135deg,#145244,#0f3b30);box-shadow:0 3px 0 #082e23}
.curriculum-unit-lessons .lesson-start.completed{background:linear-gradient(135deg,#e4f5eb,#d8f0e2);color:#1a5a37;border-color:#8fc4a2;box-shadow:0 2px 0 #a8d4b8}
.curriculum-unit-lessons .lesson-start.premium-start{background:linear-gradient(135deg,#8870e0,#7460d9);color:#fff;border-color:#5a48c0;box-shadow:0 2px 0 #4030a0}
.curriculum-unit-lessons .lesson-start.premium-start:hover{background:linear-gradient(135deg,#9880e8,#7460d9);box-shadow:0 3px 0 #5a48c0}
.curriculum-unit-lessons .lesson-card h3{color:#142f23;font-weight:700}
.curriculum-unit-lessons .lesson-description,.curriculum-unit-lessons .lesson-meta{color:#485e4d}

/* ── Alphabet reference ──────────────────────────────────────────────── */
.alphabet-reference{background:linear-gradient(135deg,#f7c94a,#f0b429);border-color:#d49c1e;box-shadow:0 3px 12px #f0b42918;border-radius:14px}
.alphabet-reference strong{color:#1a3c24;font-weight:800}
.alphabet-reference small,.alphabet-reference-body>p,.alphabet-reference-body>small{color:#3a5231}
.alphabet-reference-grid>span{background:rgba(255,255,255,.92);color:#1a4d33;border-color:#b89a30;border-radius:8px;font-weight:700;box-shadow:0 2px 0 #c89a30,inset 0 1px 0 #fff;transition:transform .12s,box-shadow .12s}
.alphabet-reference-grid>span:hover{transform:translateY(-2px);box-shadow:0 4px 0 #c89a30}

/* ── Rail cards (goal, certificate) ─────────────────────────────────── */
.goal-card,.certificate-card{border-color:#b8ceb0;border-radius:17px;box-shadow:0 3px 14px #1b665208}
.goal-card{background:linear-gradient(160deg,#fff,#f7fdf9)}
.goal-card .rail-heading h2,.certificate-card h2{color:#172e22;font-weight:800}
.goal-ring{border-color:#d8eada;box-shadow:0 0 0 4px #f0f8f2}
.goal-ring.done{border-color:#88bd93;box-shadow:0 0 0 4px #e4f5ea}
.soft-label{background:linear-gradient(135deg,#e8f5ec,#dff0e4);color:#2a5e3e;border:1px solid #9dc8a8;font-weight:700;border-radius:8px}
.certificate-card{background:linear-gradient(160deg,#fcfbff,#f7f4ff);border-color:#dcd6f0}
.certificate-icon{color:#a090d2}
.mini-track span{background:linear-gradient(90deg,#9a84ce,#7b65b5)}
.certificate-preview-link{color:#8268aa;font-weight:600}

/* ── Practice tip ────────────────────────────────────────────────────── */
.practice-tip{background:linear-gradient(135deg,#1d6e56,#1b6652,#154a3c);border-radius:14px;box-shadow:0 3px 12px #1b665220;border:1px solid #2a7a62;padding:16px 14px}
.practice-tip p,.practice-tip strong,.practice-tip>span{color:#fff}
.practice-tip strong{font-weight:700}
.practice-tip p{color:#d0e8de}
.practice-tip>span{color:#f0b429;font-size:28px}
.practice-tip .ui-icon{color:#f0b429}

/* ── Quiz challenge dialog ───────────────────────────────────────────── */
.challenge-dialog{border:1px solid #dde8d6;border-radius:24px;box-shadow:0 30px 100px #0f2e2340,0 8px 24px #0f2e2318;background:linear-gradient(180deg,#fff,#fbfdf9)}
.challenge-dialog::backdrop{background:rgba(14,32,20,.55);backdrop-filter:blur(6px)}
.challenge-top{border-bottom:1px solid #edf2ea;padding-bottom:14px;margin-bottom:2px}
.close-button{background:linear-gradient(135deg,#f3f7f1,#edf3ea);border:1px solid #d8e4d2;border-radius:50%;box-shadow:0 2px 6px #1b665210;color:#5a7a60;transition:background .15s,transform .12s}
.close-button:hover{background:linear-gradient(135deg,#ffe4e6,#ffd6d8);color:#c05060;transform:scale(1.08)}
progress{accent-color:#1b6652;background:#e8f2ea;border-radius:10px;overflow:hidden}
progress::-webkit-progress-bar{background:#e8f2ea}
progress::-webkit-progress-value{background:linear-gradient(90deg,#1b6652,#2a9165)}

/* Rail con lecciones: ampliar el aside para que el currículo quepa */
.dashboard-grid{grid-template-columns:minmax(0,1fr) clamp(260px,26vw,380px)}.stats-grid>*{min-width:0}.dashboard-rail{grid-template-columns:minmax(0,1fr)}.dashboard-rail>*{min-width:0;max-width:100%}
.rail-lessons{margin-top:20px}
.rail-lessons .lesson-grid{grid-template-columns:1fr;gap:10px}
.rail-lessons .section-title{margin-bottom:12px}
@media(max-width:950px){.dashboard-grid{grid-template-columns:1fr}.dashboard-rail{display:block}}
#exercise h2{font-size:22px;line-height:1.45;color:#182f24}
.learn-word{background:linear-gradient(160deg,#eef8f2,#e6f4ec);border:1px solid #d0e9da;color:#1f6644;box-shadow:0 3px 12px #1b665210,inset 0 1px 0 #fff}
.learn-word-phrase{background:linear-gradient(160deg,#eef8f2,#e6f4ec);border:1px solid #d0e9da;color:#1f6644;box-shadow:0 3px 12px #1b665210}
.answer-choice{border:1px solid #d8e8dc;border-bottom:3px solid #d0e2d4;border-radius:13px;background:linear-gradient(160deg,#fff,#f8fdf9);transition:background .12s,border-color .12s,transform .1s;font-weight:600}
.answer-choice:hover{background:linear-gradient(160deg,#f0f9f4,#e8f5ef);border-color:#a8d4b8;transform:translateY(-1px)}
.answer-choice.selected{background:linear-gradient(160deg,#e4f5ec,#d8f0e4);border-color:#7abc96;border-bottom-color:#5aa87e;color:#1a5438}
.answer-choice span{background:linear-gradient(135deg,#f5f8f4,#eef3ec);border:1px solid #d4e4d4;border-radius:6px;color:#2d5038}
.answer-choice.selected span{background:linear-gradient(135deg,#c8e8d4,#b8dfc8);border-color:#7abc96;color:#2a6845}
.written-answer{background:linear-gradient(160deg,#f8fcf5,#f2f8ee);border:1px solid #c0d8b0;border-bottom:3px solid #aac89a;color:#3a6030;box-shadow:inset 0 2px 6px #1b665208}
.written-answer:focus{border-color:#6faa5a;box-shadow:inset 0 2px 6px #1b665208,0 0 0 3px #1b665215}
.record-button{background:linear-gradient(135deg,#f8f4ff,#f0eaff);border:1px solid #d8d0f0;color:#8060b8;border-radius:12px;box-shadow:0 2px 8px #7460d910}
.record-button.recording{background:linear-gradient(135deg,#fff4f5,#ffe8ea);border-color:#f0b8c0;color:#a0485a}
.result-medal{color:#e5b754;text-shadow:0 2px 8px #e5b75430}
.result-summary{background:linear-gradient(160deg,#f5f9f2,#eef5ea);border:1px solid #d4e4cc;border-radius:14px}
.result-list .incorrect{color:#b04060}
.learning-toast{background:linear-gradient(135deg,#1d3e2a,#263d31);box-shadow:0 8px 28px #0f2e2340,0 2px 8px #0f2e2320;border-radius:12px;border:1px solid #2d5240}

/* ── Quiz clock ──────────────────────────────────────────────────────── */
.quiz-clock{background:linear-gradient(135deg,#eaf6ed,#e0f2e7);border:1px solid #c5e4cf;color:#246643;border-radius:9px;font-weight:800;box-shadow:0 2px 6px #1b665210}
.quiz-clock.urgent{background:linear-gradient(135deg,#fff0ea,#ffe6e0);color:#b03832;border-color:#f0bab0}

/* ── Sound toggle ────────────────────────────────────────────────────── */
.quiz-sound-toggle{display:inline-flex;align-items:center;gap:5px;margin-left:auto;background:linear-gradient(135deg,#e4f0e8,#d8ece0);border:1px solid #90b89a;color:#1b4e36;border-radius:9px;padding:6px 8px;font-size:11px;white-space:nowrap;min-height:32px;box-shadow:0 2px 6px #1b665210}
.quiz-sound-toggle[aria-pressed="false"]{background:linear-gradient(135deg,#f4f6f2,#edf0eb);color:#526457;border-color:#bec8ba;box-shadow:none}
.quiz-sound-toggle .ui-icon{width:17px;height:17px}
.challenge-top #stepLabel{min-width:0;flex:1;color:#4a6252;font-weight:600}
@media(max-width:520px){.quiz-sound-toggle span{display:none}.quiz-sound-toggle{padding:6px}.challenge-top{gap:7px}}

/* ── Legibilidad global: texto oscuro y tamaño mínimo legible ───────── */
/* Textos de apoyo en tarjetas y secciones */
.lesson-description{color:#1e3528!important;font-size:12px!important}
.lesson-meta{color:#2a3e30!important;font-size:10px!important}
.lesson-number{color:#1e3528!important;font-size:10px!important}
.lesson-badge{color:#1e3528!important;font-size:9px!important}
.lesson-card h3{color:#0f2218!important;font-size:14px!important}
/* Stats */
.stat-card small{color:#1e3528!important;font-size:11px!important}
.stat-card strong{color:#0f2218!important}
/* Hero del curso */
.hero-course-facts{color:#1e3528!important;font-size:10px!important}
.welcome-banner-course p{color:#1e3528!important;font-size:12px!important}
/* Sección de lecciones */
.section-title p{color:#1e3528!important;font-size:11px!important}
.eyebrow{color:#1a3828!important;font-size:10px!important}
/* Rail lateral */
.goal-card p{color:#1e3528!important;font-size:12px!important}
.soft-label{color:#1a3828!important;font-size:10px!important}
.certificate-card p{color:#2a2a4a!important;font-size:12px!important}
.certificate-card>small{color:#2a2a4a!important;font-size:10px!important}
.certificate-disclaimer{color:#2a2a4a!important;font-size:10px!important}
.practice-tip p{color:#d8f0e4!important;font-size:11px!important}
/* Unidades del currículo */
.curriculum-unit-copy p{color:#d0ece4!important;font-size:11px!important}
.curriculum-unit-number{color:#c4b0f8!important;font-size:9px!important}
/* Panel de progreso */
.journey-unit{color:#d8ece4!important;font-size:11px!important}
.journey-unit-count{color:#d8ece4!important;font-size:10px!important}
.journey-course>span{color:#d8ece4!important;font-size:10px!important}
.journey-course>strong{color:#fff!important;font-size:11px!important}
/* Navegación */
.academy-nav a{font-size:13px!important}
.sidebar-caption{font-size:10px!important;color:#1e3528!important}
.sidebar-footer{font-size:10px!important;color:#1e3528!important}
/* Encabezado */
.header-location{font-size:11px!important;color:#1e3528!important}
.breadcrumb{color:#1e3528!important}
/* Pie de página */
.academy-footer{font-size:11px!important;color:#1e3528!important}
/* Quiz */
.challenge-top #stepLabel{color:#1e3528!important;font-size:12px!important}
.exercise-caption{color:#1e3528!important;font-size:10px!important}
.exercise-hint{color:#1e3528!important;font-size:13px!important}
.exercise-feedback{color:#1e3528!important;font-size:13px!important}
.quiz-sound-toggle[aria-pressed="false"]{color:#1e3528!important}
/* Viaje / journey step tags */
.journey-step-tags>span{font-size:10px!important}
.journey-status{font-size:9px!important}
/* Texto pequeño general sobre fondo blanco/claro */
.plan-label{color:#1e3528!important;font-size:10px!important}
.unit-pill{color:#1e3528!important;font-size:9px!important}
.lesson-objective{color:#1e3528!important;font-size:12px!important}
.lesson-source{color:#1e3528!important;font-size:11px!important}

/* ── Bordes visibles en cajas ────────────────────────────────────────── */
.stat-card,.lesson-card,.rail-card,.goal-card,.welcome-banner-course,.curriculum-unit,.curriculum-unit-lessons .lesson-card,.transaction-card,.membership-card,.plan-card,.certificate-verify-prompt,.trial-notice{border:1.5px solid #9fbfa8!important}
.stat-card{border-top:3px solid #1b6652!important}
.stat-card:nth-child(2){border-top-color:#c99320!important}
.stat-card:nth-child(3){border-top-color:#217b76!important}
.certificate-card{border:1.5px solid #b3a6dc!important}
.sidebar-premium{border:1.5px solid #c4b6ea!important}
.alphabet-reference{border:1.5px solid #c9921a!important}
.journey-panel{border:1.5px solid #0f3b30!important}
.lesson-card.is-current-lesson{border:2px solid #1b6652!important}
/* ── Lesson cards: compact horizontal layout ─────────────────────────── */
.curriculum-unit-lessons .lesson-card,.lesson-grid .lesson-card{position:relative!important;display:grid!important;grid-template-columns:92px 1fr!important;grid-template-rows:1fr!important;min-height:0!important;height:auto!important;overflow:hidden!important;padding:0!important}
.lesson-card .lesson-visual{position:static!important;height:auto!important;min-height:100%!important;width:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;border-radius:0!important}
.lesson-card .lesson-visual::before,.lesson-card .lesson-visual::after{display:none!important}
.lesson-card .lesson-glyph{position:static!important;transform:none!important;width:54px!important;height:54px!important;border-radius:16px!important;display:grid!important;place-items:center!important;margin:0!important}
.lesson-card .lesson-glyph img,.lesson-card .lesson-glyph svg{width:28px!important;height:28px!important}
.lesson-card .lesson-badge{position:absolute!important;top:12px!important;right:12px!important;left:auto!important;bottom:auto!important;font-size:10px!important;padding:3px 8px!important;border-radius:999px!important;background:#eef6f0!important;color:#1a5438!important;border:1px solid #cfe3d5!important}
.lesson-card .lesson-content{display:flex!important;flex-direction:column!important;gap:4px!important;padding:14px 16px 14px 16px!important;min-width:0!important}
.lesson-card .lesson-number{font-size:11px!important;margin:0!important;padding-right:70px!important}
.lesson-card h3{font-size:16px!important;line-height:1.3!important;margin:0!important}
.lesson-card .lesson-description{font-size:13.5px!important;line-height:1.45!important;margin:0 0 6px!important;flex:1 1 auto!important}
.lesson-card .lesson-meta{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:0 0 10px!important;font-size:12px!important}
.lesson-card .lesson-meta span{background:#f1f6f2!important;border-radius:999px!important;padding:2px 9px!important;color:#3d5546!important}
.lesson-card .lesson-start{margin:0!important;min-height:38px!important;height:38px!important;padding:0 14px!important;width:100%!important;font-size:14px!important;border-radius:10px!important}
.lesson-card:hover{transform:translateY(-3px)!important}
@media(max-width:520px){.curriculum-unit-lessons .lesson-card,.lesson-grid .lesson-card{grid-template-columns:70px 1fr!important}.lesson-card .lesson-glyph{width:44px!important;height:44px!important}}

/* ── Lesson cards v2: sin columna de icono, sin morado ───────────────── */
.curriculum-unit-lessons .lesson-card,.lesson-grid .lesson-card{grid-template-columns:1fr!important;border-top:4px solid #1b6652!important}
.lesson-card .lesson-visual{display:contents!important;background:none!important}
.lesson-card .lesson-glyph{display:none!important}
.curriculum-unit-lessons .lesson-card:nth-child(4n+2){border-top-color:#2a8f6e!important}
.curriculum-unit-lessons .lesson-card:nth-child(4n+3){border-top-color:#217b76!important}
.curriculum-unit-lessons .lesson-card:nth-child(4n+4){border-top-color:#b47a27!important}
.curriculum-unit-lessons .lesson-start.premium-start,.lesson-start.premium-start{background:linear-gradient(135deg,#c48930,#a86f22)!important;color:#fff!important;border-color:#8a5c1c!important;box-shadow:0 2px 0 #6e4815!important}
.curriculum-unit-lessons .lesson-start.premium-start:hover,.lesson-start.premium-start:hover{background:linear-gradient(135deg,#a86f22,#8a5c1c)!important}
.curriculum-unit-lessons .lesson-card,.lesson-grid .lesson-card{border-left:1.5px solid #8fb89e!important;border-right:1.5px solid #8fb89e!important;border-bottom:1.5px solid #8fb89e!important;border-top-width:5px!important;box-shadow:0 3px 10px #1b665214!important}
.curriculum-unit-lessons .lesson-card.is-current-lesson{border-left-color:#1b6652!important;border-right-color:#1b6652!important;border-bottom-color:#1b6652!important}
.curriculum-unit-lessons .lesson-card,.lesson-grid .lesson-card{border-left:2.5px solid #5f9a78!important;border-right:2.5px solid #5f9a78!important;border-bottom:2.5px solid #5f9a78!important;border-top-width:6px!important}
.curriculum-unit .curriculum-unit-heading .curriculum-unit-copy h3,.curriculum-unit .curriculum-unit-heading .curriculum-unit-copy p,.curriculum-unit .curriculum-unit-heading .curriculum-unit-number{color:#fff!important}

/* ── Certificate card: morado ───────────────────────────────────────── */
.rail-card.certificate-card{background:linear-gradient(150deg,#7b5fe0 0%,#5b3fc4 55%,#43299e 100%)!important;border:0!important;color:#fff!important;box-shadow:0 10px 28px #43299e40!important;position:relative;overflow:hidden}
.rail-card.certificate-card::after{content:"";position:absolute;width:180px;height:180px;right:-60px;top:-60px;border-radius:50%;background:radial-gradient(circle,#ffffff22,transparent 70%);pointer-events:none}
.rail-card.certificate-card h2,.rail-card.certificate-card p,.rail-card.certificate-card small,.rail-card.certificate-card .certificate-disclaimer,.rail-card.certificate-card #certificateCount,.rail-card.certificate-card .certificate-preview-link{color:#fff!important}
.rail-card.certificate-card .certificate-disclaimer{opacity:.78}
.rail-card.certificate-card .certificate-icon{background:#ffffff26!important;color:#fff!important;border:1px solid #ffffff40!important}
.rail-card.certificate-card .certificate-icon svg{color:#fff!important;stroke:#fff!important}
.rail-card.certificate-card .mini-track{background:#ffffff30!important}
.rail-card.certificate-card .mini-track span{background:linear-gradient(90deg,#ffd166,#f5b82e)!important}
.rail-card.certificate-card #certificateLink{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin-top:12px;border-radius:12px!important;border:0!important;background:linear-gradient(135deg,#ffd166,#f5b82e)!important;color:#3a2470!important;font-weight:800!important;box-shadow:0 4px 0 #c98f12,0 8px 18px #00000030!important;transition:transform .15s,box-shadow .15s}
.rail-card.certificate-card #certificateLink:hover{transform:translateY(-2px);box-shadow:0 6px 0 #c98f12,0 12px 22px #00000035!important}
.rail-card.certificate-card #certificateLink:active{transform:translateY(2px);box-shadow:0 2px 0 #c98f12!important}
.rail-card.certificate-card #certificateLink svg{stroke:#3a2470!important;color:#3a2470!important}
.curriculum-unit-lessons{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(270px,1fr))!important;gap:14px!important}
.lesson-card .lesson-number{padding-right:110px!important;white-space:nowrap}
.lesson-card .lesson-start{height:auto!important;min-height:42px!important;white-space:nowrap}
.lesson-card .lesson-content{padding:10px 12px!important;gap:2px!important}
.lesson-card .lesson-badge{top:8px!important;right:10px!important}
.lesson-card h3{font-size:15px!important}
.lesson-card .lesson-description{font-size:13px!important;margin:0 0 4px!important}
.lesson-card .lesson-meta{margin:0 0 6px!important;gap:4px!important;font-size:11.5px!important}
.lesson-card .lesson-meta span{padding:1px 8px!important}
.lesson-card .lesson-start{min-height:34px!important;font-size:13.5px!important}
.curriculum-unit-lessons{gap:10px!important}
.curriculum-unit-heading .curriculum-unit-icon{display:none!important}
.curriculum-unit-heading{gap:10px!important;padding:14px 16px!important}
.lesson-card h3,.curriculum-unit-copy h3,.plan-intro h3,.section-title h1,.section-title h2,.learning-auth-card h2{letter-spacing:0!important;word-spacing:.12em!important}
.lesson-card h3{font-weight:700!important}

/* Lección aprobada: cerrada hasta terminar todas */
.lesson-start.done-closed{background:#eef1ee!important;color:#6b7a71!important;border-color:#d5ddd6!important;box-shadow:none!important;cursor:not-allowed;opacity:.85}

/* Cajas de estadísticas: bordes laterales e inferior más gruesos (el superior de color se queda igual) */
#learnStats .stat-card{border-left-width:3px!important;border-right-width:3px!important;border-bottom-width:3px!important;border-left-style:solid!important;border-right-style:solid!important;border-bottom-style:solid!important;border-left-color:#2f6b4c!important;border-right-color:#2f6b4c!important;border-bottom-color:#2f6b4c!important}
#learnStats .stat-card{background:#edf6ef!important}#learnStats .stat-card:nth-child(2){background:#fdf5e3!important}#learnStats .stat-card:nth-child(3){background:#eaf5f4!important}

/* Conversación y ordenar frases (2026-11-27) */
.dialogue{display:flex;flex-direction:column;gap:.35rem;margin:1rem 0}
.dialogue-line{max-width:85%;padding:.7rem 1rem;border-radius:1rem;font-size:1.15rem;font-weight:600;margin:0}
.dialogue-them{align-self:flex-start;background:#eef2ff;color:#1e1b4b;border-bottom-left-radius:.2rem}
.dialogue-me{align-self:flex-end;background:#dcfce7;color:#14532d;border-bottom-right-radius:.2rem;margin-top:.5rem}
.dialogue-gloss{font-size:.85rem;opacity:.7;margin:0 .4rem}
.dialogue-gloss:nth-of-type(2){align-self:flex-start}.dialogue-gloss:nth-of-type(4){align-self:flex-end}
.order-built{min-height:3.4rem;display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;padding:.6rem;border:2px dashed #cbd5e1;border-radius:.8rem;margin:1rem 0 .6rem}
.order-bank{display:flex;flex-wrap:wrap;gap:.45rem}
.order-tile{padding:.5rem .8rem;border-radius:.6rem;border:2px solid #cbd5e1;background:#fff;color:#0f172a;font-weight:600;font-size:1rem;cursor:pointer}
.order-tile.placed{background:#e0f2fe;border-color:#38bdf8}
.order-tile:disabled{opacity:.3;cursor:default}
.order-placeholder{opacity:.6;font-size:.9rem}

/* Imágenes de lección y preguntas de unir */
.match-board { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 14vw, 120px); margin: 14px 0; }
.match-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.match-col { display: grid; gap: 10px; align-content: start; }
.match-item { min-height: 48px; padding: 8px 12px; border: 2px solid #1b6652; border-radius: 12px; background: #fff; color: #10261b; font-weight: 800; font-size: 16px; cursor: pointer; }
.match-item.selected { outline: 3px solid #f5b82e; }

.blank-sentence { font-size: 24px; font-weight: 800; text-align: center; margin: 12px 0; color: #10261b; }
.drag-slot { min-height: 56px; display: grid; place-items: center; margin: 14px auto; max-width: 360px; border: 3px dashed #1b6652; border-radius: 14px; color: #3a4e44; font-weight: 700; padding: 8px; }
.drag-slot.filled { border-style: solid; background: #e7f2eb; color: #10261b; font-size: 20px; }
.order-tile.selected { outline: 3px solid #f5b82e; }
.circle-choice > span:first-child { display: inline-block; width: 26px; height: 26px; border: 3px solid #1b6652; border-radius: 50%; background: #fff; }
.circle-choice.selected > span:first-child { background: radial-gradient(circle, #1b6652 55%, #fff 60%); }

/* Imagen compacta: junto a la palabra al estudiar, y baja en el quiz */
.lesson-picture { margin: 8px auto; width: min(100%, 230px); text-align: center; }
.lesson-picture img { width: 100%; height: 130px; object-fit: cover; border-radius: 14px; border: 3px solid #1b6652; background: #eef5f0; display: block; }
.lesson-picture-credit { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.2; color: #3a4e44; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.learn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; margin: 6px 0; }
.learn-row .learn-word { margin: 0; display: grid; place-items: center; min-height: 130px; }
.learn-row .lesson-picture { margin: 0; width: 100%; }
@media (max-width: 460px) { .learn-row { grid-template-columns: 1fr; } .learn-row .learn-word { min-height: 84px; } .lesson-picture img { height: 110px; } }
#exercise .match-board { margin: 8px 0; }
.drag-slot { margin: 8px auto; min-height: 48px; }
.blank-sentence { margin: 6px 0; }
.match-item { min-height: 42px; }
.learn-row:has(.lesson-picture[hidden]) { grid-template-columns: 1fr; }

.lesson-picture { margin-bottom: 4px; }

.hint-button { margin: 4px 0 0; width: 100%; font-weight: 800; }
.hint-button.used { opacity: .75; }

/* Nombre de la marca en el menú: «Aprender q’eqchi’» cabe en una línea sin chocar con el botón de cerrar. */
.academy-sidebar .academy-brand{font-size:19px!important;letter-spacing:-.4px;gap:9px}
.academy-sidebar .academy-brand>span{white-space:nowrap}
@media(max-width:1000px){.academy-sidebar .academy-brand{font-size:18px!important;right:64px}}
