/* ==========================================================
   2 Amigos Distributions
   Lenguaje visual: la bodega. Productos reales recortados que caen, pasillos
   de colores con repisa, cinta de embalaje, una caja de cartón que se arma
   y una ruta de despacho. Rojo y verde del logo, títulos condensados.
   ========================================================== */
:root {
  --ink: #13231b;
  --soft: #4d5d54;
  --green: #1f6b45;
  --green-700: #17573a;
  --green-900: #0d3324;
  --red: #d61f30;
  --red-700: #b01424;
  --mango: #ffc23d;
  --jamaica: #8e1450;
  --mist: #f1f4ef;
  --line: #dfe5dd;
  --kraft: #c8995f;
  --kraft-2: #b9874e;
  --kraft-3: #a2733f;
  --white: #ffffff;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1; }
p { margin: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }

/* Títulos: mayúsculas condensadas, dos tonos */
.title, .slide__title, .contact__title, .offer__title, .tab {
  font-weight: 850; font-stretch: 72%; text-transform: uppercase; letter-spacing: -.01em; line-height: .9;
}
.title { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.title--center { text-align: center; }
.line { display: block; }
.line--accent { color: var(--red); }

/* Palabras para la animación de entrada */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; will-change: transform; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 .9375rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s, transform .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--lg { padding: 16px 26px; font-size: 1.0625rem; }
.btn--xl { padding: 22px 36px; font-size: 1.25rem; }
.btn--xl .ico { width: 28px; height: 28px; }
.btn--wa { background: var(--green); color: var(--white); }
.btn--wa:hover { background: var(--green-700); }
.btn--ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost .ico { color: var(--red); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light .ico { color: var(--green); }
.btn--light:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { transform: translateY(-2px); }

/* ---------- Logo (el original de su sitio) ---------- */
.logo { display: block; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header flotante ---------- */
.header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: 20px; transition: transform .45s var(--ease), top .45s var(--ease), padding .45s var(--ease); }
.header.is-hidden { transform: translateY(-140%); }
.header__bar {
  max-width: 1240px; margin-inline: auto; display: flex; align-items: center; gap: 28px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-radius: 999px; padding: 8px 8px 8px 26px;
  box-shadow: 0 14px 40px -18px rgba(13,51,36,.45);
  transition: max-width .45s var(--ease), border-radius .45s var(--ease), padding .45s var(--ease), box-shadow .45s;
}
/* Arriba del todo: barra completa de borde a borde; al bajar se vuelve píldora flotante */
.header.is-top { top: 0; padding-inline: 0; }
.header.is-top .header__bar {
  max-width: 100%; border-radius: 0; box-shadow: 0 1px 0 var(--line);
  padding: 12px max(20px, calc((100% - 1240px) / 2 + 22px));
}
.nav { display: flex; gap: 28px; margin-inline: auto; }
.nav a { text-decoration: none; font-weight: 650; font-size: .9375rem; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px; border-radius: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; gap: 8px; }
.burger { display: none; }
.mobile-nav { display: none; }

/* ---------- Hero: carrusel con los slides de su portada ---------- */
.hero {
  --hero-ink: var(--white); --hero-accent: var(--mango);
  position: relative; overflow: hidden; isolation: isolate; background: var(--green-900);
  height: min(100svh, 880px); min-height: 640px; touch-action: pan-y;
}
.hero[data-theme="light"] { --hero-ink: var(--ink); --hero-accent: var(--red); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; }
.slide.is-active { visibility: visible; opacity: 1; }
.slide__bg { position: absolute; inset: -8% 0 0; z-index: -2; }
.slide__bg img { width: 100%; height: 100%; object-fit: cover; translate: 0 var(--bg-shift, 0%); }
/* Primer slide: la bodega oscurecida y un foco cálido detrás del collage */
.slide__bg--bodega img { filter: saturate(.85) brightness(.55); }
.slide__bg--bodega::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 42% 52% at 70% 48%, rgba(255,176,64,.55) 0%, rgba(255,120,40,.18) 45%, transparent 72%);
}
/* Velo para que el texto se lea sobre cualquier fondo */
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,24,16,.7) 0%, rgba(8,24,16,.42) 42%, rgba(8,24,16,0) 70%); }
.slide[data-theme="light"]::before { background: linear-gradient(90deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.4) 42%, rgba(255,255,255,0) 70%); }
/* El título se apoya justo encima del texto y los botones; el producto ocupa la altura a la derecha */
.slide__grid { position: relative; height: 100%; display: grid; grid-template-columns: 1fr 1.1fr; align-items: end; gap: 32px; padding: 100px 0 268px; }
.slide__media { align-self: stretch; padding-bottom: 0; margin-bottom: -150px; }
.slide__title { font-size: clamp(3.2rem, 6.4vw, 6.4rem); color: var(--white); max-width: 11ch; }
.slide__title .line--accent { color: var(--mango); }
.slide[data-theme="light"] .slide__title { color: var(--ink); }
.slide[data-theme="light"] .slide__title .line--accent { color: var(--red); }
.slide__media { position: relative; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 2%; }
.slide__prod { max-height: 100%; max-width: 74%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 40px 36px rgba(0,0,0,.45)); }
.slide__media--wide .slide__prod { max-width: 100%; }
/* Primer slide: el collage se agranda y sangra por la derecha */
.slide__media--big { justify-content: flex-start; align-items: center; }
.slide__media--big .slide__prod { max-width: none; max-height: none; width: 135%; filter: drop-shadow(0 50px 40px rgba(0,0,0,.5)); }
.slide__media--duo .slide__prod { max-width: 46%; max-height: 92%; }
.slide__media--trio .slide__prod { max-width: 32%; max-height: 80%; }
.slide__media--trio .slide__prod:nth-child(2) { margin-top: 12%; }

/* Lo fijo del hero: frase, botones y barras de avance */
.hero__inner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin-inline: auto; padding-bottom: 44px; color: var(--hero-ink); }
.hero__lead { max-width: 44ch; font-size: 1.125rem; font-weight: 500; opacity: .92; transition: color .4s; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero__actions .btn--ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: var(--white); backdrop-filter: blur(6px); }
.hero__actions .btn--ghost .ico { color: var(--mango); }
.hero[data-theme="light"] .hero__actions .btn--ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.hero[data-theme="light"] .hero__actions .btn--ghost .ico { color: var(--red); }
.hero__dots { display: flex; gap: 6px; margin-top: 30px; }
.hero__dot { position: relative; width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--hero-ink); }
.hero__dot::before, .hero__dot span { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 4px; }
.hero__dot::before { background: currentColor; opacity: .28; }
.hero__dot span { background: currentColor; transform: scaleX(0); transform-origin: left; }
.hero__dot[aria-current="true"] span { transform: scaleX(1); }
.hero__dot:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; border-radius: 4px; }

/* ---------- Cintas de embalaje, rectas y apiladas ---------- */
.tapes { position: relative; overflow: hidden; z-index: 2; pointer-events: none; }
.tape {
  position: relative; overflow: hidden; padding: 16px 0;
}
.tape::after { /* brillo de cinta plástica */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 40%, rgba(0,0,0,.08));
}
.tape--red { background: var(--red); }
.tape--green { background: var(--green); padding: 12px 0; }
.tape__track { display: flex; width: max-content; animation: tape 34s linear infinite; }
.tape__track--rev { animation-direction: reverse; animation-duration: 40s; }
.tape__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; color: var(--white); }
.tape__group span { font-weight: 850; font-stretch: 75%; font-size: 1.75rem; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; line-height: 1; }
.tape--green .tape__group span { font-size: 1.25rem; font-stretch: 85%; font-weight: 700; }
.tape__group b { color: var(--mango); font-size: 1rem; font-weight: 400; }
/* --loop es el ancho de un grupo (lo calcula main.js): avanza un grupo y vuelve sin salto */
@keyframes tape { to { transform: translateX(var(--loop, -50%)); } }

/* ---------- Oferta primera compra: franja con bordes de cupón ---------- */
.offer {
  --notch: 14px;
  position: relative; background: var(--mango); color: var(--ink); padding: 96px 0; overflow: hidden;
  /* Bordes de arriba y abajo recortados en medialunas, como un cupón */
  -webkit-mask: radial-gradient(var(--notch) at 50% 0, transparent 98%, #000) 50% 0 / calc(var(--notch) * 2.6) 51% repeat-x,
                radial-gradient(var(--notch) at 50% 100%, transparent 98%, #000) 50% 100% / calc(var(--notch) * 2.6) 51% repeat-x;
          mask: radial-gradient(var(--notch) at 50% 0, transparent 98%, #000) 50% 0 / calc(var(--notch) * 2.6) 51% repeat-x,
                radial-gradient(var(--notch) at 50% 100%, transparent 98%, #000) 50% 100% / calc(var(--notch) * 2.6) 51% repeat-x;
}
.offer__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.offer__title { font-size: clamp(3rem, 6.2vw, 5.8rem); }
.offer__title .line--accent { color: var(--red); }
.offer__copy p { margin-top: 22px; max-width: 42ch; font-size: 1.125rem; font-weight: 500; }
.offer__copy .btn { margin-top: 30px; }
.offer__media { position: relative; height: 380px; }
.offer__media img { position: absolute; height: auto; filter: drop-shadow(0 30px 26px rgba(0,0,0,.3)); }
.offer__media img:nth-child(1) { left: 0; bottom: 6%; width: 34%; }
.offer__media img:nth-child(2) { left: 28%; top: -4%; width: 40%; z-index: 2; }
.offer__media img:nth-child(3) { right: 0; bottom: 0; width: 26%; }

/* ---------- Catálogo: todo lo que hay en bodega ---------- */
.catalog { padding: 130px 0 120px; }
.catalog__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; }
.catalog__head p { max-width: 34ch; color: var(--soft); font-size: 1.0625rem; }
.catalog__bar { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }

/* Pasillos como palabras grandes: el activo toma su color y se subraya */
.tabs { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.tab {
  position: relative; display: inline-flex; align-items: flex-start; gap: 6px; padding: 0 0 12px; border: 0; background: none;
  font-size: clamp(2.2rem, 3.6vw, 3.3rem); color: #c3cdc6; cursor: pointer; transition: color .3s;
}
.tab span { font-size: .32em; font-weight: 700; font-stretch: 100%; letter-spacing: 0; margin-top: .3em; }
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 6px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab--dulces[aria-selected="true"] { color: var(--red); }
.tab--snacks[aria-selected="true"] { color: #e3a215; }
.tab--despensa[aria-selected="true"] { color: var(--green); }
.tab--bebidas[aria-selected="true"] { color: var(--jamaica); }
.tab:focus-visible { outline: 3px solid var(--mango); outline-offset: 4px; border-radius: 6px; }
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 18px; min-width: min(100%, 340px); margin-bottom: 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); transition: border-color .2s;
}
.search .ico { color: var(--soft); }
.search:focus-within { border-color: var(--green); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; padding: 13px 0; font: 400 1rem var(--font); color: var(--ink); }

/* El pasillo elegido: su color, su banner y el botón de la lista */
.features { margin-top: 36px; }
.feature {
  position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
  padding: 44px 0 44px 52px; border-radius: 32px; color: var(--white); min-height: 340px;
}
.feature[hidden] { display: none; }
.feature--dulces { background: var(--red); }
.feature--snacks { background: var(--mango); color: var(--ink); }
.feature--despensa { background: var(--green); }
.feature--bebidas { background: var(--jamaica); }
.feature__count { font-size: 1.125rem; font-weight: 600; }
.feature__count strong { display: block; font-weight: 850; font-stretch: 72%; font-size: clamp(4.5rem, 8vw, 7rem); line-height: .85; }
.feature__desc { margin-top: 14px; max-width: 36ch; font-size: 1.0625rem; opacity: .92; }
.feature__copy .btn { margin-top: 26px; }
.feature__media { position: relative; height: 100%; min-height: 300px; }
/* El banner sobresale del bloque por arriba y a la derecha */
.feature__banner {
  position: absolute; right: -24px; top: -84px; width: min(100%, 520px); aspect-ratio: 4 / 3; height: auto; object-fit: cover;
  border-radius: 22px; box-shadow: 0 40px 60px -30px rgba(0,0,0,.55);
}
.feature__pack { position: absolute; right: -10px; top: -96px; width: min(84%, 440px); height: auto; filter: drop-shadow(0 30px 24px rgba(0,0,0,.4)); }
.feature__cut { position: absolute; left: -6%; bottom: -60px; width: min(54%, 300px); height: auto; z-index: 2; filter: drop-shadow(0 30px 24px rgba(0,0,0,.4)); }
.feature__cut--narrow { width: min(40%, 230px); }
.feature__cut--can { width: min(30%, 170px); left: 0; }

.catalog__meta { margin-top: 90px; min-height: 1.5em; color: var(--soft); font-size: .9375rem; }
.catalog__meta a { color: var(--green); font-weight: 700; }
.catalog.is-searching .catalog__meta { margin-top: 30px; }

/* Productos sueltos, sin cajas: foto apoyada abajo y el nombre debajo */
.wall { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 40px 18px; }
.prod { display: grid; grid-template-rows: 150px auto; color: var(--ink); text-decoration: none; }
.prod[hidden] { display: none; }
.prod__img { display: flex; align-items: flex-end; justify-content: center; }
.prod__img img {
  max-width: 100%; max-height: 140px; width: auto; height: auto;
  filter: drop-shadow(0 12px 10px rgba(0,0,0,.18)); transform-origin: 50% 100%; transition: transform .45s var(--ease);
}
.prod__name {
  margin-top: 14px; font-size: .8125rem; font-weight: 600; line-height: 1.3; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.prod:hover .prod__img img, .prod:focus-visible .prod__img img { transform: translateY(-8px) rotate(-3deg); }
.prod:hover .prod__name { color: var(--green); }
.prod:focus-visible { outline: 3px solid var(--mango); outline-offset: 4px; border-radius: 8px; }
.catalog__more { margin-top: 48px; display: flex; justify-content: center; }
.catalog__more[hidden] { display: none; }

/* ---------- Para quién ---------- */
.clients { padding: 140px 0 120px; overflow-x: clip; }
.clients__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.clients__media { position: relative; margin: 0; }
.clients__media > img:first-child { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 28px 160px 28px 28px; }
.clients__sticker { position: absolute; left: -30px; bottom: -40px; width: 150px; filter: drop-shadow(0 22px 18px rgba(0,0,0,.35)); }
.clients__list { margin: 36px 0 0; }
.clients__list div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; }
.clients__list dt { font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.clients__list dd { margin: 0; color: var(--soft); }

/* ---------- Cómo pedir: la ruta ---------- */
.route { padding: 120px 0 80px; background: var(--white); overflow-x: clip; }
.route__map { position: relative; aspect-ratio: 1200 / 420; margin: 160px 0 120px; }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route__svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.route__base { stroke: var(--line); stroke-width: 6; stroke-dasharray: 2 14; }
.route__draw { stroke: var(--red); stroke-width: 6; }
.route__truck { position: absolute; left: 0; top: 0; width: 76px; height: auto; margin: -37px 0 0 -38px; /* centrado sin translate: GSAP lo absorbe */ z-index: 2; will-change: transform; filter: drop-shadow(0 8px 6px rgba(0,0,0,.2)); }
.stops { list-style: none; margin: 0; padding: 0; }
.stop { position: absolute; left: var(--sx); top: var(--sy); width: 240px; translate: -50% 0; padding-top: 34px; text-align: center; }
.stop::before {
  content: ""; position: absolute; left: 50%; top: -11px; width: 22px; height: 22px; translate: -50% 0; border-radius: 50%;
  background: var(--white); border: 6px solid var(--green); box-shadow: 0 0 0 8px rgba(31,107,69,.14);
}
.stop--up { padding-top: 0; translate: -50% calc(-100% - 34px); }
.stop--up::before { top: auto; bottom: -45px; }
/* En los extremos el texto se corre hacia adentro, pero el punto sigue sobre la curva */
.stop:first-child { translate: -24% 0; }
.stop:first-child::before { left: 24%; }
.stop:last-child { translate: -76% calc(-100% - 34px); }
.stop:last-child::before { left: 76%; }
.stop h3 { font-weight: 850; font-stretch: 75%; font-size: 2rem; text-transform: uppercase; }
.stop p { margin-top: 6px; color: var(--soft); }

/* ---------- La bodega ---------- */
.warehouse { padding: 80px 0 140px; }
.warehouse__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.warehouse__media { margin: 0; }
.warehouse__media img {
  width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover;
  clip-path: polygon(0 16%, 50% 0, 100% 16%, 100% 100%, 0 100%); /* silueta de bodega con techo a dos aguas */
}
.warehouse__copy > p { margin-top: 24px; max-width: 46ch; font-size: 1.125rem; color: var(--soft); }
.stats { display: flex; flex-wrap: wrap; gap: 20px 56px; margin-top: 48px; padding-top: 28px; border-top: 3px solid var(--ink); }
.stats div { display: grid; }
.stats strong { font-weight: 850; font-stretch: 72%; font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: .9; color: var(--green); }
.stats div > span { margin-top: 6px; font-weight: 650; }

/* ---------- Marcas ---------- */
.brands { padding: 120px 0; background: var(--mist); overflow: hidden; }
.logos { margin-top: 64px; display: grid; gap: 34px; }
.logos__row { display: flex; width: max-content; animation: tape 60s linear infinite; }
.logos__row--rev { animation-direction: reverse; animation-duration: 70s; }
.logos__row:hover { animation-play-state: paused; }
.logos__group { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.logos__group img { height: 64px; width: auto; max-width: 180px; object-fit: contain; transition: transform .4s var(--ease); }
.logos__group img:hover { transform: scale(1.12) rotate(-3deg); }

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; background: var(--green-900); color: var(--white); padding: 150px 0; }
/* Productos apilados que asoman por la derecha */
.contact__stack { position: absolute; right: max(-60px, calc((100vw - 1240px) / 2 - 80px)); top: 50%; width: min(46vw, 620px); aspect-ratio: 1; margin-top: min(-23vw, -310px); pointer-events: none; }
.contact__stack img { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; filter: drop-shadow(0 30px 26px rgba(0,0,0,.45)); }
.contact__inner { position: relative; }
.contact__title { font-size: clamp(3.6rem, 9.5vw, 8.6rem); max-width: 8ch; }
.contact__title .line--accent { color: var(--mango); }
.contact .btn--wa { margin-top: 44px; background: #25d366; color: var(--green-900); }
.contact .btn--wa:hover { background: #4be083; }
.contact__info { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 14px; max-width: 520px; }
.contact__info li { display: flex; align-items: center; gap: 14px; font-size: 1.0625rem; }
.contact__info .ico { width: 22px; height: 22px; color: var(--mango); }
.contact__info a { text-decoration: none; }
.contact__info a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--mist); color: var(--soft); padding: 56px 0 28px; font-size: .9375rem; }
.logo--footer img { height: 64px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; padding-bottom: 36px; }
.footer__inner p { max-width: 40ch; }
.footer__social { display: flex; gap: 10px; margin-left: auto; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); transition: background .2s; }
.footer__social a:hover { background: var(--red); }
.footer__social .ico { width: 20px; height: 20px; fill: var(--green); }
.footer__social a:hover .ico { fill: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8125rem; }


/* ==========================================================
   Tablet
   ========================================================== */
@media (max-width: 1080px) {
  .nav, .header__phone { display: none; }
  .header__actions { margin-left: auto; }
  .burger { display: grid; gap: 6px; background: none; border: 0; padding: 12px; cursor: pointer; }
  .burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  /* Menú abierto: se une al navbar y forman una sola pieza */
  .mobile-nav.is-open {
    display: grid; gap: 2px; max-width: 1240px; margin: 0 auto; padding: 4px 24px 20px;
    background: var(--white); border-radius: 0 0 24px 24px; box-shadow: 0 30px 40px -24px rgba(13,51,36,.4);
  }
  .header.menu-open .header__bar { border-radius: 24px 24px 0 0; box-shadow: none; }
  .header.menu-open.is-top .header__bar, .header.menu-open.is-top .mobile-nav { max-width: 100%; border-radius: 0; }
  .header.menu-open .mobile-nav a:first-child { border-top: 1px solid var(--line); }
  .mobile-nav a { padding: 14px 0; text-decoration: none; font-weight: 750; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border-bottom: 0; color: var(--green); }

  .feature { grid-template-columns: 1fr; padding: 40px 36px 0; gap: 120px; }
  .feature__media { min-height: 260px; }
  .feature__banner { right: 0; top: -70px; width: min(78%, 480px); }
  .feature__pack { right: 0; top: -80px; width: min(70%, 400px); }
  .feature__cut { left: 0; bottom: -30px; }
  .clients__sticker { left: 12px; }
  .clients__grid { grid-template-columns: 1fr; gap: 56px; }
  .warehouse__grid { grid-template-columns: .9fr 1.1fr; gap: 48px; }
  .clients__list div { grid-template-columns: 1fr; gap: 6px; }
  .stop { width: 200px; }
  .stop h3 { font-size: 1.6rem; }
}

/* ==========================================================
   Celular
   ========================================================== */
@media (max-width: 640px) {
  body { font-size: .9688rem; }
  .wrap { width: calc(100% - 32px); }
  .title { font-size: 2.75rem; }

  .header { top: 10px; padding-inline: 10px; }
  .header.is-top .header__bar { padding: 10px 12px 10px 18px; }
  .header__bar { padding: 6px 6px 6px 16px; gap: 10px; }
  .header.menu-open .header__bar { border-radius: 20px 20px 0 0; }
  .mobile-nav.is-open { border-radius: 0 0 20px 20px; padding: 4px 18px 16px; }
  .logo img { height: 36px; }
  .header__actions .btn { padding: 10px 14px; font-size: .875rem; }

  /* Hero en celular: el producto arriba y el texto abajo sobre un velo */
  .hero { height: 100svh; min-height: 680px; max-height: 860px; }
  .slide::before { background: linear-gradient(180deg, rgba(8,24,16,0) 34%, rgba(8,24,16,.72) 62%, rgba(8,24,16,.9) 100%); }
  .slide[data-theme="light"]::before { background: linear-gradient(180deg, rgba(255,255,255,0) 34%, rgba(255,255,255,.8) 60%, rgba(255,255,255,.94) 100%); }
  .slide__grid { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 18px; padding: 86px 0 250px; }
  .slide__media { order: -1; margin-bottom: 0; }
  .slide__media--big { justify-content: center; }
  .slide__media--big .slide__prod { width: 118%; }
  .slide__title { font-size: 2.9rem; max-width: none; }
  .hero__inner { padding-bottom: 22px; }
  .hero__lead { display: none; }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 0; }
  .hero__dots { margin-top: 14px; justify-content: center; }
  .hero__dot { width: 32px; }

  .tape { padding: 11px 0; }
  .tape--green { padding: 9px 0; }
  .tape__group span { font-size: 1.25rem; }
  .tape--green .tape__group span { font-size: .9375rem; }

  .offer { padding: 64px 0 56px; --notch: 10px; }
  .offer__grid { grid-template-columns: 1fr; gap: 28px; }
  .offer__title { font-size: 3rem; }
  .offer__copy p { font-size: 1rem; margin-top: 14px; }
  .offer__copy .btn { width: 100%; margin-top: 22px; }
  .offer__media { height: 240px; order: -1; }

  .catalog { padding: 72px 0; }
  .catalog__head p { font-size: .9688rem; }
  .catalog__bar { margin-top: 32px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 22px; margin-inline: -16px; padding-inline: 16px; width: calc(100% + 32px); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; font-size: 2.3rem; padding-bottom: 8px; }
  .tab::after { height: 4px; }
  .search { min-width: 0; width: 100%; margin-bottom: 0; }
  .search input { font-size: 16px; padding: 11px 0; }
  .feature { padding: 30px 22px 0; border-radius: 24px; gap: 70px; min-height: 0; }
  .feature__count strong { font-size: 4.2rem; }
  .feature__desc { font-size: .9688rem; }
  .feature__media { min-height: 0; aspect-ratio: 1 / .78; }
  .feature__banner { right: -8px; top: -40px; width: 86%; border-radius: 16px; }
  .feature__pack { right: -6px; top: -50px; width: 78%; }
  .feature__cut { left: -10px; bottom: -24px; width: 50%; }
  .feature__cut--narrow { width: 40%; }
  .feature__cut--can { width: 30%; left: 0; }
  .catalog__meta { margin-top: 56px; }
  .wall { grid-template-columns: repeat(3, 1fr); gap: 28px 8px; }
  .prod { grid-template-rows: 112px auto; }
  .prod__img img { max-height: 104px; }
  .prod__name { margin-top: 10px; font-size: .72rem; }
  .catalog__more { margin-top: 32px; }
  .catalog__more .btn { width: 100%; }

  .clients { padding: 72px 0; }
  .clients__grid { gap: 48px; }
  .clients__media > img:first-child { aspect-ratio: 4 / 3.4; border-radius: 20px 90px 20px 20px; }
  .clients__sticker { width: 96px; left: auto; right: 14px; bottom: -34px; }
  .clients__list { margin-top: 24px; }
  .clients__list div { padding: 16px 0; }
  .clients__list dt { font-size: 1.125rem; }
  .clients__list dd { font-size: .9375rem; }

  /* Ruta en celular: línea de tiempo vertical con el camión bajando */
  .route { padding: 72px 0 40px; }
  .route__map { aspect-ratio: auto; margin: 40px 0 0; padding-left: 58px; }
  .route__svg { display: none; }
  .route__map::before {
    content: ""; position: absolute; left: 19px; top: 8px; bottom: 30px; width: 4px;
    background: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 12px);
  }
  .route__truck { left: 21px; width: 52px; margin: -16px 0 0 -26px; rotate: 90deg; }
  .stop, .stop--up, .stop:first-child, .stop:last-child { position: relative; left: auto; top: auto; translate: none; width: auto; text-align: left; padding: 0 0 34px; }
  .stop::before, .stop--up::before, .stop:first-child::before, .stop:last-child::before { left: -48px; top: 2px; bottom: auto; translate: none; width: 20px; height: 20px; border-width: 5px; box-shadow: 0 0 0 6px rgba(31,107,69,.14); }
  .stop h3 { font-size: 1.6rem; }
  .stop p { font-size: .9375rem; margin-top: 4px; }

  /* Bodega: la foto flota a la derecha y el texto la rodea siguiendo el techo */
  .warehouse { padding: 40px 0 72px; }
  .warehouse__grid { display: block; }
  .warehouse__media {
    float: right; width: 46%; margin: 4px 0 10px 16px;
    shape-outside: polygon(0 16%, 50% 0, 100% 16%, 100% 100%, 0 100%); shape-margin: 10px;
  }
  .warehouse__media img { aspect-ratio: 3 / 4.6; }
  .warehouse__copy .title { font-size: 2.4rem; }
  .warehouse__copy > p { font-size: .9688rem; margin-top: 14px; }
  .stats { clear: both; gap: 18px 30px; margin-top: 28px; padding-top: 20px; }
  .stats strong { font-size: 3rem; }
  .stats div > span { font-size: .875rem; }

  .brands { padding: 72px 0; }
  .logos { margin-top: 40px; gap: 24px; }
  .logos__group { gap: 44px; padding-right: 44px; }
  .logos__group img { height: 44px; max-width: 120px; }

  .contact { padding: 88px 0 230px; }
  .contact__stack { width: 70vw; right: -14vw; top: auto; bottom: -6vw; margin-top: 0; }
  .contact__title { font-size: 3.7rem; }
  .contact .btn--xl { width: 100%; padding: 18px 20px; font-size: 1.0625rem; margin-top: 30px; }
  .contact__info { margin-top: 32px; }
  .contact__info li { font-size: .9688rem; align-items: flex-start; }

  .footer__social { margin-left: 0; }
  .footer__bottom { flex-direction: column; gap: 4px; }
}
