/* ═══════════════════════════════════════════════════════════════════
   RAPILOG · 2026 Home
   Design system + 17 secciones
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────── 0 · TOKENS ─────────────────────────── */
:root{
  /* Color */
  --navy:        #242468;
  --navy-diag:   #2f2f6f;
  --navy-soft:   #494970;
  --violet:      #8787b6;
  --text:        #6b6b8a;
  --nav:         #4a5565;
  --border:      #dddde8;
  --surface:     #f5f6fa;
  --white:       #ffffff;
  --yellow:      #fdc616;
  --cyan:        #00a3cf;
  --logo-slot:   #d9d9d9;

  /* Tipografía */
  --font: 'Rubik', system-ui, -apple-system, sans-serif;

  --fs-display:    60px;
  --fs-h2:         45px;
  --fs-h3:         35px;
  --fs-stat:       68px;
  --fs-hour:       50px;
  --fs-dropoff:    26px;
  --fs-card-title: 20px;
  --fs-faq:        16px;
  --fs-body:       15px;
  --fs-small:      13px;
  --fs-nav:        14px;
  --fs-eyebrow:    11px;

  /* Radios */
  --r-sm:   8px;
  --r:     10px;
  --r-lg:  15px;
  --r-pill: 999px;

  /* Layout */
  --container: 1250px;
  --gutter:    24px;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ─────────────────────────── 1 · RESET ─────────────────────────── */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:80px; }
body{
  margin:0;
  font-family:var(--font);
  font-size:var(--fs-body);
  color:var(--text);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{ display:block; max-width:100%; }
picture{ display:contents; }
h1,h2,h3,p,ul{ margin:0; }
ul{ list-style:none; padding:0; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; }

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

/* ─────────────────── 2 · TIPOGRAFÍA COMPARTIDA ─────────────────── */
.h2{
  font-size:var(--fs-h2);
  font-weight:800;
  line-height:1.18;
  letter-spacing:-.01em;
  color:var(--navy);
}
.h2--light{ color:var(--white); }

.h3{
  font-size:var(--fs-h3);
  font-weight:800;
  line-height:1.2;
  letter-spacing:.02em;
  color:var(--navy);
}
.h3--light{ color:var(--white); }

.lead{
  font-size:var(--fs-body);
  line-height:1.45;
  letter-spacing:.02em;
  color:var(--text);
}
.lead--light{ color:var(--white); }
.lead b{ font-weight:700; }
.lead a{ text-decoration:underline; }

/* Eyebrow — la firma tipográfica del sitio (12 usos) */
.eyebrow{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:var(--fs-eyebrow);
  font-weight:800;
  letter-spacing:.17em;
  text-transform:uppercase;
  line-height:1;
  margin-bottom:14px;
}
.eyebrow__line{
  width:18px;
  height:2px;
  background:currentColor;
  flex:none;
}
.eyebrow--cyan{ color:var(--cyan); }
.eyebrow--yellow{ color:var(--yellow); }

.section-head{ margin-bottom:48px; }
.section-head .lead{ margin-top:18px; max-width:860px; }
.section-head--center{ text-align:center; }
.section-head--center .eyebrow{ justify-content:center; }
.section-head--center .lead{ margin-inline:auto; }

/* ─────────────────────────── 3 · BOTONES ─────────────────────────── */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:50px;
  padding-inline:26px;
  border-radius:var(--r);
  border:2px solid transparent;
  font-size:var(--fs-body);
  font-weight:700;
  letter-spacing:.04em;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .2s var(--ease), background-color .2s ease, color .2s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn:focus-visible{ outline:3px solid var(--cyan); outline-offset:3px; }

.btn--yellow{ background:var(--yellow); color:var(--navy); }
.btn--yellow:hover{ background:#eab410; }

.btn--cyan{ background:var(--cyan); color:var(--white); }
.btn--cyan:hover{ background:#008cb3; }

.btn--outline{ background:transparent; color:var(--navy); border-color:var(--navy); }
.btn--outline:hover{ background:var(--navy); color:var(--white); }

.btn--sm{ height:36px; padding-inline:18px; font-size:var(--fs-nav); font-weight:500; letter-spacing:0; }
.btn--block{ width:100%; }

/* ─────────────────────────── 4 · CARDS ─────────────────────────── */
.card{
  background:var(--surface);
  border:2px solid var(--border);
  border-radius:var(--r);
  transition:border-color .25s ease, transform .3s var(--ease), box-shadow .3s var(--ease);
}
/* El Figma no tiene sombras. Esta existe solo en hover: es feedback de
   movimiento, no decoración. Tinte navy para que no se vea gris sucia. */
.card:hover,
.faq__item:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 40px -24px rgba(36,36,104,.55);
}
.card--navy:hover{ box-shadow:0 20px 44px -24px rgba(0,0,0,.65); }
.faq__item{ transition:border-color .25s ease, transform .3s var(--ease), box-shadow .3s var(--ease); }
.card--white{ background:var(--white); }
.card--navy{ background:var(--navy); border-color:var(--violet); }

.card__title{
  font-size:var(--fs-card-title);
  font-weight:800;
  letter-spacing:.02em;
  line-height:1.25;
  color:var(--navy);
}
.card__title--light{ color:var(--white); }

.card__text{
  font-size:var(--fs-small);
  line-height:1.45;
  letter-spacing:.03em;
  color:var(--text);
}
.card__text--violet{ color:var(--violet); }
.card__text b{ font-weight:700; }

/* Grillas */
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:42px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:42px 28px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }

/* Pills (badges de servicio) */
.pill{
  display:inline-flex;
  align-items:center;
  height:26px;
  padding-inline:12px;
  border-radius:var(--r-pill);
  font-size:var(--fs-eyebrow);
  font-weight:800;
  letter-spacing:.17em;
  text-transform:uppercase;
  color:var(--white);
}
.pill--cyan{ background:var(--cyan); }
.pill--yellow{ background:var(--yellow); color:var(--navy); } /* ← contraste corregido */

/* Listas con flecha */
.arrow-list{ display:flex; flex-direction:column; gap:6px; }
.arrow-list li{
  display:flex;
  gap:7px;
  font-size:var(--fs-small);
  letter-spacing:.03em;
  color:var(--navy);
  line-height:1.35;
}
.arrow-list span{ color:var(--cyan); font-weight:700; flex:none; }
.arrow-list--light li{ color:var(--white); font-size:var(--fs-body); }
.arrow-list--light{ gap:16px; }
.arrow-list--light span{ color:var(--yellow); }

/* ──────────────── 5 · DIMENSIONES DE IMAGEN ────────────────
   Los assets vienen ajustados al contenido, así que alcanza con darles
   la caja y dejar que `contain` haga el resto. (Acá vivía un bloque de
   recortes que compensaba a mano el zoom que traían desde Figma.)      */
.feature__icon img,
.row-card__icon img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.tiendas-flex__media img{ width:287px; height:auto; }
.soporte__media img{ width:463px; height:auto; }

#dropoff .solucion__media img{ width:181px; height:auto; }
#envios-nacionales .solucion__media img{ width:254px; height:auto; }

/* ─────────────── 6 · DIAGONALES Y GLOWS DECORATIVOS ─────────────── */
.diag{
  position:absolute;
  background-repeat:no-repeat;
  background-size:100% 100%;
  pointer-events:none;
  z-index:0;
}
.diag--horarios{
  inset:0;
  background-image:url("https://www.figma.com/api/mcp/asset/6c1ec147-04a4-41bc-8daa-22b98a6a51e8");
}
/* SVG inline (no background) para poder dibujar el trazo.
   pathLength="1" → el dash es 1 y el offset va de 1 a 0. */
.diag--soporte{
  left:calc(50% - 960px);
  top:116px;
  width:1920px;
  height:596px;
  overflow:visible;
  background:none;
}
.diag--empeza{
  left:calc(50% - 960px);
  top:50px;
  width:1920px;
  height:1066px;
  overflow:visible;
  background:none;
}
.diag__path{
  stroke-dasharray:1;
  stroke-dashoffset:1;
}
.diag.is-drawn .diag__path{
  animation:draw-diag var(--draw, 1.9s) cubic-bezier(.65,0,.35,1) forwards;
}
.diag--empeza{ --draw:2.4s; }   /* 9 tramos: necesita más aire */
@keyframes draw-diag{
  to{ stroke-dashoffset:0; }
}
.diag--repartidores{
  inset:0;
  background-image:url("https://www.figma.com/api/mcp/asset/9461750e-979b-401f-b245-b6c6ebd4fea7");
}

.glow{
  position:absolute;
  width:716px; height:716px;
  border-radius:50%;
  pointer-events:none;
  z-index:0;
}
.glow--cyan{
  right:-16px; top:58px;
  background:radial-gradient(circle, rgba(0,163,207,.55) 0%, rgba(0,163,207,0) 70%);
}
.glow--yellow{
  left:-180px; bottom:-360px;
  background:radial-gradient(circle, rgba(253,198,22,.30) 0%, rgba(253,198,22,0) 70%);
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 1 · TOP BAR
   ═══════════════════════════════════════════════════════════════════ */
.s-topbar{
  position:fixed;
  inset:0 0 auto 0;
  height:56px;
  background:var(--white);
  z-index:100;
  transition:transform .3s var(--ease), box-shadow .3s ease;
}
.s-topbar.is-hidden{ transform:translateY(-100%); }
.s-topbar.is-stuck{ box-shadow:0 1px 0 var(--border); }

.topbar__inner{
  max-width:1895px;
  height:100%;
  margin-inline:auto;
  padding-inline:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.topbar__nav{ display:flex; gap:44px; }
.topbar__nav a{
  font-size:var(--fs-nav);
  font-weight:500;
  line-height:20px;
  color:var(--nav);
  transition:color .2s ease;
}
.topbar__nav a:hover{ color:var(--navy); }

.topbar__actions{ display:flex; align-items:center; gap:25px; }
.topbar__link{
  font-size:var(--fs-nav);
  font-weight:500;
  color:var(--navy);
}
.topbar__link:hover{ text-decoration:underline; }

.topbar__burger{
  display:none;
  width:40px; height:40px;
  background:none; border:0;
  flex-direction:column; justify-content:center; gap:5px;
  cursor:pointer;
}
.topbar__burger span{
  display:block; height:2px; width:22px;
  background:var(--navy); border-radius:2px;
  transition:transform .25s var(--ease), opacity .2s ease;
}
.topbar__burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.topbar__burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.topbar__burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 2 · HERO
   ═══════════════════════════════════════════════════════════════════ */
.s-hero{ padding:161px 0 109px; background:var(--white); }
.hero__grid{
  display:grid;
  grid-template-columns:minmax(0,560px) minmax(0,738px);
  gap:60px;
  align-items:center;
}
.hero__title{
  font-size:var(--fs-display);
  font-weight:900;
  line-height:1.2;
  letter-spacing:-.02em;
  color:var(--navy);
}
.hero__lead{
  margin-top:16px;
  max-width:517px;
  font-size:var(--fs-body);
  line-height:1.45;
  letter-spacing:.02em;
}
.hero__cta{ display:flex; gap:21px; margin-top:32px; }
/* El tablero "respira": flota en loop lento. Y sigue al mouse con un
   parallax leve (lo calcula el JS en --px / --py). Dos capas separadas
   para que la flotación y el parallax no se pisen el transform. */
.hero__media{
  perspective:1200px;
  animation:hero-float 6s ease-in-out infinite;
}
.hero__media img{
  width:100%;
  height:auto;
  border-radius:var(--r);
  transform:
    rotateY(calc(var(--px, 0) * 5deg))
    rotateX(calc(var(--py, 0) * -4deg))
    translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 10px), 0);
  transition:transform .5s var(--ease);
  will-change:transform;
}
@keyframes hero-float{
  0%, 100%{ transform:translateY(0); }
  50%     { transform:translateY(-12px); }
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 3 · SOCIAL PROOF (carrusel)
   ═══════════════════════════════════════════════════════════════════ */
.s-social-proof{
  background:var(--navy);
  padding:42px 0 72px;
  overflow:hidden;
}
.social-proof__title{
  text-align:center;
  font-size:20px;
  font-weight:800;
  letter-spacing:.17em;
  text-transform:uppercase;
  color:var(--white);
  margin-bottom:37px;
}
.marquee{
  position:relative;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.marquee__track{
  display:flex;
  gap:49px;
  width:max-content;
  animation:marquee 40s linear infinite;
}
.marquee:hover .marquee__track{ animation-play-state:paused; }
@keyframes marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(calc(-50% - 24.5px)); }
}
.brand{
  width:167px;
  height:50px;
  flex:none;
  display:grid;
  place-items:center;
}
/* Blanco monocromo: apago el color y lo invierto. Requiere que el logo
   tenga fondo transparente — si alguno viene con fondo sólido, se va a
   ver como un bloque blanco y hay que corregir el asset. */
.brand img{
  max-height:32px;
  max-width:100%;
  width:auto;
  object-fit:contain;
  filter:brightness(0) invert(1);
  opacity:.9;
  transition:opacity .25s ease;
}
.brand:hover img{ opacity:1; }

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 4 · TIENDAS NUEVAS EN FLEX
   ═══════════════════════════════════════════════════════════════════ */
.s-tiendas-flex{ background:var(--surface); padding:54px 0; }
.tiendas-flex__grid{
  display:grid;
  grid-template-columns:398px 1fr;
  gap:99px;
  align-items:center;
}
.tiendas-flex__media{ display:flex; justify-content:center; }
.tiendas-flex__copy .lead{ margin-block:16px 20px; max-width:620px; }

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 5 · POR QUÉ RAPILOG
   ═══════════════════════════════════════════════════════════════════ */
.s-por-que{ background:var(--white); padding:70px 0 130px; }
.s-por-que .section-head{ margin-bottom:65px; }

.feature{ padding:28px 30px; min-height:192px; }
.feature:hover{ border-color:var(--violet); }
.feature__icon{
  width:54px; height:54px;
  background:var(--white);
  border-radius:var(--r);
  display:grid; place-items:center;
  margin-bottom:35px;
}
/* Mismo gesto que en ¿Calificás?: la imagen levanta y crece con la card. */
.feature__icon img{ transition:transform .5s var(--ease); }
.feature:hover .feature__icon img{ transform:translateY(-4px) scale(1.12); }
.feature .card__title{ margin-bottom:14px; }

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 6 · HORARIOS DE CORTE · reloj scroll-driven
   El wrapper mide 280vh; adentro un sticky de 100vh sostiene la escena.
   Ojo: NO poner overflow:hidden acá arriba — mata el position:sticky.
   ═══════════════════════════════════════════════════════════════════ */
.s-horarios{ position:relative; background:var(--navy); }

.horarios__scroll{ height:280vh; }

.horarios__sticky{
  position:sticky;
  top:0;
  height:100vh;
  min-height:640px;
  display:grid;
  align-items:center;
  overflow:hidden;
}
.horarios__stage{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) 420px;
  gap:80px;
  align-items:center;
}

/* ── Columna de texto ── */
.horarios__copy .h2{ margin-bottom:44px; }

.colectas{ position:relative; min-height:180px; }
.colecta{
  position:absolute;
  inset:0;
  opacity:0;
  transform:translateY(14px);
  transition:opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events:none;
  /* en desktop no son cajas: la caja es el reloj */
  background:none;
  border:0;
  border-radius:0;
  padding:0;
}
.colecta.is-active{ opacity:1; transform:none; pointer-events:auto; }
.colecta:hover{ transform:none; box-shadow:none; }

.colecta__hour{
  font-size:var(--fs-hour);
  font-weight:800;
  letter-spacing:.02em;
  color:var(--yellow);
  line-height:1.1;
  margin-bottom:6px;
}
.colecta .card__title{ margin-bottom:12px; }
.colecta .card__text{ max-width:460px; }

.horarios__note{
  margin-top:52px;
  font-size:var(--fs-body);
  line-height:1.32;
  letter-spacing:.02em;
  color:var(--violet);
  max-width:640px;
}
.horarios__note b{ font-weight:700; }

/* ── El reloj ── */
.horarios__clock{ justify-self:center; }
.clock{ width:420px; height:420px; overflow:visible; }

.clock__labels text{
  font-family:var(--font);
  font-size:19px;
  font-weight:800;
  letter-spacing:.02em;
  fill:var(--violet);
  transition:fill .35s ease;
}
.clock__labels text.is-on{ fill:var(--white); }

.clock .tick{ stroke:#8787b6; opacity:.22; }
.clock .tick--major{ stroke:#8787b6; opacity:.5; }

.mark{
  fill:var(--navy);
  stroke:#8787b6;
  stroke-width:3;
  transition:fill .35s ease, stroke .35s ease, r .35s var(--ease);
}
.mark.is-on{ fill:var(--yellow); stroke:var(--yellow); r:11; }

#hand-hour,
#hand-minute{ transition:none; }

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 7 · SERVICIOS · FLEX Y TURBO
   ═══════════════════════════════════════════════════════════════════ */
.s-servicios{ background:var(--surface); padding:87px 0 142px; }
.s-servicios .section-head{ margin-bottom:39px; }

.servicio{ padding:30px 34px 34px; min-height:336px; }
.servicio .card__title{ margin-block:24px 14px; }
.servicio__desc{
  font-size:var(--fs-small);
  line-height:1.45;
  letter-spacing:.03em;
  color:var(--violet);
  margin-bottom:14px;
}

/* ── Las rutas ──────────────────────────────────────────────────────────
   Flex serpentea y para tres veces. Turbo va derecho y no para.
   Los dos ciclos duran lo mismo (4s), así que Turbo llega y ESPERA:
   ahí está el argumento. La velocidad se ve, no se lee.                 */
.route{
  display:block;
  width:100%;
  height:64px;
  margin-bottom:22px;
  overflow:visible;
}

.route__base{
  stroke:var(--border);
  stroke-width:2;
  stroke-linecap:round;
  stroke-dasharray:2 6;      /* la ruta "por recorrer" es punteada */
}
.route__trail{
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-dasharray:1;
  stroke-dashoffset:1;       /* lo maneja el JS */
}
.route__stop{
  fill:var(--white);
  stroke:var(--border);
  stroke-width:2;
  transition:stroke .3s ease, fill .3s ease;
}
.route__stop.is-passed{ stroke:var(--cyan); fill:var(--cyan); }

.route__origin{ fill:var(--navy); }
.route__dest{
  fill:var(--white);
  stroke:var(--border);
  stroke-width:2.5;
  transition:stroke .25s ease, fill .25s ease;
}
.route__ping{
  fill:none;
  stroke-width:2;
  opacity:0;
  transform-box:fill-box;
  transform-origin:center;
}
.route__halo{ opacity:.18; }

/* Colores por servicio */
.route--flex  .route__trail,
.route--flex  .route__ping  { stroke:var(--cyan); }
.route--flex  .route__dot,
.route--flex  .route__halo  { fill:var(--cyan); }
.route--flex.is-arrived  .route__dest{ fill:var(--cyan);  stroke:var(--cyan); }

.route--turbo .route__trail,
.route--turbo .route__ping { stroke:var(--yellow); }
.route--turbo .route__dot,
.route--turbo .route__halo { fill:var(--yellow); }
.route--turbo .route__stop.is-passed{ stroke:var(--yellow); fill:var(--yellow); }
.route--turbo.is-arrived .route__dest{ fill:var(--yellow); stroke:var(--yellow); }

/* Al llegar, el destino tira un anillo */
.route.is-arrived .route__ping{ animation:route-ping .7s var(--ease); }
@keyframes route-ping{
  from{ opacity:.8; transform:scale(1); }
  to  { opacity:0;  transform:scale(2.6); }
}

/* En hover la card, la ruta se resalta */
.servicio:hover .route__base{ stroke:var(--violet); }

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 8 · SOPORTE A CLIENTE FINAL
   ═══════════════════════════════════════════════════════════════════ */
.s-soporte{
  position:relative;
  background:var(--white);
  padding:65px 0 41px;
  overflow:hidden;
}
.s-soporte .container{ position:relative; z-index:1; }
.soporte__grid{
  display:grid;
  grid-template-columns:minmax(0,733px) 463px;
  gap:70px;
  align-items:start;
}
.soporte__copy .section-head{ margin-bottom:88px; }
.soporte__rows{ display:flex; flex-direction:column; gap:20px; }

.row-card{
  display:flex;
  align-items:center;
  gap:29px;
  padding:19px 22px;
  border-radius:var(--r-lg);
  min-height:92px;
}
.row-card:hover{ border-color:var(--violet); }
.row-card__icon{
  width:54px; height:54px;
  flex:none;
  display:grid; place-items:center;
}
.row-card__icon img{ transition:transform .5s var(--ease); }
.row-card:hover .row-card__icon img{ transform:translateY(-4px) scale(1.12); }
.row-card__title{
  font-size:var(--fs-faq);
  font-weight:800;
  letter-spacing:.01em;
  color:var(--navy);
  margin-bottom:6px;
}
.soporte__media{ align-self:end; }

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 9 · RAPILOG EN NÚMEROS
   ═══════════════════════════════════════════════════════════════════ */
.s-numeros{ background:var(--surface); padding:86px 0 102px; }
.s-numeros .section-head{ margin-bottom:44px; }

.stat{
  position:relative;
  overflow:hidden;
  padding:28px 0 0 38px;
  min-height:213px;
}
.stat__bg{
  position:absolute;
  right:2px; bottom:2px;
  width:190px; height:190px;
  opacity:.25;
  border-radius:var(--r-sm);
  overflow:hidden;
  z-index:0;
}
.stat__bg img{ width:100%; height:100%; object-fit:contain; }
.stat__num,
.stat__label{ position:relative; z-index:1; }
.stat__num{
  font-size:var(--fs-stat);
  font-weight:900;
  line-height:1.15;
  color:var(--navy);
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum";
}
.stat__num span{ color:var(--yellow); }
.stat__label{
  font-size:var(--fs-card-title);
  font-weight:700;
  color:var(--navy);
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 10 · INTEGRACIONES · convergencia scroll-driven
   Truco clave: NO se anima la opacidad de la card (eso apagaría también
   al logo, que es su hijo). Se anima el alpha del fondo y del borde con
   la variable --box, así el logo queda visible desde el primer frame.
   ═══════════════════════════════════════════════════════════════════ */
.s-integraciones{ position:relative; background:var(--white); }

.integraciones__scroll{ height:230vh; }

.integraciones__sticky{
  position:sticky;
  top:0;
  height:100vh;
  min-height:640px;
  display:grid;
  align-items:center;
  overflow:hidden;
}
.integraciones__stage{ position:relative; }
.integraciones__stage .section-head{ position:relative; z-index:2; margin-bottom:64px; }

.integraciones__lead{
  opacity:var(--lead, 1);
  transition:opacity .4s ease;
}

.integraciones__grid{ position:relative; z-index:1; }

.integracion{
  position:relative;
  height:90px;
  display:grid;
  place-items:center;
  padding:12px;
  /* el alpha lo maneja --box (0 = invisible, 1 = card completa) */
  background-color:rgb(245 246 250 / var(--box, 1));
  border-color:rgb(221 221 232 / var(--box, 1));
  transition:background-color .35s ease, border-color .25s ease,
             transform .3s var(--ease), box-shadow .3s var(--ease);
}
/* Sin hover a propósito: al iluminar el borde, el recuadro se delataba
   antes de que el scroll lo revelara y arruinaba la convergencia. */
.integracion:hover{
  transform:none;
  box-shadow:none;
  border-color:rgb(221 221 232 / var(--box, 1));
}

.integracion img{
  width:auto;
  max-width:88%;
  object-fit:contain;
  transform-origin:center;
  will-change:transform;
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 11 · ESTE SERVICIO ES PARA VOS SI…
   ═══════════════════════════════════════════════════════════════════ */
.s-calificas{ background:var(--surface); padding:110px 0 110px; }
.s-calificas .section-head{ margin-bottom:56px; }

.califica{
  padding:40px 36px 36px;
  min-height:340px;
  display:flex;
  flex-direction:column;
}
.califica:hover{ border-color:var(--violet); }
.califica:hover .califica__icon img{ transform:translateY(calc(var(--float, 0px) - 8px)) scale(1.05); }

.califica__icon{
  width:128px; height:128px;
  margin-bottom:36px;
  display:grid; place-items:center;
}
.califica__icon img{
  width:100%; height:100%;
  object-fit:contain;
  transform:translateY(var(--float, 0px));
  transition:transform .5s var(--ease);
  will-change:transform;
}
.califica .card__title{ margin-bottom:14px; }
.califica .card__text{ font-size:var(--fs-body); letter-spacing:.02em; }

/* Revelado escalonado por scroll */
.card[data-reveal],
[data-reveal]{
  opacity:0;
  transform:translateY(64px) scale(.94);
  transition:opacity .8s var(--ease), transform .8s var(--ease), border-color .25s ease;
  transition-delay:var(--d, 0ms);
  will-change:transform, opacity;
}
.card[data-reveal].is-in,
[data-reveal].is-in{ opacity:1; transform:none; }

/* ═══════════════════════════════════════════════════════════════════
   SECCIONES 12 y 13 · DROP OFF + ENVÍOS NACIONALES
   ═══════════════════════════════════════════════════════════════════ */
.s-soluciones{ background:var(--white); padding:86px 0 89px; }

.solucion{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:20px;
  padding:24px 38px 40px;
  min-height:366px;
}
.solucion:hover{ border-color:var(--violet); }
.solucion__media{ min-height:142px; display:flex; align-items:flex-end; }
.solucion__title{
  font-size:var(--fs-dropoff);
  font-weight:800;
  letter-spacing:.02em;
  line-height:1.25;
  color:var(--navy);
}
.solucion__title span{
  display:block;
  font-size:var(--fs-card-title);
  font-weight:700;
}
.solucion__title--single{ font-size:var(--fs-card-title); font-weight:700; }
.solucion .card__text{ max-width:516px; }
.solucion .btn{ margin-top:auto; }

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 14 · REPARTIDORES
   ═══════════════════════════════════════════════════════════════════ */
.s-repartidores{
  position:relative;
  background:var(--navy);
  padding:72px 0 89px;
  overflow:hidden;
}
.repartidores__inner{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 15 · FAQ
   ═══════════════════════════════════════════════════════════════════ */
.s-faq{ background:var(--white); padding:101px 0 159px; }
.s-faq .section-head{ margin-bottom:47px; }

.faq__cols{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; align-items:start; }
.faq__col{ display:flex; flex-direction:column; gap:15px; }

.faq__item{
  background:var(--surface);
  border:2px solid var(--border);
  border-radius:var(--r-lg);
  transition:border-color .25s ease;
}
.faq__item[open]{ border-color:var(--violet); }

.faq__item summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:65px;
  padding:14px 27px 14px 22px;
  cursor:pointer;
  list-style:none;
  font-size:var(--fs-faq);
  font-weight:700;
  letter-spacing:.02em;
  color:var(--navy);
}
.faq__item summary::-webkit-details-marker{ display:none; }
.faq__item summary i{
  position:relative;
  flex:none;
  width:30px; height:30px;
  border-radius:50%;
  background:var(--yellow);
  transition:transform .25s var(--ease);
}
.faq__item summary i::before,
.faq__item summary i::after{
  content:'';
  position:absolute;
  inset:50% 8px auto;
  height:2px;
  background:var(--navy);
  transform:translateY(-1px);
}
.faq__item summary i::after{ transform:translateY(-1px) rotate(90deg); }
.faq__item[open] summary i{ transform:rotate(45deg); }

.faq__answer{
  padding:0 27px 20px 22px;
  font-size:var(--fs-small);
  line-height:1.55;
  letter-spacing:.03em;
  color:var(--text);
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 16 · EMPEZÁ HOY (formulario)
   ═══════════════════════════════════════════════════════════════════ */
.s-empeza-hoy{
  position:relative;
  background:var(--navy);
  padding:99px 0 96px;
  overflow:hidden;
}
.s-empeza-hoy .container{ position:relative; z-index:1; }
.empeza__grid{
  display:grid;
  grid-template-columns:minmax(0,640px) 544px;
  gap:81px;
  align-items:start;
}
.empeza__copy .h2{ max-width:640px; }
.empeza__copy .lead{ margin-block:24px 40px; max-width:447px; }

.form{
  background:var(--white);
  border-radius:var(--r);
  padding:43px 40px;
}
.form__title{
  font-size:var(--fs-card-title);
  font-weight:800;
  letter-spacing:.02em;
  color:var(--navy);
}
.form__sub{
  margin-top:8px;
  font-size:var(--fs-small);
  letter-spacing:.03em;
  color:var(--text);
  margin-bottom:26px;
}
.field{ margin-bottom:14px; }
.field label{
  display:block;
  margin-bottom:8px;
  font-size:var(--fs-eyebrow);
  font-weight:800;
  letter-spacing:.17em;
  text-transform:uppercase;
  color:var(--navy);
}
.field input,
.field select{
  width:100%;
  height:50px;
  padding-inline:15px;
  background:var(--surface);
  border:2px solid var(--border);
  border-radius:var(--r);
  font-family:var(--font);
  font-size:var(--fs-small);
  letter-spacing:.03em;
  color:var(--navy);
  transition:border-color .2s ease;
}
.field input::placeholder{ color:var(--text); }
.field select:invalid{ color:var(--navy-soft); }
.field input:focus,
.field select:focus{ outline:none; border-color:var(--cyan); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"]{ border-color:#e0464b; }

.form .btn{ margin-top:12px; }
.form__status{
  margin-top:14px;
  font-size:var(--fs-small);
  text-align:center;
  min-height:18px;
}
.form__status.is-ok{ color:var(--cyan); font-weight:700; }
.form__status.is-error{ color:#e0464b; }

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN 17 · FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.s-footer{ background:var(--surface); padding:81px 0 40px; }
.footer__inner{ max-width:1336px; }
.footer__brand{ max-width:410px; }
.footer__desc{
  margin-top:24px;
  max-width:320px;
  font-size:var(--fs-nav);
  line-height:22.75px;
  color:var(--text);
}
.footer__social{ display:flex; gap:16px; margin-top:24px; }
.footer__social a{ color:var(--text); transition:color .2s ease; }
.footer__social a:hover{ color:var(--navy); }
.footer__social img{ width:22px; height:22px; object-fit:contain; }

.footer__bottom{
  margin-top:64px;
  padding-top:17px;
  border-top:.8px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.footer__bottom p{ font-size:var(--fs-nav); line-height:20px; color:var(--text); }
.footer__legal a{
  font-size:var(--fs-nav);
  line-height:20px;
  color:var(--text);
  transition:color .2s ease;
}
.footer__legal a:hover{ color:var(--navy); text-decoration:underline; }

/* ═══════════════════════════════════════════════════════════════════
   MOTION · fade-in-up
   ═══════════════════════════════════════════════════════════════════ */
[data-anim]{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay:var(--d, 0ms);
}
[data-anim].is-in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  [data-anim]{ opacity:1; transform:none; }
  [data-reveal]{ opacity:1; transform:none; }
  .hero__media{ animation:none !important; }
  .hero__media img{ transform:none !important; }
  .marquee__track{ animation:none !important; }
  .diag__path{ stroke-dashoffset:0; }
  .route__trail{ stroke-dashoffset:0; }
  .route__ping{ display:none; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* ── ≤1280 · el hero deja de ser rígido, se achican títulos ── */
@media (max-width:1280px){
  :root{
    --fs-display:56px;
    --fs-h2:38px;
    --fs-stat:58px;
  }
  .hero__grid{ grid-template-columns:1fr 1fr; gap:40px; }
  .soporte__grid{ grid-template-columns:1fr 380px; gap:40px; }
  .soporte__media img{ width:380px; }
  .tiendas-flex__grid{ gap:50px; }
  .empeza__grid{ grid-template-columns:1fr 500px; gap:50px; }
  .diag--soporte{ top:120px; }
  .horarios__stage{ grid-template-columns:minmax(0,1fr) 340px; gap:56px; }
  .clock{ width:340px; height:340px; }
}

/* ── ≤1024 · tablet: 2 columnas, la imagen del hero baja ── */
@media (max-width:1024px){
  :root{ --fs-h3:30px; }

  .s-hero{ padding:130px 0 80px; }
  .hero__grid{ grid-template-columns:1fr; gap:48px; }
  .hero__lead{ max-width:none; }
  .hero__media{ max-width:640px; }

  .tiendas-flex__grid{ grid-template-columns:1fr; gap:32px; }
  .tiendas-flex__media{ justify-content:flex-start; }

  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .grid-2{ grid-template-columns:1fr; gap:28px; }
  .grid-4{ grid-template-columns:repeat(3,1fr); }

  /* Integraciones: sin sticky ni dispersión. Grilla y listo. */
  .integraciones__scroll{ height:auto; }
  .integraciones__sticky{
    position:static;
    height:auto;
    min-height:0;
    padding:96px 0 104px;
    overflow:visible;
  }
  .integraciones__stage .section-head{ margin-bottom:48px; }
  .integracion{ --box:1 !important; }
  .integracion img{ transform:none !important; }

  /* Soporte: la imagen pasa a ser un acompañamiento, no una columna */
  .soporte__grid{ grid-template-columns:1fr; gap:48px; }
  .soporte__copy .section-head{ margin-bottom:40px; }
  .soporte__media{ display:flex; justify-content:center; }
  .diag--soporte{ display:none; }

  .servicio{ padding:34px; min-height:0; }

  /* Colectas: sin sticky. El reloj se retira y vuelven las 3 cards del Figma. */
  .horarios__scroll{ height:auto; }
  .horarios__sticky{
    position:static;
    height:auto;
    min-height:0;
    padding:88px 0 72px;
    overflow:hidden;
  }
  .horarios__stage{ grid-template-columns:1fr; gap:0; }
  .horarios__clock{ display:none; }
  .horarios__copy .h2{ margin-bottom:40px; }

  .colectas{
    position:static;
    min-height:0;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
  }
  .colecta{
    position:static;
    opacity:1;
    transform:none;
    pointer-events:auto;
    background:var(--navy);
    border:2px solid var(--violet);
    border-radius:var(--r);
    padding:30px;
  }
  .colecta .card__text{ max-width:none; }
  .horarios__note{ margin-top:56px; max-width:none; }

  .califica{ min-height:0; padding:32px 28px; }
  .califica__icon{ width:104px; height:104px; margin-bottom:28px; }

  .faq__cols{ grid-template-columns:1fr; gap:15px; }
  .faq__col{ gap:15px; }

  .empeza__grid{ grid-template-columns:1fr; gap:48px; }
  .empeza__copy .lead{ max-width:none; }
  .empeza__form-wrap{ max-width:544px; }

  .glow{ width:500px; height:500px; }

  /* Menú hamburguesa */
  .topbar__burger{ display:flex; }
  .topbar__actions{ display:none; }
  .topbar__nav{
    position:absolute;
    inset:56px 0 auto 0;
    flex-direction:column;
    gap:0;
    background:var(--white);
    border-top:1px solid var(--border);
    padding:8px 24px 20px;
    transform:translateY(-8px);
    opacity:0;
    visibility:hidden;
    transition:opacity .2s ease, transform .2s var(--ease), visibility .2s;
    box-shadow:0 16px 32px -20px rgba(36,36,104,.35);
  }
  .topbar__nav.is-open{ transform:none; opacity:1; visibility:visible; }
  .topbar__nav a{ padding:14px 0; border-bottom:1px solid var(--border); font-size:16px; }
  .topbar__nav a:last-child{ border-bottom:0; }
}

/* ── ≤768 · mobile: todo a una columna ── */
@media (max-width:768px){
  :root{
    --fs-display:38px;
    --fs-h2:28px;
    --fs-h3:24px;
    --fs-stat:48px;
    --fs-hour:38px;
    --fs-dropoff:22px;
    --gutter:20px;
  }

  .s-hero{ padding:110px 0 56px; }
  .s-social-proof{ padding:32px 0 48px; }
  .social-proof__title{ font-size:15px; margin-bottom:26px; }
  .s-tiendas-flex{ padding:48px 0; }
  .s-por-que{ padding:56px 0 64px; }
  .s-horarios{ padding:64px 0 56px; }
  .s-servicios{ padding:56px 0 64px; }
  .s-soporte{ padding:56px 0; }
  .s-numeros{ padding:56px 0 64px; }
  .s-integraciones{ padding:56px 0 64px; }
  .s-calificas{ padding:56px 0 64px; }
  .s-soluciones{ padding:56px 0; }
  .s-repartidores{ padding:48px 0; }
  .s-faq{ padding:56px 0 72px; }
  .s-empeza-hoy{ padding:56px 0 64px; }
  .s-footer{ padding:48px 0 32px; }

  .section-head{ margin-bottom:32px; }
  .s-por-que .section-head,
  .soporte__copy .section-head{ margin-bottom:32px; }

  /* Los <br> del Figma rompen el ritmo en pantallas chicas */
  .h2 br, .hero__title br, .h3 br{ display:none; }

  .grid-3,
  .grid-2{ grid-template-columns:1fr; gap:20px; }
  .grid-4{ grid-template-columns:repeat(2,1fr); gap:16px; }

  .hero__cta{ flex-direction:column; align-items:stretch; gap:12px; }
  .hero__cta .btn{ width:100%; }

  .soporte__media img{ width:100%; max-width:300px; }
  .tiendas-flex__media img{ width:100%; max-width:260px; }
  .stat__bg{ width:140px; height:140px; }

  .feature,
  .colecta,
  .califica,
  .solucion{ min-height:0; }
  .solucion{ padding:24px; }
  .servicio{ padding:24px; }
  .route{ height:52px; margin-bottom:18px; }
  .stat{ min-height:170px; padding:24px 0 24px 24px; }
  .stat__bg{ opacity:.18; }

  .horarios__note{ margin-top:40px; }
  .horarios__sticky{ padding:0; }
  .colectas{ grid-template-columns:1fr; gap:20px; }
  .califica__icon{ width:96px; height:96px; margin-bottom:24px; }

  .repartidores__inner{ flex-direction:column; align-items:flex-start; gap:24px; }
  .repartidores__inner .btn{ width:100%; }

  .form{ padding:28px 20px; }
  .row-card{ align-items:flex-start; gap:16px; padding:18px; }

  .footer__bottom{ margin-top:40px; flex-direction:column; gap:12px; align-items:flex-start; }

  .glow{ width:340px; height:340px; }
  .diag--empeza{ opacity:.6; }
}

/* ── ≤480 · integraciones a 2 col ajustadas ── */
@media (max-width:480px){
  .integracion{ height:76px; }
  .integracion img{ max-height:40px; }
  .brand{ width:132px; height:44px; }
  .marquee__track{ gap:24px; }
}
