/* ============================================================================
   KIONTRAX · sitio v2
   ----------------------------------------------------------------------------
   Porta el sistema de diseño de AppWebKonnectSuite (core/styles/tokens.css,
   base.css y la portada) a CSS estático:
   - Negro #0a0a0a con grano, tipografía Syne 800 en mayúsculas con tracking
     negativo para titulares e Inter para texto.
   - Bandas de borde a borde separadas por hairlines. Contenedores SIN
     border-radius; pills, chips y hojas sí conservan el suyo.
   - `--gold` es dinero y acción (CTAs). `--brand` es el acento de la página:
     dorado KIONTRAX por omisión y el color de cada vertical Konnect en su
     página (<html data-vertical="…">), sacado del .ai de marca.
   ========================================================================== */

@property --brand {
  syntax: '<color>';
  inherits: true;
  initial-value: #ffb121;
}

:root {
  --brand: #ffb121;
  --brand-deep: #c8860f;

  --bg: #0a0a0a;
  --bg-surface: #121214;
  --bg-raised: #17171a;
  --bg-veil: rgba(10, 10, 10, 0.94);

  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-muted: rgba(255, 255, 255, 0.52);
  --ink-faint: rgba(255, 255, 255, 0.35);

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --divider: rgba(255, 255, 255, 0.06);
  --line-gold: rgba(255, 177, 33, 0.18);
  --line-brand: color-mix(in srgb, var(--brand) 22%, transparent);

  --gold: #ffb121;
  --gold-soft: #ffca5b;
  --gold-a08: rgba(255, 177, 33, 0.08);
  --gold-a12: rgba(255, 177, 33, 0.12);
  --gold-a18: rgba(255, 177, 33, 0.18);
  --brand-a08: color-mix(in srgb, var(--brand) 8%, transparent);
  --brand-a12: color-mix(in srgb, var(--brand) 12%, transparent);
  --brand-a22: color-mix(in srgb, var(--brand) 22%, transparent);
  --danger: #ff6b66;
  --on-gold: #0a0a0a;

  --grad-kiontrax: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 100%);
  --scrim-bottom: linear-gradient(180deg, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, 0.55) 62%, rgba(10, 10, 10, 0.96) 100%);

  --font-display: 'Syne', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-label: 10.5px;
  --fs-body: 15px;
  --fs-lead: clamp(16px, 1.45vw, 19px);
  --fs-h2: clamp(30px, 4.6vw, 64px);
  --track-display: -0.045em;
  --track-title: -0.02em;
  --track-label: 0.1em;

  --pad-x: clamp(20px, 4.2vw, 64px);
  --band-y: clamp(56px, 8vw, 120px);
  --header-h: 68px;
  --subnav-h: 0px;
  --content-max: 1440px;

  --r-pill: 999px;
  --r-sheet: 24px;
  --r-screen: 14px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms;
  --dur-2: 280ms;
  --dur-3: 560ms;

  --z-subnav: 40;
  --z-header: 50;
  --z-menu: 70;
  --z-cookie: 75;
  --z-drawer: 80;

  color-scheme: dark;
}

/* Acento por vertical: colores del cuadro y del pictograma en KIONTRAX.ai. */
:root[data-vertical='experiences'] { --brand: #3ddad6; --brand-deep: #007c83; }
:root[data-vertical='hospitality'] { --brand: #57c895; --brand-deep: #006b4f; }
:root[data-vertical='mobility'] { --brand: #4f8cf4; --brand-deep: #183b9e; }
:root[data-vertical='publicity'] { --brand: #b869f2; --brand-deep: #5a22b8; }
:root[data-vertical='commercial'] { --brand: #ff4d59; --brand-deep: #7f1d1d; }
:root[data-vertical='restaurant'] { --brand: #ff4d59; --brand-deep: #7f1d1d; }
:root[data-vertical='servi'] { --brand: #f28962; --brand-deep: #b93624; }

@media (min-width: 960px) {
  :root { --header-h: 76px; }
}

/* ----- Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--subnav-h) + 20px);
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Grano de película (el mismo de la Suite): le quita lo plano al negro. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

::selection { background: var(--brand); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border: 3px solid var(--bg); border-radius: var(--r-pill); }

.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: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 800;
}
.skip:focus { top: 12px; }

/* ----- Tipografía ------------------------------------------------------------ */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 0.9;
  text-transform: uppercase;
}

/* Titulares que nunca parten una palabra: el tamaño de diseño (--fs) se topa
   con el que cabe para la palabra más larga (--largo, en em, lo calcula el
   generador con la tabla calibrada de la Suite). */
/* 100cqi = ancho de contenido del contenedor más cercano (ver .cq): así un
   titular dentro de una columna se ajusta a la columna, no a la pantalla. */
.fit {
  font-size: min(var(--fs, 64px), calc(100cqi / (max(var(--largo, 6), 3) * 1.05)));
}

.cq,
.sec-head,
.split-body,
.contact-info,
.cta,
.legal-hero,
.hero-content,
.ref-main,
.door-body,
.kcard-body,
.drawer-body,
.brand-cell,
.vpanel-text,
.pager a > span { container-type: inline-size; }

.label {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 900;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}

.label-brand { color: var(--brand); }
.label-gold { color: var(--gold); }

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-2);
  line-height: 1.6;
}

.text-brand { color: var(--brand); }
.text-gold { color: var(--gold); }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
}
.outline-brand {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand);
}

/* ----- Estructura ----------------------------------------------------------- */

.band { position: relative; border-bottom: 1px solid var(--divider); }
.px { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.band-pad { padding: var(--band-y) var(--pad-x); }
.max { max-width: var(--content-max); margin-left: auto; margin-right: auto; }

.sec-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--band-y) var(--pad-x) clamp(28px, 3.4vw, 52px);
}

.sec-head .display {
  --fs: var(--fs-h2);
  max-width: 1180px;
  text-wrap: balance;
}

.sec-head .lead { max-width: 720px; }

.sec-head-split {
  display: grid;
  gap: 18px;
}

.sec-head-main { display: flex; flex-direction: column; gap: 14px; container-type: inline-size; }
.sec-head-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

@media (min-width: 960px) {
  .sec-head-split {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
  }
  .sec-head-split .sec-head-aside { justify-self: end; max-width: 540px; }
}

/* ----- Controles --------------------------------------------------------------- */

.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 24px;
  max-width: 100%;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  user-select: none;
}

.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
@media (min-width: 700px) { .btn { white-space: nowrap; } }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.btn-gold { background: var(--grad-kiontrax); color: var(--on-gold); }
.btn-gold:hover { box-shadow: 0 10px 40px -10px rgba(255, 177, 33, 0.6); }
.btn-brand { background: var(--brand); color: var(--bg); }
.btn-brand:hover { box-shadow: 0 10px 40px -12px var(--brand); }
.btn-ghost { background: rgba(10, 10, 10, 0.25); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
.btn-sm { --btn-h: 40px; padding: 0 16px; font-size: 11.5px; }
.btn-block { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink-2);
  white-space: nowrap;
}

.pill svg { width: 13px; height: 13px; }
/* color-mix directo (no var(--brand-a12)): así una pill que redefine --brand
   localmente (tarjetas de vertical) se tiñe completa con su color. */
.pill-brand { background: color-mix(in srgb, var(--brand) 12%, transparent); border-color: color-mix(in srgb, var(--brand) 24%, transparent); color: var(--brand); }
.pill-gold { background: var(--gold-a12); border-color: var(--line-gold); color: var(--gold); }
.pill-glass { background: rgba(10, 10, 10, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulso 1.8s infinite;
}

@keyframes pulso {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 70%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px color-mix(in srgb, currentColor 0%, transparent); }
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--brand-a12);
  border: 1px solid var(--line-brand);
  color: var(--brand);
}

.icon-circle svg { width: 20px; height: 20px; }

.arrow-circle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 10, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.arrow-circle svg { width: 20px; height: 20px; }

/* ----- Header ------------------------------------------------------------------- */

.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease);
}

.hdr.is-clear { background: linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0) 100%); }

.hdr.is-solid {
  background: var(--bg-veil);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--brand-a12);
}

.hdr-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 var(--pad-x);
}

.hdr-logo { flex: 0 1 auto; min-width: 0; }
.hdr-logo img { height: 28px; width: auto; }

.hdr-nav { display: none; }

.hdr-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hdr-lang {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.35);
}

.hdr-lang a {
  padding: 6px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}

.hdr-lang a:hover { color: var(--ink); }
.hdr-lang a[aria-current='true'] { background: var(--brand-a12); color: var(--brand); }

.hdr-cta { display: none; }

.hdr-menu {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(10, 10, 10, 0.35);
}

.hdr-menu svg { width: 20px; height: 20px; }

@media (min-width: 1100px) {
  .hdr-logo img { height: 32px; }

  .hdr-nav {
    display: flex;
    align-self: stretch;
    gap: clamp(22px, 2.4vw, 38px);
    margin: 0 auto;
  }

  .hdr-nav a {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--ink-muted);
    transition: color var(--dur-2) var(--ease);
  }

  .hdr-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--brand);
    box-shadow: 0 0 16px var(--brand-a22);
    transform: scaleX(0);
    transition: transform var(--dur-3) var(--ease);
  }

  .hdr-nav a:hover,
  .hdr-nav a[aria-current='page'] { color: var(--ink); }
  .hdr-nav a[aria-current='page']::after { transform: none; }

  .hdr-actions { margin-left: 0; }
  .hdr-cta { display: inline-flex; }
  .hdr-menu { display: none; }
}

/* ----- Menú móvil ----------------------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 14px) var(--pad-x) calc(env(safe-area-inset-bottom) + 24px);
  background: rgba(10, 10, 10, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow-y: auto;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-h) - 14px);
}

.menu-top img { height: 28px; width: auto; }

.menu-links {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  border-top: 1px solid var(--divider);
}

.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
  font-family: var(--font-display);
  font-size: clamp(22px, 6.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.menu-links a svg { width: 22px; height: 22px; color: var(--brand); flex: 0 0 auto; }
.menu-links a[aria-current='page'] { color: var(--brand); }

.menu-sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.menu-sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 800;
}

.menu-sub img { width: 26px; height: 26px; }

.menu-foot { margin-top: auto; padding-top: 26px; display: grid; gap: 14px; }
.menu-foot .muted { color: var(--ink-muted); font-size: 12.5px; }

body.menu-open { overflow: hidden; }

/* ----- Hero ----------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: max(100svh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--divider);
}

.hero-short { min-height: max(78svh, 600px); }

.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); }

.hero-aurora {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 48% at 22% 30%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%),
    radial-gradient(32% 42% at 78% 22%, rgba(255, 177, 33, 0.18), transparent 70%),
    radial-gradient(48% 58% at 60% 82%, color-mix(in srgb, var(--brand-deep) 40%, transparent), transparent 70%);
  filter: blur(46px);
  animation: aurora 18s var(--ease-io) infinite alternate;
}

@keyframes aurora {
  to { transform: translate3d(5%, -4%, 0) rotate(9deg) scale(1.1); }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
}

.hero-slide.is-on { opacity: 1; }
.hero-slide.is-on img { transform: scale(1.02); transition: transform 9s linear; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.1) 26%, rgba(10, 10, 10, 0.32) 58%, rgba(10, 10, 10, 0.97) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.12) 64%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.7vw, 24px);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 28px);
  padding-bottom: clamp(26px, 3.6vw, 52px);
}

.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-brand img { height: clamp(40px, 5vw, 64px); width: auto; }

.hero-title {
  --fs: clamp(44px, 12vw, 104px);
  display: flex;
  flex-direction: column;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.hero-word { display: inline-block; }

.js .hero-word {
  transform: translateY(112%);
  animation: sube 0.95s var(--ease) forwards;
}

.js .hero-line:nth-child(2) .hero-word { animation-delay: 0.12s; }
.js .hero-line:nth-child(3) .hero-word { animation-delay: 0.24s; }

@keyframes sube { to { transform: none; } }

.hero-lead { max-width: 600px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px var(--pad-x);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.hero-stat:nth-child(2n) { border-right: 0; }
.hero-stat:nth-last-child(-n + 2) { border-bottom: 0; }

.hero-stat-value {
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.hero-stat-value.is-brand { color: var(--brand); }
.hero-stat-value.is-gold { color: var(--gold); }

/* Hero con pieza a la derecha (teléfono / logo): solo escritorio. */
.hero-aside { display: none; }

@media (min-width: 960px) {
  .hero-title { --fs: clamp(60px, min(9.4vw, 15svh), 168px); }

  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-stat { border-bottom: 0; padding: 22px var(--pad-x); }
  .hero-stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .hero-stat:last-child { border-right: 0; }

  .hero-has-aside .hero-content { padding-right: calc(var(--pad-x) + clamp(240px, 26vw, 380px)); }

  /* Vive dentro de .hero-content (su bloque contenedor): queda sobre la franja
     de métricas, nunca encima de ella. */
  .hero-aside {
    display: block;
    position: absolute;
    right: var(--pad-x);
    bottom: clamp(26px, 3.6vw, 52px);
    width: clamp(190px, min(19vw, 36svh), 300px);
    z-index: 1;
  }

  .hero-aside img {
    width: 100%;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
  }

  .js .hero-aside { animation: flota 1.2s var(--ease) both 0.3s; }
}

@keyframes flota {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

/* Laptops de 720–800 px de alto: el hero se comprime para que la franja de
   métricas quepa en la primera pantalla (mismo ajuste que la Suite). */
@media (min-width: 960px) and (max-height: 820px) {
  .hero-title { --fs: clamp(48px, min(7.6vw, 13svh), 132px); }
  .hero-content { gap: 12px; padding-top: calc(var(--header-h) + 14px); padding-bottom: 20px; }
  .hero-lead { font-size: 15.5px; }
  .hero-ctas .btn { --btn-h: 46px; }
  .hero-stat { padding: 13px var(--pad-x); }
  .hero-stat-value { font-size: clamp(22px, 2.2vw, 30px); }
}

/* Hero editorial (fotos con gente): titular sobre negro y la foto en su propio
   panel. Ningún texto cubre la imagen. Celular: foto primero, bajo el header. */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'media' 'head' 'copy' 'stats';
  min-height: 0;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
}

.hero-head {
  grid-area: head;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.7vw, 22px);
  padding-top: clamp(24px, 3vw, 40px);
  container-type: inline-size;
}

.hero-copy {
  grid-area: copy;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: clamp(16px, 2vw, 24px);
  padding-bottom: clamp(28px, 3.6vw, 48px);
}

.hero-media {
  grid-area: media;
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface);
}

.hero-split .hero-stats { grid-area: stats; }

@media (min-width: 960px) {
  .hero-split {
    min-height: max(100svh, 680px);
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto minmax(260px, 1fr) auto;
    grid-template-areas: 'head head' 'copy media' 'stats stats';
  }

  .hero-split .hero-title { --fs: clamp(56px, min(8.6vw, 13svh), 150px); }
  .hero-media { aspect-ratio: auto; border-left: 1px solid var(--divider); border-top: 1px solid var(--divider); }
  .hero-copy { align-self: start; padding-top: clamp(22px, 2.6vw, 36px); padding-right: clamp(24px, 3vw, 56px); }
}

@media (min-width: 960px) and (max-height: 820px) {
  .hero-split .hero-title { --fs: clamp(44px, min(7vw, 11.5svh), 118px); }
  .hero-head { padding-top: 16px; gap: 12px; }
}


/* ----- Sub-navegación de verticales ------------------------------------------ */

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: var(--z-subnav);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--divider);
  background: var(--bg-veil);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.subnav::-webkit-scrollbar { display: none; }

.subnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  height: 56px;
  padding: 0 12px;
  scroll-snap-align: start;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color var(--dur-2) var(--ease);
}

.subnav a img { width: 22px; height: 22px; }
.subnav a:hover { color: var(--ink); }

.subnav a[aria-current='page'] { color: var(--ink); }

.subnav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--c, var(--brand));
}

.subnav .subnav-hub { color: var(--gold); }
.subnav .subnav-back { color: var(--ink-muted); padding-right: 16px; margin-right: 4px; border-right: 1px solid var(--divider); height: 32px; align-self: center; }
.subnav .subnav-back svg { width: 16px; height: 16px; }
.subnav .subnav-back:hover { color: var(--ink); }

/* ----- Marquesina ------------------------------------------------------------------ */

.mq { overflow: hidden; padding: 18px 0; }

.mq-track {
  display: flex;
  width: max-content;
  animation: mq 44s linear infinite;
}

.mq-run { display: flex; }

.mq-run span {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mq-run span:nth-child(even) { color: var(--brand); }
.mq-run i { font-style: normal; font-size: 11px; color: var(--gold); }

@keyframes mq { to { transform: translateX(-50%); } }

/* ----- Puertas (tres frentes / verticales) ------------------------------------------ */

.doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--divider);
  border-top: 1px solid var(--divider);
}

.door {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 46vw, 560px);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-surface);
}

.door > picture,
.door > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.door picture img,
.door > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }

.door-product > img,
.door-product picture img { object-fit: contain; object-position: center 40%; padding: 12% 6% 34%; }

.door-product::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(255, 177, 33, 0.22), transparent 70%),
    linear-gradient(180deg, #17171a, #0d0d0f);
}

.door:hover picture img,
.door:focus-visible picture img,
.door:hover > img,
.door:focus-visible > img { transform: scale(1.05); }

.door-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.1) 0%, rgba(10, 10, 10, 0.3) 38%, rgba(10, 10, 10, 0.86) 66%, rgba(10, 10, 10, 0.97) 100%);
}

.door-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: clamp(22px, 3vw, 38px);
}

.door-title {
  --fs: clamp(28px, 3.2vw, 48px);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-transform: uppercase;
}

.door-sub { max-width: 460px; font-size: 14.5px; color: var(--ink-2); }
.door-meta { font-size: 12.5px; font-weight: 800; color: var(--gold); }
.door-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

.door .arrow-circle { position: absolute; top: 18px; right: 18px; }
.door:hover .arrow-circle,
.door:focus-visible .arrow-circle { transform: rotate(45deg); background: var(--c, var(--brand)); border-color: var(--c, var(--brand)); color: var(--bg); }

.door-icon { width: 54px; height: 54px; }

@media (min-width: 760px) {
  .doors-2 { grid-template-columns: repeat(2, 1fr); }
  .doors-3 { grid-template-columns: repeat(2, 1fr); }
  .doors-3 > :first-child { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  .doors-3 { grid-template-columns: repeat(3, 1fr); }
  .doors-3 > :first-child { grid-column: auto; }
  .doors-3 .door { min-height: min(78svh, 680px); }
  .doors-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .doors-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Puertas tipo tarjeta: foto arriba, texto y flecha abajo (sin nada sobre la foto). */
.doors-cards .door { flex-direction: column; align-items: stretch; min-height: 0; background: var(--bg); transition: background-color var(--dur-3) var(--ease); }
.doors-cards .door:hover { background: var(--bg-surface); }
.door-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-surface); }
.door-media picture,
.door-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doors-cards .door:hover .door-media img { transform: scale(1.04); }
.door-media img { transition: transform 1.2s var(--ease); }
.door-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.doors-cards .door-body { flex: 1; gap: 12px; }
.doors-cards .arrow-circle { position: static; flex: 0 0 auto; }
.doors-cards .door-title { --fs: clamp(26px, 2.5vw, 38px); }


/* ----- Pasos con número en contorno ----------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--divider);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px var(--pad-x) 38px;
  border-bottom: 1px solid var(--divider);
  overflow: hidden;
}

.step:last-child { border-bottom: 0; }

.step-num {
  position: absolute;
  top: 6px;
  right: var(--pad-x);
  font-family: var(--font-display);
  font-size: clamp(84px, 10vw, 160px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--brand) 32%, transparent);
  pointer-events: none;
}

.step-title { font-size: clamp(20px, 2vw, 27px); font-weight: 900; letter-spacing: var(--track-title); line-height: 1.08; }
.step-text { max-width: 380px; font-size: 14.5px; color: var(--ink-muted); }

.step ol.step-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
  counter-reset: paso;
  border-top: 1px solid var(--divider);
}

.step ol.step-list li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
  color: var(--ink-2);
}

.step ol.step-list li::before {
  content: counter(paso, decimal-leading-zero);
  font-size: 11px;
  font-weight: 900;
  color: var(--brand);
  padding-top: 2px;
}

@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { min-height: 340px; justify-content: flex-end; border-bottom: 0; border-right: 1px solid var(--divider); }
  .step:last-child { border-right: 0; }
  .steps-top .step { justify-content: flex-start; padding-top: clamp(96px, 9vw, 150px); }
}

/* ----- Rejilla de producto (xgrid de la Suite) -------------------------------------- */

.xgrid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--divider);
  clip-path: inset(0 1px 0 0);
}

.xgrid > * { border-right: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }

@media (min-width: 620px) { .xgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .xgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .xgrid-4 { grid-template-columns: repeat(4, 1fr); } }

.kcard {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  background: var(--bg);
  transition: background-color var(--dur-3) var(--ease);
}

.kcard:hover { background: var(--bg-surface); }

.kcard-stage {
  position: relative;
  display: grid;
  grid-template-rows: 100%;
  place-items: center;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: radial-gradient(55% 60% at 50% 45%, rgba(255, 177, 33, 0.16), transparent 72%);
}

.kcard-stage img {
  height: 84%;
  width: auto;
  max-width: 82%;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
  transition: transform 0.9s var(--ease);
}

.kcard:hover .kcard-stage img { transform: translateY(-6px) scale(1.03); }

.kcard-badge { position: absolute; top: 16px; left: 16px; }
.kcard-num {
  position: absolute;
  top: 12px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.kcard-body { display: flex; flex-direction: column; gap: 10px; padding: 22px clamp(20px, 2.4vw, 32px) 26px; flex: 1; }
.kcard-name { --fs: clamp(22px, 2vw, 28px); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-transform: uppercase; }
.kcard-list { display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.kcard-list li { display: flex; gap: 9px; align-items: flex-start; }
.kcard-list svg { width: 15px; height: 15px; color: var(--brand); flex: 0 0 auto; margin-top: 3px; }
.kcard-more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.kcard-more svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease); }
.kcard:hover .kcard-more svg { transform: translateX(4px); }

/* ----- Drawer / hoja (detalle de producto) ------------------------------------------ */

.drawer {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 92svh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: var(--bg-surface);
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.6);
}

.drawer:not([open]) { display: none; }

.drawer::backdrop { background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

.drawer[open] { animation: hoja-sube 0.42s var(--ease); }

@keyframes hoja-sube { from { transform: translateY(100%); } to { transform: none; } }

.drawer-scroll { overflow-y: auto; overscroll-behavior: contain; }

.drawer-stage {
  position: relative;
  display: grid;
  grid-template-rows: 100%;
  place-items: center;
  height: clamp(220px, 34svh, 360px);
  background: radial-gradient(55% 60% at 50% 50%, rgba(255, 177, 33, 0.2), transparent 72%), var(--bg);
  border-bottom: 1px solid var(--divider);
}

.drawer-stage img { height: 86%; width: auto; max-width: 80%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }

.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(10, 10, 10, 0.6);
  z-index: 2;
}

.drawer-close svg { width: 20px; height: 20px; }

.drawer-body { display: flex; flex-direction: column; gap: 18px; padding: 26px clamp(22px, 3vw, 36px) 30px; }
.drawer-title { --fs: clamp(28px, 3.6vw, 40px); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; text-transform: uppercase; }
.drawer-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--divider); border-left: 1px solid var(--divider); }
.drawer-specs div { padding: 14px 16px; border-right: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.drawer-specs dt { font-size: 10px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.drawer-specs dd { margin-top: 6px; font-weight: 800; }
.drawer-foot { position: sticky; bottom: 0; padding: 16px clamp(22px, 3vw, 36px) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--divider); background: var(--bg-surface); }

@media (min-width: 900px) {
  .drawer {
    inset: 0 0 0 auto;
    width: min(540px, 100%);
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6);
  }
  .drawer[open] { animation: hoja-lado 0.45s var(--ease); }
  .drawer-scroll { flex: 1; }
}

@keyframes hoja-lado { from { transform: translateX(100%); } to { transform: none; } }

body.drawer-open { overflow: hidden; }

/* ----- Tabla de especificaciones ---------------------------------------------------- */

.table-wrap { overflow-x: auto; border-top: 1px solid var(--divider); }

.specs {
  width: 100%;
  font-size: 15px;
}

@media (max-width: 640px) {
  .specs { font-size: 13.5px; table-layout: fixed; }
  .specs th,
  .specs td { padding: 14px 10px; }
  .specs th:first-child,
  .specs td:first-child { padding-left: var(--pad-x); }
  .specs th:last-child,
  .specs td:last-child { padding-right: var(--pad-x); }
  .specs thead th { font-size: 9.5px; letter-spacing: 0.06em; }
  .specs tbody th { width: 30%; }
}

.specs th,
.specs td { padding: 20px var(--pad-x); text-align: left; border-bottom: 1px solid var(--divider); vertical-align: top; }
.specs thead th { font-size: 10.5px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); background: var(--bg-surface); }
.specs thead th:last-child { color: var(--brand); }
.specs tbody th { font-weight: 800; color: var(--ink); width: 26%; }
.specs td { color: var(--ink-2); }
.specs td:last-child { color: var(--ink); font-weight: 700; }
.specs tbody tr { transition: background-color var(--dur-2) var(--ease); }
.specs tbody tr:hover { background: var(--brand-a08); }

/* ----- Paneles de verticales (portada) ------------------------------------------------- */

.vpanels { display: flex; flex-direction: column; border-top: 1px solid var(--divider); }

.vpanel {
  --c: var(--brand);
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 18px var(--pad-x);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--divider);
  transition: background-color var(--dur-3) var(--ease);
}

.vpanel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease);
}

.vpanel:hover::before,
.vpanel:focus-visible::before { opacity: 1; }

.vpanel-icon { width: 46px; height: 46px; flex: 0 0 auto; }
.vpanel-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.vpanel-name { --fs: clamp(20px, 5.4vw, 30px); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-transform: uppercase; }
.vpanel-name b { font-weight: 800; color: var(--c); }
.vpanel-seg { font-size: 12.5px; color: var(--ink-muted); }
.vpanel-desc { display: none; }
.vpanel .arrow-circle { margin-left: auto; flex: 0 0 auto; }
.vpanel:hover .arrow-circle,
.vpanel:focus-visible .arrow-circle { transform: rotate(45deg); background: var(--c); border-color: var(--c); color: var(--bg); }

@media (min-width: 1100px) {
  .vpanels { flex-direction: row; height: min(78svh, 720px); min-height: 560px; }

  .vpanel {
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 0;
    min-width: 0;
    padding: 28px clamp(18px, 1.8vw, 28px);
    border-bottom: 0;
    border-right: 1px solid var(--divider);
    transition: flex-grow 0.8s var(--ease);
  }

  .vpanel:last-child { border-right: 0; }

  .vpanel.is-open { flex-grow: 2.7; }

  .vpanel::before {
    opacity: 1;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, transparent) 0%, transparent 55%);
    transition: background 0.8s var(--ease);
  }

  .vpanel.is-open::before {
    background:
      radial-gradient(90% 60% at 20% 18%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%),
      radial-gradient(70% 50% at 90% 100%, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%);
  }

  .vpanel.is-open .vpanel-icon { width: 76px; height: 76px; }

  .vpanel-icon { position: absolute; top: 26px; left: clamp(18px, 1.8vw, 28px); width: 52px; height: 52px; transition: width 0.6s var(--ease), height 0.6s var(--ease); }
  .vpanel .arrow-circle { position: absolute; top: 24px; right: clamp(16px, 1.6vw, 24px); margin: 0; opacity: 0; transition: opacity var(--dur-3) var(--ease), transform 0.5s var(--ease), background-color 0.5s var(--ease); }
  .vpanel.is-open .arrow-circle { opacity: 1; }

  /* Cerrado: el nombre corre en vertical. Abierto: horizontal con su texto. */
  .vpanel-text { width: 100%; gap: 10px; flex: 0 0 auto; }
  .vpanel:not(.is-open) .vpanel-name { font-size: clamp(22px, 1.8vw, 32px); writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
  .vpanel.is-open .vpanel-name { --fs: clamp(30px, 2.8vw, 48px); white-space: normal; }
  .vpanel-seg { display: none; }
  .vpanel.is-open .vpanel-seg { display: block; color: var(--c); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; order: -1; }
  .vpanel.is-open .vpanel-desc { display: block; max-width: 420px; font-size: 14.5px; color: var(--ink-2); animation: aparece 0.6s var(--ease) both 0.15s; }
}

@keyframes aparece { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ----- Rejilla de capacidades ---------------------------------------------------------- */

.feat { display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 3vw, 40px) clamp(22px, 2.6vw, 38px) clamp(30px, 3.4vw, 46px); background: var(--bg); transition: background-color var(--dur-3) var(--ease); }
.feat:hover { background: var(--bg-surface); }
.feat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feat-num { font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: var(--ink-muted); }
.feat h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 900; letter-spacing: var(--track-title); line-height: 1.12; }
.feat p { font-size: 14.5px; color: var(--ink-muted); }
.feat ul { display: grid; gap: 8px; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); }
.feat ul li { display: flex; gap: 9px; }
.feat ul svg { width: 15px; height: 15px; color: var(--brand); flex: 0 0 auto; margin-top: 3px; }

/* ----- Split: foto a sangre + texto ------------------------------------------------------ */

.split { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--divider); }

.split-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-surface); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media-contain { background: radial-gradient(60% 60% at 50% 45%, var(--brand-a22), transparent 72%), var(--bg-surface); }
.split-media-contain img { object-fit: contain; padding: 8%; }
.split-media figcaption { position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

.split-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(36px, 5vw, 84px) var(--pad-x);
}

.split-body .display { --fs: clamp(32px, 4.2vw, 68px); text-wrap: balance; }

.bullets { display: grid; gap: 0; border-top: 1px solid var(--divider); }
.bullets li { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--divider); color: var(--ink-2); font-size: 14.5px; }
.bullets svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; margin-top: 2px; }
.bullets strong { color: var(--ink); }

@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: min(88svh, 820px); }
  .split-media { aspect-ratio: auto; }
  .split-body { border-left: 1px solid var(--divider); }
  .split-rev .split-media { order: 2; }
  .split-rev .split-body { border-left: 0; border-right: 1px solid var(--divider); }
}

/* Captura vertical del kiosco enmarcada como pantalla (hub Commercial Marketing). */
.split-media-screen { aspect-ratio: 4 / 5; }
.split-media-screen img {
  inset: auto;
  top: 46%;
  left: 50%;
  width: auto;
  height: 78%;
  max-width: 84%;
  padding: 0;
  transform: translate(-50%, -50%);
  border-radius: var(--r-screen);
  box-shadow: 0 0 0 6px #050506, 0 0 0 7px var(--line-2), 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}

@media (min-width: 1000px) {
  .split-media-screen { aspect-ratio: auto; }
  .split-media-screen img { height: 80%; }
}

/* ----- Pantallas del kiosco (capturas reales del modo Restaurante 2.1) ------------------------ */

.screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 2.4vw, 36px) clamp(14px, 1.6vw, 24px);
  padding: 0 var(--pad-x) var(--band-y);
}
.screen { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; }
.screen-wide { grid-column: 1 / -1; }
.screen-frame {
  display: block;
  padding: clamp(5px, 0.5vw, 8px);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--r-screen) + 6px);
  background: #050506;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.screen-frame img { display: block; width: 100%; height: auto; border-radius: var(--r-screen); }
.screen figcaption { display: grid; gap: 5px; }
.screen figcaption strong { font-family: var(--font-display); font-size: clamp(16px, 1.4vw, 20px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-transform: uppercase; }
.screen figcaption span { font-size: 13.5px; color: var(--ink-muted); }
.screen figcaption .screen-num { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--brand); }

/* Red del local: en celular el kiosco va solo y centrado; en escritorio, a la izquierda, con las
   dos pantallas horizontales apiladas a la derecha (1 : 1.4 iguala las alturas). */
.screens-red .screen:first-child { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 340px; }

@media (min-width: 960px) {
  .screens-flujo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .screens-red { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
  .screens-red .screen:first-child { grid-column: 1; grid-row: 1 / span 2; max-width: none; }
  .screens-red .screen-wide { grid-column: 2; }
}

/* ----- Ecosistemas: verticales del ecosistema destacado ---------------------------------- */

.eco-verts { display: grid; margin-top: 4px; }
.eco-verts > .label { margin-bottom: 10px; }
.eco-verts a {
  --c: var(--brand);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}
.eco-verts a:first-of-type { border-top: 1px solid var(--divider); }
.eco-verts img { width: 42px; height: 42px; flex: 0 0 auto; }
.eco-verts a > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.eco-verts strong { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; text-transform: uppercase; transition: color var(--dur-2) var(--ease); }
.eco-verts small { font-size: 12.5px; color: var(--ink-muted); }
.eco-verts svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--c); transition: transform var(--dur-2) var(--ease); }
.eco-verts a:hover strong { color: var(--c); }
.eco-verts a:hover svg { transform: translateX(4px); }

/* ----- Canales ------------------------------------------------------------------------------ */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ----- Referencia y marcas ------------------------------------------------------------------ */

.ref {
  display: grid;
  gap: 18px;
  padding: clamp(40px, 5vw, 72px) var(--pad-x);
  border-bottom: 1px solid var(--divider);
  background:
    radial-gradient(60% 120% at 0% 50%, var(--brand-a12), transparent 60%),
    var(--bg);
}

.ref-name { --fs: clamp(40px, 8vw, 128px); }
.ref .chips { margin-top: 4px; }

@media (min-width: 960px) {
  .ref { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

.brand-cell { display: flex; flex-direction: column; gap: 10px; padding: 24px clamp(20px, 2.2vw, 30px) 28px; background: var(--bg); min-height: 190px; transition: background-color var(--dur-3) var(--ease); }
.brand-cell:hover { background: var(--bg-surface); }
.brand-cell-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand-mono {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-a12);
  border: 1px solid var(--line-brand);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}
.brand-cell strong { --fs: clamp(19px, 1.6vw, 23px); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-transform: uppercase; }
.brand-cell p { font-size: 13.5px; color: var(--ink-muted); }

/* ----- Paginador de verticales ------------------------------------------------------------- */

.pager { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--divider); }

.pager a {
  --c: var(--brand);
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(26px, 3.4vw, 44px) var(--pad-x);
  overflow: hidden;
  isolation: isolate;
  transition: background-color var(--dur-3) var(--ease);
}

.pager a + a { border-top: 1px solid var(--divider); }
.pager a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); opacity: 0; transition: opacity var(--dur-3) var(--ease); }
.pager a:hover::before { opacity: 1; }
.pager img { width: 52px; height: 52px; flex: 0 0 auto; }
.pager span { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 auto; }
.pager small { font-size: 10.5px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.pager strong { --fs: clamp(22px, 2.6vw, 38px); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-transform: uppercase; }
.pager .arrow-circle { margin-left: auto; flex: 0 0 auto; }
.pager a:hover .arrow-circle { background: var(--c); border-color: var(--c); color: var(--bg); }
.pager-prev { flex-direction: row; }

@media (min-width: 900px) {
  .pager { grid-template-columns: 1fr 1fr; }
  .pager a + a { border-top: 0; border-left: 1px solid var(--divider); }
  .pager-next { flex-direction: row-reverse; text-align: right; }
  .pager-next span { align-items: flex-end; }
  .pager-next .arrow-circle { margin-left: 0; margin-right: auto; }
  .pager-next::before { background: linear-gradient(270deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%) !important; }
}

/* ----- Muro de Ciudades 2.0 ------------------------------------------------------------------- */

.cities {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 4px 0 clamp(40px, 5vw, 72px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.cities-row { display: flex; width: max-content; gap: 14px; animation: ciudades 70s linear infinite; }
.cities-row + .cities-row { animation-direction: reverse; animation-duration: 82s; }
.cities:hover .cities-row { animation-play-state: paused; }

@keyframes ciudades { to { transform: translateX(calc(-50% - 7px)); } }

.city {
  position: relative;
  width: clamp(130px, 13vw, 190px);
  aspect-ratio: 9 / 16;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--r-screen);
  border: 1px solid var(--line-2);
  background: var(--bg-surface);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}

.city img { width: 100%; height: 100%; object-fit: cover; }
.city span { position: absolute; left: 8px; bottom: 8px; padding: 4px 7px; border-radius: var(--r-pill); background: rgba(10, 10, 10, 0.72); font-size: 10px; font-weight: 900; letter-spacing: 0.08em; }

/* ----- Tienda demo (marco de navegador) ------------------------------------------------------ */

.browser { border: 1px solid var(--line-2); background: var(--bg-surface); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9); }
.browser-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.browser-bar span { flex: 1; margin-left: 8px; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.05); font-size: 11.5px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; }

.demo-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-left: 3px solid var(--gold); background: var(--gold-a08); font-size: 13.5px; color: var(--ink-2); }
.demo-note svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 auto; margin-top: 2px; }

/* ----- Demo en vivo (hub) ---------------------------------------------------------------- */

.demo-split { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--divider); }
.demo-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: var(--band-y) var(--pad-x) clamp(28px, 3vw, 44px); container-type: inline-size; }
.demo-copy .display { --fs: clamp(38px, 5.6vw, 88px); }
.demo-media { padding: 0 var(--pad-x) var(--band-y); }

@media (min-width: 1000px) {
  .demo-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); align-items: center; }
  .demo-copy { padding-bottom: var(--band-y); }
  .demo-media { padding: var(--band-y) var(--pad-x) var(--band-y) 0; }
}

/* ----- Vehículos (software) --------------------------------------------------------------- */

.vehicles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--divider); border-left: 1px solid var(--divider); }
.vehicle { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; border-right: 1px solid var(--divider); border-bottom: 1px solid var(--divider); min-width: 0; }
.vehicle strong { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }
.vehicle small { font-size: 12px; color: var(--ink-muted); line-height: 1.4; }
.vehicle .icon-circle { width: 38px; height: 38px; }

@media (max-width: 420px) {
  .vehicles { grid-template-columns: 1fr; }
  .vehicle { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .vehicle small { flex-basis: 100%; }
}

/* Capas del hub: ícono de la vertical en la lista. */
.bullets .cap-icon { width: 30px; height: 30px; flex: 0 0 auto; margin-top: 0; }

/* ----- FAQ --------------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--divider); }

.faq details { border-bottom: 1px solid var(--divider); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px var(--pad-x);
  cursor: pointer;
  list-style: none;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary .faq-icon { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: transform var(--dur-3) var(--ease), background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.faq summary .faq-icon svg { width: 18px; height: 18px; }
.faq details[open] summary { color: var(--brand); }
.faq details[open] .faq-icon { transform: rotate(45deg); background: var(--brand); border-color: var(--brand); color: var(--bg); }
.faq-a { padding: 0 var(--pad-x) 26px; max-width: 880px; color: var(--ink-2); font-size: 15.5px; }

@media (min-width: 960px) {
  .faq-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); border-top: 1px solid var(--divider); }
  .faq-layout .sec-head { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; padding-top: clamp(40px, 5vw, 72px); }
  .faq-layout .faq { border-top: 0; border-left: 1px solid var(--divider); }
}

/* ----- Contacto ----------------------------------------------------------------------------- */

.contact { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--divider); }

.contact-info {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: var(--band-y) var(--pad-x) clamp(36px, 4vw, 60px);
  overflow: hidden;
  isolation: isolate;
}

.contact-info::before {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: radial-gradient(40% 40% at 20% 30%, var(--gold-a18), transparent 70%);
  filter: blur(40px);
}

.contact-info .display { --fs: clamp(38px, 5.4vw, 84px); }

.contact-points { display: grid; gap: 0; border-top: 1px solid var(--divider); margin-top: 6px; }
.contact-points li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--divider); }
.contact-points h3 { font-size: 15px; font-weight: 900; }
.contact-points p { font-size: 13.5px; color: var(--ink-muted); }
.contact-direct { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.contact-direct a,
.contact-direct span { display: inline-flex; gap: 10px; align-items: center; }
.contact-direct a:hover { color: var(--brand); }
.contact-direct svg { width: 16px; height: 16px; color: var(--brand); }

.contact-form-wrap { padding: clamp(28px, 4vw, 64px) var(--pad-x) var(--band-y); background: var(--bg-surface); }

.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 10.5px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }

.input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  border-radius: 0;
  outline: none;
  color: var(--ink);
  transition: border-color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.input::placeholder { color: var(--ink-faint); }
.input:focus { border-color: var(--brand); background: var(--brand-a08); }
textarea.input { min-height: 132px; resize: vertical; }

select.input {
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

select.input option,
select.input optgroup { background: #17171a; color: #fff; }

.form-note { font-size: 12px; color: var(--ink-muted); }
.form-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.form-error { display: flex; gap: 10px; padding: 14px 16px; border-left: 3px solid var(--danger); background: rgba(255, 107, 102, 0.1); color: #ffb3b0; font-size: 13.5px; }

.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(10, 10, 10, 0.25); border-top-color: var(--on-gold); animation: gira 0.8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

.form-ok { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(24px, 3vw, 40px) 0; }
.form-ok .icon-circle { width: 64px; height: 64px; background: var(--gold); color: var(--on-gold); border: 0; }
.form-ok .icon-circle svg { width: 28px; height: 28px; }
.form-ok h3 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -0.035em; text-transform: uppercase; line-height: 0.95; }
.form-ok p { color: var(--ink-2); max-width: 460px; }

@media (min-width: 700px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-form-wrap { padding-top: var(--band-y); border-left: 1px solid var(--divider); }
}

/* ----- CTA final ------------------------------------------------------------------------------ */

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: clamp(80px, 11vw, 170px) var(--pad-x);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--divider);
}

.cta::before {
  content: '';
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(30% 40% at 25% 40%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
    radial-gradient(28% 36% at 78% 60%, var(--gold-a18), transparent 70%);
  filter: blur(50px);
  animation: aurora 20s var(--ease-io) infinite alternate;
}

.cta .display { --fs: clamp(38px, 6vw, 100px); max-width: 1240px; text-wrap: balance; }
.cta .lead { max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ----- Páginas legales --------------------------------------------------------------------- */

.legal-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) var(--pad-x) clamp(34px, 4vw, 56px); border-bottom: 1px solid var(--divider); }
.legal-hero .display { --fs: clamp(40px, 7vw, 104px); margin-top: 14px; }
.legal-hero p { margin-top: 16px; color: var(--ink-muted); font-size: 13px; }

.legal { display: grid; grid-template-columns: 1fr; }
.legal-toc { display: none; }
.legal-body { padding: clamp(32px, 4vw, 64px) var(--pad-x) var(--band-y); max-width: 880px; }
.legal-body > p { color: var(--ink-2); font-size: 16px; margin-bottom: 18px; }
.legal-sec { padding: 26px 0; border-top: 1px solid var(--divider); scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-sec h2 { display: flex; gap: 14px; align-items: baseline; font-size: clamp(19px, 1.9vw, 24px); font-weight: 900; letter-spacing: var(--track-title); margin-bottom: 12px; }
.legal-sec h2 span { font-family: var(--font-display); font-size: 13px; color: var(--brand); letter-spacing: 0.08em; }
.legal-sec p { color: var(--ink-2); margin-bottom: 10px; }
.legal-sec ul { display: grid; gap: 8px; margin: 10px 0; }
.legal-sec li { display: flex; gap: 10px; color: var(--ink-2); }
.legal-sec li::before { content: '✦'; color: var(--gold); font-size: 10px; margin-top: 6px; }
.legal-sec a,
.legal-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1000px) {
  .legal { grid-template-columns: 300px minmax(0, 1fr); }
  .legal-toc { display: block; border-right: 1px solid var(--divider); padding: 44px var(--pad-x) 44px var(--pad-x); }
  .legal-toc nav { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: 4px; }
  .legal-toc a { padding: 7px 0; font-size: 13px; font-weight: 700; color: var(--ink-muted); }
  .legal-toc a:hover { color: var(--brand); }
}

/* ----- Pie ----------------------------------------------------------------------------------- */

.ftr { border-top: 1px solid var(--divider); overflow: hidden; }

.ftr-marquee {
  border-bottom: 1px solid var(--divider);
  padding: clamp(18px, 3vw, 34px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ftr-marquee-track { display: flex; width: max-content; animation: mq 52s linear infinite; }
.ftr-marquee-run { display: flex; }

.ftr-marquee-run > span {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 176px);
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--brand) 44%, transparent);
}

.ftr-marquee-run i { font-style: normal; font-size: 0.32em; color: var(--gold); -webkit-text-stroke: 0; }

.ftr-grid {
  display: grid;
  gap: 34px;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--divider);
}

.ftr-brand img { height: 34px; width: auto; }
.ftr-claim { margin-top: 18px; max-width: 380px; font-size: 14px; color: var(--ink-muted); }
.ftr-contact { display: grid; gap: 9px; margin-top: 20px; font-size: 13.5px; color: var(--ink-2); }
.ftr-contact a,
.ftr-contact span { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.ftr-contact a:hover { color: var(--brand); }
.ftr-contact svg { width: 15px; height: 15px; color: var(--brand); }

.ftr-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ftr-col .label { margin-bottom: 6px; }
.ftr-col a,
.ftr-col button { width: fit-content; text-align: left; transition: color var(--dur-2) var(--ease); }
.ftr-col a:hover,
.ftr-col button:hover { color: var(--brand); }
.ftr-col a svg { display: inline; width: 13px; height: 13px; vertical-align: -1px; margin-left: 4px; }
/* Verticales bajo su ecosistema en la columna Ecosistemas. */
.ftr-col a.ftr-sub { position: relative; margin-top: -2px; padding-left: 16px; font-weight: 600; color: var(--ink-muted); }
.ftr-col a.ftr-sub::before { content: ''; position: absolute; left: 3px; top: 50%; width: 7px; height: 1px; background: var(--line-2); }

.ftr-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  font-size: 12px;
  color: var(--ink-muted);
}

.ftr-by { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink-2); }
.ftr-by img { width: 22px; height: 22px; }
.ftr-legal a { text-decoration: underline; text-underline-offset: 3px; }
.ftr-legal a:hover { color: var(--brand); }

@media (min-width: 900px) {
  .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
}

/* ----- Aviso de cookies (barra, no bloquea) -------------------------------------------------- */

.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: var(--z-cookie);
  display: grid;
  gap: 14px;
  max-width: 560px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line-2);
  background: rgba(18, 18, 20, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: flota 0.6s var(--ease) both;
}

.cookie h2 { font-size: 15px; font-weight: 900; }
.cookie p { font-size: 13px; color: var(--ink-2); }
.cookie p a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { --btn-h: 40px; padding: 0 14px; font-size: 11px; }
.cookie-prefs { display: grid; gap: 0; border-top: 1px solid var(--divider); }
.cookie-pref { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--divider); font-size: 13px; }
.cookie-pref small { display: block; color: var(--ink-muted); font-size: 12px; }
.cookie-pref .pill { flex: 0 0 auto; }

.switch { position: relative; width: 44px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.14); transition: background-color var(--dur-2) var(--ease); pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--dur-2) var(--ease); }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (min-width: 700px) {
  .cookie { left: auto; right: 20px; bottom: 20px; }
}

/* ----- Aparición al hacer scroll ------------------------------------------------------------------- */

.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: 0.08s; }
.js .rv-d2 { transition-delay: 0.16s; }
.js .rv-d3 { transition-delay: 0.24s; }

/* ----- Movimiento reducido -------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .hero-word { transform: none; }
  .js .rv { opacity: 1; transform: none; }
  .cities-row { animation: none; }
  .cities { overflow-x: auto; }
}
