/* ==========================================================================
   BoxyGo! — Sitio web · Hoja de estilos
   Paleta y tipografía según Manual de Identidad V1.0
   ========================================================================== */

/* Cocogoose Classic (versión trial entregada por el cliente).
   La versión trial bloquea las cifras 0-9 y el signo %, así que esos
   caracteres se sirven con Outfit (OFL), geométrica y de proporción similar.
   Al comprar la licencia comercial: reemplazar los .woff2 y borrar
   las dos reglas "BoxyGo Cifras" y el unicode-range de abajo. */
@font-face {
  font-family: "BoxyGo Cifras";
  src: url("../fonts/outfit-600-digitos.woff2") format("woff2");
  font-weight: 500 700; font-display: swap;
  unicode-range: U+0025, U+0030-0039;
}
@font-face {
  font-family: "BoxyGo Cifras";
  src: url("../fonts/outfit-800-digitos.woff2") format("woff2");
  font-weight: 800 900; font-display: swap;
  unicode-range: U+0025, U+0030-0039;
}
@font-face {
  font-family: "Cocogoose";
  src: url("../fonts/cocogoose-medium.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-0024, U+0026-002F, U+003A-FFFF;
}
@font-face {
  font-family: "Cocogoose";
  src: url("../fonts/cocogoose-extrabold.woff2") format("woff2");
  font-weight: 800 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-0024, U+0026-002F, U+003A-FFFF;
}

:root {
  /* Marca */
  --navy: #283744;          /* Azul BoxyGo  */
  --yellow: #FCC869;        /* Amarillo BoxyGo */
  --white: #FFFFFF;
  /* Derivados (tintes del azul para UI) */
  --paper: #F5F6F7;         /* fondo suave de sección */
  --line: #E3E7EB;          /* divisores / bordes finos */
  --ink-2: #5B6873;         /* texto secundario sobre blanco (5.7:1) */
  --navy-2: #33475A;        /* superficies sobre azul */
  --on-navy-2: #C3CBD2;     /* texto secundario sobre azul (7.4:1) */

  --font: "BoxyGo Cifras", "Cocogoose", Verdana, system-ui, sans-serif;

  --radius-lg: 28px;        /* fotos y superficies grandes */
  --radius-md: 18px;        /* tarjetas */
  --radius-sm: 12px;        /* chips, inputs */

  /* Curvas: crítico-amortiguada (sin rebote) para UI */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.64, 0, .78, 0);

  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
main { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.0625rem;       /* 17px */
  line-height: 1.55;
  letter-spacing: .005em;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Tipografía — tracking negativo en tamaños grandes, interlínea inversa al tamaño */
.display, h1, h2, h3 { font-weight: 800; margin: 0; color: inherit; }
.display {
  font-size: clamp(2.35rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.028em;
}
.h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.022em;
}
.h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }
.lead-copy { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.muted { color: var(--ink-2); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.on-navy :focus-visible { outline-color: var(--yellow); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: 10px;
  font-weight: 800; text-decoration: none; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Botones — la respuesta vive en el pointer-down (instantánea)
   -------------------------------------------------------------------------- */
.btn-bx {
  --bg: var(--yellow); --fg: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.5rem;
  font: 800 1rem/1 var(--font); letter-spacing: .005em;
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bg); border-radius: 999px;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: transform .35s var(--ease-out), background-color .2s, color .2s, box-shadow .35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn-bx:hover { box-shadow: 0 10px 24px -12px rgba(40,55,68,.55); }
.btn-bx.is-pressed, .btn-bx:active { transform: scale(.97); transition-duration: .1s; }
.btn-bx--navy { --bg: var(--navy); --fg: var(--white); }
.btn-bx--ghost { --bg: transparent; --fg: var(--navy); border-color: var(--line); }
.btn-bx--ghost:hover { border-color: var(--navy); box-shadow: none; }
.on-navy .btn-bx--ghost { --fg: var(--white); border-color: rgba(255,255,255,.28); }
.on-navy .btn-bx--ghost:hover { border-color: var(--white); }
.btn-bx--sm { min-height: 44px; padding: 0 1.15rem; font-size: .95rem; }

/* --------------------------------------------------------------------------
   Navegación — material translúcido, el contenido pasa por debajo
   -------------------------------------------------------------------------- */
.nav-bx {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), height .35s var(--ease-out);
}
.nav-bx::before { /* capa de material: aparece al hacer scroll */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  opacity: 0; transition: opacity .35s var(--ease-out);
  box-shadow: 0 1px 0 rgba(40,55,68,.08);
}
.nav-bx.is-scrolled { --nav-h: 64px; }
.nav-bx.is-scrolled::before { opacity: 1; }
.nav-bx .container-xl { display: flex; align-items: center; gap: 1.5rem; }
.nav-bx__brand { display: inline-flex; flex: none; }
.nav-bx__brand img { height: 34px; width: auto; transition: height .35s var(--ease-out); }
.nav-bx.is-scrolled .nav-bx__brand img { height: 30px; }
.nav-bx nav { flex: 1; display: flex; justify-content: center; }
.nav-bx__links { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav-bx__links a {
  display: block; padding: .55rem .9rem; border-radius: 999px;
  font-size: .98rem; text-decoration: none; color: var(--navy);
  transition: background-color .2s;
}
.nav-bx__links a:hover { background: rgba(40,55,68,.06); }
.nav-bx__links a.is-active { background: rgba(40,55,68,.08); }
.nav-bx__cta { flex: none; }

/* Variante sobre fondo azul (hero oscuro) antes de hacer scroll */
.nav-bx--on-navy:not(.is-scrolled) .nav-bx__links a { color: var(--white); }
.nav-bx--on-navy:not(.is-scrolled) .nav-bx__links a:hover { background: rgba(255,255,255,.1); }
.nav-bx--on-navy .nav-bx__brand .logo-dark { display: none; }
.nav-bx--on-navy.is-scrolled .nav-bx__brand .logo-dark { display: block; }
.nav-bx--on-navy.is-scrolled .nav-bx__brand .logo-light { display: none; }
.nav-bx:not(.nav-bx--on-navy) .logo-light { display: none; }
.nav-bx--on-navy:not(.is-scrolled) .nav-bx__toggle { color: var(--white); border-color: rgba(255,255,255,.3); }

.nav-bx__toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--navy);
  align-items: center; justify-content: center; cursor: pointer;
  transition: transform .1s var(--ease-out);
}
.nav-bx__toggle:active { transform: scale(.94); }
.nav-bx__toggle span { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-bx__toggle span::before, .nav-bx__toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease-out);
}
.nav-bx__toggle span::before { top: -6px; }
.nav-bx__toggle span::after { top: 6px; }

/* Menú móvil: nace del botón que lo abre y regresa por el mismo camino */
.menu-sheet {
  position: fixed; z-index: 999; top: 10px; right: 10px; left: 10px;
  padding: calc(var(--nav-h) + 4px) 1.25rem 1.25rem;
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 30px 60px -20px rgba(40,55,68,.45);
  transform-origin: calc(100% - 34px) 28px;
  transform: scale(.6); opacity: 0; filter: blur(6px);
  visibility: hidden; pointer-events: none;
  transition: transform .38s var(--ease-out), opacity .25s var(--ease-out), filter .3s var(--ease-out), visibility 0s .38s;
}
.menu-open .menu-sheet {
  transform: none; opacity: 1; filter: none; visibility: visible; pointer-events: auto;
  transition: transform .42s var(--ease-out), opacity .2s var(--ease-out), filter .3s var(--ease-out), visibility 0s;
}
.menu-sheet ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.menu-sheet li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem .25rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.menu-sheet .btn-bx { width: 100%; }
.menu-scrim {
  position: fixed; inset: 0; z-index: 998; background: rgba(40,55,68,.35);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility 0s .3s;
}
.menu-open .menu-scrim { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-out); }
.menu-open .nav-bx { z-index: 1001; }
.menu-open .nav-bx__toggle { color: var(--navy) !important; border-color: var(--line) !important; }
.menu-open .nav-bx__toggle span { background: transparent; }
.menu-open .nav-bx__toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .nav-bx__toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.menu-open .nav-bx--on-navy .logo-light { display: none; }
.menu-open .nav-bx--on-navy .logo-dark { display: block !important; }

@media (max-width: 991.98px) {
  .nav-bx nav, .nav-bx__cta { display: none; }
  .nav-bx__toggle { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   HERO A — "Caja kraft" (fondo blanco, 60/30/10)
   -------------------------------------------------------------------------- */
.hero-a {
  position: relative;
  padding: calc(var(--nav-h) + clamp(2rem, 6vw, 5rem)) 0 clamp(5rem, 9vw, 7.5rem);
  overflow: hidden;
}
.hero-a__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-a__copy .display { max-width: 15ch; }
.hero-a__copy .lead-copy { margin: 1.5rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2.5rem; padding: 0; list-style: none;
  font-size: .95rem; color: var(--ink-2);
}
.hero-proof li { display: flex; align-items: center; gap: .55rem; }
.hero-proof svg { width: 20px; height: 20px; flex: none; color: var(--navy); }

.hero-a__media { position: relative; }
.hero-a__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: #E9E2D6;
  box-shadow: 0 40px 80px -40px rgba(40,55,68,.55);
}
.hero-a__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-a__media > .reveal-card { position: absolute; left: clamp(-4rem, -4.5vw, -1rem); top: 9%; }

@media (max-width: 991.98px) {
  .hero-a__grid { grid-template-columns: 1fr; }
  .hero-a__copy .display { max-width: 13ch; }
  .hero-a__media { max-width: 560px; }
  .hero-a__media > .reveal-card { position: relative; left: auto; top: auto; margin: -4.5rem 1rem 0; }
  .hero-a .order-card { width: auto; }
}

/* --------------------------------------------------------------------------
   HERO B — "Operación" (fondo azul con foto de almacén)
   -------------------------------------------------------------------------- */
.hero-b {
  position: relative; color: var(--white); background: var(--navy);
  min-height: min(92vh, 860px);
  padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(6rem, 10vw, 8rem);
  display: flex; align-items: center; overflow: hidden;
}
.hero-b__bg { position: absolute; inset: 0; }
.hero-b__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-b__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(40,55,68,.97) 0%, rgba(40,55,68,.9) 38%, rgba(40,55,68,.35) 75%, rgba(40,55,68,.25) 100%),
    linear-gradient(0deg, rgba(40,55,68,.85) 0%, rgba(40,55,68,0) 35%);
}
.hero-b .container-xl { position: relative; }
.hero-b__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; }
.hero-b .display { max-width: 12ch; }
.hero-b .lead-copy { color: var(--on-navy-2); margin: 1.5rem 0 2rem; }
.hero-b .hero-proof { color: var(--on-navy-2); }
.hero-b .hero-proof svg { color: var(--yellow); }
.hero-b .order-card { justify-self: end; background: rgba(255,255,255,.95); }
@media (max-width: 991.98px) {
  .hero-b__grid { grid-template-columns: 1fr; }
  .hero-b__bg::after { background: linear-gradient(0deg, rgba(40,55,68,.98) 30%, rgba(40,55,68,.75) 100%); }
  .hero-b .order-card { justify-self: stretch; width: auto; }
}

/* --------------------------------------------------------------------------
   Tarjeta "Pedido en camino" — el recorrido del pedido, en vivo
   (patrón de notificación del manual: fondo blanco, texto azul,
    el amarillo solo dentro del isotipo)
   -------------------------------------------------------------------------- */
.order-card {
  width: 340px; padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 22px; color: var(--navy);
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 30px 60px -24px rgba(40,55,68,.5), 0 2px 6px rgba(40,55,68,.08);
}
.order-card__head { display: flex; gap: .85rem; align-items: center; }
.order-card__icon {
  width: 46px; height: 46px; flex: none; border-radius: 13px; background: var(--navy);
  display: grid; place-items: center; color: var(--yellow);
}
.order-card__icon svg { width: 26px; height: 26px; }
.order-card__meta { min-width: 0; }
.order-card__id { font-size: .8rem; color: var(--ink-2); letter-spacing: .01em; }
.order-card__title { font-weight: 800; font-size: 1.05rem; line-height: 1.2; letter-spacing: -.01em; }
.order-card__text { font-size: .9rem; color: var(--ink-2); margin: .7rem 0 .9rem; min-height: 2.8em; line-height: 1.4; }
.order-card__swap { display: block; transition: opacity .22s var(--ease-out), transform .38s var(--ease-out); }
.order-card__swap.is-out { opacity: 0; transform: translateY(6px); }

.order-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.order-track button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; flex-direction: column; gap: .45rem; font-size: .72rem; color: var(--ink-2);
  -webkit-tap-highlight-color: transparent;
}
.order-track .bar { position: relative; height: 6px; border-radius: 6px; background: rgba(40,55,68,.14); overflow: hidden; }
.order-track .bar i {
  position: absolute; inset: 0; background: var(--navy); border-radius: 6px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease-out);
}
.order-track .is-done .bar i { transform: scaleX(1); }
.order-track .is-current .bar i { transform: scaleX(1); background: var(--navy); }
.order-track .is-current { color: var(--navy); font-weight: 800; }
.order-track button:focus-visible { outline-offset: 4px; }
.order-card.is-paused .order-card__id::after { content: " · en pausa"; }

/* --------------------------------------------------------------------------
   Cinta BoxyGo! — el sello de la caja
   -------------------------------------------------------------------------- */
.tape {
  position: relative; z-index: 2;
  background: var(--yellow); color: var(--navy);
  transform: rotate(-1.6deg); margin: -2.2rem -1% 0; width: 102%;
  box-shadow: 0 10px 24px -14px rgba(40,55,68,.5);
  overflow: hidden;
}
.tape::before, .tape::after { /* brillo sutil de cinta plástica */
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.55);
}
.tape::before { top: 5px; }
.tape::after { bottom: 5px; background: rgba(40,55,68,.08); }
.tape__track {
  display: flex; width: max-content; padding: .95rem 0;
  animation: tape-roll 38s linear infinite;
}
.tape:hover .tape__track { animation-play-state: paused; }
.tape__item { display: inline-flex; align-items: center; gap: 1.1rem; padding-right: 1.1rem; white-space: nowrap; font-weight: 800; font-size: 1.05rem; letter-spacing: -.005em; }
.tape__item svg { width: 28px; height: 28px; }
@keyframes tape-roll { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Entrada orquestada — una sola secuencia al cargar
   -------------------------------------------------------------------------- */
.js .reveal-seq > * { opacity: 0; transform: translateY(18px); }
.js .is-in .reveal-seq > * {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal-media { opacity: 0; transform: scale(.965); }
.js .is-in .reveal-media, .js .reveal-media.is-in {
  opacity: 1; transform: none; transition: opacity .8s var(--ease-out) .15s, transform 1.1s var(--ease-out) .15s;
}
.js .reveal-card { opacity: 0; transform: translateY(24px) scale(.96); filter: blur(4px); }
.js .is-in .reveal-card {
  opacity: 1; transform: none; filter: none;
  transition: opacity .6s var(--ease-out) .55s, transform .9s var(--ease-out) .55s, filter .6s var(--ease-out) .55s;
}

/* --------------------------------------------------------------------------
   Accesibilidad de movimiento, transparencia y contraste
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape__track { animation: none; }
  .js .reveal-seq > *, .js .reveal-media, .js .reveal-card { transform: none !important; filter: none !important; }
  .js .is-in .reveal-seq > *, .js .is-in .reveal-media, .js .is-in .reveal-card { transition: opacity .3s ease !important; }
  .menu-sheet { transform: none; filter: none; transition: opacity .2s ease, visibility 0s .2s; }
  .menu-open .menu-sheet { transition: opacity .2s ease; }
  .order-card__swap { transition: opacity .2s ease; }
  .order-card__swap.is-out { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-bx::before, .menu-sheet, .order-card { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .order-card, .menu-sheet { background: #fff; border: 2px solid var(--navy); }
  .muted, .lead-copy, .order-card__text { color: var(--navy); }
}

/* ==========================================================================
   SECCIONES DEL SITIO
   ========================================================================== */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy .muted, .section--navy .lead-copy { color: var(--on-navy-2); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head .h2 { max-width: 16ch; }
.sec-head .lead-copy { max-width: 42ch; justify-self: end; margin: 0; }
@media (max-width: 991.98px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .lead-copy { justify-self: start; }
}
.icon { width: 26px; height: 26px; flex: none; }

/* --------------------------------------------------------------------------
   Servicios — mosaico con jerarquía (la foto manda, el texto acompaña)
   -------------------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.svc {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.4rem, 2.4vw, 2rem); min-height: 300px;
  background: var(--paper); color: var(--navy);
}
.svc h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.1; letter-spacing: -.015em; margin-bottom: .6rem; }
.svc p { margin: 0; font-size: 1rem; line-height: 1.5; max-width: 40ch; }
.svc .icon { margin-bottom: auto; }
.svc--photo { color: var(--white); min-height: 440px; }
.svc--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(40,55,68,.94) 0%, rgba(40,55,68,.6) 38%, rgba(40,55,68,0) 68%);
}
.svc--photo > *:not(img) { position: relative; z-index: 1; }
.svc--photo p { color: #E4E8EC; }
.svc--photo:hover img { transform: scale(1.03); }
.svc--navy { background: var(--navy); color: var(--white); }
.svc--navy p { color: var(--on-navy-2); }
.svc--navy .icon { color: var(--yellow); width: 44px; height: 44px; }
.svc--yellow { background: var(--yellow); }
.svc--yellow .big { font-weight: 800; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: .95; letter-spacing: -.03em; margin-bottom: 1rem; }
.svc--almacen { grid-column: span 7; }
.svc--logistica { grid-column: span 5; }
.svc--estrategia { grid-column: span 5; min-height: 360px; }
.svc--ventas { grid-column: span 4; min-height: 360px; }
.svc--pago { grid-column: span 3; min-height: 360px; }
.svc--logistica img { object-position: 38% 50%; }
.svc--estrategia img { object-position: 50% 30%; }
@media (max-width: 1199.98px) {
  .svc--estrategia { grid-column: span 12; }
  .svc--ventas { grid-column: span 7; min-height: 300px; }
  .svc--pago { grid-column: span 5; min-height: 300px; }
}
@media (max-width: 767.98px) {
  .services > * { grid-column: span 12 !important; }
  .svc--photo { min-height: 380px; }
  .svc--ventas, .svc--pago { min-height: 0; }
  .svc--ventas .icon, .svc--pago .big { margin-bottom: 1.25rem; }
}

/* --------------------------------------------------------------------------
   Cómo funciona — pasos (secuencia real) + visual que responde al toque
   -------------------------------------------------------------------------- */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.how__intro .h2 { max-width: 13ch; }
.how__intro .lead-copy { margin: 1.25rem 0 2.25rem; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step { border-bottom: 1px solid var(--line); }
.step__btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: .5rem;
  padding: 1.35rem 0; -webkit-tap-highlight-color: transparent;
}
.step__num {
  width: 2.25rem; height: 2.25rem; border-radius: 999px; display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; color: var(--ink-2); border: 1.5px solid var(--line);
  transition: background-color .3s var(--ease-out), color .3s, border-color .3s;
}
.step__title { font-weight: 800; font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.012em; line-height: 1.2; color: var(--ink-2); transition: color .3s; }
.step__chev { width: 22px; height: 22px; color: var(--ink-2); transition: transform .45s var(--ease-out); }
.step__btn:hover .step__title { color: var(--navy); }
.step__body {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out);
}
.step__body > div { overflow: hidden; }
.step__body p { margin: 0 0 1.4rem 3.5rem; color: var(--ink-2); max-width: 44ch; }
.step.is-active .step__num { background: var(--navy); border-color: var(--navy); color: var(--yellow); }
.step.is-active .step__title { color: var(--navy); }
.step.is-active .step__chev { transform: rotate(180deg); color: var(--navy); }
.step.is-active .step__body { grid-template-rows: 1fr; }
.step__btn:active .step__num { transform: scale(.94); }
.step__btn:focus-visible { outline-offset: 2px; }

.how__visual { position: sticky; top: calc(var(--nav-h) + 24px); }
.stage {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper); box-shadow: 0 40px 80px -45px rgba(40,55,68,.6);
}
.stage__frame {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.04);
  transition: opacity .55s var(--ease-out), transform 1s var(--ease-out);
}
.stage__frame.is-active { opacity: 1; transform: none; }
.stage__frame img { width: 100%; height: 100%; object-fit: cover; }
.stage__note {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1rem; border-radius: 18px;
  background: rgba(255,255,255,.92); color: var(--navy);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 20px 40px -20px rgba(40,55,68,.55);
  transform: translateY(14px); opacity: 0;
  transition: opacity .45s var(--ease-out) .25s, transform .8s var(--ease-out) .25s;
}
.stage__frame.is-active .stage__note { transform: none; opacity: 1; }
.stage__note strong { display: block; font-size: 1rem; line-height: 1.2; }
.stage__note span { font-size: .88rem; color: var(--ink-2); line-height: 1.35; }
.stage__note .order-card__icon { width: 42px; height: 42px; border-radius: 12px; }
@media (max-width: 991.98px) {
  .how { grid-template-columns: 1fr; }
  .how__visual { position: relative; top: auto; order: -1; }
  .how__intro { display: contents; }
  .how__intro-copy { order: -2; }
  .stage { aspect-ratio: 4 / 3.4; }
}

/* --------------------------------------------------------------------------
   Por qué BoxyGo! — división del trabajo
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; }
.split__card { border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.75rem); }
.split__card--you { background: var(--white); border: 1px solid var(--line); }
.split__card--us { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.split__card--us .split__mark { position: absolute; right: -60px; bottom: -70px; width: 300px; height: 300px; color: rgba(255,255,255,.05); }
.split__who { display: flex; align-items: center; gap: .75rem; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; margin-bottom: 1.5rem; }
.split__who img { height: 30px; width: auto; }
.split__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; position: relative; }
.split__card--us .split__list { grid-template-columns: 1fr 1fr; gap: .85rem 2rem; }
.split__list li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.4; }
.split__list li svg { width: 20px; height: 20px; flex: none; margin-top: .12rem; }
.split__card--you li svg { color: var(--navy); }
.split__card--us li svg { color: var(--yellow); }
.split__foot { margin: 1.75rem 0 0; font-size: .95rem; color: var(--ink-2); }
.split__card--us .split__foot { color: var(--on-navy-2); }
@media (max-width: 991.98px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .split__card--us .split__list { grid-template-columns: 1fr; } }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.benefit { border-top: 2px solid var(--navy); padding-top: 1.25rem; }
.benefit h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.01em; margin-bottom: .5rem; }
.benefit p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 991.98px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .benefits { grid-template-columns: 1fr; gap: 1.5rem; } }

/* --------------------------------------------------------------------------
   Testimonios — deslizables en móvil (scroll-snap nativo = momentum real)
   -------------------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: clamp(1.6rem, 2.6vw, 2.25rem); border-radius: var(--radius-md);
  background: var(--paper); margin: 0;
}
.quote blockquote { margin: 0; font-weight: 800; font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.3; letter-spacing: -.012em; }
.quote figcaption { display: flex; align-items: center; gap: .85rem; font-size: .95rem; line-height: 1.3; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--ink-2); }
.avatar { width: 46px; height: 46px; border-radius: 999px; flex: none; display: grid; place-items: center; background: var(--yellow); color: var(--navy); font-weight: 800; }
.quotes-dots { display: none; justify-content: center; gap: 8px; margin-top: 1.25rem; }
.quotes-dots button { all: unset; cursor: pointer; width: 8px; height: 8px; border-radius: 8px; background: rgba(40,55,68,.2); transition: width .4s var(--ease-out), background-color .3s; }
.quotes-dots button.is-active { width: 24px; background: var(--navy); }
@media (max-width: 991.98px) {
  .quotes {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 calc(var(--bs-gutter-x) * -.5); padding: 0 calc(var(--bs-gutter-x) * .5);
    scroll-padding: 0 calc(var(--bs-gutter-x) * .5); scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 86%; scroll-snap-align: start; }
  .quotes-dots { display: flex; }
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact__copy .h2 { max-width: 12ch; }
.contact__copy .lead-copy { margin: 1.25rem 0 2.25rem; }
.direct { list-style: none; margin: 0 0 2.25rem; padding: 0; display: grid; gap: 1rem; }
.direct li { display: flex; gap: .9rem; align-items: center; }
.direct .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-2); color: var(--yellow); flex: none; }
.direct .ico svg { width: 22px; height: 22px; }
.direct small { display: block; color: var(--on-navy-2); font-size: .85rem; }
.direct a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.direct a:hover { border-color: var(--yellow); }
.contact__photo { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; background: #CFCCC6; }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
@media (max-width: 991.98px) {
  .contact { grid-template-columns: 1fr; }
  .contact__photo { aspect-ratio: 16 / 11; }
}

.form-card {
  background: var(--white); color: var(--navy); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.55);
}
.form-card h3 { font-size: 1.5rem; letter-spacing: -.015em; margin-bottom: .35rem; }
.form-card > p { color: var(--ink-2); margin: 0 0 1.75rem; font-size: .98rem; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1rem; }
.fgrid .full { grid-column: 1 / -1; }
@media (max-width: 575.98px) { .fgrid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-size: .9rem; font-weight: 800; margin-bottom: .45rem; float: none; padding: 0; }
.field label .opt { font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  font: 500 1rem/1.4 var(--font); color: var(--navy);
  background: var(--paper); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8894A0; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--navy); box-shadow: 0 0 0 4px rgba(252,200,105,.55); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #B3261E; background: #FFF6F5; }
.field .err { display: none; margin-top: .4rem; font-size: .85rem; color: #B3261E; }
.field.is-invalid .err { display: block; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.field .chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 1rem; border-radius: 999px;
  border: 1.5px solid var(--line); font-size: .95rem; cursor: pointer; user-select: none;
  transition: background-color .2s, border-color .2s, color .2s, transform .1s var(--ease-out);
}
.chip span:hover { border-color: var(--navy); }
.chip span:active { transform: scale(.96); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.form-foot small { color: var(--ink-2); font-size: .85rem; max-width: 34ch; line-height: 1.4; }
.btn-bx[disabled] { opacity: .6; pointer-events: none; }
.form-status { display: none; margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); font-size: .95rem; }
.form-status.is-ok { display: block; background: #EAF5EE; color: #1E5B34; }
.form-status.is-error { display: block; background: #FFF1F0; color: #8C1D18; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--navy); color: var(--white); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; border-top: 1px solid rgba(255,255,255,.1); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer__brand img { height: 36px; width: auto; margin-bottom: 1.1rem; }
.footer__brand p { color: var(--on-navy-2); max-width: 34ch; margin: 0; font-size: .98rem; }
.footer h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 1rem; color: var(--white); }
.footer ul { color: var(--on-navy-2); list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer a { color: var(--on-navy-2); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__legal a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(252,200,105,.7); }
.footer__legal a:hover { text-decoration-color: var(--yellow); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: var(--on-navy-2); }
@media (max-width: 767.98px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  .stage__frame { transform: none; transition: opacity .25s ease; }
  .stage__note { transform: none; transition: opacity .25s ease; }
  .step__body { transition: none; }
  .svc--photo img { transition: none; }
  .svc--photo:hover img { transform: none; }
}
.footer a { overflow-wrap: anywhere; }
