/* =====================================================================
   VengaJobs · sistema visual v3 (octubre 2026)
   ---------------------------------------------------------------------
   Marca: negro #0A0A0A · naranja #FF6A00 (#FF8A2A, #E55700) · blanco.
   Un solo tema oscuro en grafito (#1D1E22), menos duro que el negro puro;
   cabecera y pie van un punto más oscuros. Las escenas en despiece viven
   en un canvas fijo detrás del contenido (js/crane.js + js/escenas/), así
   que las secciones son transparentes y solo los paneles de lectura
   (planes, formulario, tablero de rutas) tienen fondo propio.

   Tipografía: Jost (titulares, misma familia que el logotipo) +
   Barlow (texto; grotesca de rotulación de obra y carretera).

   Contraste (WCAG 2.1 AA):
   - Texto: --text 15:1, --muted 9,6:1, --dim 6,6:1 sobre --ink.
   - Bordes de controles y botones secundarios ≥ 3:1 (1.4.11).
   - Botón principal: naranja con texto negro (6,9:1).
   Radios: botones 10px, paneles 14px, campos 8px. Nada más.
   Capas: grúa 0 · contenido 1 · cabecera 100 · modal 1000 · cookies 1100.
   ===================================================================== */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca */
  --signal: #FF6A00;
  --signal-hi: #FF8A2A;
  --signal-deep: #E55700;
  --signal-edge: #C24E00;      /* borde de botón naranja sobre blanco (3,7:1) */
  /* Fondo y superficies */
  --ink: #1D1E22;              /* grafito: fondo de página */
  --ink-deep: #141518;         /* cabecera y pie */
  --ink-2: #25262B;
  --ink-3: #2D2E34;
  --line: #3A3B42;             /* separadores */
  --line-strong: #7A7B84;      /* bordes de controles (≥ 3:1 sobre --ink) */
  /* Texto sobre oscuro */
  --text: #F5F5F7;
  --muted: #C4C5CB;
  --dim: #A7A8AF;
  /* Panel blanco */
  --paper: #FFFFFF;
  --paper-2: #F2F2F4;
  --paper-ink: #0A0A0A;
  --paper-muted: #4D4D53;
  --paper-line: #DCDCE0;
  --paper-edge: #85858C;       /* bordes de campos sobre blanco (3,6:1) */

  --font-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-text: "Barlow", "Arial Narrow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-sm: 1rem;               /* 16 */
  --fs-base: 1.125rem;         /* 18 */
  --fs-md: 1.3125rem;          /* 21 */
  --fs-h3: 1.625rem;           /* 26 */
  --fs-h2: clamp(2.125rem, 4.2vw, 3.5rem);
  --fs-hero: clamp(2.6rem, 5.4vw, 4.5rem);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(88px, 12vw, 152px);
  --header-h: 72px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  --z-crane: 0;
  --z-content: 1;
  --z-header: 100;
  --z-modal: 1000;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--signal); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 16px; top: -64px;
  z-index: calc(var(--z-header) + 1);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- La grúa (canvas fijo) ---------- */
.crane {
  position: fixed;
  inset: 0;
  z-index: var(--z-crane);
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .95;
}
main, .site-footer { position: relative; z-index: var(--z-content); }
/* Halo del color de fondo alrededor del texto para separarlo de las líneas de la grúa */
main :is(h1, h2, h3, p, li, summary, blockquote, figcaption, dt, dd) { text-shadow: 0 0 2px var(--ink), 0 0 12px var(--ink); }
main :is(.panel, .form-card, .quote--lead, .routes, .note, .btn) :is(h1, h2, h3, p, li, summary, blockquote, figcaption, dt, dd, span),
main .btn { text-shadow: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--signal); color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--signal-hi); }
  .btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .06); }
}
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: 1rem; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.125rem; }

.text-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color .18s ease;
}
@media (hover: hover) { .text-link:hover { color: var(--signal-hi); } }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(20, 21, 24, .8);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(20, 21, 24, .94); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; margin-right: auto; border-radius: 6px; }
.brand img { height: 32px; width: auto; }
.nav-main { display: flex; gap: 2px; }
.nav-main a {
  position: relative;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease;
}
.nav-main a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-main a.is-current, .nav-main a:hover { color: var(--text); }
.nav-main a.is-current::after, .nav-main a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
}
.menu-toggle__bars { position: relative; width: 20px; height: 14px; }
.menu-toggle__bars span {
  position: absolute; left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease-out), opacity .2s ease, top .3s var(--ease-out);
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6px; }
.menu-toggle__bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-mobile {
  position: absolute;
  left: 0; right: 0; top: 100%;
  display: grid;
  grid-template-rows: 0fr;
  background: rgba(20, 21, 24, .98);
  border-bottom: 1px solid transparent;
  transition: grid-template-rows .32s var(--ease-out), border-color .32s ease;
}
.nav-mobile > div { overflow: hidden; }
.nav-mobile.is-open { grid-template-rows: 1fr; border-bottom-color: var(--line); }
.nav-mobile nav { display: flex; flex-direction: column; padding: 8px 0 20px; }
.nav-mobile a:not(.btn) {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 550;
  text-decoration: none;
}
.nav-mobile .btn { margin-top: 18px; }
.nav-mobile:not(.is-open) a { visibility: hidden; }

@media (max-width: 1099px) {
  .nav-main { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1100px) { .nav-mobile { display: none; } }
@media (max-width: 480px) {
  .header-cta .btn { display: none; }
  .brand img { height: 28px; }
}

/* ---------- Ritmo general ---------- */
.section { padding-block: var(--section) 0; }
.section h2 { font-size: var(--fs-h2); max-width: 17ch; }
.section-intro {
  margin-top: 20px;
  max-width: 54ch;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.5;
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header-h));
  padding-block: 120px clamp(56px, 9vh, 104px);
}
/* La escena ocupa casi toda la pantalla; este velo del color de fondo
   deja el texto limpio sin tapar la pieza */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(29, 30, 34, .9) 0, rgba(29, 30, 34, .8) 30%, rgba(29, 30, 34, .4) 48%, rgba(29, 30, 34, 0) 62%);
}
.hero__copy { max-width: 760px; }
.hero__line { display: block; max-width: 26ch; }
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -0.03em;
}
.hero h1 .dot { color: var(--signal); }
.hero__lead {
  margin-top: 28px;
  max-width: 44ch;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.5;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 760px) {
  .hero { align-items: flex-start; min-height: 0; padding-block: clamp(136px, 29svh, 260px) 72px; }
  .hero::before { background: linear-gradient(180deg, rgba(29, 30, 34, 0) 0, rgba(29, 30, 34, 0) 20%, rgba(29, 30, 34, .74) 38%, rgba(29, 30, 34, .9) 100%); }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Clientes ---------- */
.clients { padding-block: clamp(48px, 7vw, 80px); border-block: 1px solid var(--line); background: rgba(29, 30, 34, .72); }
.clients h2 {
  margin-bottom: 32px;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0;
}
.clients__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 40px 32px;
  align-items: center;
}
.clients__grid[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Cada logo lleva su ancho (--w) calculado para que todos pesen lo mismo a la vista */
.clients__grid li { display: flex; align-items: center; justify-content: center; height: 52px; min-width: 0; }
.clients__grid img {
  width: var(--w);
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .86;
}
@media (max-width: 900px) {
  .clients__grid[data-cols="6"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .clients__grid { gap: 32px 24px; }
}
@media (max-width: 640px) {
  .clients__grid, .clients__grid[data-cols="5"], .clients__grid[data-cols="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 26px 14px; }
  .clients__grid li { height: 40px; }
  .clients__grid li.is-wide { grid-column: span 2; }
  .clients__grid img { width: var(--wm); }
}

/* ---------- Qué hacemos ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.about__photo { position: sticky; top: calc(var(--header-h) + 32px); border-radius: 14px; overflow: hidden; background: var(--ink-3); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.08); }
.about__photo figcaption {
  padding: 12px 16px;
  background: var(--ink-2);
  color: var(--dim);
  font-size: var(--fs-sm);
}
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.service { padding: 28px 28px 0 0; }
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; }
.service p { margin-top: 12px; color: var(--muted); }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: .5em;
  width: 13px; height: 7px;
  border-left: 2.5px solid var(--signal);
  border-bottom: 2.5px solid var(--signal);
  transform: rotate(-45deg);
}
.service .text-link { display: inline-block; margin-top: 20px; }
.proof {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.proof strong {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 650;
  line-height: .9;
  letter-spacing: -0.03em;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.proof span { max-width: 22ch; color: var(--muted); font-size: var(--fs-md); line-height: 1.35; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { position: static; }
  .about__photo img { aspect-ratio: 16 / 11; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 24px 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
}

/* ---------- Movilidad ---------- */
.mobility__head { max-width: 760px; }
.mobility__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}

/* Tablero de rutas */
.routes {
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
}
.routes__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-3);
}
.routes__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; white-space: nowrap; }
.routes__hub { color: var(--dim); font-size: var(--fs-sm); white-space: nowrap; }
.routes__group + .routes__group { border-top: 1px solid var(--line); }
.routes__label { display: flex; align-items: center; gap: 10px; padding: 16px 22px 6px; color: var(--signal); font-size: var(--fs-sm); font-weight: 600; }
.routes__label svg { width: 18px; height: 18px; }
.routes__list { list-style: none; padding: 0 10px 12px; perspective: 600px; }
.route {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  transform-origin: 50% 0;
}
.route:nth-child(odd) { background: rgba(255, 255, 255, .045); }
.route__code { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: .06em; }
.route__place { font-weight: 600; }
.route__what { color: var(--dim); font-size: var(--fs-sm); text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .js .routes.is-in .route { animation: routeIn .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
}
@keyframes routeIn { from { opacity: 0; transform: rotateX(-80deg); } to { opacity: 1; transform: none; } }

.permits h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; }
.permits h3 + p { margin-top: 10px; color: var(--muted); }
.permits section + section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chips li {
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.note {
  margin-top: 36px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--ink-2);
  color: var(--muted);
}
.note strong { color: var(--text); }
.mobility .btn { margin-top: 28px; }
@media (max-width: 960px) {
  .mobility__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .route { grid-template-columns: 2.7em minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; }
  .route__code { font-size: 1rem; }
  .route__what { font-size: .9375rem; }
  .routes__head, .routes__label { padding-inline: 16px; }
}
@media (max-width: 379px) {
  .route { grid-template-columns: 2.6em minmax(0, 1fr); row-gap: 0; }
  .route__what { grid-column: 2; text-align: left; }
}

/* ---------- Proceso ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: clamp(40px, 5vw, 64px);
  counter-reset: step;
}
.step { position: relative; }
.step__num {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step__num::after { content: ""; flex: 1; height: 1.5px; background: var(--line-strong); }
.step:last-child .step__num::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.step h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; }
.step p { margin-top: 12px; color: var(--muted); }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding-bottom: 32px; }
  .step__num { grid-row: 1 / span 2; flex-direction: column; align-items: center; gap: 10px; margin: 0; height: 100%; }
  .step__num::after { width: 1.5px; height: auto; flex: 1; }
  .step:last-child .step__num::after { display: none; }
  .step:last-child { padding-bottom: 0; }
}

/* ---------- Planes (panel blanco) ---------- */
.panel {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(8px, 2vw, 16px) clamp(20px, 3vw, 36px) clamp(24px, 3vw, 36px);
  border-radius: 14px;
  background: var(--paper);
  color: var(--paper-ink);
}
.plans-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.plans-table th, .plans-table td {
  padding: 18px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--paper-line);
  font-size: var(--fs-base);
}
.plans-table thead th { padding-top: 28px; border-bottom: 2px solid var(--paper-ink); vertical-align: bottom; }
.plans-table tbody th { width: 22%; color: var(--paper-muted); font-weight: 600; }
.plans-table tbody tr:last-child th, .plans-table tbody tr:last-child td { border-bottom: 0; }
.plans-table .is-featured { background: var(--paper-2); }
.plan-name { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 650; letter-spacing: -0.02em; }
.plan-for { display: block; margin-top: 4px; color: var(--paper-muted); font-weight: 400; font-size: var(--fs-sm); }
.plan-flag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-ink);
  color: var(--signal);
  font-size: .875rem;
  font-weight: 600;
}
.plans-table .na { color: var(--paper-muted); }
.plans-mobile { display: none; }
.plan-card { padding: 20px 0; border-bottom: 1px solid var(--paper-line); }
.plan-card:last-child { border-bottom: 0; }
.plan-card dl { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); margin: 14px 0 0; }
.plan-card dt, .plan-card dd { margin: 0; padding: 8px 0; border-top: 1px solid var(--paper-line); font-size: var(--fs-sm); }
.plan-card dt { padding-right: 12px; color: var(--paper-muted); font-weight: 600; }
@media (max-width: 820px) {
  .plans-table { display: none; }
  .plans-mobile { display: block; }
}
.plans-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 28px;
}
.plans-foot p { max-width: 64ch; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Opiniones ---------- */
.voices {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 5vw, 64px);
  margin-top: clamp(40px, 5vw, 64px);
  align-items: stretch;
}
.quote { margin: 0; display: flex; flex-direction: column; }
.quote blockquote { margin: 0; }
.quote--lead { padding: clamp(28px, 4vw, 52px); border-radius: 14px; background: var(--signal); color: var(--ink); }
.quote--lead blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.quotes-side { display: grid; align-content: space-between; gap: 32px; }
.quotes-side .quote { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.quotes-side blockquote p { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 22px; }
.quote__initials {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink-3);
  color: var(--text);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
}
.quote--lead .quote__initials { background: var(--ink); color: var(--signal); }
.quote__name { display: block; font-weight: 600; }
.quote__role { display: block; color: var(--dim); font-size: var(--fs-sm); }
.quote--lead .quote__role { color: #3A1A00; }
@media (max-width: 960px) {
  .voices { grid-template-columns: 1fr; }
}

/* ---------- Preguntas ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.faq__aside p { margin-top: 20px; max-width: 32ch; color: var(--muted); }
.faq-list { border-top: 1.5px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); background: rgba(29, 30, 34, .6); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 550;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq-item summary:hover { color: var(--signal-hi); } }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 34px; height: 34px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  background: currentColor;
  transition: transform .25s var(--ease-out);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-answer { overflow: hidden; }
.faq-answer p { padding: 0 56px 24px 0; max-width: 64ch; color: var(--muted); }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 1.1875rem; }
  .faq-answer p { padding-right: 0; }
}

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding-bottom: var(--section);
}
.contact h2 { max-width: 12ch; }
.contact h2 .dot { color: var(--signal); }
.contact__lead { margin-top: 20px; max-width: 36ch; color: var(--muted); font-size: var(--fs-md); line-height: 1.5; }
.direct { list-style: none; display: grid; gap: 12px; margin-top: 36px; }
.direct li { display: flex; align-items: center; gap: 12px; }
.direct a { color: var(--text); font-weight: 600; text-decoration: none; }
@media (hover: hover) { .direct a:hover { color: var(--signal-hi); } }
.direct svg { width: 20px; height: 20px; color: var(--signal); flex-shrink: 0; }

/* Formulario (panel blanco) */
.form-card {
  padding: clamp(22px, 3.5vw, 40px);
  border-radius: 14px;
  background: var(--paper);
  color: var(--paper-ink);
}
.form-card :focus-visible { outline-color: var(--paper-ink); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 28px;
  padding: 4px;
  border: 1.5px solid var(--paper-edge);
  border-radius: 12px;
  background: var(--paper-2);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--paper-muted);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.segmented input:checked + label { background: var(--paper-ink); color: var(--paper); }
.segmented input:focus-visible + label { outline: 2px solid var(--paper-ink); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.field label .opt { color: var(--paper-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--paper-edge);
  border-radius: 8px;
  background: var(--paper);
  color: var(--paper-ink);
  font-size: 1.0625rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230A0A0A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #6A6A70; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--paper-ink);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, .45);
}
.field [aria-invalid="true"] { border-color: #B3261E; }
.field__error { color: #B3261E; font-size: var(--fs-sm); font-weight: 600; }
.field__error:empty { display: none; }
.branch { margin-top: 20px; }
.branch[hidden] { display: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: grid; gap: 14px; margin-top: 28px; }
.form-actions .btn { width: 100%; border-color: var(--signal-edge); }
.form-legal { color: var(--paper-muted); font-size: .9375rem; line-height: 1.5; }
.form-legal a { color: var(--paper-ink); font-weight: 600; }
.btn .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(10, 10, 10, .25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-weight: 600; line-height: 1.45; }
.form-status.is-ok { display: block; background: #E6F4EC; border: 1.5px solid #1E7A46; color: #145232; }
.form-status.is-error { display: block; background: #FCEBEA; border: 1.5px solid #B3261E; color: #8C1D17; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .segmented label { padding: 8px 6px; font-size: 1rem; }
}

/* ---------- Pie ---------- */
.site-footer {
  border-top: 1px solid var(--line-strong);
  background: var(--ink-deep);
  color: var(--muted);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: 40px;
  padding-block: clamp(56px, 7vw, 88px) 48px;
}
.footer-brand img { height: 42px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-contact { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; color: var(--signal); flex-shrink: 0; }
.footer-contact a { color: var(--text); text-decoration: none; }
.footer-col h2 { margin-bottom: 14px; color: var(--text); font-family: var(--font-text); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a, .footer-col button {
  display: inline-block;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--fs-sm);
  text-align: left;
  text-decoration: none;
}
@media (hover: hover) {
  .footer-contact a:hover, .footer-col a:hover, .footer-col button:hover { color: var(--text); }
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px 32px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: .9375rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Mini-juego ---------- */
.vj-game-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 21, 24, .88);
}
.vj-game-modal[hidden] { display: none; }
.vj-game-card {
  position: relative;
  max-width: 100%;
  padding: 24px 20px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--ink-2);
  text-align: center;
}
.vj-game-h { font-size: 1.5rem; }
.vj-game-sub { margin: 6px 0 16px; color: var(--muted); font-size: var(--fs-sm); }
.vj-game-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
}
#vjGameCanvas { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 10px; touch-action: none; cursor: pointer; }
.vj-game-help { margin-top: 12px; color: var(--dim); font-size: .9375rem; }
.vj-game-help kbd { padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--ink-3); color: var(--text); font-size: .8125rem; }

/* ---------- Páginas legales ---------- */
.legal-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); background: rgba(29, 30, 34, .82); }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font-weight: 600; text-decoration: none; }
@media (hover: hover) { .legal-back:hover { color: var(--signal-hi); } }
.legal-back svg { width: 16px; height: 16px; }
.legal-hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; }
.legal-meta { margin-top: 12px; color: var(--dim); }
.legal-body { padding-block: clamp(40px, 6vw, 72px) var(--section); background: rgba(29, 30, 34, .9); }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc h2 { margin-bottom: 12px; font-family: var(--font-text); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; }
.legal-toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--muted); font-size: var(--fs-sm); line-height: 1.4; text-decoration: none; transition: color .18s ease, border-color .18s ease; }
@media (hover: hover) { .legal-toc a:hover { color: var(--text); border-left-color: var(--signal); } }
.legal-content { max-width: 72ch; }
.legal-content h2 { margin: 56px 0 14px; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 32px 0 10px; font-size: 1.1875rem; font-weight: 600; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.75; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul, .legal-content ol { padding-left: 1.25em; margin-bottom: 14px; }
.legal-content a { color: var(--text); text-decoration-color: var(--signal); text-underline-offset: 3px; }
.legal-content strong { color: var(--text); }
.cookie-card { margin-bottom: 12px; padding: 20px 24px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--ink-2); }
.cookie-card h3 { margin: 0 0 8px; font-size: 1.0625rem; }
.cookie-card p { margin: 0; font-size: var(--fs-sm); }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; }
  .legal-toc nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .legal-toc a { padding: 6px 12px; border: 1.5px solid var(--line-strong); border-radius: 999px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Impresión ---------- */
@media print {
  .crane, .site-header, .nav-mobile, .vj-game-modal, #cmplz-cookiebanner-container, #cmplz-manage-consent { display: none !important; }
  body { background: #fff; color: #000; }
}
