/* ═══════════════════════════════════════════════════════════════
   AMURA CMS — Prototipo "Cierre"
   Crónica documental: fotografía en blanco y negro, serif de
   lectura (Literata) + grotesca de apoyo (Hanken Grotesk).
   Color: monocromo con teal contenido (timestamps, CTA).
   ═══════════════════════════════════════════════════════════════ */

:root {
  --blanco: oklch(97.5% 0.004 90);
  --tinta: oklch(21% 0.012 80);
  --tinta-media: oklch(45% 0.015 80);
  --linea: oklch(21% 0.012 80 / 0.16);
  --teal: oklch(59% 0.115 174);
  --teal-oscuro: oklch(45% 0.09 174);

  --serif: 'Literata', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --columna: 680px;
  --ancho: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--blanco);
  color: var(--tinta);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--teal); color: var(--blanco); }

img { filter: grayscale(1) contrast(1.04); }

a { color: inherit; }

/* ═══════════ CABECERA ═══════════ */

.cabecera {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  color: var(--blanco);
}

.cabecera-marca {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.cabecera-marca img { filter: none; }

.cabecera-cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid oklch(97.5% 0.004 90 / 0.55);
  padding: 9px 18px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.cabecera-cta:hover { background: var(--blanco); color: var(--tinta); }

/* ═══════════ APERTURA ═══════════ */

.apertura {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
}

.apertura-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apertura-velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(15% 0.01 80 / 0.82) 0%, oklch(15% 0.01 80 / 0.35) 45%, oklch(15% 0.01 80 / 0.2) 100%);
}

.apertura-texto {
  position: relative;
  color: var(--blanco);
  padding: 0 clamp(20px, 4vw, 48px) clamp(56px, 9vh, 110px);
  max-width: 880px;
}

.rotulo {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.apertura-texto .rotulo { color: oklch(85% 0.07 172); }

.apertura-titulo {
  margin-top: 18px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(52px, 8.5vw, 116px);
  font-weight: 360;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.apertura-bajada {
  margin-top: 24px;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.6;
  max-width: 54ch;
  color: oklch(92% 0.008 90);
}

.boton {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: var(--teal);
  color: var(--blanco);
  padding: 15px 32px;
  transition: background 0.25s var(--ease);
}

.boton:hover { background: var(--teal-oscuro); }

.apertura-credito {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: 22px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: oklch(97.5% 0.004 90 / 0.55);
}

/* ═══════════ LA CRÓNICA ═══════════ */

.cronica {
  position: relative;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) clamp(20px, 4vw, 48px);
}

/* riel de tiempo con progreso de lectura */
.cronica-rail {
  position: absolute;
  top: clamp(72px, 10vw, 130px);
  bottom: clamp(72px, 10vw, 130px);
  left: calc(clamp(20px, 4vw, 48px) + 170px);
  width: 1px;
  background: var(--linea);
}

.cronica-progreso {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: top;
}

.momento {
  display: grid;
  grid-template-columns: 140px minmax(0, var(--columna));
  gap: clamp(32px, 5vw, 90px);
  padding: clamp(36px, 5vw, 56px) 0;
}

.momento-hora {
  font-family: var(--sans);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--teal-oscuro);
  line-height: 1.1;
  text-align: right;
}

.momento-titulo {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.momento-texto {
  margin-top: 14px;
  font-size: 17.5px;
  color: var(--tinta-media);
  max-width: 58ch;
}

.momento-tag {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tinta);
}

.momento-tag::before {
  content: '';
  display: inline-block;
  width: 22px;
  border-top: 2px solid var(--teal);
  margin-right: 10px;
  vertical-align: 4px;
}

.momento-tag-pronto { color: var(--tinta-media); }

.momento-final .momento-hora {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--tinta-media);
}

/* fotos que interrumpen la crónica */
.cronica-foto {
  position: relative;
  z-index: 1;
  margin: clamp(28px, 4vw, 48px) calc(clamp(20px, 4vw, 48px) * -1);
}

.cronica-foto img {
  width: 100%;
  height: clamp(320px, 55vh, 560px);
  object-fit: cover;
  display: block;
}

.cronica-foto figcaption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--tinta-media);
  letter-spacing: 0.02em;
  padding: 12px clamp(20px, 4vw, 48px) 0;
}

/* ═══════════ CRÉDITOS ═══════════ */

.creditos {
  border-top: 1px solid var(--linea);
  padding: clamp(64px, 9vw, 110px) clamp(20px, 4vw, 48px);
  text-align: center;
}

.rotulo-centrado { color: var(--teal-oscuro); }

.creditos-lista {
  list-style: none;
  margin: 28px auto 0;
  max-width: 880px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 36px;
  row-gap: 12px;
}

.creditos-lista li {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 600;
}

.creditos-lista li span {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--tinta-media);
  letter-spacing: 0.04em;
}

.creditos-cita { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 760px; }

.creditos-cita p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.25;
  text-wrap: balance;
}

.creditos-cita footer {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--tinta-media);
}

/* ═══════════ CIERRE ═══════════ */

.proximo {
  background: var(--tinta);
  color: var(--blanco);
}

.proximo-interior {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 150px) clamp(20px, 4vw, 48px);
}

.proximo-titulo {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 360;
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.proximo-texto {
  margin-top: 22px;
  font-size: clamp(17px, 1.9vw, 20px);
  color: oklch(80% 0.01 90);
  max-width: 48ch;
}

.proximo-acciones {
  margin-top: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.proximo-acciones .boton { margin-top: 0; }

.proximo-mail {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  text-underline-offset: 4px;
}

/* ═══════════ PIE ═══════════ */

.pie {
  padding: 26px clamp(20px, 4vw, 48px);
  background: var(--tinta);
  color: oklch(65% 0.01 90);
  font-family: var(--sans);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
  border-top: 1px solid oklch(97.5% 0.004 90 / 0.12);
}

/* ═══════════ ANIMACIÓN ═══════════ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cronica-progreso { display: none; }
}

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 760px) {
  .cronica-rail { display: none; }
  .momento { grid-template-columns: 1fr; gap: 10px; }
  .momento-hora { text-align: left; }
  .creditos-lista { flex-direction: column; }
}
