/* Guanxi International — sitio propio v2
   Sistema: navy + UN acento rojo de marca (#C21F30) · Sora / Inter / IBM Plex Mono
   Movimiento: GSAP + ScrollTrigger (assets/js/gx.js). Sin JS todo queda visible. */

:root {
  --navy: #0A4D8C;
  --navy-2: #0D3A6B;
  --deep: #061A30;
  --deep-2: #0A2440;
  --red-brand: #C21F30;
  --red: var(--red-brand);
  --red-ink: #A01520;
  --red-soft: #F25563; /* rojo para texto y líneas sobre fondo oscuro (5,2:1) */
  --paper: #F4F1EA;
  --paper-2: #EAE5DA;
  --ink: #0E1A26;
  --ink-2: #4A5868;
  --ink-3: #6B7785;
  --on-dark: #F4F1EA;
  --on-dark-2: rgba(244, 241, 234, .72);
  --line: rgba(14, 26, 38, .12);
  --line-dark: rgba(244, 241, 234, .14);

  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--red-brand); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 16px/1 var(--f-body); text-decoration: none; border: 0; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red-ink); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--ghost:hover { background: rgba(255,255,255,.12); }
  .btn--line:hover { background: var(--ink); color: var(--paper); }
}
.btn--ghost { --bg: transparent; --fg: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.btn--line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Encabezado ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 250ms ease, box-shadow 250ms ease, transform 300ms var(--ease-out);
}
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr__logo img { height: 40px; width: auto; }
.hdr__logo .logo-osc { display: none; }
.hdr nav { display: flex; align-items: center; gap: 4px; }
.hdr nav a:not(.btn) {
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font: 500 15px/1 var(--f-body); color: var(--on-dark);
  transition: background-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .hdr nav a:not(.btn):hover { background: rgba(255,255,255,.1); } }
.hdr .btn { min-height: 44px; padding: 0 20px; font-size: 15px; margin-left: 8px; }
.hdr.is-solid { background: rgba(244, 241, 234, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-solid nav a:not(.btn) { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .hdr.is-solid nav a:not(.btn):hover { background: rgba(14,26,38,.06); } }
.hdr.is-solid .logo-clr { display: none; }
.hdr.is-solid .logo-osc { display: block; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__menu { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 12px; color: var(--on-dark); }
.hdr.is-solid .hdr__menu { color: var(--ink); }
.hdr__menu span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: transform 250ms var(--ease-out), opacity 200ms ease; }

@media (max-width: 960px) {
  .hdr__menu { display: block; }
  .hdr nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 8px var(--gutter) 24px; box-shadow: 0 20px 40px rgba(6,26,48,.18);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 250ms var(--ease-out), opacity 200ms ease, visibility 0s 250ms;
  }
  .hdr nav a:not(.btn) { color: var(--ink); padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .hdr nav .btn { margin: 16px 0 0; }
  .hdr.is-open { background: var(--paper); }
  .hdr.is-open .logo-clr { display: none; }
  .hdr.is-open .logo-osc { display: block; }
  .hdr.is-open .hdr__menu { color: var(--ink); }
  .hdr.is-open nav { transform: none; opacity: 1; visibility: visible; transition: transform 250ms var(--ease-out), opacity 200ms ease; }
  .hdr.is-open .hdr__menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hdr.is-open .hdr__menu span:nth-child(2) { opacity: 0; }
  .hdr.is-open .hdr__menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: clip;
  background: var(--deep); color: var(--on-dark);
  display: flex; flex-direction: column;
  isolation: isolate;
}
.hero__sky { position: absolute; inset: 0; z-index: -2; }
.hero__sky img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; transform-origin: 50% 70%; }
.hero__sky::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,26,48,.92) 0%, rgba(6,26,48,.55) 42%, rgba(6,26,48,0) 70%),
    linear-gradient(180deg, rgba(6,26,48,.6) 0%, rgba(6,26,48,0) 30%);
}
.hero__copy { position: relative; z-index: 3; padding-top: calc(var(--header-h) + clamp(36px, 9vh, 100px)); padding-bottom: clamp(220px, 30vh, 320px); }
.hero__copy > * { max-width: 620px; }
.hero__copy h1 { max-width: 11.5em; }
.hero__copy .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(38px, 4.3vw, 64px); max-width: 11.5em;
  line-height: 1.04;
}
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__sub { margin-top: 24px; max-width: 34ch; font-size: clamp(18px, 1.5vw, 21px); color: var(--on-dark-2); }
.hero__sub strong { color: var(--on-dark); font-weight: 600; }
.hero__cta { margin-top: 34px; }
.hero__cta-q { font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 14px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__plane {
  position: absolute; z-index: 3; top: 9%; left: 49%;
  width: clamp(220px, 23vw, 420px);
  filter: drop-shadow(0 30px 30px rgba(0,0,0,.35));
  pointer-events: none;
}
.hero__ship {
  position: absolute; z-index: 2; right: max(2vw, calc((100vw - var(--maxw)) / 2)); bottom: calc(-1 * clamp(60px, 8vw, 140px));
  width: min(40vw, 640px); transform-origin: 50% 100%;
  pointer-events: none;
}
.hero__ship .bob img { width: 100%; filter: drop-shadow(0 40px 50px rgba(0,0,0,.45)); }
.hero__splash { position: absolute; left: -20%; width: 140%; max-width: none; bottom: 5%; opacity: .95; pointer-events: none; transform-origin: 50% 90%; }
.hero__ship .bob { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-.25deg); } }

/* ola que tapa la línea de flotación del barco */
.wave { position: relative; z-index: 5; display: block; width: 100%; height: clamp(40px, 6vw, 96px); margin-top: calc(-1 * clamp(40px, 6vw, 96px)); color: var(--paper); }
.wave--deep { color: var(--deep); }

.hero__ticker {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(56px, 7.5vw, 120px);
}
.hero__ticker .wrap { display: flex; gap: 18px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.hero__ticker b { color: var(--red); font-weight: 500; }

@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero__copy { padding-top: calc(var(--header-h) + 36px); padding-bottom: 0; }
  .hero__sky::after { background: linear-gradient(180deg, rgba(6,26,48,.85) 0%, rgba(6,26,48,.55) 55%, rgba(6,26,48,.1) 100%); }
  .hero__plane { display: none; }
  .hero__ship { position: relative; right: auto; bottom: auto; width: 74vw; margin: 36px auto -10vw; }
  .hero__ticker { display: none; }
}

/* ---------- 2 · Cifras ---------- */
.cifras { position: relative; z-index: 2; background: var(--paper); padding: clamp(80px, 10vw, 150px) 0 clamp(70px, 8vw, 120px); }
.cifras__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); }
.cifras__head h2 { font-size: clamp(30px, 3.6vw, 52px); max-width: 16ch; }
.cifras__head p { max-width: 34ch; color: var(--ink-2); }
.cifras__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 36px); align-items: end; }
.cifra { display: flex; flex-direction: column; }
.cifra__stack { display: flex; flex-direction: column-reverse; gap: 3px; margin-bottom: 22px; }
.cifra__stack img { width: 100%; aspect-ratio: 1000 / 270; object-fit: fill; filter: drop-shadow(0 6px 6px rgba(6,26,48,.18)); }
.cifra__n { font: 700 clamp(42px, 5vw, 76px)/1 var(--f-display); letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.cifra__l { margin-top: 8px; font: 500 13px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cifras__line { height: 3px; background: var(--ink); border-radius: 3px; margin-top: -1px; }
@media (max-width: 760px) {
  .cifras__head { flex-direction: column; align-items: start; }
  .cifras__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  /* Celular (17-nov): las pilas a ancho completo ocupaban dos pantallas; van a la mitad y la sección cabe en una */
  .cifras { padding: 64px 0 56px; }
  .cifras__head { margin-bottom: 32px; }
  .cifra__stack { width: 56%; gap: 2px; margin-bottom: 14px; }
  .cifra__n { font-size: 38px; }
  .cifra__l { font-size: 11.5px; }
  .cifras__line { margin-top: 18px; }
}

/* ---------- 3 · Servicios ---------- */
.serv { position: relative; background: var(--deep); color: var(--on-dark); overflow: clip; }
.serv__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 24px) 0 48px; }
.serv__track { display: flex; gap: clamp(18px, 2vw, 28px); padding: 0 var(--gutter) 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); width: max-content; align-items: stretch; }
.serv__intro { width: min(440px, 80vw); flex: none; display: flex; flex-direction: column; justify-content: center; padding-right: clamp(10px, 3vw, 60px); }
.serv__intro h2 { font-size: clamp(36px, 4.4vw, 64px); margin: 18px 0 18px; }
.serv__intro p { color: var(--on-dark-2); font-size: 18px; max-width: 30ch; }
.serv__hint { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.serv__hint i { width: 40px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.serv__hint i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: translateX(-100%); animation: hint 2.2s var(--ease-in-out) infinite; }
@keyframes hint { to { transform: translateX(100%); } }

.serv__group { flex: none; display: flex; align-items: center; }
.serv__group span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 500 12px/1 var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--red);
  padding: 0 4px;
}

.card {
  position: relative; flex: none; width: clamp(280px, 25vw, 360px);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(560px, 66svh);
  border-radius: 24px; padding: 28px 26px 26px;
  background: linear-gradient(180deg, var(--deep-2) 0%, #0E2E52 100%);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  margin-top: 110px;
}
.card--wide { width: clamp(320px, 40vw, 600px); background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
.card__obj { position: absolute; left: 50%; top: -110px; width: 104%; transform: translateX(-50%); pointer-events: none; }
.card--wide .card__obj { width: 108%; top: -90px; }
/* El texto nunca queda bajo el objeto: se reserva arriba el alto de la imagen que entra en la tarjeta (10-nov) */
.card { padding-top: calc(clamp(240px, 34svh, 340px) - 98px); }
.card--wide { padding-top: calc(clamp(240px, 34svh, 340px) - 78px); }
.card__obj img { width: 100%; height: clamp(240px, 34svh, 340px); object-fit: contain; object-position: center bottom; filter: drop-shadow(0 26px 24px rgba(0,0,0,.45)); }
/* Texto en crema y el rojo solo en la rayita: el rojo claro no llega a 4,5:1 sobre estos azules (10-nov) */
.card__tag { display: flex; align-items: center; gap: 8px; font: 500 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 12px; }
.card__tag::before { content: ""; width: 14px; height: 2px; flex: none; background: var(--red); }
.card h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.12; }
.card--wide h3 { font-size: clamp(26px, 2.4vw, 38px); }
.card__short { margin-top: 10px; color: var(--on-dark-2); font-size: 16px; }
.card__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 300ms var(--ease-out); }
.card__more > div { overflow: hidden; }
.card__more p { padding-top: 12px; color: var(--on-dark); font-size: 15px; line-height: 1.55; }
.card.is-open .card__more { grid-template-rows: 1fr; }
.card__foot { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__toggle {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 0; cursor: pointer;
  font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2);
}
.card__toggle i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-dark); display: grid; place-items: center; font-style: normal; transition: transform 250ms var(--ease-out); }
.card.is-open .card__toggle i { transform: rotate(45deg); }
.card__link { font: 600 14px/1 var(--f-body); color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .card__link:hover { text-decoration-color: currentColor; } }
.serv__end { width: 8vw; flex: none; }

@media (max-width: 1023px) {
  .serv__pin { min-height: 0; padding: 88px 0 72px; }
  .serv__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .serv__track::-webkit-scrollbar { display: none; }
  .serv__intro { width: 82vw; scroll-snap-align: start; }
  .card { width: 78vw; scroll-snap-align: center; min-height: 480px; }
  .card--wide { width: 86vw; }
  .serv__group { display: none; }
}

/* ---------- 4 · China ---------- */
.china { position: relative; background: var(--deep); color: var(--on-dark); overflow: clip; }
.china__pin { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 20px) 0 40px; }
.china__bg { position: absolute; inset: 0; z-index: 0; }
.china__bg video, .china__bg img { width: 100%; height: 100%; object-fit: cover; }
.china__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,26,48,.95) 0%, rgba(6,26,48,.78) 40%, rgba(6,26,48,.9) 100%); }
.china .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.china h2 { font-size: clamp(34px, 4.2vw, 62px); margin: 18px 0 26px; }
.china h2 span { color: var(--red); }
.china__stat { display: flex; align-items: baseline; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.china__stat b { font: 700 clamp(56px, 7vw, 108px)/.9 var(--f-display); letter-spacing: -0.04em; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.china__stat p { color: var(--on-dark-2); max-width: 24ch; }
.china__wh { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.china__wh li { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.china__wh li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(242,85,99,.2); flex: none; }
.china__wh small { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-left: 6px; padding: 4px 8px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(242,85,99,.5); }
.china__note { margin-top: 26px; color: var(--on-dark-2); max-width: 46ch; }
.leer { margin-top: 14px; }
.leer summary { cursor: pointer; list-style: none; font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); display: inline-flex; gap: 8px; align-items: center; padding: 8px 0; }
.leer summary::-webkit-details-marker { display: none; }
.leer summary::after { content: "+"; color: var(--red); font-size: 16px; }
.leer[open] summary::after { content: "–"; }
.leer p { margin-top: 10px; color: var(--on-dark-2); font-size: 15.5px; max-width: 52ch; }
.leer p + p { margin-top: 10px; }

.china__reel { position: relative; justify-self: center; width: min(320px, 70vw); }
.china__reel video, .china__reel img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; box-shadow: 0 40px 80px rgba(0,0,0,.5), inset 0 0 0 1px var(--line-dark); }
.china__reel figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(6,26,48,.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.china__reel figcaption b { color: var(--red); font-weight: 500; display: block; }

.ruta { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ruta svg { width: 100%; height: 100%; overflow: visible; }
.ruta__path { fill: none; stroke: rgba(244,241,234,.22); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.ruta__done { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; }
.ruta__pin circle { fill: var(--red); }
.ruta__pin text { fill: var(--on-dark); font: 500 13px var(--f-mono); letter-spacing: .12em; }
.ruta__plane { width: clamp(150px, 15vw, 250px); position: absolute; left: 0; top: 0; filter: drop-shadow(0 20px 20px rgba(0,0,0,.5)); }

@media (max-width: 960px) {
  .china .wrap { grid-template-columns: 1fr; }
  .china__pin { padding: 96px 0 80px; }
  .ruta { display: none; }
}

/* ---------- 5 · Cómo funciona ---------- */
.proc { position: relative; background: var(--paper); overflow: clip; }
.proc__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 24px) 0 40px; }
.proc__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(18px, 3vh, 40px); }
.proc__head h2 { font-size: clamp(32px, 3.8vw, 56px); margin-top: 16px; }
.proc__head p { color: var(--ink-2); max-width: 34ch; }

.proc__route { position: relative; height: 40px; margin-bottom: clamp(18px, 3vh, 36px); }
.proc__route-line { position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--line); }
.proc__route-fill { position: absolute; left: 0; top: 19px; height: 2px; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.proc__route ol { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; display: flex; justify-content: space-between; }
.proc__route li { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); font: 500 13px/1 var(--f-mono); color: var(--ink-3); transition: box-shadow 250ms ease, color 250ms ease, background-color 250ms ease; }
.proc__route li.is-on { box-shadow: inset 0 0 0 2px var(--red); color: var(--ink); }
.proc__route li.is-now { background: var(--red); color: #fff; box-shadow: none; }

.proc__body { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 72px); align-items: center; }
.proc__stage { position: relative; aspect-ratio: 4 / 3; height: min(52svh, calc(100svh - 400px)); max-width: 100%; margin: 0 auto; }
.proc__stage::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: 6%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(6,26,48,.18), transparent); }
.proc__obj { position: absolute; inset: 0; display: grid; place-items: center; }
.proc__obj img { max-width: 92%; max-height: 92%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(6,26,48,.25)); }
.proc__steps { position: relative; min-height: 240px; }
.step { position: absolute; inset: 0 0 auto 0; }
.step__n { font: 700 clamp(64px, 7vw, 112px)/.85 var(--f-display); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--navy); }
.step h3 { font-size: clamp(26px, 2.4vw, 38px); margin: 18px 0 14px; }
.step p { color: var(--ink-2); font-size: 18px; max-width: 34ch; }

@media (max-width: 960px) {
  .proc__pin { min-height: 0; padding: 88px 0 72px; }
  .proc__head { flex-direction: column; align-items: start; }
  .proc__route { display: none; }
  .proc__body { display: block; }
  .proc__stage { display: none; }
  .proc__steps { min-height: 0; display: grid; gap: 52px; }
  .step { position: relative; display: grid; grid-template-columns: 1fr; }
  .step__img { display: block !important; width: 78%; margin: 0 auto 8px; }
  .step__n { font-size: 56px; }
}
.step__img { display: none; }
.step__img img { width: 100%; max-height: 240px; object-fit: contain; filter: drop-shadow(0 24px 24px rgba(6,26,48,.22)); }

/* ---------- 6 · Testimonio ---------- */
.testi { position: relative; background: var(--deep); color: var(--on-dark); padding: clamp(90px, 11vw, 160px) 0; overflow: clip; }
.testi .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.testi__video { position: relative; width: min(340px, 78vw); }
.testi__video video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 24px; background: #000; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.testi__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--red-brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(194,31,48,.3);
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
}
.testi__play:active { transform: translate(-50%, -50%) scale(.95); }
.testi__play svg { width: 26px; height: 26px; margin-left: 4px; }
.testi.is-playing .testi__play { opacity: 0; pointer-events: none; }
.testi__label {
  position: absolute; top: -18px; right: -28px; transform: rotate(4deg);
  background: #FBF8F2; color: var(--ink); border-radius: 6px; padding: 14px 16px 12px; width: 190px;
  box-shadow: 0 18px 30px rgba(0,0,0,.35);
  font: 500 11px/1.45 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
}
.testi__label b { display: block; font: 700 18px/1.1 var(--f-display); letter-spacing: -0.01em; text-transform: none; margin: 4px 0 6px; }
.testi__label i { display: block; height: 22px; margin-top: 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px); font-style: normal; }
.testi blockquote { margin: 0; }
.testi blockquote p { font: 600 clamp(28px, 3.4vw, 50px)/1.15 var(--f-display); letter-spacing: -0.02em; }
.testi blockquote p span { color: var(--red); }
.testi cite { display: block; margin-top: 28px; font-style: normal; color: var(--on-dark-2); }
.testi cite b { color: var(--on-dark); font-weight: 600; }
@media (max-width: 860px) {
  .testi .wrap { grid-template-columns: 1fr; }
  .testi__video { justify-self: center; }
  .testi__label { right: -8px; }
}

/* ---------- 7 · Cierre ---------- */
.cierre { position: relative; background: var(--paper); padding: clamp(100px, 12vw, 170px) 0 0; overflow: clip; }
.cierre__copy { position: relative; z-index: 3; text-align: center; }
.cierre h2 { font-size: clamp(38px, 5.4vw, 82px); max-width: 14ch; margin: 18px auto 20px; }
.cierre p { color: var(--ink-2); font-size: 19px; max-width: 40ch; margin: 0 auto; }
.cierre__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.cierre__road { position: relative; height: clamp(220px, 46vw, 420px); margin-top: clamp(30px, 5vw, 70px); pointer-events: none; }
html.menu-abierto { overflow: hidden; } /* menú móvil abierto: el fondo no se desplaza */
.cierre__road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: var(--deep); }
.cierre__road::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(34% - 1px); height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 40px, transparent 40px 80px); z-index: 1; opacity: .7; }
.cierre__truck { position: absolute; z-index: 2; bottom: 22%; left: 50%; width: min(760px, 86vw); transform: translateX(-50%); }
.cierre__truck img { width: 100%; filter: drop-shadow(0 24px 20px rgba(0,0,0,.35)); }

/* ---------- Pie ---------- */
.pie { background: var(--deep); color: var(--on-dark-2); padding: 64px 0 32px; font-size: 15px; }
.pie__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.pie img { height: 44px; width: auto; margin-bottom: 18px; }
.pie h4 { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; }
.pie ul + h4 { margin-top: 28px; }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pie a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .pie a:hover { color: var(--on-dark); } }
.pie__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 860px) { .pie__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pie__grid { grid-template-columns: 1fr; } }

/* ---------- Páginas internas ---------- */
.ph { position: relative; background: var(--deep); color: var(--on-dark); min-height: min(78svh, 760px); padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(110px, 12vw, 170px); overflow: clip; isolation: isolate; }
.ph h1 { font-size: clamp(38px, 5vw, 74px); max-width: 15ch; margin-top: 20px; }
.ph p.lead { margin-top: 22px; max-width: 44ch; font-size: clamp(18px, 1.5vw, 21px); color: var(--on-dark-2); }
.ph__obj { position: absolute; z-index: -1; right: -4vw; bottom: -2vw; width: min(46vw, 720px); pointer-events: none; }
.ph__obj img { width: 100%; filter: drop-shadow(0 40px 40px rgba(0,0,0,.45)); }
@media (max-width: 860px) { .ph__obj { position: relative; right: auto; bottom: auto; width: 100%; margin: 32px 0 -40px 8vw; } }
.sec { padding: clamp(80px, 9vw, 140px) 0; }
.sec--dark { background: var(--deep); color: var(--on-dark); }
.sec h2 { font-size: clamp(30px, 3.6vw, 52px); margin: 16px 0 22px; max-width: 18ch; }
.prose { max-width: 62ch; color: var(--ink-2); font-size: 18px; }
.prose p + p { margin-top: 16px; }
.sec--dark .prose { color: var(--on-dark-2); }

/* ---------- Movimiento: estados iniciales solo con JS ---------- */
.js [data-rv] { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-rv] { opacity: 1; transform: none; }
  .hero__ship .bob, .serv__hint i::after { animation: none; }
}

/* Sin movimiento (reduced-motion o sin GSAP): todo queda en flujo normal */
.no-motion .serv__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
.no-motion .card, .no-motion .serv__intro { scroll-snap-align: start; }
.no-motion .proc__stage, .no-motion .proc__route { display: none; }
.no-motion .proc__body { display: block; }
.no-motion .proc__steps { min-height: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px 40px; }
.no-motion .step { position: relative; }
.no-motion .step__img { display: block; width: 80%; margin-bottom: 8px; }
.no-motion [data-rv] { opacity: 1; transform: none; }

/* ---------- Formularios ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.form-card { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 40px 80px rgba(6,26,48,.35); position: relative; z-index: 3; }
.form-card h2 { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 6px; }
.form-card > p { color: var(--ink-2); font-size: 15px; margin-bottom: 22px; }
.fld { margin-bottom: 16px; }
.fld label { display: block; font: 600 14px/1.3 var(--f-body); margin-bottom: 7px; }
.fld label span { color: var(--red); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid #D5DDE7; background: #fff; font: 400 16px/1.4 var(--f-body); color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.fld textarea { min-height: 96px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(10,77,140,.12); }
.fld--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; margin: 14px 0 0; cursor: pointer; }
.chk input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--red); flex: none; }
.chk b { color: var(--ink); font-weight: 600; display: block; }
.form-card .btn { width: 100%; margin-top: 22px; }
.form-err { color: #B3261E; font-size: 14px; margin-top: 12px; }
.ph__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 46ch; }
.ph__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark); }
.ph__list li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.ph__stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 34px; flex-wrap: wrap; }
.ph__stats b { display: block; font: 700 clamp(30px, 3vw, 44px)/1 var(--f-display); color: var(--on-dark); }
.ph__stats > div > span { font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }
@media (max-width: 900px) {
  .form-wrap { grid-template-columns: 1fr; gap: 0; }
  .fld--2 { grid-template-columns: 1fr; gap: 0; }
  /* El formulario sube: queda justo después del título, y la lista y las cifras pasan debajo (10-nov) */
  .form-wrap > div:first-child { display: contents; }
  .form-wrap .form-card { order: 2; margin: 28px 0 8px; }
  .form-wrap .ph__list, .form-wrap .ph__stats { order: 3; }
  .ph--form { padding-top: calc(var(--header-h) + 28px); }
  .ph--form h1 { font-size: clamp(30px, 8vw, 44px); margin-top: 14px; }
  .ph--form p.lead { margin-top: 12px; font-size: 16px; }
  .form-card > p { margin-bottom: 14px; }
  .fld { margin-bottom: 12px; }
}

/* ---------- Bloques internos ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.tile { background: #fff; border-radius: 20px; padding: 26px; box-shadow: inset 0 0 0 1px var(--line); }
.sec--dark .tile { background: var(--deep-2); box-shadow: inset 0 0 0 1px var(--line-dark); }
.tile__n { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--red); }
.tile h3 { font-size: 22px; margin: 14px 0 10px; }
.tile p { color: var(--ink-2); font-size: 16px; }
.sec--dark .tile p { color: var(--on-dark-2); }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.bullets li { display: flex; gap: 14px; font-size: 17px; }
.bullets li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 10px; flex: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.han { font: 700 clamp(120px, 18vw, 260px)/.9 "Noto Serif SC", serif; color: var(--red); letter-spacing: -0.02em; }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; font: 600 19px/1.35 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 24px; line-height: 1; transition: transform 250ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

.price { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; background: var(--navy); color: var(--on-dark); border-radius: 28px; padding: clamp(28px, 4vw, 56px); }
.price__n { font: 700 clamp(80px, 10vw, 150px)/.85 var(--f-display); letter-spacing: -0.05em; }
.price__n sup { font-size: .35em; vertical-align: top; margin-right: 4px; }
.price__n small { font-size: .2em; letter-spacing: .1em; margin-left: 6px; }
.price .bullets li { font-size: 16px; }
.price .eyebrow { color: var(--on-dark); }
.price .eyebrow::before { background: var(--red); }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }

.quote { background: #fff; border-radius: 20px; padding: 26px; box-shadow: inset 0 0 0 1px var(--line); }
.quote .stars { color: var(--red); letter-spacing: 3px; }
.quote p { margin: 12px 0 18px; font-size: 16px; color: var(--ink); }
.quote b { display: block; font-weight: 600; }
.quote span { color: var(--ink-3); font-size: 14px; }

/* ---------- Calculadora ---------- */
.calc { background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 40px 80px rgba(6,26,48,.18); position: relative; z-index: 3; margin-top: calc(-1 * clamp(60px, 7vw, 100px)); }
.calc__tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); margin-bottom: 24px; }
.calc__tabs a { padding: 10px 18px; border-radius: 999px; text-decoration: none; font: 600 15px/1 var(--f-body); color: var(--ink-2); }
.calc__tabs a[aria-current] { background: var(--navy); color: #fff; }
.calc__rows { display: grid; gap: 12px; }
.calc__row { display: grid; grid-template-columns: repeat(5, 1fr) 44px; gap: 10px; align-items: end; padding: 14px; border-radius: 16px; background: var(--paper); }
.calc__row .fld { margin: 0; }
.calc__row .fld label { font-size: 12px; font-family: var(--f-mono); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.calc__del { width: 44px; height: 50px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 22px; }
@media (hover: hover) and (pointer: fine) { .calc__del:hover { background: #fff; color: #B3261E; } }
.calc__add { margin-top: 14px; background: none; border: 1.5px dashed var(--ink-3); border-radius: 14px; padding: 14px; width: 100%; cursor: pointer; font: 600 15px/1 var(--f-body); color: var(--ink-2); }
.calc__div { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; font-size: 15px; color: var(--ink-2); }
.calc__div label { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--paper); cursor: pointer; }
.calc__res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.calc__res div { border-radius: 16px; padding: 20px; background: var(--paper); }
.calc__res div.is-main { background: var(--navy); color: #fff; }
.calc__res b { display: block; font: 700 clamp(30px, 3vw, 42px)/1 var(--f-display); font-variant-numeric: tabular-nums; margin: 8px 0 4px; }
.calc__res span { font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.calc__cta { margin-top: 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px; border-radius: 16px; background: var(--paper); }
@media (max-width: 760px) {
  .calc__row { grid-template-columns: 1fr 1fr 1fr; }
  .calc__row .fld:nth-child(4), .calc__row .fld:nth-child(5) { grid-column: span 1; }
  .calc__res { grid-template-columns: 1fr; }
}

.ph__obj--c { right: 4vw; bottom: 10px; width: min(220px, 22vw); }
@media (max-width: 860px) { .ph__obj--c { display: none; } }
.ph--form { padding-bottom: clamp(70px, 8vw, 120px); }
.ph--form::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,26,48,.95), rgba(6,26,48,.7)), url(../img/mar.webp) center 62% / cover; }
.form-card a, .form-err a { color: var(--navy); }
.sec--dark .form-card .prose { color: var(--ink-2); }

/* ---------- Manifiesto: nos movemos ---------- */
.mov { position: relative; background: var(--deep); color: var(--on-dark); overflow: clip; }
.mov__pin { position: relative; height: 100svh; min-height: 560px; display: flex; flex-direction: column; justify-content: center; gap: clamp(4px, 1vw, 12px); overflow: hidden; }
.mov__bg { position: absolute; inset: 0; z-index: 0; }
.mov__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; transform-origin: 50% 80%; }
.mov__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,26,48,.92) 0%, rgba(6,26,48,.45) 45%, rgba(6,26,48,.9) 100%); }
.mov__row { position: relative; z-index: 2; margin: 0; display: flex; gap: .45em; white-space: nowrap; will-change: transform;
  font: 700 clamp(46px, 7.2vw, 132px)/.98 var(--f-display); letter-spacing: -0.045em; }
.mov__row .o { color: transparent; -webkit-text-stroke: 2px rgba(244,241,234,.55); }
.mov__row--b { color: var(--red); }
.mov__row--b .o { -webkit-text-stroke-color: rgba(242,85,99,.75); }
.mov__plane { position: absolute; z-index: 3; left: 0; top: 0; width: clamp(360px, 46vw, 820px); filter: drop-shadow(0 40px 40px rgba(0,0,0,.5)); pointer-events: none; will-change: transform; }
.mov__truck { position: absolute; z-index: 3; bottom: 4%; left: 0; width: clamp(260px, 30vw, 520px); filter: drop-shadow(0 24px 20px rgba(0,0,0,.5)); pointer-events: none; }
.mov__modes { position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(18px, 3vh, 32px); display: flex; gap: 28px; justify-content: flex-end; font: 500 12px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-2); }
.mov__modes span::before { content: "● "; color: var(--red); }
.no-motion .mov__pin { height: auto; padding: 120px 0; }
.no-motion .mov__plane { position: relative; margin: 20px auto 0; }
.no-motion .mov__truck { display: none; }
@media (max-width: 760px) { .mov__pin { height: 86svh; } .mov__modes { justify-content: center; } }

/* Cierre oscuro con el puerto de noche */
.cierre--dark { background: var(--deep); color: var(--on-dark); isolation: isolate; }
.cierre--dark .cierre__bg { position: absolute; inset: 0; z-index: -1; }
.cierre--dark .cierre__bg img { width: 100%; height: 100%; object-fit: cover; }
.cierre--dark .cierre__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,26,48,.92) 0%, rgba(6,26,48,.6) 55%, rgba(6,26,48,.95) 100%); }
.cierre--dark p { color: var(--on-dark-2); }
.cierre--dark .cierre__road::after { background: #040f1d; }
.ph--form::before { background: linear-gradient(90deg, rgba(6,26,48,.96) 30%, rgba(6,26,48,.55)), url(../img/pista.webp) center / cover; }

/* Sobre fondo oscuro el acento usa el rojo claro; botones y rellenos con texto blanco siguen en el rojo de marca */
.hero, .serv, .china, .testi, .pie, .ph, .sec--dark, .mov, .cierre--dark, .price { --red: var(--red-soft); }
