/* =========================================================
   Altura Media · Sistema visual
   Paleta del logo: tinta navy, naranja de acento, gris frío + cielo ilustrado.
   Forma: superficies con radio 2px; elementos interactivos pequeños (pills) con radio completo.
   Botones con "suela" de 3px: guiño gráfico al mundo ilustrado del hero.
   ========================================================= */

:root {
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --tint: #EDF1F5;
  --sky: #DCE8F3;
  --ink: #0E1A2B;
  --ink-2: #26334A;
  --road: #1F2E47;
  --muted: #4F5D6F;
  --line: #DCE1E8;
  --line-strong: #C3CBD6;
  --accent: #F45D22;
  --accent-hover: #E5521A;
  --accent-ink: #B33E0D;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 2px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --nav-h: 72px;
  --gutter: clamp(20px, 4vw, 48px);
  --shadow: 0 1px 2px rgba(14, 26, 43, 0.06), 0 12px 32px -12px rgba(14, 26, 43, 0.18);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  overflow-x: clip;
}

::selection { background: var(--accent); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

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

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

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
.h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.02;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 20ch;
}
.body {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.6;
  max-width: 56ch;
  text-wrap: pretty;
}
.body strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h);
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { cursor: progress; opacity: 0.85; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-hover); }
  .btn--ghost:hover { background: var(--tint); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none;
  font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer;
}
.link-arrow > span {
  text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 0.35em;
  transition: text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .link-arrow:hover > span { text-decoration-color: var(--accent); } }

/* ---------- Logo (réplica tipográfica) ---------- */
.logo { display: inline-flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); line-height: 1; }
.logo__altura { font-weight: 900; font-stretch: 125%; font-size: 1.45rem; letter-spacing: -0.035em; }
.logo__row { display: flex; align-items: center; gap: 8px; }
.logo__media { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.56em; }
.logo__bar { flex: 1; height: 3px; background: var(--accent); }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(244, 246, 248, 0.9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a { position: relative; text-decoration: none; font-weight: 550; font-size: 0.975rem; color: var(--ink-2); padding-block: 6px; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover::after { transform: scaleX(1); } }
.nav__cta { --h: 44px; padding: 0 18px; font-size: 0.95rem; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform 220ms var(--ease-out); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  display: flex; flex-direction: column;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  @starting-style { opacity: 0; transform: translateY(-8px); }
}
.menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.25rem; font-weight: 650; }
.menu .btn { margin-top: 20px; }

/* =========================================================
   HERO ilustrado: cielo, valla 3×6 y carretera
   ========================================================= */
.hero {
  position: relative;
  background: var(--sky);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: min(calc(100svh - var(--nav-h)), 860px);
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.cloud {
  position: absolute; display: block;
  height: 26px; border-radius: 999px; background: #fff; opacity: 0.85;
  animation: drift linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 8px; border-radius: 50%; background: inherit; }
.cloud::before { width: 44%; aspect-ratio: 1; left: 16%; }
.cloud::after { width: 30%; aspect-ratio: 1; left: 50%; }
/* Entran por la derecha y salen por la izquierda; los retrasos negativos las reparten al cargar */
.cloud { left: 100%; }
.cloud--1 { width: 150px; top: 14%; animation-duration: 100s; animation-delay: -45s; }
.cloud--2 { width: 100px; top: 30%; opacity: 0.7; animation-duration: 130s; animation-delay: -18s; }
.cloud--3 { width: 120px; top: 7%; opacity: 0.6; animation-duration: 150s; animation-delay: -115s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(calc(-100vw - 200px)); } }

.hero__inner {
  position: relative; flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  padding-top: clamp(40px, 7vh, 88px);
}
.hero__copy { align-self: center; padding-bottom: clamp(40px, 8vh, 96px); }
.hero__title {
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  line-height: 0.98;
  font-weight: 850;
  font-stretch: 112%;
  letter-spacing: -0.04em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { margin-top: clamp(20px, 3vw, 32px); color: var(--ink-2); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); max-width: 44ch; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* La valla */
.scene { align-self: end; display: flex; justify-content: center; }
.board { width: min(100%, 580px); display: flex; flex-direction: column; align-items: center; }
.board__lamps { display: flex; justify-content: space-between; width: 78%; height: 14px; }
.board__lamps i { position: relative; width: 22px; height: 6px; background: var(--ink); border-radius: 1px; }
.board__lamps i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 8px; background: var(--ink); transform: translateX(-50%); }
.board__frame {
  width: 100%;
  background: var(--ink);
  padding: 10px;
  border-radius: 3px;
  box-shadow: 0 24px 40px -20px rgba(14, 26, 43, 0.45);
}
.board__face {
  position: relative;
  aspect-ratio: 2 / 1; /* proporción real 3 × 6 m */
  background: var(--accent);
  overflow: hidden;
  container-type: inline-size;
  border-top: 5px solid #fff;
}
.ad {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4cqw;
  padding: 0 7cqw;
  color: var(--ink);
  opacity: 0; filter: blur(4px); transform: translateY(8%);
  transition: opacity 450ms var(--ease-out), filter 450ms var(--ease-out), transform 450ms var(--ease-out);
}
.ad.is-active { opacity: 1; filter: blur(0); transform: none; }
.ad__big { font-weight: 850; font-stretch: 112%; font-size: 12cqw; line-height: 0.95; letter-spacing: -0.035em; }
.ad__small { font-weight: 700; font-size: 3.2cqw; letter-spacing: 0.01em; }
.ad--logo { gap: 2cqw; }
.ad__altura { font-weight: 900; font-stretch: 125%; font-size: 17cqw; letter-spacing: -0.04em; line-height: 0.9; }
.ad__media { display: flex; align-items: center; gap: 3cqw; width: 100%; font-size: 5cqw; font-weight: 600; letter-spacing: 0.6em; }
.ad__media i { flex: 1; height: 1.4cqw; background: var(--ink); }
.ad__phone { white-space: nowrap; font-weight: 900; font-stretch: 112%; font-size: 12.5cqw; line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.board__posts { position: relative; width: 100%; height: clamp(90px, 17vh, 170px); }
.board__posts i {
  position: absolute; top: 0; bottom: 0; width: 18px;
  background: linear-gradient(90deg, #18263C, var(--road) 60%, #2C3D5A);
}
.board__posts i:first-child { left: 20%; }
.board__posts i:last-child { right: 20%; }

/* Carretera */
.road {
  position: relative; height: 52px; flex: none;
  background: var(--road);
  border-top: 6px solid #33445F;
  overflow: hidden;
}
.road__lines {
  position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 36px, transparent 36px 72px);
  animation: road 1.6s linear infinite;
}
@keyframes road { to { background-position: -72px 0; } }

/* Entrada del hero (el momento coreografiado de la página) */
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__lead, .js .hero__actions { opacity: 0; transform: translateY(12px); }
.js .board { opacity: 0; transform: translateY(40px); }
.is-loaded .hero__title .line > span { transform: none; transition: transform 700ms var(--ease-out); }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 60ms; }
.is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 120ms; }
.is-loaded .hero__lead, .is-loaded .hero__actions { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out) 200ms, transform 500ms var(--ease-out) 200ms; }
.is-loaded .hero__actions { transition-delay: 260ms; }
.is-loaded .board { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out) 120ms, transform 800ms var(--ease-out) 120ms; }

/* ---------- Clientes ---------- */
.clients { padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); background: var(--surface); }
.clients__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.clients__title { font-size: 1.0625rem; font-weight: 600; color: var(--muted); }
.clients__pause {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: none;
  font-size: 0.875rem; font-weight: 550; color: var(--muted); cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.clients__pause:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .clients__pause:hover { border-color: var(--ink); color: var(--ink); } }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client { display: flex; align-items: center; gap: 12px; padding: 0 clamp(28px, 4vw, 56px); color: var(--ink-2); opacity: 0.72; transition: opacity 200ms ease; white-space: nowrap; }
.client svg { width: 34px; height: 34px; flex: none; }
.client__name { font-size: 1.35rem; line-height: 1; letter-spacing: -0.02em; }
@media (hover: hover) and (pointer: fine) { .client:hover { opacity: 1; } }

/* =========================================================
   FORMATOS dibujados a escala
   ========================================================= */
.formats { padding-block: clamp(80px, 10vw, 140px) clamp(56px, 7vw, 96px); }
.formats__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.scale-wrap { overflow-x: auto; scrollbar-width: thin; }
.scale {
  --m: clamp(26px, 3vw, 44px); /* píxeles por metro */
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: auto auto;
  justify-content: start;
  min-width: max-content;
}
.unit__stage {
  grid-row: 1;
  display: flex; align-items: flex-end; justify-content: center;
  padding-inline: clamp(12px, 1.4vw, 20px);
  border-bottom: 3px solid var(--ink); /* el suelo, continuo entre celdas */
  overflow: hidden;
  min-width: 8.5rem;
}
.unit__rig { display: flex; flex-direction: column; align-items: center; width: calc(var(--w) * var(--m)); }
.unit__face {
  width: 100%;
  height: calc(var(--h) * var(--m));
  background: var(--accent);
  border: 4px solid var(--ink);
  border-radius: 2px;
  display: grid; place-items: center;
  container-type: inline-size;
}
.unit__face span {
  font-weight: 800; font-stretch: 108%; letter-spacing: -0.02em;
  font-size: max(11px, min(18cqw, 28px)); line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* Caras verticales y angostas: la medida va en dos líneas, centrada */
.unit__face--tall span { font-size: max(12px, 19cqw); line-height: 1.1; text-align: center; letter-spacing: -0.03em; }
.formats__hint { display: none; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
@media (max-width: 900px) { .formats__hint { display: inline-flex; } }
.unit__posts { position: relative; width: 100%; height: calc(var(--lift) * var(--m)); }
.unit__posts i { position: absolute; top: 0; bottom: 0; width: max(4px, calc(0.22 * var(--m))); background: var(--road); }
.unit__posts i:first-child { left: 18%; }
.unit__posts i:last-child { right: 18%; }
.unit__posts--1 i:first-child { left: 50%; right: auto; transform: translateX(-50%); }
.unit__person { font-size: calc(1.7 * var(--m) * 1.16); line-height: 0.86; color: var(--muted); margin-bottom: -1px; }

.unit__cap { grid-row: 2; padding: 18px clamp(12px, 1.4vw, 20px) 0; max-width: 13.5rem; }
.unit__cap h3 { font-size: 1.125rem; font-weight: 750; letter-spacing: -0.015em; line-height: 1.2; }
.unit__cap .size { display: block; margin-top: 2px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.unit__cap p { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); line-height: 1.45; }
.unit__cap--person .size { color: var(--muted); }

.js .unit__rig, .js .unit__person { transform: translateY(102%); }
.scale.is-in .unit__rig, .scale.is-in .unit__person { transform: none; transition: transform 800ms var(--ease-out); }

/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(20px, 2.4vw, 32px);
  padding-block: clamp(64px, 8vw, 120px) clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--line);
}
.about__intro { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 24px; }
.about__photo { grid-column: 7 / -1; margin: 0; align-self: stretch; border-radius: var(--radius); overflow: hidden; min-height: 420px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.pillars { margin-top: 16px; border-top: 1px solid var(--line); }
.pillars li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.pillars i { font-size: 1.5rem; color: var(--accent-ink); margin-top: 1px; }
.pillars strong { display: block; font-weight: 700; font-size: 1.0625rem; }
.pillars span { color: var(--muted); font-size: 0.975rem; }

.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }

/* =========================================================
   COBERTURA: mapa + panel + departamentos
   ========================================================= */
.coverage { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(64px, 8vw, 112px); }
.coverage__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.coverage__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }

.map { position: relative; }
.map__svg { width: 100%; height: auto; max-height: calc(100dvh - var(--nav-h) - 140px); display: block; overflow: visible; }
.dept {
  stroke: #fff; stroke-width: 1.2; stroke-linejoin: round;
  cursor: pointer;
  transition: fill 160ms ease, filter 120ms ease;
  vector-effect: non-scaling-stroke;
}
.map.is-painting .dept { transition: fill 450ms var(--ease-out); }
.dept:focus { outline: none; }
.dept.is-hover { filter: brightness(1.18) saturate(1.1); }
.dept.is-active { fill: var(--accent) !important; filter: none; }
.dept-outline { fill: none; stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; pointer-events: none; opacity: 0; transition: opacity 150ms ease; }
.dept-outline.is-on { opacity: 1; }
.dept-outline--hover { stroke-width: 1.5; }
.dept:focus-visible { stroke: var(--ink); stroke-width: 2.5; }
.map__labels text {
  font-family: var(--font); font-size: 15px; font-weight: 600; fill: #fff;
  pointer-events: none; text-anchor: middle; dominant-baseline: central;
  transition: fill 160ms ease;
}
.map__labels text.is-dark { fill: var(--ink); }

.map__tip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 0.875rem; line-height: 1.35; white-space: nowrap;
  box-shadow: var(--shadow);
  transform: translate(-50%, calc(-100% - 14px));
}
.map__tip strong { display: block; font-size: 0.9375rem; }
.map__tip span { color: #B9C3D1; font-variant-numeric: tabular-nums; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 20px; font-size: 0.875rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend__sw { width: 30px; height: 14px; border-radius: 2px; }
.legend__sw--ramp { background: linear-gradient(90deg, #A9B8CA, #1E3250); }
.legend__sw--zero { background: #DDE3EA; }
.legend__sw--sel { background: var(--accent); box-shadow: inset 0 0 0 2px var(--ink); }

.side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--nav-h) + 24px); }
.panel {
  background: var(--tint);
  border-left: 6px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(22px, 2.4vw, 32px);
}
.panel__name { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 800; font-stretch: 106%; letter-spacing: -0.025em; line-height: 1.1; }
.panel__text { margin-top: 8px; font-weight: 600; color: var(--ink-2); font-size: 1.0625rem; }
.panel__text strong { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pills li {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; white-space: nowrap;
}
.pills li b { font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.panel.is-swapping .panel__name, .panel.is-swapping .panel__text, .panel.is-swapping .pills { opacity: 0; filter: blur(2px); }
.panel__name, .panel__text, .pills { transition: opacity 140ms ease, filter 140ms ease; }

.depts { display: flex; flex-wrap: wrap; gap: 8px; }
.dchip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--surface);
  font-size: 0.9375rem; font-weight: 650; color: var(--ink);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 120ms var(--ease-out);
}
.dchip small { font-size: 0.8125rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.dchip.is-zero { border-color: var(--line-strong); color: var(--muted); font-weight: 550; }
.dchip:active { transform: scale(0.97); }
.dchip.is-hover { background: var(--tint); }
.dchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dchip[aria-pressed="true"] small { color: #B9C3D1; }

/* ---------- Preguntas frecuentes ---------- */
.faq {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(80px, 10vw, 140px) 0; align-items: start;
}
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 62ch; }
.faq details a { color: var(--ink); text-decoration-color: var(--accent); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  padding-block: clamp(80px, 10vw, 140px);
  align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 24px; }
.contact__list { display: grid; gap: 4px; margin-top: 8px; }
.contact__list li { display: flex; align-items: center; gap: 14px; padding-block: 8px; font-weight: 550; }
.contact__list i { font-size: 1.3rem; color: var(--accent-ink); }
.contact__list a { text-decoration-color: var(--line-strong); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .contact__list a:hover { text-decoration-color: var(--accent); } }
.contact__photo { margin: 16px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }

.form, .form-done {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 44px);
  box-shadow: var(--shadow);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; margin-bottom: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.9375rem; font-weight: 650; padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field textarea, .select--field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.select { position: relative; display: flex; align-items: center; }
.select select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; font-weight: 550; }
.select i { position: absolute; right: 14px; pointer-events: none; color: var(--muted); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .select select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(244, 93, 34, 0.28); }
.field.has-error input, .field.has-error textarea { border-color: #C2261B; }
.field__err { color: #B42318; font-size: 0.875rem; font-weight: 550; }
.field__err:empty { display: none; }
.field__help { color: var(--muted); font-size: 0.875rem; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.9375rem; font-weight: 550; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.check span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 2px; transition: background-color 160ms ease, border-color 160ms ease; }
.check input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.check input:checked + span::before { background: var(--accent); border-color: var(--accent); }
.check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(14, 26, 43, 0.3); border-top-color: var(--ink); animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 420px; justify-content: center; }
.form-done > i { font-size: 3rem; color: var(--accent); }
.form-done h3 { font-size: 2rem; font-weight: 800; font-stretch: 108%; letter-spacing: -0.03em; }
.form-done h3:focus { outline: none; }
.form-done p { color: var(--muted); max-width: 42ch; margin-bottom: 12px; }
.form-done { transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); @starting-style { opacity: 0; transform: translateY(8px); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); overflow: hidden; }
.footer__brand { container-type: inline-size; padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.footer__altura { display: block; font-weight: 900; font-stretch: 125%; font-size: 20.2cqw; line-height: 0.78; letter-spacing: -0.05em; color: var(--ink); margin-left: -0.04em; }
.footer__media { display: flex; align-items: center; gap: 4cqw; margin-top: 3cqw; font-weight: 500; font-size: 6.2cqw; letter-spacing: 0.55em; line-height: 1; }
.footer__media i { flex: 1; height: 0.9cqw; background: var(--accent); }
.footer__sub { display: block; margin-top: 3cqw; font-size: max(0.75rem, 2.1cqw); font-weight: 500; letter-spacing: 0.32em; color: var(--muted); }
.footer__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 0.9375rem; color: var(--muted);
}
.footer__row nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__row a { text-decoration: none; font-weight: 600; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .footer__row a:hover { color: var(--accent-ink); } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  font-size: 32px; text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(14, 26, 43, 0.45);
  transition: transform 160ms var(--ease-out);
}
.wa-float:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: scale(1.06); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 24px; }
  .about__intro { grid-column: 1 / span 6; }
  .about__photo { grid-column: 7 / -1; }
  .coverage__grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .map__svg { max-height: none; }
  .panel { scroll-margin-top: calc(var(--nav-h) + 16px); }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }

  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .hero__copy { padding-bottom: 0; }
  .board { width: min(100%, 460px); }

  .about { grid-template-columns: 1fr; }
  .about__intro, .about__photo { grid-column: 1 / -1; }
  .about__photo { min-height: 0; aspect-ratio: 3 / 2; }

  .contact { grid-template-columns: 1fr; }
  .contact__photo { display: none; }
}

@media (max-width: 600px) {
  .map__labels { display: none; }
  .form__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__title { font-size: clamp(2.5rem, 12vw, 3.25rem); }
  .board__posts { height: 80px; }
  .wa-float { width: 52px; height: 52px; font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .btn .spinner { animation-duration: 600ms !important; animation-iteration-count: infinite !important; }
  .cloud { animation: none; }
  .js .hero__title .line > span, .js .hero__lead, .js .hero__actions, .js .board, .js .reveal,
  .js .unit__rig, .js .unit__person { transform: none !important; }
  .js .board { opacity: 1; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 24px; }
  .ad { transform: none; filter: none; }
}
