/*
 * AprenderJavaScript — sistema visual 2.0
 * Capa de diseño incremental sobre style.css. No altera el contenido ni la lógica.
 * Tipografía: familias instaladas localmente por el visitante; sin llamadas a CDNs.
 * Objetivos: WCAG 2.2 AA, legibilidad, navegación por teclado y reflujo móvil.
 */
:root {
  --bg: #f7f9f8;
  --surface: #ffffff;
  --ink: #15272d;
  --muted: #4d6068;
  --line: #d9e4e3;
  --brand: #79dfd3;
  --accent: #126c60;
  --accent-soft: #e9f5f1;
  --green: #14664d;
  --red: #a3313c;
  --navy: #102129;
  --navy2: #192f39;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(17, 45, 51, .055);
  --font-text: "Lato", "Aptos", "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter Display", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-code: ui-monospace, "Cascadia Code", "SFMono-Regular", "Consolas", monospace;
  --space-xs: .5rem;
  --space-sm: .875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-section: clamp(4.75rem, 7.6vw, 7rem);
}
html { scroll-padding-top: 6.5rem; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4, .brand, .stat strong, .module-index, .feature-number {
  font-family: var(--font-display);
  font-weight: 750;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 5.1vw, 4.85rem); line-height: 1.075; letter-spacing: -.051em; }
h2 { font-size: clamp(1.95rem, 3.15vw, 3rem); line-height: 1.16; }
h3 { font-size: clamp(1.16rem, 1.5vw, 1.32rem); line-height: 1.3; }
p { line-height: 1.72; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.65; color: var(--muted); }
.muted,.feature p,.link-card p,.project-body p,.article p { color: var(--muted); }
.caps,.eyebrow { color: #4b605c; letter-spacing: .075em; font-size: .78rem; font-weight: 800; }
.eyebrow:before { height: 4px; width: 19px; background: #55b7af; }
.container { width: min(1176px, calc(100% - 64px)); }
.narrow { width: min(760px, calc(100% - 64px)); }
.page-pad { padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(5rem, 8vw, 7.5rem); }
.section { padding: var(--space-section) 0; }
.section-head { gap: 3rem; margin-bottom: 2.75rem; }
.section-head p { margin-top: 1.15rem; max-width: 56ch; font-size: 1.04rem; }
.section-white { background: #fff; }
.section-dark { background: var(--navy); }
.section-dark .section-head p { color: #c5d5dc; }
.section-dark .eyebrow { color: #79dfd3; }
:where(a,button,input,textarea,select,summary):focus-visible {
  outline: 3px solid #126c60;
  outline-offset: 4px;
}
.section-dark :where(a,button,summary):focus-visible,
.site-footer :where(a,button):focus-visible,
.lab :where(button,textarea):focus-visible {
  outline: 3px solid #79dfd3;
  outline-offset: 4px;
}
:where(a,button,input,textarea,select,summary) { -webkit-tap-highlight-color: transparent; }
button,select { min-height: 44px; }
:where(a,button) { touch-action: manipulation; }
:where(a:not([class]), .prose a, .article a, .ref-article a) { text-underline-offset: .18em; }
:where(code,pre,textarea.code-input,.hero-code,.ref-symptom) { font-family: var(--font-code); }
code { background: #eaf1f0; color: #203f41; }
.link,.prose a,.ref-links a,.ref-aside a,.project-body .link,.ref-card-foot { color: #126c60; }
.link:hover,.prose a:hover { text-decoration-thickness: 2px; }
/* Cabecera y navegación: menos ruido, estados claros, objetivos cómodos. */
.site-header {
  background: rgba(255,255,255,.975);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(15,45,54,.015);
}
.header-inner { min-height: 79px; gap: 1.5rem; }
.brand { font-size: 1.08rem; font-weight: 800; letter-spacing: -.047em; gap: .72rem; }
.brand-icon { transform: none; border-radius: 10px; width: 40px; height: 40px; }
.brand-icon span { transform: none; }
.brand .js { color: #1a676b; }
.site-nav { gap: .15rem; }
.site-nav a { min-height: 44px; display:inline-flex; align-items:center; font-size: .92rem; font-weight: 700; color: #425761; padding: .6rem .85rem; }
.site-nav a:hover,.site-nav a[aria-current="page"] { background: #eaf4f1; color: #15574f; }
.icon-btn { min-width: 44px; min-height: 44px; border-color: var(--line); background: #fff; }
.icon-btn:hover { background: #f2f8f6; border-color: #aec9bf; }
/* Portada: sobria, espaciosa; código integrado sin rotación decorativa. */
.hero {
  padding: clamp(5rem, 8vw, 8rem) 0 clamp(5.5rem, 8vw, 7.5rem);
  background: radial-gradient(ellipse 60% 65% at 90% 10%, #e5faf5 0, transparent 73%), #fff;
}
.hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(2.5rem, 5vw, 5.5rem); }
.hero h1 { max-width: 12.7ch; margin: 1.15rem 0 1.65rem; }
.hero .lead { max-width: 52ch; }
.hero .actions { margin-top: 2rem; }
.hero-proof { margin-top: 1.7rem; gap: .65rem 1.4rem; font-size: .92rem; }
.accent-highlight { background: linear-gradient(transparent 77%, rgba(121,223,211,.22) 0); }
.demo-shell { border-radius: 17px; transform: none; box-shadow: 0 24px 75px rgba(13,32,41,.17); background: #13232e; }
.window-top { background: #182c38; border-color: #324954; padding: .95rem 1.15rem; }
.window-title { color: #d5e1e6; }
.hero-code { font-size: .94rem; line-height: 1.85; padding: 2rem; }
.hero-demo-bottom { padding: 1.45rem 1.75rem; }
.demo-number { font-weight: 750; }
.mini-circle { width: 54px; height: 54px; border-radius: 12px; }
/* Botones — lenguaje discreto, colores con intención. */
.btn { min-height: 48px; padding: .78rem 1.3rem; border-radius: 10px; font-size: .96rem; font-weight: 800; box-shadow: none; }
.btn-primary { color: #171d19; background: var(--brand); box-shadow: none; }
.btn-primary:hover { background: #abeee7; }
.btn-outline { background: transparent; border-color: #b9caca; color: var(--ink); }
.btn-outline:hover { background: #f0f5f3; border-color: #779e95; }
.btn-blue { background: #126c60; }
.btn-blue:hover { background: #0a5149; }
.btn-dark { background: #12272e; }
.btn-dark:hover { background: #1c3b43; }
.btn-quiet { border-color: #c8d5d3; }
.btn-sm { min-height: 40px; padding: .6rem .9rem; }
/* Cards — ritmo editorial y superficie mínima. */
.grid-3,.grid-4 { gap: 1.25rem; }
.feature { padding: 2rem; border-color: var(--line); border-radius: var(--radius); box-shadow: none; }
.feature h3 { margin-bottom: .85rem; }
.feature p { font-size: .98rem; line-height: 1.65; }
.feature-number { width: 46px; height: 46px; margin-bottom: 1.8rem; background: #fff5be; color: #473b00; border-radius: 12px; }
.link-card { min-height: 242px; padding: 1.75rem; border-radius: var(--radius); border-color: var(--line); background: #fff; box-shadow: none; }
.link-card h3 { margin: 1.05rem 0 .85rem; }
.link-card p { font-size: .95rem; line-height: 1.6; }
.link-card small { color: #766000; font-size: .74rem; }
.link-card .arrow { color: #126c60; padding-top: 1.1rem; }
.link-card:hover,.link-card:focus-visible { transform: translateY(-2px); border-color: #8db6ad; box-shadow: var(--shadow); }
.numbers-row { margin-top: 3.5rem; padding-top: 2rem; gap: 2rem 4rem; }
.stat strong { font-size: 2.55rem; }
.stat span { font-size: .95rem; }
.modules-list { gap: .8rem; }
.module-link { background: #1a303a; border-color: #34505a; padding: 1.35rem 1.4rem; border-radius: 11px; min-height: 86px; }
.module-link:hover { background: #22404a; border-color: #82ada7; }
.module-index { width: 45px; height: 45px; background: #294651; border-radius: 10px; }
.module-link strong { font-size: 1rem; }
.module-link small { color: #c1d0d7; font-size: .86rem; }
.project-card { border-color: var(--line); border-radius: var(--radius); }
.project-art { height: 172px; }
.art-quiz { background:#f0edff; }
.art-tasks { background:#e5f5ee; }
.art-catalog { background:#fcf3d4; }
.art-api { background:#e5f2f6; }
.project-body { padding: 1.6rem; }
.project-body p { font-size: .96rem; line-height: 1.6; }
.promo { background: #79dfd3; border-radius: 16px; padding: clamp(2rem, 5vw, 4rem); }
.promo .caps { color: #564600; }
.promo p { font-size: 1.05rem; }
.site-footer { background: #102129; padding: 5rem 0 2.25rem; }
.footer-grid { gap: clamp(2rem, 4vw, 4rem); }
.site-footer h4 { color: #bbced3; letter-spacing: .07em; }
.site-footer a { color: #e0ecee; }
.footer-bottom { color: #b9cdd1; }
/* Cabeceras y lectura de artículos. */
.page-hero { padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(2.8rem, 5vw, 5rem); background: #fff; }
.page-hero h1 { max-width: 19ch; font-size: clamp(2.55rem, 4.65vw, 4.1rem); }
.page-hero .lead { max-width: 60ch; margin-top: 1.25rem; }
.crumb { color: #50656b; margin-bottom: 2rem; font-size: .88rem; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.lesson-layout { gap: clamp(1.7rem, 4vw, 4rem); }
.lesson-side { border-color: var(--line); border-radius: 13px; padding: 1.25rem; box-shadow: none; }
.side-links a { border-radius: 8px; padding: .68rem; }
.side-links a:hover,.side-links a.active { background: #e8f4f0; color: #155b53; }
.lesson-main { min-width: 0; }
.lesson-main h1 { font-size: clamp(2.65rem, 4.8vw, 4.35rem); line-height: 1.1; margin-bottom: 1.25rem; }
.lesson-submeta { margin: 1.7rem 0 2.3rem; }
.article, .prose { font-size: 1.05rem; line-height: 1.8; }
.article p,.prose p,.prose li { color: #344c54; line-height: 1.82; }
.article h2,.prose h2 { margin: 3rem 0 1.1rem; font-size: clamp(1.62rem, 2.2vw, 2rem); line-height: 1.22; }
.article h3,.prose h3 { margin-top: 2rem; font-size: 1.35rem; }
.article li,.prose li { margin-bottom: .45rem; }
.prose { background: #fff; padding: clamp(1.8rem,4vw,3rem); border: 1px solid var(--line); border-radius: 16px; }
.note { border-radius: 12px; padding: 1.35rem 1.55rem; }
.note.soft { background: #eaf5f1; border-color: #bad9cf; }
.note.warn { background: #fff7d7; border-color: #d7bd5c; }
.pill { border-color: #cedfdc; }
.course-module { border-color: var(--line); border-radius: 12px; overflow: hidden; }
.course-module>summary { padding: 1.45rem 1.65rem; min-height: 80px; }
.course-module>summary:hover { background: #f4f9f7; }
.course-lessons a { padding: .85rem 1.35rem; min-height: 48px; }
.course-lessons a:hover { background: #f1f8f5; }
.course-toolbar { margin-bottom: 2rem; }
/* Laboratorios: priorizar legibilidad de código y acciones. */
.lab { border-radius: 14px; box-shadow: 0 10px 30px rgba(14,39,50,.11); margin: 2.35rem 0; background: #11232c; }
.lab-head { background: #1a313c; border-color: #34505a; padding: 1rem 1.25rem; gap: .8rem; }
.lab-label { color: #f0f6f8; }
.lab button { min-height: 43px; }
.lab button.run { background: #79dfd3; color: #18231e; }
.lab button.run:hover { background: #abeee7; }
.code-input { font-family: var(--font-code); font-size: .91rem; line-height: 1.7; background: #11232c; color: #e8f5f7; }
.lab-out { background: #0e2029; }
.editor-tabs button { min-height: 44px; }
.editor-tabs button[aria-pressed="true"], .editor-tabs button[aria-selected="true"] { color: #abeee7; }
.output { color: #e4f0f1; }
.search-input, select.input, .project-demo input, .project-demo select { min-height: 48px; border-color: #b9cfca; border-radius: 10px; }
.search-input:focus-visible,.project-demo input:focus-visible { outline: 3px solid #126c60; outline-offset: 2px; }
.filter-controls button,.demo-actions button { min-height: 44px; }
/* Referencias: búsqueda, fichas y diagnóstico. */
.ref-hero { padding: clamp(3.25rem, 5.5vw, 5.4rem) 0 clamp(2.5rem, 4vw, 4.25rem); background: #fff; border-color: var(--line); }
.ref-hero .crumb { margin-bottom: 1.8rem; }
.ref-hero h1 { font-size: clamp(2.55rem, 4.5vw, 4.2rem); margin: 1.15rem 0 1.1rem; }
.ref-hero .lead { font-size: clamp(1.06rem,1.4vw,1.23rem); max-width: 61ch; line-height: 1.65; }
.ref-main { padding: clamp(2.3rem, 4.3vw, 4.2rem) 0 clamp(5rem, 8vw, 7.5rem); }
.ref-search-controls { padding: 1.6rem 1.8rem; border-color: var(--line); border-radius: 14px; box-shadow: none; }
.ref-search-controls label { font-weight: 750; font-size: .96rem; }
.ref-search-field { background: #f9fbfa; border-color: #aebfbd; border-radius: 10px; }
.ref-search-field:focus-within { border-color: #126c60; box-shadow: 0 0 0 3px #126c6029; }
.ref-search-field input { min-height: 48px; font-size: 1.02rem; }
.ref-search-field button { min-height: 38px; color: #134f46; background: #e2f1ec; }
.ref-search-field button:hover { background: #cce8df; }
.ref-count { font-size: .88rem; }
.ref-filters { gap: .65rem; margin: 1.6rem 0 2.4rem; }
.ref-filters button { min-height: 44px; font-size: .89rem; background: #fff; border-color: #bdcfcb; color: #41565c; padding: .6rem 1rem; }
.ref-filters button.selected { background: #17483f; border-color: #17483f; color: #fff; }
.ref-filters button:hover { background: #eaf5f1; border-color: #8bb6a8; color: #134d45; }
.ref-filters button.selected:hover { background: #235b50; color: #fff; }
.ref-group { margin-top: 3rem; }
.ref-group-head { padding-bottom: 1rem; margin-bottom: 1rem; border-color: var(--line); }
.ref-group-head h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.ref-group-head>span { color: #4c646c; font-size: .84rem; }
.ref-grid { gap: .85rem; }
.ref-card { border-color: var(--line); padding: 1.35rem 1.5rem; gap: .55rem; border-radius: 12px; }
.ref-card:hover,.ref-card:focus-within { border-color: #8fb6a8; box-shadow: 0 10px 25px rgba(15,48,49,.045); }
.ref-kind { color: #506971; }
.ref-env { background: #eaf5f3; color: #225950; border-color: #bcdcd3; }
.ref-card-link { color: var(--ink); }
.ref-card-link strong { font-size: 1.11rem; }
.ref-card-link span,.ref-card-foot { color: #126c60; }
.ref-card p { font-size: .95rem; color: #4a5d64; line-height: 1.65; }
.ref-symptom { background: #f0f6f4; color: #244747!important; }
.ref-diagnosis { background: #eaf5f1; border-color: #c4e0d7; padding: 1.7rem 2rem; }
.ref-diagnosis ol { color: #294d48; }
.ref-detail-layout { gap: clamp(2rem, 4vw, 4.5rem); padding-top: 3.5rem; }
.ref-article { font-size: 1.055rem; line-height: 1.8; }
.ref-article>p { color: #344c54; }
.ref-article h2 { margin: 3rem 0 1.05rem; font-size: clamp(1.55rem,2.15vw,1.95rem); }
.ref-answer { background: #fffbed; border-color: #d2b600; border-left-width: 4px; padding: 1.15rem 1.4rem; border-radius: 0 10px 10px 0; line-height: 1.68; }
.ref-answer-error { background: #eaf5f1; border-color: #126c60; }
.ref-code { background: #11232c; border-color: #2b4751; border-radius: 12px; }
.ref-code-title { background: #1c343f; border-color: #2f4c56; color: #eaf3f5; }
.ref-code pre { font-size: .9rem; line-height: 1.78; }
.ref-note { background: #fffae6; border-color: #e0c969; color: #473d25; }
.ref-links { border-color: var(--line); }
.ref-links a,.ref-aside a { color: #126c60; }
.ref-links .ref-source { color: #4d666d; }
.ref-aside { background: #fff; border-color: var(--line); top: 110px; }
/* Expansión de elementos sin comprometer accesibilidad del texto. */
:where(.link-card,.module-link,.ref-card,.project-card,.feature) { min-width: 0; }
:where(.article,.prose,.ref-article) :where(p,li,blockquote) { max-width: 72ch; }
:where(.article,.prose,.ref-article) :where(pre,.ref-code) { max-width: 100%; }
:where(pre,.ref-code pre) { overflow-x: auto; }
/* 860 px: pasar a estructuras de una columna sin encoger lectura. */
@media (max-width: 860px) {
  .container,.narrow { width: min(100% - 48px, 1176px); }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 3.5rem; }
  .hero { padding: 5.25rem 0 5.5rem; }
  .section { padding: 5.2rem 0; }
  .section-head { gap: 1.4rem; }
  .mobile-nav.open { padding: .5rem 0 1.1rem; border-top: 1px solid var(--line); }
  .mobile-nav a { padding: .7rem .9rem; min-height: 44px; border-radius: 8px; }
  .mobile-nav a:focus-visible { outline-offset: 0; }
  .ref-detail-layout { padding-top: 2.3rem; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .container,.narrow { width: calc(100% - 36px); }
  .header-inner { min-height: 67px; gap: .5rem; }
  .brand { font-size: .98rem; gap: .55rem; white-space: nowrap; }
  .brand-icon { width: 36px; height: 36px; }
  .menu-btn { min-width: 45px; min-height: 45px; font-size: .9rem; padding: 0 .65rem; }
  .hero { padding: 3.9rem 0 4.35rem; }
  .hero h1 { font-size: clamp(2.54rem, 10.2vw, 3.4rem); line-height: 1.085; margin: 1.1rem 0 1.4rem; max-width: 13.5ch; }
  .hero .lead { font-size: 1.06rem; line-height: 1.67; }
  .hero .actions { margin-top: 1.6rem; gap: .7rem; }
  .hero .actions .btn { width: 100%; min-height: 50px; }
  .hero-proof { gap: .5rem 1rem; font-size: .89rem; margin-top: 1.4rem; }
  .hero-demo { margin-top: 2.5rem; }
  .hero-code { padding: 1.3rem; font-size: .85rem; }
  .hero-demo-bottom { padding: 1.1rem; }
  .section { padding: 4.3rem 0; }
  .section-head { margin-bottom: 2rem; }
  .section-head p { font-size: 1rem; }
  .section-head .btn { margin-top: .4rem; }
  .grid-3,.grid-4,.modules-list { gap: .85rem; }
  .feature { padding: 1.45rem; }
  .feature-number { margin-bottom: 1.2rem; }
  .link-card { min-height: auto; padding: 1.5rem; }
  .link-card h3 { margin: .85rem 0 .65rem; }
  .numbers-row { gap: 1.4rem; padding-top: 1.7rem; margin-top: 2.3rem; }
  .stat strong { font-size: 2.35rem; }
  .module-link { min-height: 82px; padding: 1.05rem; gap: .85rem; }
  .module-index { min-width: 43px; height: 43px; }
  .project-art { height: 154px; }
  .project-body { padding: 1.55rem; }
  .promo { padding: 2.2rem 1.65rem; }
  .site-footer { padding-top: 4rem; }
  .footer-grid { gap: 2rem 1.2rem; }
  .page-hero { padding: 2.8rem 0 2.9rem; }
  .page-hero h1 { font-size: clamp(2.34rem, 9vw, 3rem); line-height: 1.1; }
  .page-hero .lead { font-size: 1.05rem; }
  .page-pad { padding: 2.65rem 0 5rem; }
  .crumb { margin-bottom: 1.45rem; }
  .lesson-main h1 { font-size: clamp(2.35rem, 9.3vw, 3rem); line-height: 1.11; }
  .article,.prose { font-size: 1.035rem; }
  .article h2,.prose h2 { margin: 2.55rem 0 1.05rem; font-size: 1.65rem; }
  .prose { padding: 1.6rem 1.3rem; }
  .note { padding: 1.25rem; }
  .lab { margin: 1.9rem 0; }
  .lab-head { padding: 1rem; }
  .lab-actions { gap: .5rem; }
  .lab-actions button { min-height: 44px; }
  .code-input,.lab-grid .code-input { font-size: .875rem; min-height: 245px; line-height: 1.75; padding: 1rem; }
  .editor-tabs button { min-height: 44px; }
  .ref-hero { padding: 2.55rem 0 2.75rem; }
  .ref-hero .crumb { margin-bottom: 1.4rem; }
  .ref-hero h1 { font-size: clamp(2.24rem, 8.75vw, 2.9rem); line-height: 1.1; }
  .ref-hero .lead { font-size: 1.04rem; line-height: 1.65; }
  .ref-main { padding: 2rem 0 5rem; }
  .ref-search-controls { padding: 1.2rem; }
  .ref-search-field input { font-size: 1rem; }
  .ref-filters { display: flex; flex-wrap: wrap; overflow: visible; margin: 1.3rem 0 2.1rem; padding: 0; gap: .55rem; }
  .ref-filters button { min-height: 44px; white-space: normal; font-size: .87rem; padding: .55rem .9rem; }
  .ref-group { margin-top: 2.7rem; }
  .ref-card { padding: 1.35rem; }
  .ref-detail-layout { padding-top: 2rem; padding-bottom: 5rem; }
  .ref-article { font-size: 1.025rem; }
  .ref-answer { font-size: 1.03rem; padding: 1rem 1.2rem; }
  .ref-code pre { font-size: .85rem; padding: 1rem!important; }
  .ref-article h2 { margin-top: 2.5rem; font-size: 1.6rem; }
  .ref-diagnosis { padding: 1.4rem; }
}
@media (max-width: 360px) {
  .container,.narrow { width: calc(100% - 30px); }
  .brand { font-size: .87rem; }
  .brand-icon { width: 33px; height: 33px; }
  .hero h1 { font-size: 2.36rem; }
  .ref-search-field>span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: .01ms!important; animation-duration: .01ms!important; }
  .btn:hover,.link-card:hover { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --line:#708d8d; --muted:#294249; --accent:#064d43; }
  .btn,.feature,.link-card,.ref-card,.course-module { border-width: 2px; }
  :where(a,button,input,textarea,select,summary):focus-visible { outline-width: 4px; }
}
@media (forced-colors: active) {
  .btn,.feature,.link-card,.ref-card,.module-link,.ref-filters button { border: 1px solid CanvasText; }
  :where(a,button,input,textarea,select,summary):focus-visible { outline: 3px solid Highlight; }
  .accent-highlight { background: transparent; text-decoration: underline; }
}
@media print {
  :root { --bg:#fff; --ink:#000; --muted:#333; }
  body { background:#fff; color:#000; }
  .prose { border: none; padding:0; }
  .ref-search-controls,.ref-filters { display:none; }
}
/* Los bloques de ejemplo largos deben desplazarse dentro del código, nunca toda la página. */
.ref-code-compare > div { min-width: 0; max-width: 100%; }
@media (max-width: 650px) {
  .ref-code-compare { grid-template-columns: minmax(0,1fr); }
}
/* Acciones prioritarias de lección y laboratorio: >=44 × 44 CSS px. */
.lesson-toc-toggle, .lab .lab-actions button { min-height: 44px; }
