/* =====================================================================
   Diseccionando Bitcoin — sistema de diseño 2026
   Se carga DESPUÉS del <style> de cada página: redefine tokens y
   unifica tipografía, navegación, cabeceras y bloques de contenido.
   ===================================================================== */

:root {
  --black: #000000;
  --surface: #0d0d0e;
  --surface-2: #161618;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --bone: #f5f5f7;
  --ash: #a1a1a6;     /* 8,2:1 sobre #000 · 7:1 sobre #161618 (AA) */
  --ash-dim: #8a8a8f; /* 6,1:1 sobre #000 · 5,3:1 sobre #161618 (AA) */
  --orange: #f7931a;
  --ember: #e8590c;

  /* tokens heredados de las páginas */
  --bg-primary: var(--black);
  --bg-secondary: var(--surface);
  --bg-card: var(--surface);
  --border: var(--line);
  --text-primary: var(--bone);
  --text-secondary: var(--ash);
  --text-dim: var(--ash-dim);
  --btc-orange: var(--orange);

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --mono-ui: var(--font); /* las etiquetas antiguas en monoespaciada pasan a Archivo */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: 1120px;
}

html { scroll-behavior: smooth; overflow-x: clip; }
/* Ninguna decoración puede crear scroll horizontal (clip no rompe position: sticky) */
html body { overflow-x: clip; }
html body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Decoración antigua fuera: el negro es el lienzo */
.glow-orb, .glow-orb-2, #btcBg { display: none !important; }

/* Titulares: Archivo expandida, compacta y con aire */
html body h1, html body h2, html body h3,
.section-title, .page-hero h1, .content-section h2 {
  font-family: var(--font);
  font-stretch: 112%;
  letter-spacing: -0.03em;
  font-weight: 750;
}
html body h3 { font-stretch: 112%; letter-spacing: -0.02em; font-weight: 700; }
html body p { font-weight: 400; }

/* Etiquetas de sección: texto normal en naranja, sin mayúsculas ni monoespaciada */
html body .section-label, html body .page-label {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--orange);
  background: none;
  border: 0;
  padding: 0;
}
.section-label .dot { display: none; }

/* Las animaciones de entrada genéricas desaparecen: el contenido siempre visible */
html body .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Navegación: barra de vidrio fina ---------- */
html body nav:not(.lesson-nav) {
  position: fixed; top: 0; left: 0; right: 0;
  height: 56px; padding: 0 max(20px, calc((100vw - 1240px) / 2));
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
html body nav .logo { font-family: var(--font); font-stretch: 112%; font-weight: 800; letter-spacing: -0.02em; font-size: 1.02rem; }
html body nav .logo-symbol, html body nav .logo-btc { color: var(--orange); }
html body .nav-links a, html body .nav-drop-btn {
  font-family: var(--font); font-size: 0.86rem; font-weight: 500; color: rgba(245,245,247,.8);
  letter-spacing: 0;
}
html body .nav-links a:hover, html body .nav-drop-btn:hover { color: #fff; }
html body .nav-drop-menu {
  background: rgba(22, 22, 24, 0.92);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
html body .lang-btn { font-family: var(--font); border-radius: 999px; }
html body .lang-btn.active { background: var(--orange); color: #000; border-color: var(--orange); }
#scrollProgress { height: 2px !important; background: linear-gradient(90deg, var(--ember), var(--orange)) !important; }
html body .mobile-menu { background: rgba(0,0,0,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
html body .mobile-menu a { font-family: var(--font); font-stretch: 112%; font-weight: 700; font-size: 1.5rem; color: var(--bone); }
html body .mob-section-label { font-family: var(--font); text-transform: none; letter-spacing: 0; color: var(--orange); font-size: .9rem; }

/* ---------- Cabecera de página: escena que se aleja al hacer scroll ---------- */
html body .page-hero, html body .page-header {
  min-height: 74vh;
  max-width: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  margin: 0;
  position: relative;
}
html body .page-hero > *, html body .page-header > * {
  transform: translate3d(0, calc(var(--p, 0) * -60px), 0) scale(calc(1 - var(--p, 0) * .08));
  opacity: calc(1 - var(--p, 0) * 1.4);
  will-change: transform, opacity;
}
html body .page-hero h1, html body .page-header h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  max-width: 16ch;
  font-stretch: 110%;
  margin: 18px auto 28px;
}
html body .page-hero p, html body .page-header p {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55; color: var(--ash); max-width: 38em; margin: 0 auto;
}
html body .page-hero::after, html body .page-header::after {
  content: ''; position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px;
  background: linear-gradient(var(--orange), transparent);
  opacity: calc(1 - var(--p, 0) * 3);
}

/* ---------- Secciones de contenido ---------- */
html body .content-section, html body .section {
  max-width: var(--wrap);
  padding-left: 24px; padding-right: 24px;
}
html body .content-section { padding-bottom: 140px; }
html body .content-section h2, html body .section h2, html body .section-title {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  max-width: 18ch;
  font-stretch: 108%;
  margin-bottom: 40px;
}
/* Titulares que se "encienden" al cruzar la pantalla (lo controla db.js) */
html body [data-lit] {
  color: color-mix(in srgb, var(--bone) calc(25% + var(--lit, 1) * 75%), var(--ash-dim));
}

html body .content-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 56px);
}
html body .content-block p, html body .content-section p { font-size: 1.08rem; line-height: 1.75; color: var(--ash); }
html body .content-block strong, html body .content-section strong { color: var(--bone); }

/* Tarjetas de todas las páginas: superficie plana, radio grande, sin sombra */
html body .book-card, html body .ref-card, html body .myth-item, html body .tool-card, html body .level-card,
html body .country-card, html body .stat-box, html body .metric-card, html body .pillar-card, html body .qn-card,
html body .term-card, html body .glos-card, html body .news-card, html body .price-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: none;
}

/* Botones */
html body .btn-primary, html body .btn-pay, html body .nav-cta {
  background: var(--orange); color: #000; border-radius: 999px; font-family: var(--font); font-weight: 700;
}
html body .btn-secondary, html body .btn-ghost {
  border-radius: 999px; font-family: var(--font);
}

/* CTA final y correo */
html body .cta-section { padding: 160px 24px; text-align: center; }
html body .cta-section h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; margin: 16px auto 24px; max-width: 14ch; }
html body .email-pill { border-radius: 999px; }

/* Pie */
html body footer {
  border-top: 1px solid var(--line);
  font-family: var(--font);
  color: var(--ash-dim);
  padding: 32px max(24px, calc((100vw - 1240px) / 2));
}
html body .footer-left { font-family: var(--font); }

/* Datos de máquina en monoespaciada (precios, bloques, hashes) */
.mono, code, kbd, #btc-price, .mhi-value, #block-height, #btc-mined, .ln-address, .slab-hex, .code-box { font-family: var(--mono) !important; letter-spacing: -0.01em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html body .page-hero > *, html body .page-header > * { transform: none !important; opacity: 1 !important; }
  html body [data-lit] { color: var(--bone); }
}
@media (max-width: 768px) {
  html body .page-hero, html body .page-header { min-height: 78vh; padding-top: 110px; }
  html body .content-section { padding-bottom: 90px; }
  html body .cta-section { padding: 110px 20px; }
}

/* ---------- Ticker de precio de BTC en el menú ---------- */
html body nav .nav-price {
  margin: 0 auto 0 16px; display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.78rem; color: rgba(245,245,247,.85);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
}
html body nav .nav-price[hidden] { display: none; }
html body nav .nav-price-c { font-size: 0.7rem; color: rgba(245,245,247,.7); }
html body nav .nav-price-c.up { color: #5fd38d; }
html body nav .nav-price-c.down { color: #ff7a6b; }
@media (max-width: 1100px) { html body nav .nav-price-c { display: none; } }
@media (max-width: 768px) {
  html body nav .nav-price { margin-left: 10px; font-size: 0.72rem; padding: 3px 8px; }
}
@media (max-width: 400px) { html body nav .nav-price { margin-left: 6px; padding: 2px 6px; } html body nav .logo { font-size: .9rem; } }

/* =====================================================================
   [B] 2026-11-03 · Sistema unificado de tarjetas y botones
   Hover con profundidad y brillo naranja, foco visible y contraste AA.
   (Sección independiente, colocada aquí y no al final para que no choque
   con la sección [A] de transiciones, que se añade al final del archivo.)
   ===================================================================== */
:root {
  --card-lift: -3px;
  --card-glow: 0 18px 44px rgba(0, 0, 0, .6), 0 0 0 1px rgba(247, 147, 26, .38), 0 0 36px rgba(247, 147, 26, .12);
  --focus-ring: 0 0 0 2px #000, 0 0 0 4px var(--orange);
  --ash-aa: #9a9aa0; /* texto atenuado con contraste AA (>= 4.5:1 sobre #000 y #0d0d0e) */
}

/* Tarjetas */
html body :is(.book-card, .ref-card, .myth-item, .tool-card, .level-card, .country-card, .stat-box, .metric-card, .pillar-card, .qn-card,
  .term-card, .glos-card, .news-card, .seg-card, .com-card, .perspective-card, .step-card, .risk-card, .dr-card, .compare-card,
  .reason-card, .pay-card, .exchange-card, .support-card, .model-card, .lock-card, .hx-card, .card-featured) {
  background-color: var(--surface);
  border-radius: 24px;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
html body a:is(.qn-card, .tool-card, .news-card, .book-card, .ref-card, .exchange-card, .card-featured, .pay-card) { color: inherit; text-decoration: none; }
@media (hover: hover) {
  html body :is(.book-card, .ref-card, .myth-item, .tool-card, .level-card, .country-card, .stat-box, .metric-card, .pillar-card, .qn-card,
    .term-card, .glos-card, .news-card, .seg-card, .com-card, .perspective-card, .step-card, .risk-card, .dr-card, .compare-card,
    .reason-card, .pay-card, .exchange-card, .support-card, .model-card, .lock-card, .hx-card, .card-featured):hover {
    transform: translate3d(0, var(--card-lift), 0);
    border-color: rgba(247, 147, 26, .45);
    background-color: var(--surface-2);
    box-shadow: var(--card-glow);
  }
  html body a:is(.qn-card, .tool-card, .news-card, .book-card, .ref-card, .exchange-card, .card-featured, .pay-card):hover { --card-lift: -6px; }
}
html body :is(.book-card, .ref-card, .tool-card, .qn-card, .news-card, .exchange-card, .card-featured, .pay-card, .myth-item):focus-within,
html body a:is(.qn-card, .tool-card, .news-card, .book-card, .ref-card, .exchange-card, .card-featured, .pay-card):focus-visible {
  border-color: var(--orange); box-shadow: var(--focus-ring), 0 14px 36px rgba(0, 0, 0, .5); outline: none;
}
html body :is(.qn-card, .tool-card, .news-card, .book-card, .ref-card):active { transform: translate3d(0, -1px, 0) scale(.99); transition-duration: .1s; }

/* Botones principales: relleno naranja con degradado, brillo y barrido de luz */
html body :is(.btn-primary, .btn-pay, .btn-solid, .dca-btn, .hx-cta, .nav-cta) {
  background: linear-gradient(180deg, #ffa53a, var(--orange) 55%, #ea8210);
  color: #000; border: 0; border-radius: 999px; font-family: var(--font); font-weight: 700;
  position: relative; overflow: hidden; isolation: isolate; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 18px rgba(247, 147, 26, .22);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
html body :is(.btn-primary, .btn-pay, .btn-solid, .dca-btn, .hx-cta, .nav-cta)::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
@media (hover: hover) {
  html body :is(.btn-primary, .btn-pay, .btn-solid, .dca-btn, .hx-cta, .nav-cta):hover:not(:disabled) {
    transform: translateY(-2px); color: #000; filter: saturate(1.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 12px 32px rgba(247, 147, 26, .42), 0 0 0 4px rgba(247, 147, 26, .16);
  }
  html body :is(.btn-primary, .btn-pay, .btn-solid, .dca-btn, .hx-cta, .nav-cta):hover:not(:disabled)::after { transform: translateX(120%); }
}
html body :is(.btn-primary, .btn-pay, .btn-solid, .dca-btn, .hx-cta, .nav-cta):active:not(:disabled) { transform: translateY(0) scale(.97); transition-duration: .08s; }
html body :is(.btn-pay, .dca-btn):disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }

/* Botones secundarios y de filtro: contorno que se enciende en naranja */
html body :is(.btn-secondary, .btn-ghost, .btn-soft, .filter-btn, .tip-btn, .tab-btn, .pow-btn, .hv-btn, .refresh-btn) {
  border-radius: 999px; font-family: var(--font); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, color .25s, background-color .25s;
}
html body :is(.btn-secondary, .btn-ghost, .btn-soft, .filter-btn, .tip-btn.ghost, .tab-btn, .pow-btn, .hv-btn, .refresh-btn):not(.active):not(.is-active):not([aria-selected="true"]):not([aria-pressed="true"]) { color: var(--bone); border-color: var(--line-strong); }
@media (hover: hover) {
  html body :is(.btn-secondary, .btn-ghost, .btn-soft, .filter-btn, .tip-btn, .tab-btn, .pow-btn, .hv-btn, .refresh-btn):hover:not(:disabled) {
    border-color: var(--orange); color: #fff; background-color: rgba(247, 147, 26, .1);
    transform: translateY(-2px); box-shadow: 0 10px 26px rgba(247, 147, 26, .2);
  }
}
html body :is(.btn-secondary, .btn-ghost, .btn-soft, .filter-btn, .tip-btn, .tab-btn, .pow-btn, .hv-btn, .refresh-btn):active:not(:disabled) { transform: scale(.97); transition-duration: .08s; }
html body :is(.filter-btn, .tab-btn).active, html body :is(.filter-btn, .tab-btn)[aria-selected="true"] { background: var(--orange); color: #000; border-color: var(--orange); }

/* Foco visible y consistente (teclado): anillo naranja con separación negra */
html body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none; box-shadow: var(--focus-ring); border-radius: inherit;
}
html body :is(.btn-primary, .btn-pay, .btn-solid, .dca-btn, .hx-cta, .nav-cta):focus-visible { box-shadow: var(--focus-ring), 0 6px 18px rgba(247, 147, 26, .3); }
html body :is(.btn-primary, .btn-pay, .btn-solid, .dca-btn, .hx-cta, .nav-cta, .btn-secondary, .btn-ghost, .filter-btn, .lang-btn, .nav-drop-btn, .nav-search-btn):focus-visible { border-radius: 999px; }
html body a:not([class]):focus-visible { border-radius: 4px; }
html body input:focus-visible, html body select:focus-visible, html body textarea:focus-visible { border-color: var(--orange); }

/* Contraste AA: el gris más tenue (#5c5c61, ~3:1) pasa a un gris legible */
html body footer, html body footer a, html body .footer-left { color: var(--ash-aa); }
html body footer a:hover { color: var(--orange); }
html body :is(.filter-btn, .tab-btn):not(.active) { color: var(--ash-aa); }

@media (prefers-reduced-motion: reduce) {
  html body :is(.book-card, .ref-card, .myth-item, .tool-card, .level-card, .country-card, .stat-box, .metric-card, .pillar-card, .qn-card,
    .term-card, .glos-card, .news-card, .seg-card, .com-card, .perspective-card, .step-card, .risk-card, .dr-card, .compare-card,
    .reason-card, .pay-card, .exchange-card, .support-card, .model-card, .lock-card, .hx-card, .card-featured,
    .btn-primary, .btn-pay, .btn-solid, .dca-btn, .hx-cta, .nav-cta, .btn-secondary, .btn-ghost, .btn-soft, .filter-btn, .tip-btn, .tab-btn, .pow-btn, .hv-btn, .refresh-btn),
  html body :is(.btn-primary, .btn-pay, .btn-solid, .dca-btn, .hx-cta, .nav-cta)::after { transition: none !important; }
  html body :is(.book-card, .ref-card, .myth-item, .tool-card, .level-card, .country-card, .stat-box, .metric-card, .pillar-card, .qn-card,
    .term-card, .glos-card, .news-card, .seg-card, .com-card, .perspective-card, .step-card, .risk-card, .dr-card, .compare-card,
    .reason-card, .pay-card, .exchange-card, .support-card, .model-card, .lock-card, .hx-card, .card-featured,
    .btn-primary, .btn-pay, .btn-solid, .dca-btn, .hx-cta, .nav-cta, .btn-secondary, .btn-ghost, .btn-soft, .filter-btn, .tip-btn, .tab-btn, .pow-btn, .hv-btn, .refresh-btn):is(:hover, :active) { transform: none !important; }
}
/* Botones de marca (comprar): conservan su color */
html body .btn-primary.btn-hodl { background: #0C87F7; box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 6px 18px rgba(12, 135, 247, .25); }
html body .btn-primary.btn-kraken { background: #7B61FF; box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 6px 18px rgba(123, 97, 255, .25); }
@media (hover: hover) {
  html body .btn-primary.btn-hodl:hover:not(:disabled) { box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 12px 32px rgba(12, 135, 247, .45), 0 0 0 4px rgba(12, 135, 247, .18); }
  html body .btn-primary.btn-kraken:hover:not(:disabled) { box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 12px 32px rgba(123, 97, 255, .45), 0 0 0 4px rgba(123, 97, 255, .18); }
}
/* ===== fin [B] ===== */

/* =====================================================================
   Menú superior 2026-10-28: cabecera que se compacta, mega-menús con
   icono + descripción, indicador deslizante, botón Curso y paleta ⌘K.
   ===================================================================== */
html body nav:not(.lesson-nav) { height: 68px; transition: height .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease); z-index: 1000; }
html body nav.nav-compact:not(.lesson-nav) { height: 52px; background: rgba(0, 0, 0, .86); box-shadow: 0 10px 40px rgba(0, 0, 0, .55); }
html body nav .logo { transition: transform .35s var(--ease), font-size .35s var(--ease); transform-origin: left center; }
html body nav.nav-compact .logo { transform: scale(.94); }
html body .nav-links.nav-desktop { position: relative; gap: 4px; }
html body .nav-links.nav-desktop > a:not(.nav-cta), html body .nav-links.nav-desktop .nav-drop-btn {
  position: relative; z-index: 1; padding: 9px 13px; border-radius: 999px; line-height: 1;
}
html body .nav-links.nav-desktop > a.is-active, html body .nav-links.nav-desktop .nav-drop-btn.is-active { color: #fff; }
html body .nav-links.nav-desktop > a.is-active::after, html body .nav-links.nav-desktop .nav-drop-btn.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: -9px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 10px var(--orange);
}
/* Pastilla que se desliza bajo el elemento señalado */
.nav-pill {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; border-radius: 999px; pointer-events: none;
  background: rgba(255, 255, 255, .08); opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .25s;
}
.nav-pill.on { opacity: 1; }

/* Mega-menú */
html body .nav-drop-menu {
  display: block; visibility: hidden; opacity: 0; pointer-events: none; top: calc(100% + 14px);
  min-width: 340px; padding: 10px; border-radius: 18px; transform: translateX(-50%) translateY(8px) scale(.98);
  transition: opacity .22s var(--ease), transform .28s var(--ease), visibility 0s .28s;
}
html body .nav-dropdown:hover .nav-drop-menu, html body .nav-dropdown:focus-within .nav-drop-menu {
  visibility: visible; opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0) scale(1);
  transition: opacity .22s var(--ease), transform .28s var(--ease), visibility 0s; animation: none;
}
html body .nav-drop-menu::before { display: none; }
html body .nav-drop-menu a {
  display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 12px; white-space: normal; font-weight: 600; font-size: .92rem; color: var(--bone);
  transition: background .2s, transform .2s var(--ease);
}
html body .nav-drop-menu a:hover, html body .nav-drop-menu a:focus-visible { background: rgba(247, 147, 26, .1); color: #fff; padding-left: 12px; transform: translateX(3px); }
html body .nav-drop-menu a::before {
  content: attr(data-ico); grid-row: 1 / span 2; width: 38px; height: 38px; display: grid; place-items: center; font-size: 1.1rem;
  border-radius: 11px; background: linear-gradient(145deg, rgba(247, 147, 26, .22), rgba(247, 147, 26, .05)); border: 1px solid rgba(247, 147, 26, .25);
}
html body .nav-drop-menu a::after { content: attr(data-desc); grid-column: 2; font-size: .78rem; font-weight: 400; color: var(--ash); line-height: 1.35; margin-top: 2px; }
html body .nav-drop-menu a[aria-current="page"] { background: rgba(247, 147, 26, .08); }
html body .nav-drop-menu a[aria-current="page"]::before { background: var(--orange); border-color: var(--orange); }

/* Curso ⚡ destacado */
html body .nav-links .nav-cta.nav-cta-curso {
  position: relative; padding: 9px 18px; color: #000 !important; background: var(--orange) !important; margin-left: 6px; font-size: .84rem; box-shadow: 0 0 0 0 rgba(247, 147, 26, .5);
  animation: navPulse 3.2s var(--ease) infinite; transition: transform .2s var(--ease);
}
html body .nav-links .nav-cta.nav-cta-curso:hover { transform: translateY(-1px) scale(1.04); color: #000; }
@keyframes navPulse { 0%, 70% { box-shadow: 0 0 0 0 rgba(247, 147, 26, .5); } 100% { box-shadow: 0 0 0 14px rgba(247, 147, 26, 0); } }

/* Botón de búsqueda → paleta de comandos */
html body .nav-search-btn.nav-cmdk {
  width: auto; height: 34px; padding: 0 10px 0 12px; gap: 8px; display: inline-flex; align-items: center; border-radius: 999px;
  color: var(--ash); background: rgba(255, 255, 255, .05); font-family: var(--font); font-size: .78rem;
}
html body .nav-cmdk svg { width: 14px; height: 14px; }
html body .nav-cmdk kbd { font-family: var(--mono) !important; font-size: .68rem; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--ash); }
html body .nav-cmdk:hover { color: #fff; border-color: var(--orange); }
#scrollProgress { box-shadow: 0 0 12px rgba(247, 147, 26, .7); }

@media (max-width: 1180px) { html body .nav-cmdk kbd, html body .nav-cmdk .nav-cmdk-t { display: none; } html body .nav-search-btn.nav-cmdk { padding: 0 11px; } }
@media (max-width: 1060px) { html body .nav-links.nav-desktop > a[href="calculadora.html"], html body nav .nav-price { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html body .nav-links .nav-cta.nav-cta-curso { animation: none; }
  html body nav:not(.lesson-nav), .nav-pill, html body .nav-drop-menu { transition: none; }
}

/* =====================================================================
   [A] 2026-11-03 · Transiciones entre páginas y aparición escalonada
   (sección independiente: no mezclar con la sección [B] de tarjetas/botones)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html body nav:not(.lesson-nav) { view-transition-name: db-nav; }
  ::view-transition-group(root) { animation-duration: .4s; animation-timing-function: var(--ease); }
  ::view-transition-old(root) { animation: db-vt-out .22s var(--ease) both; }
  ::view-transition-new(root) { animation: db-vt-in .38s var(--ease) both; }
  ::view-transition-group(db-nav) { animation-duration: 0s; }
  @keyframes db-vt-out { to { opacity: 0; transform: translateY(-6px); } }
  @keyframes db-vt-in { from { opacity: 0; transform: translateY(14px); } }

  /* Aparición escalonada: db.js añade .db-rv (oculto) y luego .db-in (visible) */
  html body .db-rv {
    transition: opacity .7s var(--ease), transform .8s var(--ease) !important;
    transition-delay: calc(var(--i, 0) * 70ms) !important;
  }
  html body .db-rv:not(.db-in) { opacity: 0 !important; transform: translate3d(0, 28px, 0) scale(.985) !important; }
  html body .db-rv.db-in { opacity: 1 !important; transform: none !important; }
}
/* ===== fin [A] ===== */

/* =====================================================================
   Pie 2026-10-29: mapa del sitio en columnas, datos en vivo, lema y
   aportación Lightning. El HTML lo aplica tools/apply_footer.py.
   ===================================================================== */
html body footer {
  display: block; position: relative; text-align: left; overflow: hidden; margin-top: 40px;
  padding: 72px max(24px, calc((100vw - 1240px) / 2)) 28px;
  background: radial-gradient(900px 340px at 12% 0, rgba(247, 147, 26, .09), transparent 70%), #000;
  border-top: 1px solid var(--line);
}
html body footer::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange) 30%, var(--ember) 70%, transparent); opacity: .7;
}
.ft-top { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
html body .ft-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; color: var(--bone); text-decoration: none; }
.ft-logo-sym { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--orange); color: #000; font-weight: 800; }
.ft-logo-b { color: var(--orange); }
.ft-motto {
  margin: 22px 0 8px; font-family: var(--font); font-stretch: 112%; font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem); background: linear-gradient(100deg, #fff 30%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ft-tag { margin: 0 0 22px; color: var(--ash); font-size: .9rem; line-height: 1.5; max-width: 34ch; }
.ft-live { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ft-live li { display: flex; flex-direction: column; gap: 2px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); min-width: 96px; }
.ft-live-l { font-size: .68rem; color: var(--ash); }
.ft-live-v { font-size: .86rem; color: var(--bone); white-space: nowrap; }
.ft-live-v.up { color: #5fd38d; }
.ft-live-v.down { color: #ff7a6b; }
.ft-h { margin: 0 0 16px; font-family: var(--font); font-stretch: 100%; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
html body .ft-col a {
  position: relative; display: inline-block; padding: 5px 0; color: rgba(245, 245, 247, .82); font-size: .93rem; text-decoration: none;
  transition: color .2s, transform .25s var(--ease);
}
html body .ft-col a::before { content: ''; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--orange); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--ease); }
html body .ft-col a:hover, html body .ft-col a:focus-visible { color: #fff; transform: translateX(6px); }
html body .ft-col a:hover::before, html body .ft-col a:focus-visible::before { opacity: 1; transform: scale(1); }
html body .ft-col a[aria-current="page"] { color: var(--orange); }

/* Aportación Lightning: banda ancha bajo las columnas */
.ft-ln {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px 24px; align-items: center;
  padding: 20px 24px; border-radius: 20px; border: 1px solid rgba(247, 147, 26, .28);
  background: linear-gradient(120deg, rgba(247, 147, 26, .14), rgba(247, 147, 26, .03) 60%);
}
.ft-ln .ft-h { margin: 0; color: var(--orange); }
.ft-ln-text { margin: 0; color: rgba(245, 245, 247, .8); font-size: .9rem; line-height: 1.45; }
.ft-ln-addr {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; cursor: pointer;
  color: var(--bone); background: rgba(0, 0, 0, .45); border: 1px solid var(--line-strong); font-size: .82rem; transition: border-color .2s, transform .2s var(--ease);
}
.ft-ln-addr:hover { border-color: var(--orange); transform: translateY(-1px); }
.ft-ln-a { overflow-wrap: anywhere; text-align: left; }
.ft-ln-c { font-family: var(--font); font-weight: 700; font-size: .74rem; padding: 6px 12px; border-radius: 999px; background: var(--orange); color: #000; white-space: nowrap; }
html body .ft-ln-more { color: var(--orange); font-size: .86rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
html body .ft-ln-more:hover { text-decoration: underline; text-underline-offset: 4px; }

.ft-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
}
html body footer .footer-left { font-size: .78rem; color: var(--ash-dim); }
html body footer .footer-right { display: flex; gap: 22px; flex-wrap: wrap; }
html body footer .footer-right a { color: var(--ash); font-size: .8rem; text-decoration: none; }
html body footer .footer-right a:hover { color: var(--orange); }

@media (max-width: 1100px) {
  .ft-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
  .ft-ln { grid-template-columns: 1fr auto; }
  .ft-ln .ft-h, .ft-ln-text { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  html body footer { padding-top: 52px; }
  .ft-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .ft-ln { grid-template-columns: 1fr; padding: 18px; }
  .ft-ln-addr { justify-content: space-between; width: 100%; }
  .ft-bottom { flex-direction: column; align-items: flex-start; margin-top: 36px; padding-right: 60px; }
  html body footer .footer-right { gap: 18px; }
  html body .ft-col a { padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html body .ft-col a, html body .ft-col a::before, .ft-ln-addr { transition: none; }
  html body .ft-col a:hover, html body .ft-col a:focus-visible, .ft-ln-addr:hover { transform: none; }
}

/* ===== [B] 2026-11-11 · Guías largas: progreso de lectura e índice (lo monta db.js) ===== */
html.db-guide [data-toc] { scroll-margin-top: 104px; }
html.db-guide [data-toc]:focus { outline: none; }

/* Barra de progreso: pegada al borde inferior del menú, con punta luminosa */
html.db-guide body nav > #scrollProgress.db-progress {
  position: absolute !important; top: auto !important; bottom: -1px; left: 0; z-index: 3;
  height: 2px !important; border-radius: 0 2px 2px 0; transition: width .12s linear !important;
}
html.db-guide body nav > #scrollProgress.db-progress::after {
  content: ''; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: #ffe2bf; box-shadow: 0 0 10px 3px rgba(247, 147, 26, .85);
  transform: translateY(-50%) scale(0); transition: transform .3s var(--ease);
}
html.db-toc-on body nav > #scrollProgress.db-progress::after { transform: translateY(-50%) scale(1); }

/* Índice lateral (escritorio) */
html body .db-toc {
  position: fixed; left: 28px; top: 50%; z-index: 90; width: var(--toc-w, 200px); max-height: calc(100vh - 200px);
  display: none; flex-direction: column; font-family: var(--font);
  opacity: 0; pointer-events: none; transform: translate(-12px, -50%);
  transition: opacity .4s var(--ease), transform .4s var(--ease), width .3s var(--ease), background-color .3s, border-color .3s;
  border: 1px solid transparent; border-radius: 18px;
}
@media (min-width: 1200px) { html body .db-toc { display: flex; } }
html.db-toc-on body .db-toc { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
html body .db-toc-h {
  margin: 0 0 14px 16px; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ash);
}
html body .db-toc-list {
  list-style: none; margin: 0; padding: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain;
  border-left: 1px solid var(--line-strong);
}
html body .db-toc-list::-webkit-scrollbar { display: none; }
html body .db-toc-list li { margin: 0; padding: 0; list-style: none; }
html body .db-toc-list li::before, html body .db-toc-list li::marker { content: none; }
html body .db-toc-list a {
  display: flex; gap: 10px; align-items: baseline; margin-left: -1px; padding: 7px 4px 7px 15px;
  border-left: 2px solid transparent; color: var(--ash); font-size: .76rem; font-weight: 500; line-height: 1.35;
  text-decoration: none; transition: color .2s, border-color .2s, background-color .2s;
}
html body .db-toc-i { flex: none; font-variant-numeric: tabular-nums; font-size: .66rem; font-weight: 700; letter-spacing: 0; color: var(--ash-dim); transition: color .2s; }
html body .db-toc-l { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html body .db-toc-list a:hover { color: var(--bone); }
html body .db-toc-list a.is-done .db-toc-i { color: rgba(247, 147, 26, .55); }
html body .db-toc-list a[aria-current] { color: var(--bone); border-left-color: var(--orange); font-weight: 600; }
html body .db-toc-list a[aria-current] .db-toc-i { color: var(--orange); }
html body .db-toc a:focus-visible, html body .db-toc-fab:focus-visible, html body .db-toc-x:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 8px;
}

/* Sin hueco junto al texto: solo marcas; al pasar el ratón o con el teclado se despliega encima */
html body .db-toc.is-compact { left: 18px; width: 30px; }
html body .db-toc.is-compact:not(:hover):not(:focus-within) .db-toc-h,
html body .db-toc.is-compact:not(:hover):not(:focus-within) .db-toc-i,
html body .db-toc.is-compact:not(:hover):not(:focus-within) .db-toc-l { display: none; }
html body .db-toc.is-compact:not(:hover):not(:focus-within) .db-toc-list { border-left: 0; padding: 4px 0; }
html body .db-toc.is-compact:not(:hover):not(:focus-within) .db-toc-list a { padding: 5px 0 5px 8px; border-left: 0; }
html body .db-toc.is-compact:not(:hover):not(:focus-within) .db-toc-list a::before {
  content: ''; width: 12px; height: 2px; border-radius: 2px; background: var(--ash-dim); transition: width .25s var(--ease), background-color .2s;
}
html body .db-toc.is-compact:not(:hover):not(:focus-within) .db-toc-list a.is-done::before { background: rgba(247, 147, 26, .45); }
html body .db-toc.is-compact:not(:hover):not(:focus-within) .db-toc-list a[aria-current]::before { width: 22px; background: var(--orange); box-shadow: 0 0 8px rgba(247, 147, 26, .6); }
html body .db-toc.is-compact:is(:hover, :focus-within) {
  width: 280px; padding: 18px 12px 14px 4px;
  background: rgba(13, 13, 14, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}

/* Botón flotante (móvil y tableta): centrado abajo, a la altura del «volver arriba» sin pisarlo */
html body .db-toc-fab {
  position: fixed; left: 50%; bottom: calc(32px + env(safe-area-inset-bottom, 0px)); z-index: 100;
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 15px; margin: 0;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(22, 22, 24, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: var(--bone); font-family: var(--font); font-size: .84rem; font-weight: 600; line-height: 1; cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0; pointer-events: none; transform: translate(-50%, 18px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .2s;
}
html.db-toc-on body .db-toc-fab { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
html body .db-toc-fab:hover { border-color: rgba(247, 147, 26, .6); }
html body .db-toc-fab svg { width: 16px; height: 16px; color: var(--orange); }
html body .db-toc-fab-dot { color: var(--ash-dim); }
html body .db-toc-fab-n { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .84rem; color: var(--orange); }
html body .db-toc-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; }

/* Hoja inferior */
html body .db-toc-sheet { position: fixed; inset: 0; z-index: 10002; font-family: var(--font); }
html body .db-toc-sheet[hidden] { display: none; }
html body .db-toc-scrim {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .28s;
}
html body .db-toc-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; max-height: min(74vh, 640px);
  display: flex; flex-direction: column; padding: 6px 8px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #111113; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 26px 26px 0 0;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, .7); transform: translateY(102%); transition: transform .32s var(--ease);
}
html body .db-toc-sheet.is-open .db-toc-scrim { opacity: 1; }
html body .db-toc-sheet.is-open .db-toc-panel { transform: none; }
html body .db-toc-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 6px auto 2px; }
html body .db-toc-top { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px 16px; border-bottom: 1px solid var(--line); }
html body .db-toc-top .db-toc-h { margin: 0; font-size: 1.15rem; font-weight: 800; font-stretch: 108%; letter-spacing: -.01em; text-transform: none; color: var(--bone); }
html body .db-toc-count { font-size: .78rem; color: var(--ash); }
html body .db-toc-x {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--bone);
}
html body .db-toc-x svg { width: 18px; height: 18px; }
html body .db-toc-sheet .db-toc-list { border-left: 0; padding: 8px 0 4px; }
html body .db-toc-sheet .db-toc-list a {
  margin: 0; min-height: 48px; padding: 13px 14px; gap: 14px; align-items: baseline; border-left: 0; border-radius: 14px;
  font-size: 1rem; font-weight: 500; line-height: 1.35; color: var(--ash);
}
html body .db-toc-sheet .db-toc-l { -webkit-line-clamp: 3; }
html body .db-toc-sheet .db-toc-i { font-size: .72rem; }
html body .db-toc-sheet .db-toc-list a[aria-current] { background: rgba(247, 147, 26, .1); color: var(--bone); font-weight: 600; }
html body .db-toc-sheet .db-toc-list a:active { background: rgba(255, 255, 255, .06); }
html.db-toc-lock, html.db-toc-lock body { overflow: hidden; }
@media (min-width: 1200px) { html body .db-toc-fab, html body .db-toc-sheet { display: none !important; } }
@media print { html body .db-toc, html body .db-toc-fab, html body .db-toc-sheet { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  html body .db-toc, html body .db-toc-fab, html body .db-toc-panel, html body .db-toc-scrim,
  html body .db-toc-list a, html body .db-toc-list a::before, html.db-guide body nav > #scrollProgress.db-progress,
  html.db-guide body nav > #scrollProgress.db-progress::after { transition: none !important; }
}
/* ===== fin [B] ===== */

/* =====================================================================
   [C] 2026-11-19 · Accesibilidad: contraste, tamaños en móvil,
   objetivos táctiles, foco y movimiento reducido.
   Grises: --ash #a1a1a6 (8,2:1) y --ash-dim #8a8a8f (6,1:1) en :root.
   ===================================================================== */

/* Enlaces sin estilo propio: naranja de marca, no el azul del navegador
   (:where = especificidad 0, cualquier regla de la página manda) */
:where(a:link, a:visited) { color: var(--orange); }
/* Texto sobre naranja siempre en negro (9,1:1; en blanco era 2,1:1) */
html body a.tip-btn:not(.ghost), html body .hv-btn[aria-pressed="true"], html body .hv-chip.on { color: #000; }
/* Marcadores de posición legibles (antes ~#555, 2,6:1) */
html body :is(input, textarea)::placeholder { color: var(--ash-dim); opacity: 1; }
/* Flechas de diagramas: contraste mínimo de objeto gráfico (3:1) */
html body .flow-arrow { color: var(--ash-dim); }
/* Bloque «próximo» de nodos: atenuado pero legible (0,5 dejaba el texto en 2,7:1) */
html body .block-unit[style*="opacity"] { opacity: .85 !important; }

/* Foco: también visible en navegadores sin :focus-visible fiable y en
   enlaces dentro de texto (subrayado además del anillo) */
html body :is(p, li, td, dd) > a:not([class]):focus-visible { text-decoration: underline; text-underline-offset: 3px; }
html body .hamburger:focus-visible { box-shadow: var(--focus-ring); border-radius: 12px; }

/* ---------- Móvil: tamaños de texto mínimos ----------
   Texto que se lee (notas, celdas, etiquetas de formulario, pie): 14 px.
   Etiquetas cortas en mayúsculas o cifras de diagramas: 12 px. */
@media (max-width: 768px) {
  html body :is(th, .dca-field label, .conv-field label, .disclaimer, .fsim-note, .hal-note, .video-text, .quote-author, .metric-sub, .stat-label,
    .flow-label, .panel-features li, .dca-stat .lbl, .conv-field .unit, .route-d, .go-desc, .rs-d, .barlow-author,
    .mining-visual p, .diagram-box p, .supply-bar-footer span, .ft-tag, .ft-ln-text) { font-size: .875rem; }
  html body footer :is(.footer-left, .footer-right a, .ft-ln-more, .ft-ln-a, .ft-live-v) { font-size: .875rem; }
  html body footer .ft-h { font-size: .8125rem; }
  html body .mt-filters button { font-size: .875rem; }
  html body .ft-col a { font-size: 1rem; }
  html body :is(.ft-live-l, .ft-ln-c, .node-label, .block-hash, .block-num, .cc-tag, .flow-num, .sk-t, .panel-btconly,
    .panel-badge, .tip-sats, .ticker-label, .mhi-label, .metric-hero-label, .cb-range-ends span, .hv-stat span, .hv-stat small,
    .source-tab .cnt, .st-m, .db-toc-sheet .db-toc-i, .term-cat, .ref-tags li, td.num, .tags .tag, .ref-number, .ref-why, .ref-lang,
    .book-number, .book-level, .country-status, .level-tag, .wt-tag, .mp-pill span, .mp-n, .us-val, .us-cost, .us-stat span, .ld-t,
    .wt-risk dt, .us-stat dt, .wal-card dt, .fr-eq) { font-size: .75rem; }
}

/* ---------- Objetivos táctiles de al menos 44 × 44 px ---------- */
@media (max-width: 768px), (pointer: coarse) {
  html body .hamburger { min-width: 44px; min-height: 44px; padding: 10px; }
  html body nav .logo { padding-block: 9px; margin-block: -9px; }
  html body .ft-col a, html body footer .footer-right a, html body .ft-ln-more, html body .ft-logo,
  html body :is(.myth-more, .com-link, .pl-link) { display: inline-flex; align-items: center; min-height: 44px; }
  html body .ft-col ul { gap: 0; }
  html body footer .footer-right { column-gap: 22px; row-gap: 0; }
  html body :is(.btn-secondary, .btn-ghost, .btn-soft, .filter-btn, .tab-btn, .pow-btn, .hv-btn, .hv-chip, .refresh-btn,
    .source-tab, .tip-btn, .support-share, .hx-prev, .hx-next, .mt-filters button, .fee-presets button, .cb-seg button,
    .book-toggle, .social-link, .ref-chip, .us-btn) { min-height: 44px !important; }
  html body .gl-link { min-width: 44px !important; min-height: 44px !important; }
  /* Botones de texto («Leer más»): se amplía la zona táctil sin mover el diseño */
  html body :is(.country-more, .ref-more) { padding-block: 12px !important; margin-block: -12px !important; }
  html body .news-wrap .source-tab { min-height: 44px; }
  html body :is(.hx-prev, .hx-next) { min-width: 44px; }
  html body details > summary { min-height: 44px; }
  :where(details > summary) { padding-block: 10px; }
  html body :is(input:not([type=range], [type=checkbox], [type=radio], [type=hidden]), select) { min-height: 44px; }
}

/* ---------- Movimiento reducido: red de seguridad global ----------
   Cualquier animación o transición de una página termina al instante. */
@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
/* ===== fin [C] ===== */
