/* SEOnauts.es
   Concepto: bitácora de vuelo. Fondo "líquido" de nebulosas en movimiento, tarjetas que reaccionan al cursor,
   números de episodio gigantes como matrícula de misión y un código de color fijo por sección. */
:root {
  /* color: marca SEOnauts (verde azulado del logo, naranja cohete, estrella ámbar) */
  --bg: #F3F5F0;
  --bg-2: #E9EEE8;
  --surface: #FFFFFF;
  --ink: #12302C;
  --ink-2: #4B6460;
  --ink-3: #7A8F8B;
  --line: rgba(18, 48, 44, .12);
  --line-2: rgba(18, 48, 44, .22);
  --teal: #377069;
  --teal-soft: #D7E6E1;
  --orange: #F76520;
  --orange-ink: #C64A0E;
  --amber: #F5A623;
  --glow-a: rgba(247, 101, 32, .20);
  --glow-b: rgba(55, 112, 105, .26);
  --glow-c: rgba(245, 166, 35, .18);
  --stars: 0;
  --glass: rgba(243, 245, 240, .72);
  /* color por sección */
  --c-core-update: #F76520;
  --c-bajo-lupa: #377069;
  --c-efecto-lindy: #1E9DB0;
  --c-seo-perdido: #C9497B;
  --c-directos-al-sol: #E39A12;
  --c-otros: #7A8F8B;
  /* tipo */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, Menlo, monospace;
  /* ritmo */
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061A1B; --bg-2: #0B2526; --surface: #0D2829; --ink: #F2F0E9; --ink-2: #A8BDB8; --ink-3: #74908B;
    --line: rgba(242, 240, 233, .11); --line-2: rgba(242, 240, 233, .22);
    --teal: #6CC2B4; --teal-soft: #123A39; --orange: #FF7A3D; --orange-ink: #FF8C55; --amber: #FFB938;
    --glow-a: rgba(255, 122, 61, .22); --glow-b: rgba(42, 183, 202, .18); --glow-c: rgba(255, 185, 56, .12);
    --stars: 1; --glass: rgba(6, 26, 27, .66);
    --c-core-update: #FF7A3D; --c-bajo-lupa: #6CC2B4; --c-efecto-lindy: #3CC6DA; --c-seo-perdido: #F07AA8; --c-directos-al-sol: #FFB938; --c-otros: #8FA7A2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #061A1B; --bg-2: #0B2526; --surface: #0D2829; --ink: #F2F0E9; --ink-2: #A8BDB8; --ink-3: #74908B;
  --line: rgba(242, 240, 233, .11); --line-2: rgba(242, 240, 233, .22);
  --teal: #6CC2B4; --teal-soft: #123A39; --orange: #FF7A3D; --orange-ink: #FF8C55; --amber: #FFB938;
  --glow-a: rgba(255, 122, 61, .22); --glow-b: rgba(42, 183, 202, .18); --glow-c: rgba(255, 185, 56, .12);
  --stars: 1; --glass: rgba(6, 26, 27, .66);
  --c-core-update: #FF7A3D; --c-bajo-lupa: #6CC2B4; --c-efecto-lindy: #3CC6DA; --c-seo-perdido: #F07AA8; --c-directos-al-sol: #FFB938; --c-otros: #8FA7A2;
  color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- fondo líquido ---------- */
.space { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.b1 { width: 52vmax; height: 52vmax; left: -16vmax; top: -22vmax; background: var(--glow-b); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 40vmax; height: 40vmax; right: -14vmax; top: 8vh; background: var(--glow-a); animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 36vmax; height: 36vmax; left: 30vw; bottom: -24vmax; background: var(--glow-c); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vw, 12vh) scale(1.12); border-radius: 44% 56% 60% 40%; } }
@keyframes drift2 { to { transform: translate(-18vw, 22vh) scale(.9); border-radius: 60% 40% 45% 55%; } }
@keyframes drift3 { to { transform: translate(-12vw, -18vh) scale(1.15); } }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--stars); transition: opacity .6s; }
.is-episode .b2 { opacity: .6; }

/* ---------- cabecera flotante ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding: 12px max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); }
.top-in {
  transition: background .4s, border-color .4s, color .4s;
  max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 semi-expanded 1.25rem/1 var(--f-display); letter-spacing: -.01em; color: var(--teal); }
.brand b { font-weight: 800; }
.brand-word { color: var(--teal); }
.brand-mark svg { width: 22px; height: 22px; fill: var(--amber); stroke: none; transition: transform .8s var(--spring); }
.brand:hover .brand-mark svg { transform: rotate(180deg) scale(1.15); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .94rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.top-tools { display: flex; gap: 6px; align-items: center; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink-2); font-size: .92rem; }
.search-btn:hover { border-color: var(--line-2); color: var(--ink); }
.search-btn svg, .icon-btn svg { width: 18px; height: 18px; }
kbd { font: 500 .72rem/1 var(--f-mono); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn:hover { border-color: var(--line-2); }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: none; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: block; } }
.menu-btn { display: none; }

/* ---------- tipografía ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 500 .74rem/1.4 var(--f-mono); color: var(--orange-ink); }
.eyebrow svg { width: 14px; height: 14px; }
.h1 { font: 800 expanded clamp(2.06rem, 4.82vw, 3.96rem)/1.02 var(--f-display); letter-spacing: -.01em; margin: 0 0 18px; text-wrap: balance; }
.h2 { font: 700 semi-expanded clamp(1.46rem, 2.92vw, 2.24rem)/1.08 var(--f-display); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.h3 { font: 700 semi-expanded 1.4rem/1.2 var(--f-display); letter-spacing: -.01em; margin: 0 0 12px; }
.lede { font-size: clamp(1.06rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; margin: 0 0 20px; text-wrap: pretty; }
p { text-wrap: pretty; }

/* ---------- botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .4s var(--spring), background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-ink); }
.btn-primary b { font-weight: 700; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost .i-pause { display: none; }
.btn-ghost.is-playing .i-play { display: none; }
.btn-ghost.is-playing .i-pause { display: inline-flex; }
.btn-ghost .i-play svg, .btn-ghost .i-pause svg { fill: currentColor; stroke: none; }
.btn-ghost:hover .i-play svg, .btn-ghost:hover .i-pause svg { transform: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; padding-block: clamp(36px, 7vw, 88px) 24px; }
.hero-copy { min-width: 0; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 var(--orange); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }
.hero-h { font: 800 expanded clamp(2.58rem, 6.36vw, 5.50rem)/.94 var(--f-display); letter-spacing: -.01em; margin: 6px 0 26px; }
.hero-h .line { display: block; }
.hero-h .accent { color: var(--orange); font-weight: 600; }
.hero-lede { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 54ch; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.hero-stats div { padding: 16px 16px 0 0; }
.hero-stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-stats dt { font-size: .8rem; color: var(--ink-2); }
.hero-stats dd { margin: 4px 0 0; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; color: var(--ink); }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 100%; transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 14px), 0); transition: transform .8s var(--ease); }
.nauts { position: absolute; inset: 8% 0 0 2%; width: 96%; height: auto; object-fit: contain; animation: float 7s ease-in-out infinite; transform-origin: 50% 80%; }
.is-singing .nauts { animation: float 7s ease-in-out infinite, sing .45s ease-in-out infinite alternate; }
@keyframes float { 0%, 100% { translate: 0 0; rotate: -1.5deg; } 50% { translate: 0 -16px; rotate: 1.5deg; } }
@keyframes sing { to { scale: 1.025 .985; } }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
.orbit ellipse { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 2 7; }
.orbit .o2 { stroke: color-mix(in srgb, var(--orange) 40%, transparent); }
@keyframes spin { to { transform: rotate(360deg); } }
.planet { position: absolute; width: 26%; aspect-ratio: 1; right: 2%; top: 4%; border-radius: 50%; background: var(--teal); opacity: .9; animation: float 11s ease-in-out infinite reverse; }
.planet i { position: absolute; inset: 22%; background: var(--amber); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.spark { position: absolute; width: 22px; color: var(--amber); }
.spark svg { width: 100%; height: auto; fill: currentColor; stroke: none; }
.s1 { left: 6%; top: 18%; animation: twinkle 3s infinite; }
.s2 { left: 18%; bottom: 10%; width: 14px; animation: twinkle 4s 1s infinite; }
.s3 { right: 6%; bottom: 30%; width: 16px; animation: twinkle 3.6s .5s infinite; }
@keyframes twinkle { 50% { transform: scale(.4) rotate(45deg); opacity: .5; } }

/* ---------- bloques ---------- */
.block { padding-block: clamp(36px, 6vw, 72px) 0; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 24px; }
.block-note { color: var(--ink-2); max-width: 46ch; margin: 0; font-size: .95rem; }

/* último episodio */
.latest {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--ink); color: var(--bg); overflow: hidden; isolation: isolate;
}
.latest::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -18%; top: -50%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--orange) 55%, transparent), transparent 65%); z-index: -1; animation: drift2 18s ease-in-out infinite alternate; }
.latest-num { font: 800 expanded clamp(5.16rem, 14.62vw, 12.90rem)/.8 var(--f-display); letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 2px var(--orange); }
.latest .eyebrow { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.latest-h { font: 800 expanded clamp(1.72rem, 3.96vw, 3.10rem)/1 var(--f-display); letter-spacing: -.01em; margin: 0 0 12px; }
.latest-h a { text-decoration: none; }
.latest-tag { font-size: 1.1rem; color: color-mix(in srgb, var(--bg) 80%, transparent); max-width: 56ch; margin: 0 0 20px; }
.latest-take { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; max-width: 70ch; }
.latest-take li { position: relative; padding-left: 26px; color: color-mix(in srgb, var(--bg) 88%, transparent); }
.latest-take li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--amber); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.latest-foot { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.latest-foot .secbar { flex: 1 1 200px; }
.latest-body { min-width: 0; }

/* barra de secciones */
.secbar { display: flex; gap: 3px; height: 6px; border-radius: 6px; overflow: hidden; }
.secbar i { display: block; height: 100%; border-radius: 3px; transition: flex .6s var(--spring); }
.sec-core-update { --c: var(--c-core-update); }
.sec-bajo-lupa { --c: var(--c-bajo-lupa); }
.sec-efecto-lindy { --c: var(--c-efecto-lindy); }
.sec-seo-perdido { --c: var(--c-seo-perdido); }
.sec-directos-al-sol { --c: var(--c-directos-al-sol); }
.sec-otros { --c: var(--c-otros); }
.secbar i, .dot { background: var(--c); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* trayectoria */
.trail { display: flex; gap: 6px; height: 220px; align-items: stretch; padding: 16px 0 34px; border-bottom: 1px solid var(--line); }
.trail-node { position: relative; flex: 1 1 0; min-width: 0; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.trail-bar { width: 100%; max-width: 46px; height: var(--h); border-radius: 12px 12px 4px 4px; background: linear-gradient(to top, var(--teal-soft), color-mix(in srgb, var(--teal) 55%, var(--teal-soft))); transition: background .3s, transform .5s var(--spring); transform-origin: bottom; }
.trail-dot { position: absolute; bottom: calc(var(--h) + 8px); width: 10px; height: 10px; border-radius: 50%; background: var(--teal); transition: transform .4s var(--spring), background .2s; }
.trail-node:last-child .trail-bar { background: linear-gradient(to top, color-mix(in srgb, var(--orange) 25%, transparent), var(--orange)); }
.trail-node:last-child .trail-dot { background: var(--orange); }
.trail-lbl { position: absolute; bottom: -28px; font-size: .74rem; color: var(--ink-3); }
.trail-node:hover .trail-bar, .trail-node:focus-visible .trail-bar, .trail-node.is-lit .trail-bar { transform: scaleY(1.06); background: linear-gradient(to top, color-mix(in srgb, var(--orange) 30%, transparent), var(--orange)); }
.trail-node:hover .trail-dot, .trail-node.is-lit .trail-dot { transform: scale(1.6); background: var(--orange); }
.trail-node:hover .trail-lbl { color: var(--ink); }
.trail-tip { position: absolute; bottom: calc(var(--h) + 28px); left: 50%; translate: -50% 6px; width: max-content; max-width: 220px; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: .82rem; line-height: 1.3; opacity: 0; pointer-events: none; transition: opacity .2s, translate .3s var(--spring); z-index: 3; display: grid; gap: 2px; }
.trail-tip span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.trail-node:first-child .trail-tip, .trail-node:nth-child(2) .trail-tip { left: 0; translate: 0 6px; }
.trail-node:last-child .trail-tip, .trail-node:nth-last-child(2) .trail-tip { left: auto; right: 0; translate: 0 6px; }
.trail-node:hover .trail-tip, .trail-node:focus-visible .trail-tip { opacity: 1; translate: -50% 0; }
.trail-node:first-child:hover .trail-tip, .trail-node:nth-child(2):hover .trail-tip, .trail-node:last-child:hover .trail-tip, .trail-node:nth-last-child(2):hover .trail-tip { translate: 0 0; }

/* filtros */
.filter-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); min-width: min(340px, 100%); transition: border-color .2s; }
.filter-search:focus-within { border-color: var(--orange); }
.filter-search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.filter-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font: inherit; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: .88rem; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: color .25s, border-color .25s, background .25s;
}
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip .mono { font-size: .74rem; opacity: .7; }
.chips.liquid { position: relative; margin-bottom: 24px; }
.chips.liquid .chip.is-on { color: #fff; border-color: transparent; background: transparent; }
.liquid-pill { position: absolute; z-index: 0; left: 0; top: 0; height: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .55s var(--spring), width .55s var(--spring), height .3s var(--ease); pointer-events: none; }
:root .chips.liquid .chip.is-on { color: var(--bg); }
.no-pill .chips.liquid .chip.is-on { background: var(--ink); }

/* tarjetas de episodio */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ep-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--spring), border-color .25s;
}
.ep-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--orange) 14%, transparent), transparent 60%); }
.ep-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.ep-card:hover::before { opacity: 1; }
.ep-card-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.ep-card-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.ep-num { font: 800 expanded 3.4rem/.85 var(--f-display); letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1.5px var(--ink-3); transition: -webkit-text-stroke-color .25s, color .25s; }
.ep-card:hover .ep-num { -webkit-text-stroke-color: var(--orange); }
.ep-month { font-size: .8rem; color: var(--ink-2); text-transform: lowercase; }
.ep-month::first-letter { text-transform: uppercase; }
.ep-title { font: 700 semi-expanded 1.35rem/1.15 var(--f-display); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.ep-tag { margin: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.5; flex: 1; }
.ep-meta { display: flex; gap: 14px; margin: 0; font-size: .74rem; color: var(--ink-3); flex-wrap: wrap; }
.empty { padding: 32px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.ep-card.is-out { display: none; }

/* secciones */
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.sec-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: transform .5s var(--spring), border-color .25s; }
.sec-card:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--c); }
.sec-media { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #F7F7F7; overflow: hidden; }
.sec-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sec-card:hover .sec-media video { transform: scale(1.04); }
.sec-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 4px solid var(--c); }
.sec-body h3 { font: 700 semi-expanded 1.12rem/1.2 var(--f-display); margin: 4px 0 0; }
.sec-body p { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.5; flex: 1; }
.sec-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--c, var(--teal)) 16%, transparent); color: var(--c, var(--teal)); flex: none; }
.sec-icon svg { width: 19px; height: 19px; }
.sec-count { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-2); margin-top: 8px; }
.sec-count svg { width: 14px; height: 14px; transition: transform .4s var(--spring); }
.sec-card:hover .sec-count svg { transform: translateX(4px); }

/* tripulación */
.host-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.host { padding: 26px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.host h3 { font: 800 semi-expanded 1.8rem/1 var(--f-display); letter-spacing: -.01em; margin: 0 0 8px; }
.host-role { color: var(--orange-ink); font-weight: 600; margin: 0 0 10px; }
.host p { margin: 0 0 16px; color: var(--ink-2); }
.host-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.host-link svg { width: 20px; height: 20px; }
.host-link:hover { color: var(--orange-ink); }

/* ---------- páginas interiores ---------- */
.page-head { padding-block: clamp(28px, 5vw, 64px) 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--ink-3); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--orange-ink); }
.year { font-size: 1rem; color: var(--ink-3); margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* episodio */
.ep-hero { padding-block: clamp(24px, 4vw, 52px) 0; }
.ep-hero-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 4vw, 48px); align-items: start; margin-bottom: 28px; }
.ep-hero-num { font: 800 expanded clamp(4.73rem, 13.76vw, 11.18rem)/.78 var(--f-display); letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 2px var(--orange); }
.ep-hero-copy { min-width: 0; }
.ep-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-size: .82rem; margin-bottom: 16px; }
.ep-hero .secbar { height: 8px; }
.ep-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: 40px; }
.ep-aside { position: relative; min-width: 0; }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: .92rem; transition: background .2s, color .2s, transform .3s var(--spring); }
.toc a .mono { margin-left: auto; font-size: .74rem; color: var(--ink-3); }
.toc a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.toc a:hover { color: var(--ink); background: var(--bg-2); }
.toc a.is-active { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transform: translateX(4px); font-weight: 600; }
.toc-core-update { --c: var(--c-core-update); } .toc-bajo-lupa { --c: var(--c-bajo-lupa); } .toc-efecto-lindy { --c: var(--c-efecto-lindy); } .toc-seo-perdido { --c: var(--c-seo-perdido); } .toc-directos-al-sol { --c: var(--c-directos-al-sol); } .toc-otros { --c: var(--c-otros); }
.toc-progress { height: 3px; border-radius: 3px; background: var(--line); margin: 14px 12px 0; overflow: hidden; }
.toc-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--orange); border-radius: 3px; }
.ep-main { min-width: 0; display: grid; gap: 20px; }
.ep-sec { scroll-margin-top: 96px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.summary p { font-size: 1.08rem; line-height: 1.7; max-width: 68ch; margin: 0 0 16px; }
.takeaways { margin-top: 24px; padding: 22px 24px; border-radius: var(--r-md); background: var(--bg-2); }
.takeaways ul { margin: 0; padding: 0 0 0 20px; display: grid; gap: 10px; }
.takeaways li { padding-left: 4px; }
.takeaways li::marker { color: var(--orange-ink); }
.take-h { font: 700 semi-expanded 1rem/1.2 var(--f-display); margin: 0 0 12px; }

.ep-sec-head { display: flex; gap: 14px; align-items: start; margin-bottom: 8px; flex-wrap: wrap; }
.ep-sec-head > div { flex: 1 1 260px; min-width: 0; }
.ep-sec-head h2 { font: 800 semi-expanded 1.6rem/1.1 var(--f-display); letter-spacing: -.01em; margin: 2px 0 6px; }
.ep-sec-head p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.sec-alt { display: block; margin-top: 4px; font-size: .8rem; color: var(--ink-3); }
.sec-all { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; text-decoration: none; color: var(--c); padding: 6px 0; }
.sec-all svg { width: 14px; height: 14px; }
.ep-sec.sec-core-update, .ep-sec.sec-bajo-lupa, .ep-sec.sec-efecto-lindy, .ep-sec.sec-seo-perdido, .ep-sec.sec-directos-al-sol { border-top: 4px solid var(--c); }
.items { display: grid; }
.item { padding: 20px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.item:first-child { border-top: 0; }
.item:target { animation: flash 2s var(--ease); }
@keyframes flash { 0%, 30% { background: color-mix(in srgb, var(--c, var(--orange)) 12%, transparent); box-shadow: 0 0 0 12px color-mix(in srgb, var(--c, var(--orange)) 12%, transparent); } 100% { background: transparent; box-shadow: 0 0 0 12px transparent; } }
.item h3 { position: relative; font: 700 semi-expanded 1.16rem/1.3 var(--f-display); letter-spacing: -.01em; margin: 0 0 8px; text-wrap: balance; }
.anchor { position: absolute; left: -22px; color: var(--ink-3); text-decoration: none; opacity: 0; transition: opacity .2s; font-weight: 500; }
.item:hover .anchor, .anchor:focus { opacity: 1; }
.item > p { margin: 0 0 10px; color: var(--ink-2); max-width: 70ch; }
.item-people { display: flex; flex-wrap: wrap; gap: 6px; }
.item-people a, .people-cloud a { font-size: .8rem; text-decoration: none; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.item-people a:hover, .people-cloud a:hover { background: var(--ink); color: var(--bg); }
.item-src { margin-top: 10px; }
.item-src summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--c, var(--teal)); }
.item-src summary::-webkit-details-marker { display: none; }
.item-src summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font: 600 .8rem/1 var(--f-mono); transition: transform .3s var(--spring); }
.item-src[open] summary::before { content: "−"; transform: rotate(180deg); }
.src-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.src { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .3s var(--spring), background .2s; }
.src:hover { border-color: var(--c, var(--orange)); transform: translateX(4px); background: var(--bg); }
.src-label { font-weight: 500; font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }
.src-domain { margin-left: auto; font-size: .74rem; color: var(--ink-3); white-space: nowrap; }
.src svg { width: 14px; height: 14px; color: var(--ink-3); flex: none; }
.chapters .chap-list { list-style: none; margin: 12px 0 0; padding: 0; columns: 2 300px; column-gap: 32px; }
.chap-list li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: .93rem; }
.chap-list .mono { color: var(--orange-ink); font-size: .82rem; padding-top: 2px; }
.people-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.people-cloud a { font-size: .88rem; padding: 6px 12px; }
.tags-h { margin-top: 24px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag { border: 1px dashed var(--line-2); background: transparent; border-radius: 8px; padding: 4px 10px; font-size: .82rem; color: var(--ink-2); cursor: pointer; }
.tag:hover { border-style: solid; border-color: var(--orange); color: var(--ink); }
.ep-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 40px 0; }
.pager { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s, transform .4s var(--spring); }
.pager:hover { border-color: var(--orange); transform: translateY(-3px); }
.pager.next { text-align: right; align-items: end; }
.pager b { font: 700 semi-expanded 1.2rem/1.2 var(--f-display); }
.pager .eyebrow { margin: 0; }

/* sección (página) */
.sec-hero { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 32px; align-items: center; }
.sec-hero > div { min-width: 0; }
.sec-head-page .eyebrow .sec-icon { width: 28px; height: 28px; }
.sec-media.big { border-radius: var(--r-lg); border: 1px solid var(--line); }
.sound-btn { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 0; background: rgba(18, 48, 44, .82); color: #fff; font-size: .8rem; cursor: pointer; backdrop-filter: blur(6px); }
.sound-btn svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.sec-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.sec-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: .9rem; color: var(--ink-2); }
.sec-switch a svg { width: 16px; height: 16px; color: var(--c); }
.sec-switch a[aria-current="page"] { border-color: var(--c); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--c); }
.sec-stream { display: grid; gap: 14px; padding-top: 32px; }
.sec-ep { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.sec-ep-head { display: flex; gap: 14px; align-items: start; text-decoration: none; position: sticky; top: 96px; align-self: start; }
.sec-ep-head .ep-num { font-size: 2.6rem; }
.sec-ep-head:hover .ep-num { -webkit-text-stroke-color: var(--orange); }
.sec-ep-head b { display: block; font: 700 semi-expanded 1.05rem/1.2 var(--f-display); }
.sec-ep-head .muted { font-size: .82rem; }
.sec-ep-items { display: grid; gap: 10px; }
.mini-item { display: block; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--teal)); text-decoration: none; transition: transform .4s var(--spring), border-color .2s; }
.sec-head-page ~ .sec-stream .mini-item { --c: inherit; }
.mini-item:hover { transform: translateX(6px); }
.mini-item h3 { font: 700 semi-expanded 1.08rem/1.3 var(--f-display); margin: 0 0 6px; }
.mini-item p { margin: 0 0 6px; color: var(--ink-2); font-size: .94rem; }
.mini-item .mono { font-size: .74rem; }

/* temas */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.topic-card { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: transform .4s var(--spring), border-color .2s; }
.topic-card:hover { transform: translateY(-3px); border-color: var(--orange); }
.topic-name { font: 700 semi-expanded 1.1rem/1.2 var(--f-display); }
.topic-bar { height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.topic-bar i { display: block; height: 100%; width: var(--w); background: var(--teal); border-radius: 6px; }
.topic-card:hover .topic-bar i { background: var(--orange); }
.topic-card .mono { font-size: .76rem; color: var(--ink-3); }
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 28px; }
.term { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .94rem; scroll-margin-top: 100px; }
.term:target { background: color-mix(in srgb, var(--orange) 12%, transparent); }
.term > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.term-eps { display: flex; gap: 4px; flex-wrap: wrap; justify-content: end; }
.term-eps a { font-size: .74rem; text-decoration: none; padding: 2px 6px; border-radius: 6px; background: var(--bg-2); color: var(--ink-2); }
.term-eps a:hover { background: var(--orange); color: #fff; }
.topic-stream { display: grid; gap: 14px; }
.topic-ep { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: 24px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.topic-ep-num { font: 800 expanded 3.2rem/.9 var(--f-display); letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 1.5px var(--orange); text-decoration: none; }
.topic-ep h2 a { text-decoration: none; }
.topic-ep h2 a:hover { color: var(--orange-ink); }
.topic-ep p { color: var(--ink-2); margin: 0 0 14px; max-width: 72ch; }

/* biblioteca */
.dom-chart { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 760px; }
.dom-chart li { display: grid; grid-template-columns: minmax(0, 200px) 1fr 40px; gap: 14px; align-items: center; font-size: .88rem; }
.dom-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
a.dom-name:hover { color: var(--orange-ink); }
.dom-bar { height: 10px; border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.dom-bar i { display: block; height: 100%; width: var(--w); background: var(--teal); border-radius: 10px; transform-origin: left; animation: grow 1.1s var(--ease) both; }
.dom-chart li:first-child .dom-bar i { background: var(--orange); }
.dom-chart li > .mono:last-child { text-align: right; color: var(--ink-2); }
@keyframes grow { from { transform: scaleX(.08); } }
.lib-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.lib-tools .chips.liquid { margin: 0; }
.select select { height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; max-width: 100%; }
.select { max-width: 100%; }
.lib-count { color: var(--ink-3); font-size: .8rem; margin: 14px 0; }
.lib { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lib-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.lib-main { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.lib-label { font-weight: 600; overflow-wrap: anywhere; }
.lib-main:hover .lib-label { color: var(--orange-ink); }
.lib-domain { font-size: .74rem; color: var(--ink-3); }
.lib-ctx { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink-2); font-size: .88rem; min-width: 0; }
.lib-ctx .mono { font-size: .76rem; color: var(--ink-3); }
.lib-item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lib-ctx:hover .lib-item { color: var(--ink); text-decoration: underline; }
.chip .dot { width: 8px; height: 8px; }

/* personas */
.people-chart .dom-name { font-weight: 500; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 24px; position: sticky; top: 84px; z-index: 5; padding: 8px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); }
.az a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; text-decoration: none; font: 600 .86rem/1 var(--f-mono); color: var(--ink-2); }
.az a:hover { background: var(--ink); color: var(--bg); }
.az-group { scroll-margin-top: 150px; margin-bottom: 24px; }
.az-letter { font-size: 1.6rem; color: var(--orange); margin: 0 0 4px; }

/* 404 */
.notfound { min-height: 50vh; }

/* ---------- pie ---------- */
.foot { margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-block: 48px 24px; }
.foot-word { font: 800 expanded 2.2rem/1 var(--f-display); letter-spacing: -.01em; color: var(--teal); margin: 0 0 10px; }
.foot-brand p { margin: 0 0 8px; max-width: 42ch; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a { text-decoration: none; color: var(--ink-2); }
.foot-nav a:hover { color: var(--orange-ink); }
.foot-legal { display: flex; justify-content: space-between; gap: 12px; padding-block: 16px 28px; color: var(--ink-3); font-size: .82rem; border-top: 1px solid var(--line); }

/* ---------- buscador (paleta) ---------- */
.palette { position: fixed; inset: 0; z-index: 100; display: grid; justify-items: center; align-items: start; padding: max(10vh, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.palette-scrim { position: absolute; inset: 0; background: rgba(6, 26, 27, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s var(--ease); }
.palette-box { position: relative; width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; animation: pop .45s var(--spring); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
.palette-field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-field svg { width: 20px; height: 20px; color: var(--orange); flex: none; }
.palette-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 1.1rem var(--f-body); color: var(--ink); }
.palette-results { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.p-group { padding: 10px 12px 4px; font: 500 .7rem/1 var(--f-mono); color: var(--ink-3); }
.p-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.p-item .dot { background: var(--c, var(--ink-3)); }
.p-item b { display: block; font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-item small { display: block; color: var(--ink-2); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-item .p-kind { font: 500 .7rem/1 var(--f-mono); color: var(--ink-3); }
.p-item[aria-selected="true"] { background: var(--bg-2); }
.p-item[aria-selected="true"] b { color: var(--orange-ink); }
.p-item mark { background: color-mix(in srgb, var(--amber) 35%, transparent); color: inherit; border-radius: 3px; }
.p-empty { padding: 28px 16px; text-align: center; color: var(--ink-2); }
.palette-foot { display: flex; gap: 16px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--ink-3); }
.palette-count { margin-left: auto; }

/* ---------- aparición con scroll (el estado en reposo ya es visible) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ep-card, .sec-card, .ep-sec, .topic-ep, .mini-item, .host { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    @keyframes rise { from { transform: translateY(28px) scale(.98); } }
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 10px; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; width: 80%; margin: -8px auto 0; order: -1; }
  .ep-layout { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .ep-aside { position: sticky; top: 72px; z-index: 10; margin-inline: -4px; }
  .toc { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding: 8px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc .eyebrow, .toc-progress { display: none; }
  .toc a { white-space: nowrap; flex: none; padding: 6px 12px; font-size: .86rem; }
  .toc a.is-active { transform: none; }
  .sec-hero { grid-template-columns: 1fr; }
  .sec-ep { grid-template-columns: 1fr; gap: 12px; }
  .sec-ep-head { position: static; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; }
  .nav { position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); top: calc(100% + 8px); flex-direction: column; padding: 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; animation: pop .35s var(--spring); }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .top-tools { margin-left: auto; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .latest { grid-template-columns: 1fr; }
  .latest-num { font-size: 6rem; }
  .ep-hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .ep-hero-num { font-size: 6rem; }
  .trail { gap: 3px; height: 180px; }
  .trail-lbl { font-size: .62rem; }
  .trail-tip { display: none; }
  .trail-node:nth-child(even) .trail-lbl { display: none; }
  .lib-row { grid-template-columns: 1fr; gap: 6px; }
  .ep-pager { grid-template-columns: 1fr; }
  .pager.next { text-align: left; align-items: start; }
  .topic-ep { grid-template-columns: 1fr; gap: 8px; }
  .dom-chart li { grid-template-columns: minmax(0, 120px) 1fr 32px; gap: 10px; }
  .anchor { display: none; }
  .foot-in { grid-template-columns: 1fr; }
  .filter-search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   COSMOS: el sistema solar de la portada (siempre en modo espacio)
   ===================================================================== */
:root { --space: #041314; --space-ink: #F2F0E9; --space-ink-2: rgba(242, 240, 233, .72); --space-line: rgba(242, 240, 233, .14); --space-glass: rgba(6, 26, 27, .62); }
.home .top { position: fixed; left: 0; right: 0; }
.home:not(.past-cosmos) .top-in { background: rgba(6, 26, 27, .55); border-color: var(--space-line); color: var(--space-ink); }
.home:not(.past-cosmos) .top-in .nav a { color: var(--space-ink-2); }
.home:not(.past-cosmos) .top-in .nav a:hover { background: rgba(242, 240, 233, .1); color: var(--space-ink); }
.home:not(.past-cosmos) .top-in .brand, .home:not(.past-cosmos) .top-in .brand-word { color: #8FD5C9; }
.home:not(.past-cosmos) .top-in .search-btn, .home:not(.past-cosmos) .top-in .icon-btn { background: rgba(242, 240, 233, .08); border-color: var(--space-line); color: var(--space-ink); }
.home:not(.past-cosmos) .top-in kbd { background: transparent; border-color: var(--space-line); color: var(--space-ink-2); }
@media (max-width: 760px) { .home:not(.past-cosmos) .nav { background: #0D2829; color: var(--space-ink); } }

.cosmos { position: relative; height: clamp(700px, 100svh, 1040px); background: var(--space); color: var(--space-ink); overflow: hidden; isolation: isolate; }
.cosmos::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(to bottom, transparent, rgba(4, 19, 20, .85)); pointer-events: none; z-index: 1; }
#galaxy { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
#galaxy:active { cursor: grabbing; }
.cosmos.no-gl { background: radial-gradient(ellipse at 70% 45%, rgba(255, 122, 61, .35), transparent 40%), radial-gradient(ellipse at 30% 60%, rgba(42, 183, 202, .25), transparent 50%), var(--space); }
.cosmos-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.planet-label {
  position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; margin-top: -6px;
  border-radius: 999px; border: 1px solid var(--space-line); background: rgba(4, 19, 20, .55); color: var(--space-ink); font-size: .74rem; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .3s, background .2s, border-color .2s; white-space: nowrap; will-change: transform;
}
.pl-n { font: 600 .68rem/1 var(--f-mono); padding: 4px 6px; border-radius: 999px; background: rgba(242, 240, 233, .12); }
.pl-t { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .45s var(--spring), opacity .3s; }
.planet-label.is-hover .pl-t, .planet-label.is-focus .pl-t, .planet-label.is-latest .pl-t { max-width: 260px; opacity: 1; }
.planet-label.is-hover, .planet-label.is-focus { background: rgba(255, 122, 61, .9); border-color: transparent; color: #fff; z-index: 3; }
.planet-label.is-latest .pl-n { background: #FF7A3D; color: #fff; }
.planet-label.is-far:not(.is-hover):not(.is-focus) { padding: 2px; }
.planet-label.is-far:not(.is-hover):not(.is-focus) .pl-n { background: transparent; color: var(--space-ink-2); }
.planet-label.is-dim { opacity: .25; }
.sun-label { position: absolute; left: 0; top: 0; font: 800 semi-expanded .9rem/1 var(--f-display); letter-spacing: -.01em; color: #FFD9A0; text-shadow: 0 0 18px rgba(255, 122, 61, .9); pointer-events: none; }
.sun-label b { font-weight: 800; }
.is-focused .sun-label { opacity: .4; }

.cosmos-copy { position: absolute; z-index: 3; top: clamp(104px, 14vh, 150px); left: max(24px, calc((100vw - var(--maxw)) / 2 + 20px), env(safe-area-inset-left, 0px)); width: min(560px, calc(100% - 48px)); pointer-events: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.cosmos-copy > * { pointer-events: auto; }
.cosmos .eyebrow { color: var(--space-ink-2); }
.cosmos .hero-h { color: var(--space-ink); font-size: clamp(2.6rem, 4.7vw, 4.6rem); margin-bottom: 18px; }
.cosmos .hero-h .line { white-space: nowrap; }
.cosmos .hero-h .accent { color: #FF7A3D; }
.cosmos .hero-lede { color: var(--space-ink-2); font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 46ch; }
.is-focused .cosmos-copy { opacity: 0; transform: translateX(-30px); pointer-events: none; }
.is-focused .cosmos-copy > * { pointer-events: none; }
.btn-glass { background: rgba(242, 240, 233, .08); border-color: var(--space-line); color: var(--space-ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { border-color: rgba(242, 240, 233, .45); }
.btn-glass.is-on { border-color: #6CC2B4; color: #8FD5C9; }
.btn-glass.is-on svg { animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 50% { transform: scaleY(.5); } }
.cosmos .btn-glass:hover svg { transform: none; }

.cosmos-panel {
  position: absolute; z-index: 4; right: max(24px, calc((100vw - var(--maxw)) / 2 + 20px)); top: 104px; width: min(400px, calc(100% - 48px)); max-height: calc(100% - 300px); overflow: auto;
  padding: 26px; border-radius: 26px; background: var(--space-glass); border: 1px solid var(--space-line); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  opacity: 0; transform: translateX(24px) scale(.98); transition: opacity .35s var(--ease), transform .55s var(--spring);
}
.cosmos-panel.is-in { opacity: 1; transform: none; }
.cp-close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--space-line); background: transparent; color: var(--space-ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cp-close:hover { background: rgba(242, 240, 233, .12); }
.cp-eyebrow { font: 500 .74rem/1 var(--f-mono); color: #FFB938; margin: 0 0 10px; letter-spacing: .02em; }
.cp-title { font: 800 semi-expanded clamp(1.46rem, 2.24vw, 1.89rem)/1.02 var(--f-display); letter-spacing: -.01em; margin: 0 0 10px; padding-right: 30px; text-wrap: balance; }
.cp-tag { color: var(--space-ink-2); margin: 0 0 16px; font-size: .95rem; }
.cp-mix { display: flex; gap: 3px; height: 8px; margin-bottom: 10px; }
.cp-mix span { background: var(--c); border-radius: 4px; }
.cp-legend { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: .8rem; color: var(--space-ink-2); }
.cp-legend li { display: flex; align-items: center; gap: 7px; }
.cp-legend i { width: 8px; height: 8px; border-radius: 50%; }
.cp-legend b { margin-left: auto; font: 500 .76rem var(--f-mono); color: var(--space-ink); }
.cp-take { margin: 0 0 18px; padding: 0 0 0 18px; color: var(--space-ink); font-size: .9rem; display: grid; gap: 8px; }
.cp-take li::marker { color: #FFB938; }
.cp-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cp-nav { display: flex; gap: 6px; margin-left: auto; }
.cp-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--space-line); background: transparent; color: var(--space-ink); font-size: 1.4rem; cursor: pointer; }
.cp-nav button:hover { background: rgba(242, 240, 233, .12); }

.nauts-float { position: absolute; z-index: 3; right: max(20px, calc((100vw - var(--maxw)) / 2)); bottom: 210px; width: clamp(120px, 13vw, 200px); padding: 0; border: 0; background: none; cursor: pointer; animation: drift 14s ease-in-out infinite; transition: opacity .4s; }
.nauts-float img { width: 100%; height: auto; filter: drop-shadow(0 0 24px rgba(255, 122, 61, .25)); transition: transform .5s var(--spring); }
.nauts-float:hover img { transform: rotate(-6deg) scale(1.06); }
.is-singing .nauts-float img { animation: sing .4s ease-in-out infinite alternate; }
.nauts-bubble { position: absolute; left: -12px; top: -6px; padding: 6px 12px; border-radius: 14px 14px 14px 4px; background: var(--space-ink); color: var(--space); font: 700 semi-expanded .78rem/1 var(--f-display); white-space: nowrap; transform: rotate(-6deg); }
.is-focused .nauts-float { opacity: 0; pointer-events: none; }
@keyframes drift { 0%, 100% { translate: 0 0; rotate: -4deg; } 33% { translate: -24px -18px; rotate: 3deg; } 66% { translate: 12px -30px; rotate: -1deg; } }

.cosmos-bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 10px; max-width: var(--maxw); margin: 0 auto; }
.cosmos-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cosmos-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; font-size: .78rem; color: var(--space-ink-2); }
.cosmos-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cosmos-legend .dot { --c-core-update: #FF7A3D; --c-bajo-lupa: #6CC2B4; --c-efecto-lindy: #3CC6DA; --c-seo-perdido: #F07AA8; --c-directos-al-sol: #FFB938; }
.cosmos-legend .sec-core-update .dot { background: #FF7A3D; } .cosmos-legend .sec-bajo-lupa .dot { background: #6CC2B4; } .cosmos-legend .sec-efecto-lindy .dot { background: #3CC6DA; } .cosmos-legend .sec-seo-perdido .dot { background: #F07AA8; } .cosmos-legend .sec-directos-al-sol .dot { background: #FFB938; }
.cosmos-help { margin: 0; font-size: .72rem; color: rgba(242, 240, 233, .5); }
.cosmos-filter { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cf-label { font-size: .7rem; color: #FFB938; flex: none; }
.cosmos-filter .chips.liquid { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 2px; scrollbar-width: none; min-width: 0; }
.cosmos-filter .chips::-webkit-scrollbar { display: none; }
.cosmos-filter .chip { flex: none; background: rgba(242, 240, 233, .06); border-color: var(--space-line); color: var(--space-ink-2); padding: 6px 12px; font-size: .82rem; }
.cosmos-filter .chip:hover { color: var(--space-ink); border-color: rgba(242, 240, 233, .35); }
.cosmos-filter .liquid-pill { background: #FF7A3D; }
.cosmos .chips.liquid .chip.is-on { color: #fff; }
.timeline { list-style: none; margin: 0; padding: 10px 12px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; border-radius: 18px; background: rgba(6, 26, 27, .55); border: 1px solid var(--space-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tl-tick { position: relative; display: grid; justify-items: center; gap: 4px; padding-top: 4px; text-decoration: none; color: var(--space-ink-2); border-radius: 10px; }
.tl-bar { display: block; width: 100%; max-width: 28px; height: 34px; border-radius: 6px; background: rgba(108, 194, 180, .14); position: relative; overflow: hidden; }
.tl-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); background: linear-gradient(to top, rgba(108, 194, 180, .35), #6CC2B4); border-radius: 6px; transition: background .25s, height .5s var(--spring); }
.tl-tick.is-latest .tl-bar::after { background: linear-gradient(to top, rgba(255, 122, 61, .35), #FF7A3D); }
.tl-n { font-size: .7rem; color: var(--space-ink); }
.tl-m { font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tl-tick:hover .tl-bar::after, .tl-tick.is-hover .tl-bar::after, .tl-tick.is-on .tl-bar::after { background: linear-gradient(to top, rgba(255, 185, 56, .4), #FFB938); }
.tl-tick.is-on { background: rgba(242, 240, 233, .08); }
.tl-tick.is-dim { opacity: .3; }

.stats-strip { margin-top: 8px; }
.stats-strip .hero-stats { margin-top: 0; }
.filter-state { margin: 10px 0 0; font-size: .9rem; color: var(--ink-2); }
.filter-state button { border: 0; background: none; color: var(--orange-ink); font-weight: 600; cursor: pointer; padding: 0 0 0 6px; text-decoration: underline; }

/* planetas en miniatura */
.mini-planet { display: block; width: 64px; height: 64px; flex: none; margin-left: auto; }
.ep-card-top { align-items: center; }
.ep-card-top .ep-month { align-self: start; }
.latest { grid-template-columns: clamp(170px, 24vw, 330px) 1fr; }
.latest-planet { width: 100%; height: auto; aspect-ratio: 1; margin: 0; }
.ep-hero-mark { position: relative; width: clamp(150px, 20vw, 250px); aspect-ratio: 1; }
.hero-planet { width: 100%; height: 100%; margin: 0; }
.ep-hero-mark .ep-hero-num { position: absolute; right: -8%; bottom: -6%; font-size: clamp(3.4rem, 7vw, 6rem); }

/* salto al hiperespacio */
.warp { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 300; pointer-events: none; display: none; }
.warp.is-on { display: block; }
.cosmos.is-warping .cosmos-copy, .cosmos.is-warping .cosmos-panel, .cosmos.is-warping .cosmos-bottom, .cosmos.is-warping .cosmos-labels, .cosmos.is-warping .nauts-float { opacity: 0; transition: opacity .3s; }

@media (max-width: 900px) {
  .timeline { grid-auto-columns: 44px; overflow-x: auto; scrollbar-width: none; }
  .timeline::-webkit-scrollbar { display: none; }
  .cosmos-help { display: none; }
}
@media (max-width: 760px) {
  .cosmos { height: max(760px, 100svh); }
  .cosmos-copy { top: 92px; left: 20px; width: calc(100% - 40px); }
  .cosmos .hero-h { font-size: clamp(2.4rem, 11vw, 3.4rem); margin-bottom: 12px; }
  .cosmos .hero-lede { font-size: .95rem; margin-bottom: 16px; }
  .cosmos .hero-lede .long { display: none; }
  .cosmos .hero-h .line { white-space: normal; }
  .planet-label.is-far:not(.is-hover):not(.is-focus):not(.is-latest) { opacity: 0; pointer-events: none; }
  .cosmos .hero-cta .btn { min-height: 42px; padding: 0 16px; font-size: .9rem; }
  .cosmos-legend { display: none; }
  .nauts-float { width: 96px; bottom: 170px; right: 12px; }
  .nauts-bubble { font-size: .66rem; }
  .cosmos-panel { left: 12px; right: 12px; width: auto; top: auto; bottom: 12px; max-height: 64%; padding: 20px; transform: translateY(30px); }
  .is-focused .cosmos-bottom { opacity: 0; pointer-events: none; }
  .latest { grid-template-columns: 1fr; }
  .latest-planet { width: 180px; }
  .ep-hero-mark { width: 150px; }
}

/* constelaciones */
.cst { position: relative; height: clamp(520px, 72vh, 760px); border-radius: var(--r-lg); background: radial-gradient(ellipse at 50% 50%, #0B2A2B, #041314 70%); overflow: hidden; color: var(--space-ink); border: 1px solid var(--line); }
.cst canvas { position: absolute; inset: 0; display: block; }
.cst-hud { position: absolute; left: 22px; top: 20px; max-width: 320px; pointer-events: none; }
.cst-hud > * { pointer-events: auto; }
.cst-hud .eyebrow { color: #FFB938; }
.cst-hud p { margin: 0 0 12px; font-size: .88rem; color: var(--space-ink-2); }
.cst-search { background: rgba(6, 26, 27, .7); border-color: var(--space-line); min-width: 0; height: 42px; }
.cst-search input { color: var(--space-ink); }
.cst-tip { position: absolute; left: 0; top: 0; display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px; background: var(--space-ink); color: var(--space); font-size: .8rem; pointer-events: none; max-width: 260px; }
.cst-tip b { font-family: var(--f-display); }
.cst-tip span { color: #355; }
.mini-planet { width: 76px; height: 76px; }
@media (max-width: 760px) { .cst { height: 560px; } .cst-hud { left: 14px; right: 14px; top: 14px; max-width: none; } .cst-hud p { display: none; } }

.latest canvas.latest-planet { width: 100%; height: auto; }
.ep-hero-mark canvas.hero-planet { width: 100%; height: 100%; }
@media (max-width: 760px) { .latest canvas.latest-planet { width: 180px; } }

.tl-tick.is-eva .tl-bar::after { background: linear-gradient(to top, rgba(242, 240, 233, .25), #F2F0E9); }
.tl-tick.is-eva .tl-n { color: #FFD9A0; }
.planet-label.is-eva .pl-n { background: rgba(242, 240, 233, .9); color: #041314; }
.sec-eva { --c: #D8CDB4; }
.ep-num.is-eva { font-size: 2.2rem; }
.ep-num small, .ep-hero-num small { font-size: .55em; margin-left: .06em; }
.ep-hero-num.is-eva { font-size: clamp(2.4rem, 4.4vw, 3.6rem); right: 2%; bottom: -14%; }

/* muchos episodios: barra de tiempo con scroll y años */
.timeline.is-long { grid-auto-columns: 40px; overflow-x: auto; scrollbar-width: thin; scroll-behavior: smooth; padding-top: 22px; }
.tl-tick[data-year]::before { content: attr(data-year); position: absolute; top: -18px; left: 2px; font: 600 .62rem/1 var(--f-mono); color: #FFB938; white-space: nowrap; }
.timeline.is-long .tl-m { font-size: .58rem; }
.timeline.is-long li:has(.tl-tick[data-year]) { border-left: 1px solid var(--space-line); }
/* bitácora: con muchos episodios se ven los últimos y el resto bajo demanda */
.ep-card.is-older { display: none; }
.ep-grid.show-all .ep-card.is-older, .ep-grid.is-filtering .ep-card.is-older { display: flex; }
.more-wrap { display: flex; justify-content: center; margin-top: 20px; }
.ep-grid.show-all + .empty + .more-wrap, .ep-grid.is-filtering + .empty + .more-wrap { display: none; }

.cosmos.is-crowded .planet-label.is-far:not(.is-hover):not(.is-focus):not(.is-latest) { opacity: 0; pointer-events: none; }
.cosmos::before { content: ""; position: absolute; z-index: 2; pointer-events: none; left: 0; top: 0; bottom: 0; width: min(760px, 62%); background: radial-gradient(ellipse 70% 60% at 22% 42%, rgba(4, 19, 20, .78), rgba(4, 19, 20, 0) 75%); transition: opacity .5s; }
.cosmos.is-focused::before { opacity: 0; }
@media (max-width: 760px) { .cosmos::before { width: 100%; background: linear-gradient(to bottom, rgba(4, 19, 20, .8), rgba(4, 19, 20, 0) 46%); } }
.planet-label.is-under { opacity: 0; pointer-events: none; }

/* =====================================================================
   TRIPULACIÓN, INVITADOS Y FRANJA DE LA PORTADA
   ===================================================================== */
.crew-hero, .crew-band { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 75% 40%, #0F3434, var(--space) 65%); color: var(--space-ink); }
.crew-hero { min-height: clamp(560px, 78vh, 760px); margin-top: -76px; padding-top: 76px; display: flex; align-items: center; }
.crew-band { min-height: clamp(560px, 80vh, 720px); margin-top: clamp(48px, 7vw, 96px); display: flex; align-items: center; }
.crew-hero::after, .crew-band::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 18% 50%, rgba(4, 19, 20, .85), rgba(4, 19, 20, 0) 70%); }
.crew-hero-in, .crew-band-in { position: relative; z-index: 2; pointer-events: none; padding-block: 48px; }
.crew-hero-in a, .crew-band-in a, .crew-hero-in button, .crew-band-in button, .crew-hero-in .crumbs { pointer-events: auto; }
.crew-hero .crumbs a { color: var(--space-ink-2); }
.crew-hero .crumbs { color: rgba(242, 240, 233, .45); }
.crew-band .eyebrow { color: #FFB938; }
.crew-title { font: 800 expanded clamp(2.58rem, 6.36vw, 5.68rem)/.92 var(--f-display); letter-spacing: -.01em; margin: 0 0 22px; max-width: 12ch; text-wrap: balance; }
.crew-band .crew-title { font-size: clamp(2.4rem, 5.4vw, 4.8rem); max-width: 14ch; }
.crew-title br + * { color: #FF7A3D; }
.crew-lede { max-width: 48ch; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--space-ink-2); margin: 0 0 24px; }
.crew-hint { font-size: .74rem; color: #FFB938; margin: 0; }
body.crew-page .top { position: fixed; left: 0; right: 0; }
body.crew-page:not(.past-cosmos) .top-in { background: rgba(6, 26, 27, .55); border-color: var(--space-line); }
body.crew-page:not(.past-cosmos) .top-in .nav a { color: var(--space-ink-2); }
body.crew-page:not(.past-cosmos) .top-in .nav a[aria-current="page"], body.crew-page:not(.past-cosmos) .top-in .nav a:hover { background: rgba(242, 240, 233, .1); color: var(--space-ink); }
body.crew-page:not(.past-cosmos) .top-in .brand, body.crew-page:not(.past-cosmos) .top-in .brand-word { color: #8FD5C9; }
body.crew-page:not(.past-cosmos) .top-in .search-btn, body.crew-page:not(.past-cosmos) .top-in .icon-btn { background: rgba(242, 240, 233, .08); border-color: var(--space-line); color: var(--space-ink); }

/* gravedad cero */
.zerog { position: absolute; inset: 0; z-index: 0; }
.zg-item { position: absolute; left: 0; top: 0; cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none; will-change: transform; }
.zg-item:active, .zg-item.is-held { cursor: grabbing; }
.zg-nauts { height: auto; filter: drop-shadow(0 0 30px rgba(255, 122, 61, .22)); }
.zg-nauts { width: auto; height: clamp(230px, 27vw, 390px); }
.zg-nauts.is-float { height: clamp(200px, 23vw, 340px); }
.zg-planet { width: clamp(90px, 10vw, 150px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7FCFC2, #377069 60%, #1D4743); box-shadow: 0 0 60px rgba(108, 194, 180, .35); }
.zg-planet i { position: absolute; inset: 24%; background: #FFB938; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.zg-star { width: 34px; color: #FFB938; }
.zg-star.sm { width: 20px; color: #F2F0E9; }
.zg-star svg { width: 100%; height: auto; fill: currentColor; stroke: none; }
.zg-item.is-bump { animation: bump .35s var(--spring); }
@keyframes bump { 50% { filter: brightness(1.4) drop-shadow(0 0 30px rgba(255, 185, 56, .7)); } }

/* reloj de misión */
.mission { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; padding-block: clamp(40px, 6vw, 72px) 0; }
.mission-clock { display: grid; }
.mc-label { font-size: .78rem; color: var(--ink-2); }
.mc-days { font-size: clamp(4.5rem, 12vw, 9rem); line-height: .9; font-weight: 500; letter-spacing: -.02em; color: var(--orange-ink); }
.mc-unit { font: 700 semi-expanded 1.2rem/1 var(--f-display); }
.mission-log { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.mission-log div { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; padding-right: 20px; }
.mission-log div:nth-child(even) { padding-left: 20px; padding-right: 0; border-left: 1px solid var(--line); }
.mission-log dt { color: var(--ink-2); font-size: .92rem; }
.mission-log dd { margin: 0; font-size: 1.15rem; }

/* fichas de tripulante */
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; margin-top: 28px; perspective: 1200px; }
.badge { position: relative; padding: 28px 28px 34px; border-radius: 28px; background: linear-gradient(160deg, #0F3434, #061A1B 70%); color: var(--space-ink); overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--spring); transform-style: preserve-3d; }
.badge::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 122, 61, .2), transparent 55%); pointer-events: none; }
.badge-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.badge-mission { font-size: .7rem; color: #FFB938; }
.badge-patch { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #377069; color: #FFB938; box-shadow: 0 0 0 4px rgba(242, 240, 233, .08); }
.badge-patch svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.badge-name { font: 800 expanded clamp(1.89rem, 3.44vw, 2.75rem)/.95 var(--f-display); letter-spacing: -.01em; margin: 0 0 10px; }
.badge-role { color: #FF8C55; font-weight: 600; margin: 0 0 22px; }
.badge-data { margin: 0 0 18px; display: grid; gap: 12px; }
.badge-data div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.badge-data dt { font: 500 .72rem/1.6 var(--f-mono); color: rgba(242, 240, 233, .5); }
.badge-data dd { margin: 0; }
.badge-facts { margin: 0 0 22px; padding: 0 0 0 18px; display: grid; gap: 6px; color: var(--space-ink-2); font-size: .94rem; }
.badge-facts li::marker { color: #FFB938; }
.badge-links { display: flex; flex-wrap: wrap; gap: 10px; }
.badge .btn-ghost { background: rgba(242, 240, 233, .06); border-color: var(--space-line); color: var(--space-ink); }
.badge .btn-ghost svg { width: 18px; height: 18px; }
.badge-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(90deg, #FF7A3D 0 40px, #6CC2B4 40px 80px, #3CC6DA 80px 110px, #F07AA8 110px 130px, #FFB938 130px 170px); }

/* plan de vuelo */
.flight { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.flight::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.flight-step { position: relative; padding-top: 44px; }
.flight-step::before { content: ""; position: absolute; top: 10px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--teal); }
.flight-step:last-child::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px color-mix(in srgb, var(--orange) 25%, transparent); }
.flight-n { font-size: .78rem; color: var(--orange-ink); }
.flight-step h3 { font: 700 semi-expanded 1.3rem/1.2 var(--f-display); margin: 4px 0 8px; }
.flight-step p { margin: 0; color: var(--ink-2); font-size: .94rem; }

/* invitados */
.guests { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; margin-top: 24px; perspective: 1200px; }
.guests-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.guest { position: relative; padding: 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--spring), border-color .2s; }
.guest.is-eva { background: linear-gradient(160deg, #0F3434, #061A1B 75%); color: var(--space-ink); border-color: transparent; }
.guest-planet { position: absolute; right: -10px; top: -10px; width: 140px !important; height: 140px !important; opacity: .9; }
.guests-sm .guest-planet { width: 96px !important; height: 96px !important; }
.guest-how { font-size: .74rem; color: var(--orange-ink); margin: 0 0 14px; }
.guest.is-eva .guest-how { color: #FFB938; }
.guest-name { font: 800 expanded clamp(1.55rem, 2.58vw, 2.24rem)/1 var(--f-display); letter-spacing: -.01em; margin: 0 0 8px; max-width: 12ch; }
.guests-sm .guest-name { font-size: 1.6rem; }
.guest-role { font-weight: 600; margin: 0 0 14px; max-width: 34ch; color: var(--ink-2); }
.guest.is-eva .guest-role { color: #FF8C55; }
.guest-about { margin: 0 0 20px; color: var(--ink-2); max-width: 52ch; }
.guest.is-eva .guest-about { color: var(--space-ink-2); }
.guest-links { display: flex; flex-wrap: wrap; gap: 10px; }
.guest.is-eva .btn-ghost { background: rgba(242, 240, 233, .06); border-color: var(--space-line); color: var(--space-ink); }
.guest-teaser { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--bg-2); }
.guest-teaser p { margin: 8px 0 0; color: var(--ink-2); max-width: 52ch; }

@media (max-width: 900px) {
  .flight { grid-template-columns: 1fr; gap: 0; }
  .flight::before { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .flight-step { padding: 0 0 24px 40px; }
  .flight-step::before { top: 2px; }
  .mission { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .crew-hero, .crew-band { min-height: 720px; align-items: flex-start; }
  .crew-hero-in { padding-top: 110px; }
  .crew-band-in { padding-top: 48px; }
  .crew-hero::after, .crew-band::after { background: linear-gradient(to bottom, rgba(4, 19, 20, .85) 30%, rgba(4, 19, 20, 0) 75%); }
  .zg-nauts { height: 190px; }
  .zg-nauts.is-float { height: 165px; }
  .mission-log { grid-template-columns: 1fr; }
  .mission-log div:nth-child(even) { padding-left: 0; border-left: 0; }
  .badge-data div { grid-template-columns: 1fr; gap: 2px; }
}

.badge-top { align-items: flex-start; margin-bottom: 18px; }
.badge-avatar { width: clamp(110px, 12vw, 150px); height: auto; aspect-ratio: 1; border-radius: 50%; background: #F2E3C6; box-shadow: 0 0 0 5px rgba(242, 240, 233, .1), 0 0 0 1px rgba(255, 185, 56, .5); transform: translateZ(40px) rotate(-4deg); transition: transform .6s var(--spring); }
.badge:hover .badge-avatar { transform: translateZ(40px) rotate(3deg) scale(1.04); }
.ep-hero-copy .h1 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.04; }
