/* ═══════════════════════════════════════════════════════════
   Jorge I. Casares Zambrano
   Branding: papel blanco, beige claro, tipografía de máquina
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Papel y tinta */
  --paper:        #FBF9F4;
  --paper-warm:   #F5F1E8;
  --paper-deep:   #EFE9DC;
  --ink:          #1F1C18;
  --ink-soft:     #4A443B;
  --ink-muted:    #857C6D;
  --rule:         #DED6C6;
  --rule-soft:    #E8E2D5;
  --accent:       #8A7A5E;

  /* Tipografía */
  --mono: "Courier Prime", "Courier New", Courier, ui-monospace, monospace;
  --tracking-wide: 0.14em;

  /* Ritmo */
  --measure: 66ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --rhythm: clamp(3.5rem, 9vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  overflow-x: clip; /* contiene las bandas beige a sangre (100vw) */
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grano de papel, muy tenue */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Viñeta cálida en los bordes */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, transparent 55%, rgba(138, 122, 94, 0.07) 100%);
}

main, .masthead, .colophon { position: relative; z-index: 1; }

/* ─────────── Accesibilidad ─────────── */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ─────────── Encabezado fijo ─────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease, background-color 220ms ease;
}
.masthead[data-scrolled="true"] { border-bottom-color: var(--rule); }

.masthead__inner {
  max-width: 1080px;
  margin-inline: auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.masthead__right {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.monogram {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.monogram__mark {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
  background: var(--ink);
  color: var(--paper-warm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
}
.monogram__name {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 260ms ease, transform 260ms ease;
}
.masthead[data-scrolled="true"] .monogram__name { opacity: 1; transform: none; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  /* Separación fija, no en vw: la hoja se detiene en 1080 px y un hueco que
     siguiera creciendo haría saltar el séptimo enlace al segundo renglón. */
  gap: 0.15rem 1.15rem;
}
.nav a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-muted);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--rule);
}
.lang-switch a {
  color: var(--ink-muted);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Entre 720 y 1080 px el menú ocupa dos renglones: el encabezado crece y el
   destino de un ancla necesita un poco más de holgura. */
@media (min-width: 721px) and (max-width: 1080px) {
  html { scroll-padding-top: 7rem; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .monogram__name { opacity: 1; transform: none; font-size: 0.65rem; }
}

/* ─────────── Hoja ─────────── */

.sheet {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ─────────── Portada ─────────── */

.hero {
  padding-block: clamp(4rem, 13vw, 9rem) clamp(3.5rem, 9vw, 6rem);
  border-bottom: 1px solid var(--rule);
}

.hero__eyebrow {
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-muted);
}

.hero__name {
  margin: 0;
  font-size: clamp(2.1rem, 7.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 56ch;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.caret {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  margin-left: 0.35ch;
  vertical-align: -0.18em;
  background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: blink 1.15s steps(1, end) infinite; }
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}
.hero__links a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 160ms ease, background-color 160ms ease;
}
.hero__links a:hover {
  text-decoration-color: var(--ink);
  background: var(--paper-warm);
}

/* ─────────── Secciones ─────────── */

.sheet { counter-reset: sec; }

.section {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: var(--rhythm);
  border-bottom: 1px solid var(--rule-soft);
}
.section:last-of-type { border-bottom: 0; }

@media (min-width: 900px) {
  .section {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 3rem;
  }
  .section__head {
    position: sticky;
    top: 6.5rem;
    align-self: start;
  }
}

.section__head h2 {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ink);
}
.section__head h2::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero) "  ";
  color: var(--ink-muted);
  font-weight: 400;
}

.section__body { max-width: var(--measure); min-width: 0; }

/* Secciones destacadas: fondo beige a sangre */
.section--feature {
  position: relative;
}
.section--feature::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--paper-warm);
  z-index: -1;
}

/* ─────────── Prosa ─────────── */

.prose p {
  margin: 0 0 1.5em;
  text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; }

.prose__label {
  margin-bottom: 1em !important;
  color: var(--ink-muted);
}

/* ─────────── Trayectoria ─────────── */

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry {
  position: relative;
  padding-left: 2.15rem;
  padding-bottom: 2.75rem;
}
.entry:last-child { padding-bottom: 0; }

.entry::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
  transform-origin: top;
}
.entry:last-child::after {
  bottom: auto;
  height: 0.85rem;
}

.entry::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.62rem;
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 1px;
  transform-origin: center;
  z-index: 1;
}
.entry--muted::before { background: var(--paper); border: 1px solid var(--ink-muted); }

.entry__meta {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-muted);
}

.entry__title {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.entry__role {
  display: block;
  font-weight: 400;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  letter-spacing: 0;
}

.entry p:not(.entry__meta) {
  margin: 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.entry--muted p:not(.entry__meta) { color: var(--ink-muted); }

/* ─────────── Listas con guion de máquina ─────────── */

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  padding-block: 0.55rem;
  border-bottom: 1px dotted var(--rule);
  text-wrap: pretty;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─────────── Libro y citas ─────────── */

.book { margin-bottom: 3.25rem; }

.book__title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.book__desc {
  margin: 0 0 2.5rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.quote {
  margin: 0 0 2rem;
  padding: 1.5rem 0 0 1.5rem;
  border-left: 2px solid var(--paper-deep);
}
.quote:last-child { margin-bottom: 0; }

.quote blockquote {
  margin: 0;
  font-style: italic;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after  { content: "\201D"; }

.quote figcaption {
  margin-top: 1.1rem;
  font-size: 0.75rem;
  line-height: 1.6;
}
.quote figcaption strong {
  display: block;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.quote figcaption span {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6875rem;
}

.figure {
  margin: 0 0 2.5rem;
}
.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid var(--rule);
}
.figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ─────────── Notas ─────────── */

.notes {
  margin: 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
  list-style: none;
}
.notes li {
  margin-bottom: 1.35rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.notes li:last-child { margin-bottom: 0; }
.notes strong { color: var(--ink); font-weight: 700; }

/* ─────────── Registros (educación, contacto) ─────────── */

.subhead {
  margin: 0 0 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-muted);
}
.subhead:not(:first-child) { margin-top: 3.25rem; }

.records {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.records li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.15rem 1.5rem;
  padding-block: 0.95rem;
  border-bottom: 1px dotted var(--rule);
}
.records__what {
  grid-column: 1;
  color: var(--ink);
  text-wrap: pretty;
}
.records__where {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.records__when {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.records--contact li { grid-template-columns: 9rem minmax(0, 1fr); }
.records--contact .records__what {
  grid-row: 1;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-muted);
}
.records--contact .records__where {
  grid-column: 2;
  grid-row: 1;
  font-size: 1rem;
  color: var(--ink);
}
.records--contact a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 160ms ease;
}
.records--contact a:hover { text-decoration-color: var(--ink); }

@media (max-width: 560px) {
  /* En pantallas angostas el año pasa a su propio renglón:
     qué → dónde → cuándo. */
  .records li { grid-template-columns: 1fr; row-gap: 0.2rem; }
  .records__when { grid-column: 1; grid-row: 3; align-self: start; }

  .records--contact li { grid-template-columns: 1fr; }
  .records--contact .records__where { grid-column: 1; grid-row: 2; }
}

/* ─────────── Presencia en medios ─────────── */

.press {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.press li { border-bottom: 1px dotted var(--rule); }

.press__link {
  display: grid;
  gap: 0.4rem;
  padding-block: 1.05rem;
  color: inherit;
  text-decoration: none;
}

.press__outlet {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-muted);
}
.press__when {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
/* El separador vive en CSS para que no quede huérfano al saltar de renglón. */
.press__when::before { content: "\00B7"; margin-right: 0.5rem; }

.press__title {
  color: var(--ink);
  text-wrap: pretty;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 160ms ease;
}
.press__link:hover .press__title { text-decoration-color: var(--ink); }

/* inline-block: la subraya del titular no se propaga a la flecha. */
.press__arrow {
  display: inline-block;
  color: var(--ink-muted);
  transition: transform 180ms ease, color 160ms ease;
}
.press__link:hover .press__arrow {
  color: var(--ink);
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .press__arrow { transition: color 160ms ease; }
  .press__link:hover .press__arrow { transform: none; }
}

/* ─────────── Utilidades de texto ─────────── */

.muted { color: var(--ink-muted); font-style: italic; }

/* ─────────── Migas de pan ─────────── */

.breadcrumbs { padding-top: clamp(1.25rem, 3vw, 2rem); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-muted);
}
.breadcrumbs li { display: flex; gap: 0.4rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--rule); }
.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 160ms ease;
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs li[aria-current="page"] { color: var(--ink-soft); }

/* ─────────── Hero de subpágina (p. ej. /libros/*) ───────────
   Mismo estilo que el hero de portada, pero con menos aire arriba,
   ya que no es la primera pantalla del sitio. */
.hero--sub {
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2.5rem, 6vw, 4rem);
}
.hero--sub .hero__name {
  font-size: clamp(1.85rem, 5.5vw, 3.25rem);
}
.hero__eyebrow a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.3em;
}
.hero__eyebrow a:hover { text-decoration-color: var(--ink-muted); }

/* ─────────── Llamado a la acción ─────────── */

.cta-wrap { margin: 2.75rem 0 0; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.cta span { transition: transform 180ms ease; }
.cta:hover { background: transparent; color: var(--ink); }
.cta:hover span { transform: translateX(4px); }

.cta--ghost { background: transparent; color: var(--ink); }
.cta--ghost:hover { background: var(--ink); color: var(--paper); }

/* ─────────── Formulario ─────────── */

.form {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}

.field { margin-bottom: 1.5rem; }
.field:last-of-type { margin-bottom: 0; }

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.6;
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: border-color 160ms ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 8rem; }

.form__submit {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}
.form__submit:hover { background: transparent; color: var(--ink); }
.form__submit:disabled { opacity: 0.55; cursor: default; }

.form__status {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.form__status[data-state="ok"] { color: var(--ink); }
.form__status[data-state="error"] { color: #A3402F; }

/* ─────────── Pie ─────────── */

.colophon {
  border-top: 1px solid var(--rule);
  background: var(--paper-warm);
}
.colophon__inner {
  max-width: 1080px;
  margin-inline: auto;
  padding: 2.75rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-muted);
}
.colophon p { margin: 0; }
.colophon__note { text-transform: none; letter-spacing: 0.02em; font-size: 0.75rem; }

/* ─────────── Aparición al desplazar ─────────── */

/* La clase .js la añade un script en línea antes del primer pintado,
   de modo que el contenido nunca parpadea si JS está deshabilitado. */
@media (prefers-reduced-motion: no-preference) {
  .js .section__head,
  .js .section__body {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js .section__body { transition-delay: 90ms; }

  .js .section__head.is-visible,
  .js .section__body.is-visible {
    opacity: 1;
    transform: none;
  }

  .js .timeline .entry {
    opacity: 0;
    transform: translateY(1.35rem);
    transition: opacity 620ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
                transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
  }

  .js .timeline .entry::before {
    opacity: 0;
    transform: scale(0.45);
    transition: opacity 360ms ease var(--reveal-delay, 0ms),
                transform 520ms cubic-bezier(0.18, 0.9, 0.2, 1.2) var(--reveal-delay, 0ms);
  }

  .js .timeline .entry::after {
    transform: scaleY(0);
    transition: transform 760ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
  }

  .js .timeline .entry.is-visible {
    opacity: 1;
    transform: none;
  }

  .js .timeline .entry.is-visible::before {
    opacity: 1;
    transform: scale(1);
  }

  .js .timeline .entry.is-visible::after {
    transform: scaleY(1);
  }
}

/* ─────────── Impresión ─────────── */

@media print {
  .masthead, .caret, .cta-wrap, .breadcrumbs { display: none; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.5; }
  body::before, body::after { display: none; }
  .section {
    display: block;
    padding-block: 1.25rem;
    break-inside: avoid;
    border-bottom: 0;
  }
  .section__head h2 { position: static; margin-bottom: 0.75rem; }
  .section--feature::before { display: none; }
  a { text-decoration: none; color: #000; }
  .hero { padding-block: 0 1.5rem; }

  /* En papel el enlace se pierde: se imprime la liga bajo cada titular. */
  .press__arrow { display: none; }
  .press__link[href]::after {
    content: attr(href);
    font-size: 8pt;
    color: #555;
    word-break: break-all;
  }
}
