:root {
  --fondo: #fbfaf7;
  --texto: #1d1f20;
  --muted: #68645d;
  --linea: #d9d2c4;
  --acento: #8f2d56;
  --acento-2: #0e6f64;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: "American Typewriter", "Courier New", Courier, monospace;
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

.hero {
  min-height: 84vh;
  display: grid;
  align-items: end;
  padding: 5rem max(1.25rem, 8vw);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 22, 28, 0.86), rgba(12, 22, 28, 0.35)),
    url("img/img1.png") center / cover;
}

.hero-texto {
  max-width: 980px;
}

.serie,
.meta,
.etiqueta,
figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .serie,
.hero .meta {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 1rem;
  max-width: 960px;
  font-family: "American Typewriter", "Courier New", Courier, monospace;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.entradilla {
  max-width: 680px;
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.meta {
  margin-top: 2rem;
}

article {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ── Texto corrido ── */
.texto {
  max-width: 680px;
  padding: 5rem 0;
}

.texto.texto-intro {
  max-width: 100%;
}

.texto p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--texto);
}

.texto p + p {
  margin-top: 1.5rem;
}

.lead {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  color: var(--texto);
}

/* ── Tabla ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.95rem;
}

th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--linea);
}

td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--linea);
  line-height: 1.5;
}

tr:last-child td {
  border-bottom: none;
}

/* ── Headings dentro del artículo ── */
h3 {
  margin-top: 3rem;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.03em;
  color: var(--texto);
}

/* ── Módulos ── */
.modulo {
  margin: 2rem 0 5rem;
  padding: 4rem 0;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}

.modulo-doble {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: 3rem;
  align-items: center;
}

.modulo-doble.invertido {
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.72fr);
}

h2 {
  margin-top: 0.75rem;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.modulo p:not(.etiqueta) {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--texto);
}

figure {
  margin: 0;
}

.placeholder-viz {
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px solid var(--linea);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 111, 100, 0.18), transparent 52%),
    linear-gradient(45deg, rgba(143, 45, 86, 0.18), transparent 48%),
    var(--panel);
  color: var(--muted);
  font-weight: 700;
}

figcaption {
  margin-top: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── Destacado ── */
.destacado {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(260px, 1fr);
  gap: 2rem;
  align-items: center;
}

.cifra {
  color: var(--acento);
  font-family: "American Typewriter", "Courier New", Courier, monospace;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
}

.cierre {
  padding-bottom: 7rem;
}

/* ── Lightbox ── */
.figuras-hallazgo {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.viz-thumb {
  width: 100%;
  display: block;
  cursor: zoom-in;
  border: 1px solid var(--linea);
  border-radius: 6px;
  transition: opacity 0.2s;
}

.viz-thumb:hover {
  opacity: 0.85;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 28, 0.92);
  z-index: 999;
  cursor: zoom-out;
  place-items: center;
}

#lightbox.activo {
  display: grid;
}

#lightbox-img {
  max-width: 94vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 780px) {
  .hero {
    min-height: 76vh;
    padding-top: 4rem;
  }

  .modulo-doble,
  .modulo-doble.invertido,
  .destacado {
    grid-template-columns: 1fr;
  }

  .placeholder-viz {
    min-height: 320px;
  }

  .texto {
    max-width: 100%;
  }
}