/* ─────────────────────────────────────────────────────────────
   The Growing Company: thegrowingcompany.es
   Palette:  near-black #0d0f14 · amber #f0b93c · signal green #5fb87a
   Type:     Barlow Condensed (display) · IBM Plex Sans (body)
   ───────────────────────────────────────────────────────────── */

:root {
  --bg:        #0d0f14;
  --bg-raise:  #14171f;
  --bg-panel:  #0a0c11;
  --line:      #23272f;
  --text:      #e8eaed;
  --text-dim:  #969ba6;
  --text-mute: #6c727d;
  --amber:     #f0b93c;
  --amber-dim: #7a5f22;
  --accent:    #3261dc;   /* azul de marca (del logo) */
  --coral:     #fc583b;   /* marca DestinGO */
  --coral-dim: #7a3325;
  --opo-blue:  #416caf;   /* marca OpoTAI */

  --page-glow: rgba(240,185,60,0.06);
  --shadow-lg: rgba(0,0,0,0.4);
  --bar-track: rgba(255,255,255,0.05);
  --glass: rgba(13,15,20,0.75);

  --maxw: 1120px;
  --radius: 14px;

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* Tema claro: mismos acentos, oscurecidos para contraste sobre blanco */
[data-theme="light"] {
  --bg:        #f4f5f7;
  --bg-raise:  #ffffff;
  --bg-panel:  #fbfbfd;
  --line:      #e3e6ec;
  --text:      #171a20;
  --text-dim:  #4b525d;
  --text-mute: #788089;
  --amber:     #a4740e;
  --amber-dim: #e0c37c;
  --accent:    #3261dc;
  --coral:     #e04326;
  --coral-dim: #f3b7a8;
  --opo-blue:  #416caf;
  --page-glow: rgba(240,185,60,0.18);
  --shadow-lg: rgba(23,26,32,0.10);
  --bar-track: rgba(15,18,24,0.08);
  --glass: rgba(244,245,247,0.82);
}

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

body, .product, .board, .ctrl {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint vertical glow that grounds the page in both themes */
  background-image:
    radial-gradient(1200px 600px at 50% -10%, var(--page-glow), transparent 60%);
  background-repeat: no-repeat;
}

/* Accessibility ─ visible focus, skip link ------------------------------- */
a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: #1a1204;
  padding: 10px 16px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Wordmark / brand mark --------------------------------------------------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}
.wordmark__mark {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 5px;
  background: #f4f7fc url("images/logo-mark.png") center / contain no-repeat;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px max(24px, calc((100% - var(--maxw)) / 2));
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
html.scrolled .site-header { border-bottom-color: var(--line); }
.site-nav {
  display: flex;
  gap: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-dim);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.site-nav a:hover { color: var(--text); border-color: var(--amber); }

.site-header__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-controls { display: flex; gap: 8px; }
.ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.ctrl:hover { color: var(--text); border-color: var(--amber); }
.ctrl svg { display: block; }
[data-theme="light"] .ctrl__icon--sun { display: none; }
html:not([data-theme="light"]) .ctrl__icon--moon { display: none; }

/* Hero -------------------------------------------------------------------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}
.hero__visual {
  position: relative;
  min-height: 580px;
  height: 100%;
  pointer-events: none;
}

/* Entrada del hero (estilo Apple): el copy sube en cascada.
   fill backwards: al acabar, los estilos inline del scroll mandan */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
html.fx .hero__copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
html.fx .hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
html.fx .hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
html.fx .hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
html.fx .hero__visual { animation: rise 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
@media (prefers-reduced-motion: reduce) {
  html.fx .hero__copy > *, html.fx .hero__visual { animation: none; }
}
/* halo de reserva: visible mientras carga el 3D o si WebGL no está */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--page-glow), transparent 72%);
}
.hero__visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.hero__title-accent { color: var(--accent); }
.hero__lede {
  max-width: 44ch;
  margin: 30px 0 0;
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--text);
}
.hero__signature {
  display: flex;
  align-items: baseline;
  gap: 10px;
  max-width: 52ch;
  margin: 34px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--text-dim);
}
.hero__signature .dot {
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: translateY(-1px);
}

/* Products container ------------------------------------------------------ */
.products {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  scroll-margin-top: 24px;
  position: relative;
  overflow: hidden;
}
/* each product a distinct edge inside one shared skeleton */
.product::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
}
.product--pixbus::before  { background: var(--amber); }
.product--destingo::before{ background: var(--coral); }
.product--opotai::before  { background: var(--opo-blue); }

/* alternate the visual to the left on the middle block */
.product--destingo { grid-template-columns: 0.95fr 1.05fr; }
.product--destingo .product__body   { order: 2; }
.product--destingo .product__visual { order: 1; }

.product__kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.product__namerow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
}
.product__namerow .product__name { margin: 0; }
.product__logo {
  width: clamp(46px, 6vw, 62px);
  height: auto;
  flex: none;
  border-radius: 22%;   /* tile de app: unifica los tres iconos */
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}
.product__name {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
.product--pixbus  .product__name { color: var(--amber); }
.product--destingo .product__name { color: var(--text); }
.product--destingo .product__name .dg-go { color: var(--coral); }
.product--opotai  .product__name { color: var(--opo-blue); }
.product__lead {
  margin: 0 0 14px;
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--text);
}
.product__desc {
  margin: 0 0 22px;
  color: var(--text-dim);
}
.product__desc strong { color: var(--text); font-weight: 600; }

.product__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.product__tags li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Enlaces a las tiendas (solo en las apps ya publicadas) --------------- */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.store-btn__icon { flex: none; }
.store-btn:hover { transform: translateY(-1px); }
/* cada producto tiñe sus botones con su color de marca */
.product--pixbus   .store-btn:hover { border-color: var(--amber);    background: rgba(240,185,60,0.10); }
.product--destingo .store-btn:hover { border-color: var(--coral);    background: rgba(252,88,59,0.10); }
.product--opotai   .store-btn:hover { border-color: var(--opo-blue); background: rgba(65,108,175,0.12); }
@media (prefers-reduced-motion: reduce) {
  .store-btn, .store-btn:hover { transition: none; transform: none; }
}

/* Composición del visual: captura de la app arriba-derecha, firma visual
   de cada producto abajo-izquierda; solo se solapan en una esquina para
   que la captura quede bien visible */
.product__visual {
  display: grid;
  min-height: 540px;
}
.product__visual > * { grid-area: 1 / 1; }
.phone-par {
  justify-self: end;
  align-self: start;
  width: clamp(190px, 44%, 238px);
  z-index: 0;
  will-change: transform;
}
.product__visual .led-board,
.product__visual .board {
  justify-self: start;
  align-self: end;
  max-width: 320px;
  z-index: 1;
}

.phone {
  --tilt: 2.5deg;
  margin: 0;
  width: 100%;
  padding: 10px;
  background: #06070a;
  border: 1px solid #23272f; /* bisel fijo: el teléfono es "físico" */
  border-radius: 40px;
  box-shadow: 0 24px 60px var(--shadow-lg);
  transform: rotate(var(--tilt));
}
.product--destingo .phone { --tilt: -2.5deg; }
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}

/* Aparición al hacer scroll (solo con JS: html.fx) */
html.fx .product { transition: opacity 0.7s ease, transform 0.7s ease; }
html.fx .product:not(.is-in) {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
}
html.fx .product__body > * { transition: opacity 0.55s ease, transform 0.55s ease; }
html.fx .product__body > *:nth-child(2) { transition-delay: 0.07s; }
html.fx .product__body > *:nth-child(3) { transition-delay: 0.14s; }
html.fx .product__body > *:nth-child(4) { transition-delay: 0.21s; }
html.fx .product__body > *:nth-child(5) { transition-delay: 0.28s; }
html.fx .product:not(.is-in) .product__body > * {
  opacity: 0;
  transform: translateY(16px);
}
html.fx .phone,
html.fx .product__visual .led-board,
html.fx .product__visual .board {
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.fx .product__visual .led-board,
html.fx .product__visual .board { transition-delay: 0.12s; }
html.fx .product:not(.is-in) .phone {
  opacity: 0;
  transform: translateY(28px) rotate(calc(var(--tilt) * 3));
}
html.fx .product:not(.is-in) .product__visual .led-board,
html.fx .product:not(.is-in) .product__visual .board {
  opacity: 0;
  transform: translateY(36px);
}
@media (prefers-reduced-motion: reduce) {
  html.fx .product,
  html.fx .product__body > *,
  html.fx .phone,
  html.fx .product__visual .led-board,
  html.fx .product__visual .board { transition: opacity 0.4s ease; }
  html.fx .product:not(.is-in) { transform: none; }
  html.fx .product:not(.is-in) .product__body > * { transform: none; }
  html.fx .product:not(.is-in) .phone { transform: rotate(var(--tilt)); }
  html.fx .product:not(.is-in) .product__visual .led-board,
  html.fx .product:not(.is-in) .product__visual .board { transform: none; }
}

/* ── PixBus visual: amber LED board ─────────────────────────────────────── */
.led-board {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.led-board__frame {
  width: 100%;
  border-radius: 12px;
  padding: 18px 20px;
  background:
    radial-gradient(rgba(240,185,60,0.10) 1px, transparent 1.4px) 0 0 / 6px 6px,
    #060708;
  border: 1px solid #1c1c1c;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.9), 0 20px 50px rgba(0,0,0,0.5);
  font-family: var(--font-mono);
  font-weight: 600;
  color: #f0b93c; /* fijo: el board es "físico", no cambia con el tema */
  text-shadow: 0 0 8px rgba(240,185,60,0.55);
}
.led-board__header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: #7a5f22;
  text-shadow: none;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px dashed #2a2413;
}
.led-board__row {
  display: grid;
  grid-template-columns: 1fr auto 46px;
  gap: 14px;
  align-items: baseline;
  padding: 5px 0;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.led-board__stop {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}
.led-board__bus { opacity: 0.9; }
.led-board__min { text-align: right; }
.led-board__min i { font-style: normal; opacity: 0.7; }
.led-board__min--due {
  color: #ffd76b;
  animation: led-blink 1.1s steps(1) infinite;
}
@keyframes led-blink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) {
  .led-board__min--due { animation: none; }
}

/* ── Shared panel look for DestinGO / OpoTAI ────────────────────────────── */
.board {
  width: 100%;
  max-width: 380px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px var(--shadow-lg);
}

/* ── DestinGO visual: convocatorias con estado ──────────────────────────── */
.dossier__head, .syllabus__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.dossier__title, .syllabus__head > span:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.dossier__count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--coral);
}
.dossier__list { list-style: none; margin: 0; padding: 0; }
.dossier__list li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(35,39,47,0.6);
}
.dossier__list li:last-child { border-bottom: none; }
.dossier__flag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  padding: 3px 0;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.dossier__place {
  font-size: 0.9rem;
  color: var(--text);
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
}
.pill--open    { color: var(--coral); background: rgba(252,88,59,0.12); border: 1px solid var(--coral-dim); }
.pill--pending { color: var(--amber); background: rgba(240,185,60,0.12); border: 1px solid var(--amber-dim); }
.pill--closed  { color: var(--text-mute); border: 1px solid var(--line); }
.dossier__foot, .syllabus__foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}

/* ── OpoTAI visual: progreso por bloques ────────────────────────────────── */
.syllabus__pct {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--opo-blue);
}
.syllabus__list { list-style: none; margin: 0; padding: 6px 0 0; }
.syllabus__list li {
  display: grid;
  gap: 7px;
  padding: 9px 0;
}
.syllabus__label {
  font-size: 0.86rem;
  color: var(--text-dim);
}
.bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--bar-track);
  overflow: hidden;
}
.bar b {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  background: var(--opo-blue);
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.site-footer__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.site-footer__note {
  margin: 0;
  max-width: 36ch;
  color: var(--text-mute);
  font-size: 0.9rem;
}
.site-footer__col h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.site-footer__col a,
.site-footer__col .linklike {
  display: block;
  width: fit-content;
  margin: 9px 0 0;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
}
.site-footer__col a:hover,
.site-footer__col .linklike:hover { color: var(--amber); }
.site-footer__addr {
  display: block;
  margin-top: 9px;
  color: var(--text-mute);
  font-size: 0.92rem;
  line-height: 1.5;
}
.site-footer__legalline {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-mute);
}
.linklike {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
/* Móvil: footer compacto como el original (mejor UX que 4 columnas) */
@media (max-width: 720px) {
  .site-footer__grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px 24px 22px;
  }
  .site-footer__col h3,
  .site-footer__col[aria-label="Productos"],
  .site-footer__addr { display: none; }
  .site-footer__col {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .site-footer__col--brand { display: block; }
  .site-footer__col a,
  .site-footer__col .linklike { margin: 0; }
}

/* Banner de cookies ------------------------------------------------------- */
.cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px var(--shadow-lg);
}
.cookies__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-dim);
  max-width: 58ch;
}
.cookies__text a { color: var(--amber); }
.cookies__actions { display: flex; gap: 10px; }
.cookies__btn { font-size: 0.82rem; padding: 8px 16px; }
.cookies__btn--accept {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.cookies__btn--accept:hover {
  color: #fff;
  border-color: var(--accent);
  filter: brightness(1.08);
}

/* Páginas legales ----------------------------------------------------------- */
.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.legal__updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-mute);
  margin: 0 0 36px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin: 38px 0 10px;
}
.legal h3 { font-size: 1.02rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-dim); font-size: 0.97rem; }
.legal strong { color: var(--text); }
.legal a { color: var(--amber); }
.legal ul { padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 12px 0; }
.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  vertical-align: top;
}
.legal th { color: var(--text); font-weight: 600; }
.legal__divider { margin: 56px 0 40px; border: none; border-top: 1px solid var(--line); }
.placeholder { color: var(--coral); font-weight: 600; }

/* Páginas legales: solo se muestra el idioma activo (html[lang]) */
html[lang="en"] .lang-es { display: none; }
html:not([lang="en"]) .lang-en { display: none; }

/* Pantallas grandes --------------------------------------------------------- */
@media (min-width: 1440px) {
  :root { --maxw: 1280px; }
  body { font-size: 18px; }
  .hero { gap: 56px; padding-top: 64px; }
  .hero__visual { min-height: 700px; }
}
@media (min-width: 1800px) {
  :root { --maxw: 1420px; }
  .hero__visual { min-height: 780px; }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 820px) {
  .product,
  .product--destingo {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 24px;
  }
  .product--destingo .product__body   { order: 1; }
  .product--destingo .product__visual { order: 2; }
  /* Móvil: los 3 paneles arrancan a la misma altura sobre el mockup
     (anclados por arriba con un offset común, no bottom-aligned) */
  .product__visual { min-height: 0; }
  .phone-par { width: clamp(170px, 40%, 220px); }
  .product__visual .led-board,
  .product__visual .board {
    align-self: start;
    margin-top: 150px;
  }
  /* Móvil: las partículas como bloque propio ARRIBA del titular
     (no superpuestas al texto: encima, separadas) */
  .hero {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
  }
  .hero__visual {
    order: -1;          /* sube por encima del copy */
    width: 100%;
    height: 380px;
    min-height: 0;
    margin: 0 0 4px;
    opacity: 1;
  }
}

/* Móvil: solo la marca (cuadrado), sin el nombre, el menú sube a una fila */
@media (max-width: 640px) {
  .wordmark__text { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-nav { gap: 16px; font-size: 0.95rem; }
  .hero__lede { font-size: 1.12rem; }
  /* Pantallas pequeñas: mockup y paneles algo más compactos */
  .phone-par { width: clamp(120px, 46%, 190px); }
  .product__visual .led-board,
  .product__visual .board { max-width: 88%; margin-top: 128px; }
}
