/* =====================================================================
   soyrandolf.com — styles.css
   Concepto: «Soy Randolf» como declaración que se completa sola.
   Un recorrido por capítulos, cada uno con su propio clima cromático:
   tinta → grafito → hueso → sangre de toro → cobalto → chartreuse.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --ink: #0B0B0C;
  --graphite: #141416;
  --graphite-2: #1C1C1F;
  --line: #2A2A2E;
  --line-2: #3A3A40;
  --bone: #EDE9DF;
  --bone-dim: #B8B8C0;
  --mute: #8C8C94;
  --accent: #D8F24A;

  --bone-bg: #EDE9DF;
  --bone-ghost: #E2DDD0;
  --bone-line: #C9C4B8;
  --bone-text-dim: #4A4A52;
  --bone-mute: #6B6B72;

  --ox: #3A1313;
  --ox-ghost: #4A1A1A;
  --ox-line: #6B3030;
  --ox-dim: #D9BDBD;
  --ox-mute: #C9A0A0;

  --cobalt: #1A2BD6;
  --cobalt-ghost: #2238E0;
  --cobalt-line: #4654E8;
  --cobalt-line-2: #5E6BFF;
  --cobalt-dim: #C9CEFF;
  --cobalt-mute: #A9B2FF;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1344px;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (min-width: 900px) {
  :root { --gutter: max(48px, env(safe-area-inset-left, 0px)); --gutter-r: max(48px, env(safe-area-inset-right, 0px)); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---------- Tipografía ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
}
.disp {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .9;
  text-wrap: balance;
}
.disp em { font-style: normal; color: var(--accent); }
.disp--xl { font-size: clamp(56px, 8vw, 120px); line-height: .88; }
.disp--xxl { font-size: clamp(72px, 13vw, 200px); line-height: .86; }
.body { font-size: 17px; line-height: 1.5; font-weight: 300; max-width: 58ch; }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.45; font-weight: 300; color: var(--bone-dim); max-width: 46ch; }
.accent { color: var(--accent); }
.dim { color: var(--mute); }
.rule { display: inline-block; height: 1px; width: 80px; background: var(--line-2); }
.rule--accent { background: var(--accent); width: 40px; }
/* Letras huecas: se rellenan con el color del fondo y el trazo va por detrás,
   así no se ven las líneas internas donde los contornos de la tipografía se cruzan. */
.hollow-ink { color: var(--bone-bg); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }

/* ---------- Pills, discos ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 18px 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform .4s var(--ease);
}
.pill:hover { transform: translateY(-2px); }
.pill--accent { background: var(--accent); color: var(--ink); }
.pill__dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.disc {
  width: 176px; height: 176px; border-radius: 50%;
  background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em;
  transition: transform .5s var(--ease);
}
.disc svg { color: var(--accent); }
.disc:hover { transform: scale(1.06) rotate(-6deg); }

/* =====================================================================
   HÉROE
   ===================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__main {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 36px var(--gutter-r) 0 var(--gutter);
  min-width: 0;
}
.hero__top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__name { display: flex; flex-direction: column; gap: 8px; padding: 64px 0 48px; }
.hero__name h1 { font-size: clamp(88px, 15.5vw, 236px); }
.roles { display: flex; flex-direction: column; margin-top: 12px; }
.role {
  font-size: clamp(44px, 7.6vw, 116px);
  font-weight: 700;
  color: var(--ink);
  -webkit-text-stroke: 3px var(--bone);
  paint-order: stroke fill;
  transition: color .6s var(--ease), -webkit-text-stroke-color .6s var(--ease);
}
.role.is-on { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.hero__bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 0 0 40px;
}

/* Índice */
.index {
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 36px 32px 40px;
  gap: 40px;
}
.index__top { display: flex; justify-content: space-between; align-items: center; }
.lang { display: flex; gap: 14px; }
.lang__btn { color: var(--mute); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.lang__btn.is-on { color: var(--bone); border-bottom-color: var(--accent); }
.chapters { display: flex; flex-direction: column; }
.chapters a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 18px 0; border-top: 1px solid var(--line);
  transition: padding .3s var(--ease);
}
.chapters a:last-child { border-bottom: 1px solid var(--line); }
.chapters .num { color: var(--mute); }
.chapters__name { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; text-align: right; }
.chapters a:hover, .chapters a.is-active { padding-left: 8px; }
.chapters a.is-active .num { color: var(--accent); }
.tag { margin-left: 4px; }
.seal { display: flex; justify-content: flex-end; }
.seal__ring { stroke: var(--line); }
.seal__text { font-family: var(--font-mono); font-size: 15px; letter-spacing: .32em; fill: var(--bone); }
.seal__dot { fill: var(--accent); }
.spin { animation: spin 18s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cinta */
.ticker { grid-column: 1 / -1; border-top: 1px solid var(--line); overflow: hidden; padding: 14px 0; }
.ticker__track { display: flex; gap: 48px; width: max-content; color: var(--mute); animation: marquee 28s linear infinite; }
.ticker__track span::after { content: "◆"; color: var(--accent); margin-left: 48px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   CAPÍTULOS
   ===================================================================== */
.chapter { position: relative; overflow: hidden; padding-block: 112px 144px; }
.chapter .wrap { position: relative; }
.chapter__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 16px;
  align-items: start; margin-bottom: 96px;
}
.chapter__head > .mono { grid-column: span 3; }
.chapter__head > h2 { grid-column: span 9; font-size: clamp(44px, 6.4vw, 96px); font-weight: 700; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 64px; }
.grid12 > h2, .grid12 > .stack > h2 { font-size: clamp(44px, 6.4vw, 96px); font-weight: 700; }
.col-3 { grid-column: span 3; }
.col-9 { grid-column: 4 / span 9; }
.col-12 { grid-column: 1 / -1; }
.col-mid { grid-column: 4 / span 6; }
.col-side { grid-column: 10 / span 3; }
.stack { display: flex; flex-direction: column; gap: 28px; }
.ghost {
  position: absolute; right: -40px; top: -60px;
  font-size: clamp(280px, 44vw, 640px); line-height: 1; user-select: none; pointer-events: none;
}

/* --- I · Empresas (grafito) --- */
.chapter--i { background: var(--graphite); }
.chapter--i .ghost { color: var(--graphite-2); }
.houses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.house {
  container-type: inline-size;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: 440px; padding: 28px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--ink);
  transition: transform .3s var(--ease), border-color .25s;
  min-width: 0;
}
.house:nth-child(2) { margin-top: 72px; }
.house:nth-child(3) { margin-top: 144px; }
.house.is-highlight { border-color: var(--accent); }
.house:hover { transform: translateY(-8px); }
.house__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.house__go {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.house.is-highlight .house__go { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.house:hover .house__go { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.house__body { display: flex; flex-direction: column; gap: 18px; }
.house h3 { font-size: clamp(30px, 12.5cqw, 56px); font-weight: 700; line-height: .9; }
.house h3 span { font-weight: 300; display: block; }
.house p { font-size: 15px; line-height: 1.5; color: var(--bone-dim); }

/* --- II · Asesoría (hueso) --- */
.chapter--ii { background: var(--bone-bg); color: var(--ink); }
.chapter--ii .ghost { color: var(--bone-ghost); right: auto; left: -30px; top: auto; bottom: -120px; }
.chapter--ii .dim { color: var(--bone-mute); }
.chapter--ii .body { color: var(--bone-text-dim); }
.steps { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--bone-line); }
.steps li > * { transition: transform .25s var(--ease), color .25s; will-change: transform; }
.steps li:hover > * { transform: translateX(10px); }
.steps li:hover .num { color: var(--ink); }
.steps li:last-child { border-bottom-color: var(--ink); }
.steps .num { padding-top: 6px; color: var(--bone-mute); }
.steps h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; line-height: 1.1; }
.steps p { font-size: 15px; line-height: 1.5; color: var(--bone-text-dim); margin-top: 8px; }
.cta-col { grid-column: 10 / span 3; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 24px; }

/* --- III · Escritos (sangre de toro) --- */
.chapter--iii { background: var(--ox); }
.chapter--iii .ghost { color: var(--ox-ghost); right: 40px; top: 60px; font-size: clamp(240px, 36vw, 520px); }
.chapter--iii .dim { color: var(--ox-mute); }
.chapter--iii .body { color: var(--ox-dim); }
.articles { border-top: 1px solid var(--ox-line); }
.article {
  display: grid; grid-template-columns: 180px minmax(0, 1fr) 140px; gap: 32px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--ox-line);
}
.article__source, .article__title { transition: transform .25s var(--ease), color .25s; }
.articles li:last-child .article { border-bottom-color: var(--bone); }
.article:hover .article__source, .article:hover .article__title { transform: translateX(14px); }
.article__source { color: var(--ox-mute); }
.article__source.is-rc { color: var(--accent); }
.article__title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.article:hover .article__title { color: var(--accent); }
.article__date { color: var(--ox-mute); text-align: right; font-variant-numeric: tabular-nums; }
.archive { justify-self: end; display: inline-flex; align-items: center; gap: 12px; }

/* --- IV · Podcast (cobalto) --- */
.chapter.chapter--iv { background: var(--cobalt); padding-bottom: 0; }
.chapter--iv .dim { color: var(--cobalt-mute); }
.chapter--iv .body { color: var(--cobalt-dim); font-size: 15px; }
.chapter--iv .grid12 { row-gap: 56px; align-items: start; }
.episode-card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 20px; border: 1px solid var(--cobalt-line-2); border-radius: 4px;
  transition: background .3s, color .3s;
}
.episode-card:hover { background: var(--bone); color: var(--ink); }
.episode-card:hover .dim { color: var(--bone-mute); }
.episode-card__art { width: 96px; height: 96px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.episode-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.episode-card__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.03em; line-height: 1; }
.episode-card__platforms { display: flex; gap: 14px; flex-wrap: wrap; opacity: .85; }
.wave { height: 220px; display: flex; align-items: flex-end; gap: 6px; margin-top: 72px; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wave span { flex: 1; display: block; background: var(--accent); transform-origin: bottom; animation: pulse 2.4s ease-in-out infinite alternate; }
@keyframes pulse { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* =====================================================================
   CIERRE
   ===================================================================== */
.outro { background: var(--accent); color: var(--ink); padding-block: 96px 40px; }
.outro .dim { color: var(--ink); opacity: .65; }
.outro__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; align-items: end; margin-bottom: 80px; }
.outro__head h2 { grid-column: span 8; }
.outro__contact { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 14px; }
.agenda {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; line-height: 1.05;
  border-bottom: 2px solid var(--ink); padding-bottom: 6px; transition: gap .25s var(--ease);
}
.agenda:hover { gap: 18px; }
.agenda svg { flex-shrink: 0; }
.outro__foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--ink); }
.links { display: flex; gap: 28px; flex-wrap: wrap; }
.links a, .linkbtn { border-bottom: 1px solid transparent; transition: border-color .2s; }
.links a:hover, .linkbtn:hover { border-bottom-color: var(--ink); }
.linkbtn { font: inherit; letter-spacing: inherit; text-transform: inherit; }

/* =====================================================================
   REVEAL (aparece al hacer scroll; visible por defecto si no hay JS)
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (min-width: 1100px) {
  .index { position: sticky; top: 0; align-self: start; height: 100vh; height: 100svh; }
}

@media (max-width: 1099px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .index { border-left: 0; border-top: 1px solid var(--line); padding: 28px var(--gutter-r) 32px var(--gutter); }
  .index__top { order: -1; }
  .seal svg { width: 120px; height: 120px; }
  .chapter__head > .mono, .chapter__head > h2, .col-3, .col-9, .col-mid, .col-side, .cta-col { grid-column: 1 / -1; }
  .grid12 { row-gap: 40px; }
  .houses { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 12px; }
  .house { min-height: 0; gap: 40px; }
  .house:nth-child(2) { margin-top: 0; margin-left: 24px; }
  .house:nth-child(3) { margin-top: 0; margin-left: 48px; }
  .cta-col { align-items: flex-start; }
  .disc { width: auto; height: auto; border-radius: 999px; flex-direction: row; padding: 14px 22px; font-size: 16px; }
  .disc:hover { transform: none; }
}

@media (max-width: 720px) {
  .chapter { padding-block: 64px 80px; }
  .chapter__head { margin-bottom: 40px; }
  .hero__name { padding: 40px 0 28px; }
  .hero__bottom { padding-bottom: 32px; }
  .pill { white-space: normal; }
  .article { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .article__date { text-align: left; }
  .article:hover .article__source, .article:hover .article__title { transform: none; }
  .episode-card { grid-template-columns: 72px minmax(0, 1fr); }
  .episode-card__art { width: 72px; height: 72px; }
  .episode-card__platforms { grid-column: 1 / -1; }
  .wave { height: 120px; gap: 4px; margin-top: 32px; }
  .wave span:nth-child(n+41) { display: none; }
  .outro__head { margin-bottom: 40px; }
  .outro__head h2, .outro__contact { grid-column: 1 / -1; }
  .ticker__track { animation-duration: 20s; }
  .house:nth-child(2) { margin-left: 12px; }
  .house:nth-child(3) { margin-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .spin, .ticker__track, .wave span { animation: none; }
  .role { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================================
   RETRATO (índice del héroe) + arte del episodio
   ===================================================================== */
.portrait { position: relative; align-self: flex-end; width: 236px; max-width: 100%; }
.portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 4px;
  filter: grayscale(1) contrast(1.08);
  transition: filter .6s var(--ease);
}
.portrait:hover img { filter: grayscale(0) contrast(1); }
.portrait .seal { position: absolute; right: -28px; bottom: -28px; }
.portrait .seal svg { width: 128px; height: 128px; }
.portrait .seal__ring { stroke: var(--line-2); }
.portrait .seal__text { fill: var(--bone); }
.episode-card__art { position: relative; overflow: hidden; }
.episode-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.episode-card__art svg { position: relative; z-index: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
@media (max-width: 1099px) {
  .portrait { width: min(60vw, 280px); align-self: flex-start; margin-top: 8px; }
  .portrait .seal { right: -20px; bottom: -20px; }
  .portrait .seal svg { width: 104px; height: 104px; }
}

/* Sello de versión en el héroe */
.ver { color: var(--bone); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; margin-right: 2px; }

/* Las tres casas pesan igual en reposo; el acento aparece solo al pasar el cursor o enfocar. */
.house:hover, .house:focus-visible { border-color: var(--accent); }
.house:hover .house__top .mono, .house:focus-visible .house__top .mono { color: var(--accent); }
.house__top .mono { transition: color .3s; }

/* Asesoría: en pantallas angostas la etiqueta va encima del texto */
@media (max-width: 720px) {
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .steps li:hover > * { transform: none; }
  .steps .num { padding-top: 0; }
}

/* =====================================================================
   CAP. III · Escritos — pieza destacada + dos estantes
   ===================================================================== */
.pill--line { border: 1px solid currentColor; padding: 14px 22px; gap: 10px; }
.pill--line:hover { background: var(--bone); color: var(--ox); border-color: var(--bone); }

.feature {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end;
  padding-block: 40px; border-top: 1px solid var(--bone); border-bottom: 1px solid var(--ox-line);
}
.feature--plain { grid-template-columns: minmax(0, 1fr); }
.feature__text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.feature__title { font-family: var(--font-display); font-variation-settings: "opsz" 96; font-weight: 700; font-size: clamp(34px, 4.8vw, 72px); letter-spacing: -.04em; line-height: .95; text-wrap: balance; }
.feature__title a { transition: color .25s; }
.feature__title a:hover { color: var(--accent); }
.feature__excerpt { font-size: 18px; line-height: 1.5; font-weight: 300; color: var(--ox-dim); max-width: 56ch; }
.feature__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.feature__img { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; max-width: 100%; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.feature:hover .feature__img img { transform: scale(1.03); }

.shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.shelf { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.shelf__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--bone); }
.shelf__head h3 { color: var(--bone); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--ox-line); }
.row__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -.025em; line-height: 1.1; transition: transform .25s var(--ease), color .25s; }
.row__meta { color: var(--ox-mute); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.row__meta svg { color: var(--accent); }
.row:hover .row__title { color: var(--accent); transform: translateX(10px); }
.shelf__go { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; }
.shelf__go .rule { transition: width .3s var(--ease); }
.shelf__go:hover .rule { width: 64px; }

@media (max-width: 1099px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature__img { order: -1; aspect-ratio: 16 / 9; }
  .shelves { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 720px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; }
  .row:hover .row__title { transform: none; }
  .feature__excerpt { font-size: 16px; }
}

/* =====================================================================
   CAP. IV · Podcast — escuchar aquí, seguir en la app de cada quien
   ===================================================================== */
.episode {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 24px; border: 1px solid var(--cobalt-line-2); border-radius: 4px; min-width: 0;
}
.episode__art { display: block; width: 160px; aspect-ratio: 1 / 1; max-width: 100%; background: var(--ink); overflow: hidden; border-radius: 2px; }
.episode__art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.episode:hover .episode__art img { transform: scale(1.04); }
.episode__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.episode__title { font-family: var(--font-display); font-variation-settings: "opsz" 96; font-weight: 700; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
.episode__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.chapter--iv .pill--line:hover { background: var(--bone); color: var(--cobalt); border-color: var(--bone); }

.follow { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.platforms { display: flex; flex-direction: column; align-self: stretch; border-top: 1px solid var(--cobalt-line-2); }
.platforms a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--cobalt-line-2);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -.025em; line-height: 1;
  transition: color .2s;
}
.platforms a svg { transition: transform .25s var(--ease); flex-shrink: 0; }
.platforms a:hover { color: var(--accent); }
.platforms a:hover svg { transform: translate(3px, -3px); }
.follow__hint { font-size: 13px; line-height: 1.45; color: var(--cobalt-mute); }

.older { display: flex; flex-direction: column; }
.older__head { padding-bottom: 16px; border-bottom: 1px solid var(--bone); }
.older .row { border-bottom-color: var(--cobalt-line); }
.older .row__meta { color: var(--cobalt-mute); }
.older__n { font-weight: 300; color: var(--cobalt-mute); margin-right: 16px; font-variant-numeric: tabular-nums; }

/* La onda está quieta. Solo se mueve cuando el visitante se acerca a escuchar. */
.wave span { animation-play-state: paused; }
.chapter--iv:has(.js-wave:hover, .js-wave:focus-visible) .wave span { animation-play-state: running; }

@media (max-width: 720px) {
  .episode { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; align-items: start; }
  .episode__art { width: 96px; }
}

/* Asesoría: por dónde se contrata */
.via { font-size: 14px; line-height: 1.45; color: var(--bone-text-dim); max-width: 26ch; }
.via a { color: var(--ink); border-bottom: 1px solid var(--ink); transition: border-color .2s; }
.via a:hover { border-bottom-color: transparent; }
@media (max-width: 1099px) { .via { max-width: 46ch; } }

/* =====================================================================
   Ajustes tras revisar en teléfono, tableta y escritorio
   ===================================================================== */
/* Metadatos: grupos que bajan de línea enteros, nunca partidos */
.meta { display: flex; flex-wrap: wrap; gap: 4px 0; }
.meta > span { white-space: nowrap; }
.meta > span + span::before { content: "·"; margin: 0 .7em; }
/* Imagen que tarda o falla: un bloque de color en vez de un hueco */
.feature__img { background: var(--ox-ghost); }
.episode__art { background: var(--ink); }
@media (max-width: 720px) {
  .hero__top .rule { display: none; }
  .hero__top { gap: 12px 16px; }
  .meta > span + span::before { content: none; }
  .meta { flex-direction: column; gap: 2px; }
  .outro__contact .mono { line-height: 1.5; }
}
