/* ==========================================================================
   epsilon.h — hoja de estilos
   Identidad: papel milimetrado, tinta, verde menta del logo y un "símbolo de
   unidad" por sección (C, µC, Mpx, ∃!, MHz). Sin frameworks.
   ========================================================================== */

@font-face {
  font-family: "Humanist 521";
  src: url("../fuentes/hum521it-webfont.woff2") format("woff2"), url("../fuentes/hum521it-webfont.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: light;
  --papel: #fbf8f1;
  --papel-2: #f3eee2;
  --superficie: #fffdf8;
  --tinta: #1e2220;
  --tinta-2: #4b534e;
  --tinta-3: #6b736e;
  --linea: #e4ddcd;
  --linea-2: #d3c9b3;
  --menta: #9ad3b1;
  --verde: #2c6a49;
  --verde-fuerte: #1f5135;
  --enlace: #2a6646;
  --sobre-boton: #fffdf8;
  --grilla: rgb(44 106 73 / 0.07);
  --grilla-2: rgb(44 106 73 / 0.12);
  --cuarto-oscuro: #141816;
  --sombra: 0 1px 2px rgb(30 34 32 / 0.05), 0 10px 30px -14px rgb(30 34 32 / 0.22);

  --c-capsulas: #3f4fb0;
  --c-microcapsulas: #9a5800;
  --c-megapixeles: #3e5663;
  --c-eureka: #bf3f0b;
  --c-megahertz: #973a84;
  --c-nosotros: #2c6a49;

  --f-titulo: "Fraunces", Georgia, "Times New Roman", serif;
  --f-texto: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-marca: "Humanist 521", "Lato", sans-serif;

  --ancho: 74rem;
  --ancho-texto: 44rem;
  --radio: 14px;
  --acento: var(--verde);
}

:root[data-tema="oscuro"] {
  color-scheme: dark;
  --papel: #111513;
  --papel-2: #161b18;
  --superficie: #1a201d;
  --tinta: #ece8dd;
  --tinta-2: #b7beb8;
  --tinta-3: #929a94;
  --linea: #2a322e;
  --linea-2: #3a443f;
  --verde: #9ad3b1;
  --verde-fuerte: #9ad3b1;
  --enlace: #a8dcbd;
  --sobre-boton: #111513;
  --grilla: rgb(154 211 177 / 0.05);
  --grilla-2: rgb(154 211 177 / 0.09);
  --cuarto-oscuro: #0a0c0b;
  --sombra: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 30px -14px rgb(0 0 0 / 0.6);
  --c-capsulas: #a6b2ff;
  --c-microcapsulas: #f2b45c;
  --c-megapixeles: #a9bfcb;
  --c-eureka: #ff9a6b;
  --c-megahertz: #e8a2d8;
  --c-nosotros: #9ad3b1;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    color-scheme: dark;
    --papel: #111513;
    --papel-2: #161b18;
    --superficie: #1a201d;
    --tinta: #ece8dd;
    --tinta-2: #b7beb8;
    --tinta-3: #929a94;
    --linea: #2a322e;
    --linea-2: #3a443f;
    --verde: #9ad3b1;
    --verde-fuerte: #9ad3b1;
    --enlace: #a8dcbd;
    --sobre-boton: #111513;
    --grilla: rgb(154 211 177 / 0.05);
    --grilla-2: rgb(154 211 177 / 0.09);
    --cuarto-oscuro: #0a0c0b;
    --sombra: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 30px -14px rgb(0 0 0 / 0.6);
    --c-capsulas: #a6b2ff;
    --c-microcapsulas: #f2b45c;
    --c-megapixeles: #a9bfcb;
    --c-eureka: #ff9a6b;
    --c-megahertz: #e8a2d8;
    --c-nosotros: #9ad3b1;
  }
}

.seccion-capsulas, .chip-capsulas, .tile-capsulas, .nav-capsulas, .tarjeta-capsulas { --acento: var(--c-capsulas); }
.seccion-microcapsulas, .chip-microcapsulas, .tile-microcapsulas, .nav-microcapsulas, .tarjeta-microcapsulas { --acento: var(--c-microcapsulas); }
.seccion-megapixeles, .chip-megapixeles, .tile-megapixeles, .nav-megapixeles, .tarjeta-megapixeles { --acento: var(--c-megapixeles); }
.seccion-eureka, .chip-eureka, .tile-eureka, .nav-eureka, .tarjeta-eureka { --acento: var(--c-eureka); }
.seccion-megahertz, .chip-megahertz, .tile-megahertz, .nav-megahertz, .tarjeta-megahertz, .banda-megahertz { --acento: var(--c-megahertz); }
.seccion-nosotros, .nav-nosotros { --acento: var(--c-nosotros); }

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 1rem/1.6 var(--f-texto);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, picture, video, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--enlace); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
  font-family: var(--f-titulo);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2.5px solid var(--acento); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--menta) 55%, transparent); color: var(--tinta); }
button { font: inherit; color: inherit; }

.contenedor { width: min(100% - 2rem, var(--ancho)); margin-inline: auto; }
.contenedor-texto { width: min(100% - 2rem, var(--ancho-texto)); margin-inline: auto; }
.bloque { padding-block: clamp(2rem, 5vw, 3.5rem); }
.saltar { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--tinta); color: var(--papel); padding: 0.6rem 1rem; border-radius: 8px; }
.saltar:focus { top: 1rem; }

.sobretitulo {
  font: 500 0.75rem/1.4 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta-3);
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sobretitulo .icono { width: 1rem; height: 1rem; }
.meta { font: 400 0.85rem/1.5 var(--f-mono); color: var(--tinta-3); display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; margin: 0; }
.icono { flex: none; }

/* Papel milimetrado: celdas de 6 mm y líneas mayores cada 5 celdas */
.milimetrado, .hero, .seccion-cabecera {
  background-color: var(--papel-2);
  background-image:
    linear-gradient(var(--grilla-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grilla-2) 1px, transparent 1px),
    linear-gradient(var(--grilla) 1px, transparent 1px),
    linear-gradient(90deg, var(--grilla) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* Símbolo de unidad (C, µC, Mpx, ∃!, MHz) */
.simbolo {
  font: 500 0.7rem/1 var(--f-mono);
  letter-spacing: 0;
  display: inline-grid;
  place-items: center;
  min-width: 2.1em;
  height: 1.75em;
  padding: 0 0.35em;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  color: var(--acento);
  text-transform: none;
}
.simbolo-grande {
  font: 500 clamp(1.6rem, 5vw, 2.6rem)/1 var(--f-mono);
  display: grid;
  place-items: center;
  flex: none;
  min-width: 2.3em;
  aspect-ratio: 1;
  padding: 0 0.3em;
  color: var(--acento);
  background: var(--superficie);
  border: 2px solid var(--acento);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--acento);
  margin: 0;
}

/* ---------------------------------------------------------------- marca */

.marca { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--tinta); text-decoration: none; }
.logo { position: relative; width: 2.1rem; height: 2.1rem; flex: none; }
.logo-e, .logo-h {
  position: absolute;
  inset: 0;
  -webkit-mask: var(--mascara) center / contain no-repeat;
  mask: var(--mascara) center / contain no-repeat;
}
.logo-e { --mascara: url("../img/logo-e.png"); background: var(--tinta); }
.logo-h { --mascara: url("../img/logo-h.png"); background: var(--menta); }
.marca-texto { font: italic 400 1.55rem/1 var(--f-marca); letter-spacing: 0.01em; padding-top: 0.15em; }
.marca-texto .punto { color: var(--menta); }
:root:not([data-tema="oscuro"]) .marca-texto .punto { color: #5fae84; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .marca-texto .punto { color: var(--menta); } }

/* Franja que identifica la vista previa (sólo con --base) */
.aviso-previa { margin: 0; padding: 0.45rem 1rem; text-align: center; font: 500 0.78rem/1.4 var(--f-mono); background: var(--tinta); color: var(--papel); }
.aviso-previa a { color: var(--menta); }

/* ---------------------------------------------------------------- cabecera */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--papel) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linea);
}
.cabecera-in { width: min(100% - 2rem, var(--ancho)); margin-inline: auto; display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.cabecera .marca { margin-right: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.nav a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  color: var(--tinta);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background-color 0.15s;
}
.nav a:hover { background: color-mix(in srgb, var(--acento) 10%, transparent); }
.nav a[aria-current="page"] { background: color-mix(in srgb, var(--acento) 14%, transparent); color: var(--acento); }
.cabecera-acciones { display: flex; gap: 0.25rem; }
.boton-icono {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--tinta);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.boton-icono:hover { background: color-mix(in srgb, var(--tinta) 8%, transparent); }
.boton-menu { display: none; }
:root[data-tema] .tema-auto, .tema-claro, .tema-oscuro, .menu-cerrar { display: none; }
:root:not([data-tema]) .tema-auto, :root[data-tema="claro"] .tema-claro, :root[data-tema="oscuro"] .tema-oscuro { display: contents; }
.cabecera.abierta .menu-abrir { display: none; }
.cabecera.abierta .menu-cerrar { display: contents; }

@media (max-width: 66rem) {
  .nav a { padding: 0.45rem 0.5rem; }
  .nav .simbolo { display: none; }
}
@media (max-width: 54rem) {
  .js .boton-menu { display: inline-grid; }
  .js .nav { display: none; }
  .cabecera-in { flex-wrap: wrap; }
  .js .cabecera.abierta .nav { display: block; order: 3; width: 100%; padding: 0.25rem 0 1rem; }
  .js .cabecera.abierta .nav ul { flex-direction: column; }
  .js .cabecera.abierta .nav a { padding: 0.7rem 0.6rem; font-size: 1.05rem; border-radius: 10px; }
  .nav .simbolo { display: inline-grid; }
  html:not(.js) .nav { order: 3; width: 100%; padding-bottom: 0.75rem; }
}

/* ---------------------------------------------------------------- botones y chips */

.boton {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--verde-fuerte);
  background: var(--verde-fuerte);
  color: var(--sobre-boton);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
}
.boton:hover { transform: translateY(-1px); text-decoration: none; }
.boton .icono { width: 1.1rem; height: 1.1rem; }
.boton-sec { background: transparent; color: var(--tinta); border-color: var(--linea-2); }
.boton-sec:hover { border-color: var(--tinta-3); }
.boton-bloque { width: 100%; justify-content: center; }
.boton-texto {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  padding: 0.2rem 0;
  color: var(--enlace);
  font: 500 0.82rem/1.4 var(--f-mono);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.boton-texto .icono { width: 1rem; height: 1rem; }
.ver-todo { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; text-decoration: none; }
.ver-todo .icono { width: 1.1rem; height: 1.1rem; transition: transform 0.15s; }
.ver-todo:hover .icono { transform: translateX(3px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: 500 0.75rem/1 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acento);
  text-decoration: none;
  margin-bottom: 0.75rem;
}
a.chip:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- portada */

.hero { border-bottom: 1px solid var(--linea); }
.hero-in { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 7vw, 5.5rem); align-items: center; }
@media (min-width: 60rem) { .hero-in { grid-template-columns: 1.25fr 1fr; gap: 4rem; } }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--verde); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero-bajada { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--tinta-2); max-width: 34rem; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.cita {
  margin: 0;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--sombra);
  position: relative;
}
.cita::before {
  content: "“";
  position: absolute;
  top: -0.35em;
  left: 1rem;
  font: 700 5rem/1 var(--f-titulo);
  color: var(--menta);
}
.cita blockquote { margin: 0 0 1rem; }
.cita blockquote p { font: italic 400 clamp(1.1rem, 2vw, 1.3rem)/1.5 var(--f-titulo); margin: 0; transition: opacity 0.25s; }
.cita figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; align-items: center; font-weight: 700; color: var(--tinta-2); }
.cita figcaption span::before { content: "— "; }
.cita cite { font-weight: 400; }
.cita.cambiando blockquote p { opacity: 0; }

.bloque-titulo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--linea); padding-bottom: 0.75rem; }
.bloque-titulo h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }

/* ---------------------------------------------------------------- tarjetas */

.grilla { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); }
@media (min-width: 64rem) {
  .grilla-destacada { grid-template-columns: 2fr 1fr 1fr; }
  .grilla-destacada .tarjeta-grande { grid-row: span 2; }
  .grilla-destacada .tarjeta-grande .tarjeta-imagen { aspect-ratio: auto; flex: 1; min-height: 18rem; }
  .grilla-destacada .tarjeta-grande .tarjeta-texto { flex: none; }
}
.tarjeta {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tarjeta:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: color-mix(in srgb, var(--acento) 45%, var(--linea)); }
.tarjeta-enlace { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.tarjeta-imagen { aspect-ratio: 16 / 10; background: var(--papel-2); overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--linea); }
.tarjeta-imagen picture { display: block; width: 100%; height: 100%; }
.tarjeta-imagen img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta-grande .tarjeta-imagen { aspect-ratio: 16 / 9; }
.tarjeta-simbolo { font: 500 2.5rem/1 var(--f-mono); color: var(--acento); }
.tarjeta-texto { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; position: relative; }
.tarjeta-texto::before { content: ""; position: absolute; top: 0; left: 1.25rem; width: 2.5rem; height: 3px; background: var(--acento); border-radius: 0 0 3px 3px; }
.tarjeta-titulo { font-size: 1.25rem; margin: 0.15rem 0 0.5rem; }
.tarjeta-grande .tarjeta-titulo { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.tarjeta-resumen { color: var(--tinta-2); font-size: 0.95rem; margin-bottom: 1rem; }
.tarjeta-grande .tarjeta-resumen { font-size: 1.05rem; }
.tarjeta .meta { margin-top: auto; font-size: 0.78rem; }
.tarjeta .chip { margin-bottom: 0.5rem; }
.tarjeta .sobretitulo { margin-bottom: 0.35rem; color: var(--acento); }

/* ---------------------------------------------------------------- secciones (tiles) */

.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.tile a {
  display: grid;
  gap: 0.35rem;
  height: 100%;
  padding: 1.25rem;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  color: var(--tinta);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.tile a:hover { border-color: var(--acento); transform: translateY(-2px); }
.tile-simbolo {
  font: 500 1.35rem/1 var(--f-mono);
  color: var(--acento);
  border: 2px solid var(--acento);
  border-radius: 10px;
  justify-self: start;
  min-width: 2.6em;
  height: 2.6em;
  padding: 0 0.3em;
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 var(--acento);
  margin-bottom: 0.6rem;
}
.tile-nombre { font: 650 1.3rem/1.2 var(--f-titulo); }
.tile-lema { font-style: italic; color: var(--tinta-2); font-size: 0.95rem; }
.tile-cuenta { font: 400 0.72rem/1.4 var(--f-mono); color: var(--tinta-3); margin-top: 0.5rem; }
.tiles-mini { margin: 1.5rem 0 2rem; }
.tiles-mini .tile a { justify-items: center; text-align: center; }
.tiles-mini .tile-simbolo { justify-self: center; }

/* ---------------------------------------------------------------- banda radio */

.banda-megahertz {
  background:
    repeating-radial-gradient(circle at 100% 50%, transparent 0 22px, color-mix(in srgb, var(--acento) 14%, transparent) 22px 23px),
    color-mix(in srgb, var(--acento) 7%, var(--papel));
  border-block: 1px solid var(--linea);
}
.banda-in { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .banda-in { grid-template-columns: 1.4fr 1fr; } }
.banda-in h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.banda-in .sobretitulo { color: var(--acento); }
.banda-megahertz .boton { background: var(--acento); border-color: var(--acento); color: var(--sobre-boton); }
.banda-megahertz .boton-sec { background: transparent; color: var(--tinta); border-color: var(--linea-2); }
.episodio-mini {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  color: var(--tinta);
  text-decoration: none;
  box-shadow: var(--sombra);
}
.episodio-mini-titulo { font: 650 1.25rem/1.25 var(--f-titulo); }
.episodio-mini-play { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--acento); font-weight: 700; }

/* ---------------------------------------------------------------- nosotros (portada) */

.nosotros-mini { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .nosotros-mini { grid-template-columns: 1.5fr 1fr; } }
.nosotros-mini-texto { font-size: 1.1rem; color: var(--tinta-2); max-width: 40rem; }
.nosotros-mini h2 { color: var(--tinta); font-size: clamp(1.5rem, 3vw, 2rem); }
.nosotros-caras { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; justify-content: center; }
.nosotros-caras a { display: grid; justify-items: center; gap: 0.6rem; text-align: center; font-weight: 700; color: var(--tinta); text-decoration: none; max-width: 9rem; }
.avatar { border-radius: 50%; object-fit: cover; aspect-ratio: 1; width: 100%; height: auto; }
.nosotros-caras .avatar { width: 7.5rem; border: 3px solid var(--superficie); box-shadow: 0 0 0 2px var(--menta); }

/* ---------------------------------------------------------------- cabecera de sección */

.seccion-cabecera {
  border-bottom: 1px solid var(--linea);
  --grilla: color-mix(in srgb, var(--acento) 9%, transparent);
  --grilla-2: color-mix(in srgb, var(--acento) 15%, transparent);
}
.seccion-cabecera-in { display: flex; gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center; padding-block: clamp(2rem, 6vw, 3.75rem); }
.seccion-cabecera h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 0.25rem; }
.seccion-cabecera .lema { font: italic 400 clamp(1.1rem, 2.4vw, 1.35rem)/1.4 var(--f-titulo); color: var(--tinta-2); margin: 0 0 0.4rem; }
.seccion-desc { color: var(--tinta-3); margin: 0; }
@media (max-width: 30rem) { .seccion-cabecera-in { flex-direction: column; align-items: flex-start; } }
.intro-seccion { padding-top: 2rem; }

/* ---------------------------------------------------------------- artículo */

.articulo-cabecera { padding-top: clamp(2rem, 6vw, 4rem); padding-bottom: 1.5rem; }
.articulo-cabecera h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.bajada { font: italic 400 clamp(1.15rem, 2.5vw, 1.4rem)/1.45 var(--f-titulo); color: var(--tinta-2); margin-bottom: 1.25rem; }
.articulo-cabecera .meta { gap: 0.5rem 1.25rem; padding-top: 1rem; border-top: 1px solid var(--linea); }
.articulo-cabecera .meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.articulo-cabecera .meta .icono { width: 1rem; height: 1rem; }
.meta-autor { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--tinta-2); text-decoration: none; }
.meta-autor strong { color: var(--tinta); font-weight: 500; }
.meta-autor .avatar { width: 2.25rem; }
.articulo-portada { width: min(100% - 2rem, 58rem); margin: 0.5rem auto 2rem; }
.articulo-portada img { border-radius: var(--radio); width: 100%; max-height: min(34rem, 70vh); object-fit: cover; }
.articulo-cuerpo { position: relative; padding-bottom: 2rem; }

/* índice */
.indice { margin: 0 0 2rem; }
.indice details { border: 1px solid var(--linea); border-radius: 12px; background: var(--superficie); padding: 0.75rem 1rem; }
.indice summary { font: 500 0.78rem/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinta-3); cursor: pointer; }
.indice ol { margin: 0.75rem 0 0.25rem; padding-left: 1.25rem; font-size: 0.95rem; }
.indice li { margin: 0.3rem 0; }
.indice a { color: var(--tinta-2); text-decoration: none; }
.indice a:hover, .indice a.activo { color: var(--acento); text-decoration: underline; }
@media (min-width: 82rem) {
  .indice { position: absolute; top: 0; bottom: 0; left: calc(100% + 2.5rem); width: 14rem; margin: 0; }
  .indice details { position: sticky; top: 6rem; background: transparent; border: 0; border-left: 2px solid var(--linea); border-radius: 0; padding: 0 0 0 1rem; }
  .indice summary { pointer-events: none; list-style: none; }
  .indice summary::-webkit-details-marker { display: none; }
}

/* ---------------------------------------------------------------- prosa */

.prosa { font-size: 1.125rem; line-height: 1.75; }
.prosa > :first-child { margin-top: 0; }
.prosa p { margin: 0 0 1.15em; }
.prosa h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 2.2em 0 0.6em; }
.prosa h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); margin: 1.8em 0 0.5em; }
.prosa h4 { font-size: 1.1rem; margin: 1.6em 0 0.5em; }
.prosa ul, .prosa ol { padding-left: 1.4rem; margin: 0 0 1.15em; }
.prosa li { margin: 0.35em 0; }
.prosa ul li::marker { color: var(--menta); }
.prosa b, .prosa strong { font-weight: 700; }
.prosa sup, .prosa sub { line-height: 0; }
.prosa sup a { text-decoration: none; font-family: var(--f-mono); font-size: 0.75em; }
.prosa blockquote { margin: 1.75em 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--menta); font: italic 400 1.15em/1.6 var(--f-titulo); color: var(--tinta-2); }
.prosa figure { margin: 2em 0; }
.prosa figure img, .prosa > p > img, .prosa p > picture img { border-radius: 10px; margin-inline: auto; }
.prosa figure picture, .prosa figure img { margin-inline: auto; }
.prosa figcaption { font-size: 0.9rem; line-height: 1.5; color: var(--tinta-3); margin-top: 0.75rem; text-align: center; }
.prosa figcaption::before { content: "▲ "; color: var(--menta); font-size: 0.75em; }
.prosa hr { border: 0; height: auto; margin: 2.5em 0; text-align: center; overflow: visible; }
.prosa hr::before { content: "· · ·"; letter-spacing: 0.6em; font: 700 1.25rem/1 var(--f-mono); color: var(--menta); }
.prosa table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1.5em 0; display: block; overflow-x: auto; }
.prosa th, .prosa td { border-bottom: 1px solid var(--linea); padding: 0.5rem 0.75rem; text-align: left; }
.prosa code { font-family: var(--f-mono); font-size: 0.88em; background: var(--papel-2); padding: 0.1em 0.35em; border-radius: 5px; }
.prosa pre { background: var(--papel-2); border: 1px solid var(--linea); border-radius: 10px; padding: 1rem 1.25rem; overflow-x: auto; font-size: 0.9rem; line-height: 1.55; }
.prosa pre code { background: none; padding: 0; }
.prosa mjx-container[display="true"] { overflow-x: auto; overflow-y: hidden; padding-block: 0.25rem; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; border-radius: 10px; overflow: hidden; background: var(--papel-2); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-audio { aspect-ratio: auto; height: 120px; }
.galeria { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); margin: 1.5em 0 2em; }
.galeria img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 8px; }

/* "¿Querés saber más?" como nota al margen de cuaderno */
.saber-mas {
  margin: 2.5em 0 1.5em;
  padding: 1.25rem 1.5rem 0.5rem;
  border: 1.5px dashed var(--linea-2);
  border-radius: var(--radio);
  background: color-mix(in srgb, var(--menta) 9%, var(--superficie));
  font-size: 1rem;
}
.saber-mas h2 { font: 500 0.78rem/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinta-3); margin: 0 0 0.75rem; }
.saber-mas h2::before { content: "→ "; color: var(--verde); }
.saber-mas p { margin-bottom: 0.75em; }

/* Recuadro dentro del texto: ejemplos, digresiones, diálogos */
.recuadro {
  margin: 2em 0;
  padding: 1.1rem 1.4rem 0.35rem;
  border-left: 4px solid var(--acento);
  border-radius: 0 var(--radio) var(--radio) 0;
  background: var(--papel-2);
  font-size: 0.95rem;
}
.recuadro p { margin-bottom: 0.75em; }
.recuadro-titulo { font-weight: 700; }

/* Fuente citada al final de un ítem: [OpenAI] */
.prosa a.fuente { display: inline-block; margin: 0.1em 0.15em 0 0; padding: 0.05em 0.5em; border: 1px solid var(--linea-2); border-radius: 999px; font: 500 0.72rem/1.6 var(--f-mono); color: var(--tinta-3); text-decoration: none; vertical-align: 0.1em; }
.prosa a.fuente:hover { border-color: var(--acento); color: var(--acento); }

/* compartir */
.compartir { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 2.5rem 0 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--linea); }
.compartir .sobretitulo { margin: 0 0.5rem 0 0; }
.compartir .boton-icono { border-color: var(--linea); }
.compartir .boton-icono:hover { border-color: var(--acento); color: var(--acento); background: transparent; }
.compartir-aviso { font: 400 0.8rem var(--f-mono); color: var(--verde); margin-left: 0.5rem; }

.autor-tarjeta { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.25rem 1.5rem; margin: 1.5rem 0 0; background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); }
.autor-tarjeta .avatar { width: 4.5rem; flex: none; }
.autor-tarjeta p { margin: 0 0 0.35rem; color: var(--tinta-2); font-size: 0.95rem; }
.autor-tarjeta .sobretitulo { margin-bottom: 0.25rem; }
.autor-nombre { font: 650 1.2rem/1.3 var(--f-titulo); }
.autor-nombre a { color: var(--tinta); text-decoration: none; }

.comentarios { padding-block: 1rem 3rem; }
.comentarios h2 { font-size: 1.4rem; }
#disqus_thread:not(:empty) { margin-top: 1rem; }

.relacionados { border-top: 1px solid var(--linea); }

/* ---------------------------------------------------------------- micro y radio: lateral + lista */

.con-indice { display: grid; gap: 2rem; }
@media (min-width: 64rem) {
  .con-indice { grid-template-columns: 17rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .lateral { position: sticky; top: 5.5rem; max-height: calc(100vh - 7rem); overflow-y: auto; }
}
.lateral > * + * { margin-top: 1.5rem; }
.indice-lista ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.indice-lista li { counter-increment: n; border-bottom: 1px solid var(--linea); }
.indice-lista a { display: flex; gap: 0.6rem; padding: 0.5rem 0; color: var(--tinta-2); text-decoration: none; font-size: 0.95rem; }
.indice-lista a::before { content: counter(n, decimal-leading-zero); font: 500 0.75rem/1.9 var(--f-mono); color: var(--acento); }
.indice-lista a:hover { color: var(--acento); }
@media (max-width: 63.99rem) { .indice-lista { display: none; } }

.dato, .caja-intro {
  padding: 1.25rem;
  border-radius: var(--radio);
  border: 1px solid color-mix(in srgb, var(--acento) 35%, var(--linea));
  background: color-mix(in srgb, var(--acento) 7%, var(--superficie));
  font-size: 0.98rem;
}
.dato .sobretitulo { color: var(--acento); }
.dato-fuente { display: flex; justify-content: space-between; gap: 1rem; font: 400 0.8rem var(--f-mono); margin: 0; }
.caja-intro h2 { font-size: 1.2rem; }
.caja-intro p:last-child { margin-bottom: 0; }

.notas, .episodios { display: grid; gap: 2rem; }
.nota, .episodio {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  position: relative;
}
.nota::before, .episodio::before { content: ""; position: absolute; left: -1px; top: 1.75rem; width: 4px; height: 2.5rem; background: var(--acento); border-radius: 0 3px 3px 0; }
.nota h2, .episodio h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-bottom: 0.4rem; }
.nota h2 a, .episodio h2 a, .foto h2 a { color: inherit; text-decoration: none; }
.nota h2 a:hover, .episodio h2 a:hover, .foto h2 a:hover { text-decoration: underline; text-decoration-color: var(--acento); }
.nota header { margin-bottom: 1.25rem; }
.nota-imagen { margin: 0 0 1.5rem; }
.nota-imagen img { border-radius: 10px; width: 100%; max-height: 28rem; object-fit: cover; }
.nota .compartir, .episodio .compartir, .foto .compartir { margin-bottom: 0; }
.temas { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.75rem; }
.temas span { font: 500 0.7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 0.35rem 0.55rem; border-radius: 999px; background: color-mix(in srgb, var(--acento) 12%, transparent); color: var(--acento); }

.episodio-num { font: 500 0.8rem/1 var(--f-mono); color: var(--acento); letter-spacing: 0.06em; margin: 0 0 0.6rem; }
.episodio .prosa { font-size: 1.05rem; }
.reproductor { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.episodio .boton { background: var(--acento); border-color: var(--acento); color: var(--sobre-boton); }
.reproductor iframe { width: 100%; height: 120px; border: 0; border-radius: 10px; }

/* ---------------------------------------------------------------- megapíxeles: cuarto oscuro */

.fotos { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.foto-imagen {
  margin: 0;
  background: var(--cuarto-oscuro);
  border-radius: var(--radio);
  padding: clamp(0.75rem, 3vw, 2rem);
  display: grid;
  place-items: center;
}
.foto-imagen img { max-height: 78vh; width: auto; border-radius: 4px; box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.8); }
.foto-texto { width: min(100%, var(--ancho-texto)); margin: 1.75rem auto 0; }
.foto-texto h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }

/* ---------------------------------------------------------------- nosotros y autores */

.pagina-nosotros section { margin-bottom: 3rem; }
.pagina-nosotros section > h2:first-child { margin-top: 0; }
.fundadores { display: grid; gap: 2rem; margin-top: 1.5rem; }
.fundador { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 40rem) { .fundador { grid-template-columns: 10rem 1fr; } }
.fundador .avatar { width: 10rem; max-width: 60vw; box-shadow: 0 0 0 3px var(--superficie), 0 0 0 5px var(--menta); }
.fundador h3 { margin-top: 0; }
.fundador h3 a { color: inherit; text-decoration: none; }
.contacto { list-style: none; padding: 0; }
.contacto li { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--linea); }
.contacto li::marker { content: none; }
.contacto .icono { color: var(--verde); }
.prosa .fundador p, .prosa .contacto a { font-size: 1.05rem; }
.prosa .fundador a .icono { width: 1.1rem; height: 1.1rem; vertical-align: -0.2em; margin-right: 0.25rem; }
.autor-cabecera .avatar-grande { width: clamp(6rem, 18vw, 9rem); flex: none; box-shadow: 0 0 0 3px var(--superficie), 0 0 0 5px var(--acento); }
.redes-autor { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0.5rem 0 0; font-size: 0.95rem; }
.redes-autor a { display: inline-flex; align-items: center; gap: 0.4rem; }

.no-encontrada { text-align: center; }
.no-encontrada .simbolo-grande { margin: 0 auto 2rem; --acento: var(--verde); }
.no-encontrada h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }

/* ---------------------------------------------------------------- pie */

.pie { margin-top: 3rem; border-top: 1px solid var(--linea); background: var(--papel-2); font-size: 0.95rem; }
.pie-in { display: grid; gap: 2rem; padding-block: 2.5rem 1.5rem; }
@media (min-width: 52rem) { .pie-in { grid-template-columns: 2fr 1fr 1fr; } }
.pie-marca p { color: var(--tinta-2); margin-top: 1rem; max-width: 26rem; }
.pie-nav ul, .redes { list-style: none; margin: 0; padding: 0; }
.pie-nav li { margin: 0.35rem 0; }
.pie-nav a { color: var(--tinta-2); text-decoration: none; }
.pie-nav a:hover { color: var(--tinta); text-decoration: underline; }
.redes { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.redes a { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--linea-2); color: var(--tinta-2); }
.redes a:hover { color: var(--verde); border-color: var(--verde); }
.pie-legal { border-top: 1px solid var(--linea); padding-block: 1rem 1.5rem; color: var(--tinta-3); font: 400 0.78rem/1.5 var(--f-mono); }
.pie-legal p { margin: 0; }
.pie-legal a { color: inherit; }

/* ---------------------------------------------------------------- accesibilidad, movimiento, impresión */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media print {
  .cabecera, .pie, .compartir, .comentarios, .relacionados, .indice, .lateral, .reproductor { display: none !important; }
  body { background: #fff; color: #000; }
  .prosa a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
