/* ============================================================
   GUARDA-SAFE — main.css
   Scrollytelling en diagrama de flujo: nodos conectados por
   una línea naranja vertical. Cero sombras; profundidad por
   solapamiento. Grosor de línea = borde = gap = var(--line).
   ============================================================ */

/* ---------- G L O B A L ---------- */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: var(--w-light);
  font-size: var(--text-reading);
  line-height: 1.35;
  color: var(--c-ink);
  background: var(--c-paper);
  cursor: crosshair;
  overflow-x: hidden;
}

::selection { background: var(--c-orange); color: var(--c-paper); }

b, strong { font-weight: var(--w-black); }

/* los textos pequeños suben un punto de peso para no perder legibilidad */
.caption,
.credits,
.unit-card .meta,
.unit-card .desde,
.band .nota,
.footer-grid li,
.footer-legal { font-weight: var(--w-small); }

h1, h2, h3 { text-wrap: balance; }

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; }

a, button { cursor: pointer; transition: color var(--t-snap), background-color var(--t-snap); }

/* ---------- G R I D ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--line);
  width: 100%;
}

.span-all { grid-column: 1 / -1; }

/* ---------- C O N E C T O R E S ---------- */

.line-v {
  grid-column: 1 / -1;
  justify-self: center;
  width: 0;
  height: var(--line-long);
  border-right: var(--line) solid var(--c-orange);
  position: relative;
  z-index: 0;
}

.line-v.short { height: var(--line-short); }

/* la línea se mueve de columna para tocar el contenido lateral */
.at-left { grid-column: 2 / 7; }

.at-right { grid-column: 7 / 12; }

/* codo horizontal que conecta el salto de una columna a la otra */
.line-h {
  grid-column: 4 / 10;
  margin-inline: 8.333%;
  height: 0;
  border-top: var(--line) solid var(--c-orange);
  position: relative;
  z-index: 0;
}

/* sin flechas: las puntas quedan solo en las verticales de cierre */
.line-h.to-right { transform-origin: left center; }

.line-h.to-left { transform-origin: right center; }

/* costura: el codo toca la caja de arriba y la vertical que sigue */
.line-h { margin-top: calc(-1 * var(--line)); }

.line-h + .line-v { margin-top: calc(-2 * var(--line)); }

.line-h + .line-v.short { height: calc(var(--line-short) + 2 * var(--line)); }

.line-v.arrow::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(calc(-50% + 1.5px));
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--c-orange);
}

.arrow-h {
  align-self: center;
  height: 0;
  border-top: var(--line) solid var(--c-orange);
  position: relative;
}

.arrow-h::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--c-orange);
}

/* ---------- P I L L S ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--c-orange);
  color: var(--c-paper);
  font-weight: var(--w-black);
  font-size: var(--text-pill);
  line-height: 1.2;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  border: 0;
  text-decoration: none;
  white-space: nowrap;
}

a.pill:hover, button.pill:hover { background: var(--c-ink); color: var(--c-paper); }

.pill .num {
  font-style: normal;
  background: var(--c-ink);
  color: var(--c-paper);
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  flex: none;
}

/* ---------- H E R O ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
}

.hero-cells {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: var(--line);
  background: var(--c-paper);
}

.hero-cells div { background: var(--c-cell); }

/* al cargar, la retícula "se configura": las celdas laten y cambian
   de color un par de veces antes de asentarse en su estado final.
   Sin 0%/100% en los keyframes, cada celda vuelve a SU color propio. */
@keyframes cell-config {
  18% { background-color: #bfbfbf; scale: 1.06; }
  45% { background-color: #e6e6e6; scale: 0.97; }
  72% { background-color: #d2d2d2; scale: 1.04; }
}

.hero-cells div { animation: cell-config 1.6s ease-in-out var(--cd, 0ms) 1; }

.hero-cells div:nth-child(2n) { --cd: 140ms; }
.hero-cells div:nth-child(3n) { --cd: 280ms; }
.hero-cells div:nth-child(5n) { --cd: 90ms; }
.hero-cells div:nth-child(7n) { --cd: 400ms; }
.hero-cells div:nth-child(11n) { --cd: 210ms; }

/* bloque central blanco (columnas 2-5, filas 3-6 de la retícula 6×8) */
.hero-cells div:nth-child(14), .hero-cells div:nth-child(15),
.hero-cells div:nth-child(16), .hero-cells div:nth-child(17),
.hero-cells div:nth-child(20), .hero-cells div:nth-child(21),
.hero-cells div:nth-child(22), .hero-cells div:nth-child(23),
.hero-cells div:nth-child(26), .hero-cells div:nth-child(27),
.hero-cells div:nth-child(28), .hero-cells div:nth-child(29),
.hero-cells div:nth-child(32), .hero-cells div:nth-child(33),
.hero-cells div:nth-child(34), .hero-cells div:nth-child(35) {
  background: var(--c-paper);
}

/* la línea se parte en dos tramos para no cruzar el título */
.hero-line {
  position: absolute;
  left: calc(50% - var(--line) / 2);
  width: 0;
  border-right: var(--line) solid var(--c-orange);
}

.hero-line.seg-top { top: 20%; height: 12%; }

.hero-line.seg-bottom { top: 69%; bottom: 0; }

/* centrado sin transform: el sistema de reveals resetea transform
   al terminar y descentraba los badges */
.hero-badge {
  position: absolute;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: fit-content;
  z-index: var(--z-content);
}

.hero-badge.top { top: 9%; }

.hero-badge.brand { width: clamp(230px, 26vw, 370px); }

.hero-badge.brand svg { width: 100%; height: auto; display: block; }

.hero-badge.bottom { bottom: 9%; animation: pulsate 3s ease-in-out infinite; }

.hero-badge .box-icon { width: 1.35em; height: auto; flex: none; }

.hero-title {
  position: relative;
  z-index: var(--z-content);
  place-self: center;
  text-align: center;
  padding: 1rem;
  max-width: min(92vw, 1100px);
}

.hero-title h1 {
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: var(--w-light);
}

.hero-title h1 b { display: block; }

.hero-title .flecha {
  color: var(--c-orange);
  display: inline-block;
  animation: pulsate-suave 4s ease-in-out infinite;
}

/* el referente reserva la negrita para palabras clave: el tagline va ligero */
.hero-title p {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: var(--w-light);
  letter-spacing: 0.01em;
}

@keyframes pulsate { 50% { transform: scale(1.18); } }
@keyframes pulsate-suave { 50% { transform: scale(1.08); } }

/* ---------- D I V I S O R  D E  C A P Í T U L O ---------- */

.chapter-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0.5rem 0;
  scroll-margin-top: 25vh;
}

.chapter-divider hr {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border: 0;
  border-top: var(--line) solid var(--c-grid);
}

.chapter-divider .pill { position: relative; }

/* ---------- N O D O S ---------- */

.text-box {
  background: var(--c-paper);
  border: var(--line) solid var(--c-orange);
  border-radius: var(--r-pill);
  padding: clamp(24px, 3vw, 34px);
  position: relative;
  z-index: var(--z-content);
}

.text-box h3 {
  font-size: 1em;
  font-weight: var(--w-black);
  margin-bottom: 0.8rem;
}

.text-box ul { list-style: none; }

.text-box li { padding-left: 1.4em; position: relative; }

.text-box li + li { margin-top: 0.45em; }

.text-box li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--c-orange);
  font-weight: var(--w-black);
}

.circle {
  background: var(--c-paper);
  border: var(--line) solid var(--c-orange);
  border-radius: 50%;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: var(--w-black);
  font-size: 1.1rem;
  padding: 2rem;
  justify-self: center;
  grid-column: 1 / -1;
  position: relative;
  z-index: var(--z-content);
}

.circle.sm { width: 170px; height: 170px; font-size: 0.95rem; padding: 1.2rem; }

/* Franja de declaración — gris claro, negro ultraligero,
   palabras clave en blanco ultranegro (naranja solo en líneas) */
.band {
  grid-column: 1 / -1;
  background: var(--c-grid);
  color: var(--c-ink);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 8vw, 6rem);
  padding-left: 8.333%;
}

.band p {
  font-size: var(--text-band);
  line-height: 1;
  font-weight: var(--w-light);
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.band p.smaller { font-size: var(--text-band-sm); line-height: 1.05; max-width: 24ch; }

.band b { color: var(--c-paper); }

.band .nota {
  margin-top: 2rem;
  font-size: var(--text-caption);
  color: var(--c-ink);
  max-width: 60ch;
}

/* Tarjeta infográfica */
.info-card {
  grid-column: 1 / -1;
  background: var(--c-card);
  border-radius: var(--r-card);
  margin-inline: 2.5rem;
  padding: clamp(30px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: var(--z-content);
}

.info-card > header {
  background: var(--c-paper);
  border-radius: var(--r-pill);
  padding: clamp(24px, 3vw, 34px);
  max-width: 62ch;
  text-align: center;
}

.info-card > header h3 { font-size: 1em; font-weight: var(--w-black); margin-bottom: 0.6rem; }

.info-card figcaption,
.info-card .caption {
  font-size: var(--text-caption);
  color: var(--c-muted);
  text-align: center;
  max-width: 60ch;
}

/* ---------- U N I D A D E S  3 D ---------- */

.units-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  width: min(100%, 1020px);
  align-items: end;
}

.unit-card {
  background: var(--c-paper);
  border-radius: var(--r-pill);
  padding: 1.6rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.unit-card img {
  margin-bottom: 0.6rem;
  transition: transform 0.5s var(--ease-out);
}

.unit-card:hover img,
.unit-card:focus-within img { transform: scale(1.15); }

.info-card .familia { width: min(100%, 880px); }

.info-card .familia img { width: 100%; }

/* escala relativa entre renders */
.unit-card[data-size="s"] img { width: 68%; }
.unit-card[data-size="m"] img { width: 84%; }
.unit-card[data-size="l"] img { width: 100%; }

.unit-card h4 { font-weight: var(--w-black); font-size: 1.15rem; }

.unit-card .meta { font-size: var(--text-caption); color: var(--c-muted); }

.unit-card .desde { font-size: 0.8rem; color: var(--c-muted); margin-top: 0.5rem; }

.unit-card .valor { font-weight: var(--w-black); font-size: 1.4rem; white-space: nowrap; }

.unit-card .pill { margin-top: 1.1rem; }

/* ---------- I M Á G E N E S ---------- */

.img-fig { position: relative; z-index: var(--z-content); }

.img-fig img { width: 100%; }

/* máscaras: las fotos se recortan a proporciones controladas */
.img-fig.mask-wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.img-fig.mask-tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.img-fig.mask-box img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- C O N T E N E D O R  I L U S T R A D O ---------- */

.container-fig {
  position: relative;
  z-index: var(--z-content);
  align-self: center;
}

.container-fig img { width: 100%; height: auto; display: block; }

/* rotulado sobre el costado del contenedor 3D: 3 niveles a -6,6° (sube a la derecha) */
.copy-3d {
  position: absolute;
  left: 31%;
  top: 34%;
  transform: rotate(-6.6deg);
  transform-origin: left top;
  color: var(--c-ink);
  text-transform: uppercase;
  line-height: 1.03;
  letter-spacing: -0.01em;
}

.copy-3d span { display: block; }

.copy-3d .l1 {
  color: var(--c-paper);
  font-weight: var(--w-black);
  font-size: clamp(1.9rem, 4.7vw, 4.8rem);
}

.copy-3d .l2 {
  font-weight: var(--w-light);
  font-size: clamp(2.1rem, 5.4vw, 5.5rem);
}

.copy-3d .l3 {
  font-weight: var(--w-light);
  font-size: clamp(1.2rem, 2.9vw, 3rem);
}

/* flotado sutil permanente del contenedor */
@keyframes bob { 50% { transform: translateY(-9px); } }

.floaty img { animation: bob 7s ease-in-out 1.5s infinite; }

/* ---------- G R I D  N A R A N J A  +  B / N ---------- */

.bw-grid {
  --cell-h: 220px;
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  padding-block: var(--cell-h);
  background-image:
    repeating-linear-gradient(
      to right,
      transparent 0 calc(100% / 6 - var(--line)),
      var(--c-orange) calc(100% / 6 - var(--line)) calc(100% / 6)
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0 calc(var(--cell-h) - var(--line)),
      var(--c-orange) calc(var(--cell-h) - var(--line)) var(--cell-h)
    );
}

/* las fotos calzan exactamente en las celdas del grid pintado,
   con leve transparencia para que la retícula respire debajo */
.bw-grid .img-fig img {
  filter: grayscale(1) contrast(1.05);
  opacity: 0.9;
  width: 100%;
  object-fit: cover;
}

.bw-grid .fig-a { grid-column: 1 / 7; }

/* esta figura toca el borde del viewport: la caption rotada va por
   dentro de su borde derecho para no quedar fuera de pantalla */
.bw-grid .fig-a .img-caption { left: 100%; }

.bw-grid .fig-a img { height: calc(var(--cell-h) * 2); }

.bw-grid .fig-b { grid-column: 9 / 13; margin-top: var(--cell-h); }

.bw-grid .fig-b img { height: calc(var(--cell-h) * 3); }

.mask-wide img { object-position: 50% 70%; }

.mask-tall img { object-position: 50% 62%; }

.pos-doors img { object-position: 50% 62%; }

.bw-grid .fig-a img { object-position: 50% 78%; }

.img-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: rotate(-90deg);
  transform-origin: bottom left;
  translate: 0 -8px;
  background: var(--c-orange);
  color: var(--c-paper);
  font-weight: var(--w-black);
  font-size: var(--text-caption);
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
}

.credits {
  display: block;
  text-align: right;
  font-size: var(--text-caption);
  color: var(--c-muted);
  text-decoration: none;
  margin-top: 0.5rem;
}

/* solapamiento deliberado texto-sobre-foto */
.overlap-up { margin-top: -62px; }

/* ---------- N A V  L A T E R A L ---------- */

.side-nav {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-nav);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.side-nav.show { opacity: 1; visibility: visible; }

.side-nav ol { list-style: none; }

.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: var(--w-black);
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-left: 30px;
  transition: margin-left var(--t-snap), color var(--t-snap);
}

.side-nav a::before {
  content: "";
  width: 40px;
  border-top: var(--line) solid var(--c-orange);
  margin-left: -70px;
  flex: none;
}

.side-nav .label { visibility: hidden; }

.side-nav a:hover .label,
.side-nav a:focus-visible .label,
.side-nav li.active .label { visibility: visible; }

.side-nav li.active a { margin-left: 50px; color: var(--c-orange); }

/* ---------- C T A  W H A T S A P P ---------- */

.cta-final {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
}

.cta-final .pill.big {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  padding: 1rem 2rem;
}

/* ---------- F L O T A N T E S ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-float);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--c-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-float svg { width: 30px; height: 30px; fill: #fff; }

.wa-float:hover { background: var(--c-ink); }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: var(--z-float);
  width: 50px;
  height: 50px;
  border-radius: var(--r-chip);
  background: var(--c-ink);
  color: var(--c-paper);
  border: 0;
  font-size: 1.6em;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s, background-color var(--t-snap);
}

.to-top.show { opacity: 1; visibility: visible; }

.to-top:hover { background: var(--c-orange); color: var(--c-ink); }

/* ---------- F O O T E R ---------- */

.site-footer {
  background: var(--c-charcoal-deep);
  color: var(--c-paper);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem clamp(1.5rem, 6vw, 5rem) 3rem;
  gap: 4rem;
}

.footer-badge { width: min(340px, 72vw); }

.footer-badge svg { width: 100%; height: auto; display: block; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem 4rem;
  width: min(100%, 1100px);
}

.footer-grid h3 {
  font-size: 1.05rem;
  font-weight: var(--w-black);
  margin-bottom: 1.1rem;
}

.footer-grid ul { list-style: none; }

.footer-grid li {
  padding-left: 1.6em;
  position: relative;
  line-height: 1.5;
  font-size: 1.05rem;
}

.footer-grid li + li { margin-top: 0.6em; }

.footer-grid li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--c-orange);
  font-weight: var(--w-black);
}

/* área táctil ampliada sin mover el ritmo visual */
.footer-grid a {
  text-decoration: none;
  display: inline-block;
  padding-block: 0.35em;
  margin-block: -0.35em;
}

.footer-grid a:hover { color: var(--c-orange-soft); text-decoration: underline; }

.footer-legal {
  margin-top: auto;
  font-size: var(--text-caption);
  color: var(--c-grid);
  text-align: center;
  max-width: 70ch;
  line-height: 1.6;
}

/* ---------- R E V E A L S ---------- */
/* Visible por defecto; solo se ocultan cuando el JS marca
   .reveal-ready en <html>, así nada queda en blanco sin JS. */

.reveal-ready [data-reveal] {
  opacity: 0;
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

.reveal-ready [data-reveal="zoom-in"] { transform: scale(0.94) translateY(16px); }
.reveal-ready [data-reveal="zoom-out"] { transform: scale(1.06); }

/* las líneas se dibujan, no se desvanecen */
.reveal-ready [data-reveal="drop"] {
  opacity: 1;
  transform: scaleY(0);
  transform-origin: top center;
  transition-duration: 0.6s;
}
.reveal-ready [data-reveal="slide-right"] { transform: translateX(-28px); }
.reveal-ready [data-reveal="fade"] { transform: none; }

/* el contenedor llega rodando desde la izquierda */
.reveal-ready [data-reveal="truck"] {
  transform: translateX(-7%);
  transition-duration: 1.3s;
}

/* las hr de capítulo se dibujan desde el centro; los codos, en la
   dirección de su flecha */
.reveal-ready [data-reveal="draw-x"] {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: center;
  transition-duration: 0.55s;
}

.reveal-ready [data-reveal="draw-x"].to-right { transform-origin: left center; }

.reveal-ready [data-reveal="draw-x"].to-left { transform-origin: right center; }

/* las fotos se revelan con barrido de máscara */
.reveal-ready [data-reveal="wipe"] {
  opacity: 1;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.reveal-ready [data-reveal="wipe"].in { clip-path: inset(0); }

.reveal-ready [data-reveal].in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-badge.bottom,
  .hero-title .flecha,
  .hero-cells div,
  .floaty img,
  .floaty svg { animation: none; }

  .reveal-ready [data-reveal="wipe"] { clip-path: none; transition: none; }
}

/* ---------- R E S P O N S I V E ---------- */

/* Colocación desktop */
@media (min-width: 768px) {
  .c-2-6 { grid-column: 2 / 6; }
  .c-8-12 { grid-column: 8 / 12; }
  .c-2-7 { grid-column: 2 / 7; }
  .c-7-12 { grid-column: 7 / 12; }
  .c-2-11 { grid-column: 2 / 12; }
  .c-5-9 { grid-column: 5 / 9; }
  .c-6-7 { grid-column: 6 / 7; }
}

/* Móvil: todo colapsa al eje central */
@media (max-width: 767.98px) {
  .grid { grid-template-columns: 1fr; padding-inline: 24px; }

  .grid > * { grid-column: 1 / -1; }

  .at-left, .at-right { grid-column: 1 / -1; }

  .line-h { display: none; }

  .line-v { height: var(--line-short); }

  .band, .info-card { margin-inline: -24px; border-radius: 0; }

  .info-card { padding-inline: 24px; }

  .circle { width: 200px; height: 200px; font-size: 0.95rem; }

  .side-nav { display: none; }

  .overlap-up { margin-top: -40px; margin-inline: 12px; }

  .arrow-h {
    justify-self: center;
    width: 0;
    height: var(--line-short);
    border-top: 0;
    border-right: var(--line) solid var(--c-orange);
  }

  .arrow-h::after {
    right: auto;
    top: auto;
    bottom: -2px;
    left: 50%;
    transform: translateX(calc(-50% + 1.5px));
    border: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--c-orange);
  }

  .img-caption {
    position: static;
    transform: none;
    translate: none;
    display: inline-block;
    border-radius: var(--r-chip);
    margin-top: 0.6rem;
  }

  .unit-card[data-size] img { width: 100%; max-width: 340px; }

  .bw-grid {
    --cell-h: 140px;
    grid-template-columns: 1fr;
    padding-inline: 24px;
    margin-inline: -24px;
  }

  .bw-grid .fig-a,
  .bw-grid .fig-b { grid-column: 1 / -1; margin-top: 0; }

  .bw-grid .fig-b { margin-top: var(--cell-h); }

  .container-copy { padding-right: 26%; }

  .container-pills { bottom: 10%; gap: 0.35rem; }

  .hero-cells { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(7, 1fr); }

  .hero-cells div:nth-child(n + 29) { display: none; }

  /* en la retícula móvil 4×7 el bloque blanco central son otras celdas */
  .hero-cells div:nth-child(n) { background: var(--c-cell); }

  .hero-cells div:nth-child(10), .hero-cells div:nth-child(11),
  .hero-cells div:nth-child(14), .hero-cells div:nth-child(15),
  .hero-cells div:nth-child(18), .hero-cells div:nth-child(19) {
    background: var(--c-paper);
  }

  .hero-cells div:nth-child(n + 29) { display: none; }

  .to-top { bottom: 92px; }
}
