/* =============================================================
   CILO — Fábrica de galletitas
   1. Tokens
   ============================================================= */
:root {
  /* Gama de marca (respetando la paleta actual de Cilo) */
  --crema:     #fbf6ec;
  --arena:     #f2e8d5;
  --papel:     #ffffff;
  --tinta:     #241a12;
  --tinta-soft:#4a3a2c;
  --tinta-mute:#8a7a6a;
  --rojo:      #c7161d;   /* rojo Cilo — acento principal */
  --rojo-osc:  #98080e;
  --amarillo:  #f6b500;   /* amarillo Cilo — acento secundario */
  --linea:     rgba(36, 26, 18, 0.14);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --display: "Oswald", "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --maxw: 1280px;
  --nav-h: 92px;
  --topbar-h: 38px;
  --r: 18px;
}

@media (max-width: 640px) {
  :root { --nav-h: 76px; }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
  line-height: 1.1;
  letter-spacing: 0;
}
::selection { background: var(--rojo); color: var(--crema); }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--tinta); color: var(--crema); border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--sans);
  font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rojo); display: flex; align-items: center; gap: .6rem;
}
.kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--rojo); display: block; flex: none;
}
.kicker--light { color: var(--amarillo); }
.kicker--light::before { background: var(--amarillo); }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-head { display: grid; gap: 1rem; max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--tinta-soft); font-size: 1.05rem; max-width: 54ch; }

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--tinta-soft); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 100px;
  font-weight: 600; font-size: .94rem; letter-spacing: .01em;
  transition: transform .4s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), box-shadow .4s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--rojo); color: #fff; box-shadow: 0 8px 22px -10px rgba(199,22,29,.9); }
.btn--primary:hover { background: var(--rojo-osc); transform: translateY(-3px); box-shadow: 0 16px 32px -12px rgba(199,22,29,.85); }
.btn--ghost { border: 1.5px solid currentColor; }
.btn--ghost:hover { background: var(--tinta); color: var(--crema); border-color: var(--tinta); transform: translateY(-3px); }
.btn--light { background: var(--crema); color: var(--tinta); }
.btn--light:hover { background: var(--amarillo); transform: translateY(-3px); }
.btn--amarillo { background: var(--amarillo); color: var(--tinta); }
.btn--amarillo:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(246,181,0,.9); }

/* =============================================================
   4. Barra superior + Navegación
   ============================================================= */
.topbar {
  background: var(--rojo-osc); color: rgba(255,255,255,.9);
  font-size: .78rem; letter-spacing: .02em;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--topbar-h, 38px); flex-wrap: nowrap; overflow: hidden;
}
.topbar-info { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: .4rem; opacity: .85; }
.topbar-info a:hover { opacity: 1; color: var(--amarillo); }
.topbar-social { display: flex; gap: .85rem; }
.topbar-social a { opacity: .8; transition: opacity .3s, transform .3s var(--ease-out); }
.topbar-social a:hover { opacity: 1; transform: translateY(-2px); color: var(--amarillo); }
.topbar-social svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 720px) { .topbar-social { display: none; } .topbar { font-size: .72rem; } }
@media (max-width: 520px) { .topbar-info a:last-child { display: none; } }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--rojo);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s var(--ease-out), background .4s var(--ease-out);
}
.nav.is-stuck { box-shadow: 0 10px 30px -18px rgba(36,26,18,.85); }

/* --- Modo overlay: la barra flota sobre el video del hero (solo en la home) --- */
.has-overlay-nav .topbar { position: relative; z-index: 101; }
.nav--overlay {
  position: fixed; top: var(--topbar-h, 38px); left: 0; right: 0;
  background: transparent; box-shadow: none;
}
.nav--overlay .nav-links a { color: rgba(255,255,255,.9); text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.nav--overlay .nav-links a:hover, .nav--overlay .nav-links a[aria-current="page"] { color: #fff; }
/* Al scrollear vuelve a rojo y se pega arriba */
.nav--overlay.is-stuck {
  position: fixed; top: 0;
  background: var(--rojo);
  box-shadow: 0 10px 30px -18px rgba(36,26,18,.85);
}
.nav--overlay.is-stuck .nav-links a { text-shadow: none; }
/* La barra de contacto se desvanece al scrollear para que la nav se pegue arriba */
.has-overlay-nav .topbar {
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
}
.has-overlay-nav.is-scrolled .topbar { transform: translateY(-100%); opacity: 0; }
.nav--overlay.is-open { background: var(--rojo); }
.nav--overlay.is-open .nav-links a { text-shadow: none; }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--nav-h); }
.nav-logo {
  display: inline-flex; align-items: center; line-height: 0;
  transition: transform .4s var(--ease-out);
}
.nav-logo:hover { transform: translateY(-2px); }
.nav-logo img { height: 54px; width: auto; }
@media (max-width: 640px) {
  .nav-logo img { height: 40px; }
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-links a {
  position: relative; font-size: .92rem; font-weight: 500; padding-block: .4rem;
  color: rgba(255,255,255,.82); transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--amarillo); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: #fff; font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-cta .btn { padding: .62rem 1.15rem; font-size: .86rem; font-weight: 600; }
.nav-cta .btn--amarillo { box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }
.nav-cta .btn--amarillo:hover { box-shadow: 0 14px 26px -10px rgba(0,0,0,.7); }
.btn--portal {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #fff; border: 1.5px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.08); border-radius: 100px;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.btn--portal svg { width: 16px; height: 16px; flex: none; }
.btn--portal:hover { background: #fff; color: var(--rojo); border-color: #fff; transform: translateY(-2px); }
@media (max-width: 1100px) { .btn--portal span { display: none; } .btn--portal { padding: .55rem .7rem; } }

.nav-burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: background .2s; }
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff;
  transition: transform .4s var(--ease-out);
}
.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }
.nav.is-open .nav-burger span { background: transparent; }
.nav.is-open .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-burger span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; inset: calc(var(--nav-h) + 38px) 0 auto 0;
    background: var(--rojo); border-bottom: 1px solid rgba(255,255,255,.2);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem var(--gutter) 1.75rem;
    clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease-out);
  }
  .nav.is-open .nav-links { clip-path: inset(0 0 0 0); }
  .nav-links a { width: 100%; padding: .8rem 0; font-size: 1.15rem; border-bottom: 1px solid rgba(255,255,255,.18); }
  .nav-links a::after { display: none; }
  .nav-cta .btn span { display: none; }
}

/* =============================================================
   5. Hero con video
   ============================================================= */
.hero {
  position: relative; min-height: min(86vh, 760px);
  display: flex; align-items: center;
  overflow: hidden; background: var(--tinta);
  isolation: isolate;
}
/* En la home el hero arranca detrás de la barra flotante */
.has-overlay-nav .hero {
  margin-top: calc((var(--nav-h) + var(--topbar-h, 38px)) * -1);
  padding-top: calc(var(--nav-h) + var(--topbar-h, 38px));
  min-height: min(92vh, 820px);
}
/* Video de fondo a pantalla completa */
.hero-media {
  position: absolute; inset: -8% 0; z-index: -2;
  background: url("assets/img/hero-poster.jpg") center / cover no-repeat var(--tinta);
}
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(23,15,9,.78) 0%, rgba(23,15,9,.52) 48%, rgba(23,15,9,.22) 100%),
    linear-gradient(to top, rgba(23,15,9,.72) 0%, transparent 38%);
}
.hero-content { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem); color: var(--crema); }
.hero-copy { max-width: 56ch; }
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  margin-block: 1.1rem .9rem; max-width: 14ch;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-title em { font-style: normal; color: var(--amarillo); }
.hero-sub {
  font-size: clamp(1rem, 1.7vw, 1.2rem); max-width: 46ch;
  color: rgba(251,246,236,.9);
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .btn--ghost { color: var(--crema); border-color: rgba(251,246,236,.65); }
.hero .btn--ghost:hover { background: var(--crema); color: var(--tinta); border-color: var(--crema); }

/* Redes flotantes del hero (columna a la derecha) */
.hero-social {
  position: absolute; right: var(--gutter); top: 50%;
  transform: translateY(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: .85rem;
}
.hero-social span {
  writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(251,246,236,.7); margin-bottom: .4rem;
}
.hero-social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: rgba(251,246,236,.12);
  border: 1px solid rgba(251,246,236,.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .4s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.hero-social a svg { width: 20px; height: 20px; }
.hero-social a:hover {
  transform: translateY(-3px) scale(1.06);
  background: var(--amarillo); color: var(--tinta); border-color: var(--amarillo);
}
@media (max-width: 960px) {
  .hero-social {
    top: auto; bottom: 1.4rem; right: auto; left: var(--gutter);
    transform: none; flex-direction: row; align-items: center; gap: .6rem;
  }
  .hero-social span { writing-mode: horizontal-tb; margin: 0 .2rem 0 0; }
  .hero-social a { width: 40px; height: 40px; }
}



/* =============================================================
   6. Marquee
   ============================================================= */
.marquee {
  background: var(--rojo); color: #fff; overflow: hidden;
  border-block: 3px solid var(--tinta);
  padding-block: .85rem;
}
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  letter-spacing: .02em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap;
}
.marquee-track span::after { content: "●"; font-size: .5em; color: var(--amarillo); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   7. Dos públicos (split)
   ============================================================= */
.split { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.split-card {
  position: relative; overflow: hidden; border-radius: var(--r);
  background-image:
    linear-gradient(to right, rgba(255,255,255,.93) 0%, rgba(255,255,255,.86) 52%, rgba(255,255,255,.6) 100%),
    url("assets/img/patron-paquetes-blanco.jpg");
  background-size: cover, cover;
  background-position: center, center;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: grid; align-content: space-between; gap: 2.5rem; min-height: 340px;
  background-color: var(--papel); border: 1px solid var(--linea);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.split-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -30px rgba(36,26,18,.5); }
.split-card--dark {
  background-color: var(--rojo); color: #fff; border-color: transparent;
  background-image:
    linear-gradient(to right, rgba(199,22,29,.93) 0%, rgba(199,22,29,.88) 55%, rgba(199,22,29,.7) 100%),
    url("assets/img/patron-paquetes-rojo.jpg");
}
.split-card--dark .split-card-text p { color: rgba(255,255,255,.85); }
.split-card--dark .kicker { color: rgba(255,255,255,.9); }
.split-card--dark .kicker::before { background: var(--amarillo); }
.split-card h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-block: .8rem .6rem; }
.split-card-text p { color: var(--tinta-soft); max-width: 42ch; }
.split-card ul { list-style: none; padding: 0; display: grid; gap: .5rem; margin-top: 1.1rem; font-size: .92rem; }
.split-card li { display: flex; gap: .6rem; align-items: baseline; }
.split-card li::before { content: "→"; color: var(--rojo); flex: none; }
.split-card--dark li::before { color: var(--amarillo); }
.split-card--dark .split-card--dark 
/* =============================================================
   8. Grilla de productos
   ============================================================= */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem; }
.filter {
  padding: .5rem 1.05rem; border-radius: 100px; font-size: .85rem; font-weight: 500;
  border: 1px solid var(--linea); color: var(--tinta-soft);
  transition: all .35s var(--ease-out);
}
.filter:hover { border-color: var(--tinta); color: var(--tinta); }
.filter.is-active { background: var(--tinta); color: var(--crema); border-color: var(--tinta); }

.grid-prod {
  display: grid; gap: clamp(.8rem, 1.6vw, 1.4rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.prod {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--papel); border: 1px solid var(--linea);
  padding: 1rem 1rem 1.15rem;
  display: grid; gap: .9rem; align-content: start;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.prod::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(246,181,0,.22), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.prod:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 30px 55px -28px rgba(36,26,18,.55); }
.prod:hover::before { opacity: 1; }
.prod-fig {
  position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 12px;
  background: linear-gradient(165deg, #fff, var(--arena));
  display: grid; place-items: center; overflow: visible;
}
.prod-fig img {
  width: 100%; height: 100%; object-fit: contain; padding: 7%;
  transition: transform .7s var(--ease-out), filter .6s var(--ease-out);
  filter: drop-shadow(0 8px 14px rgba(36,26,18,.16));
}
.prod:hover .prod-fig img { transform: scale(1.06) rotate(-1.5deg); filter: drop-shadow(0 14px 22px rgba(36,26,18,.24)); }
.prod-name {
  position: relative; z-index: 1;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.15;
}
.prod-cat { position: relative; z-index: 1; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-mute); margin-top: -.55rem; }
.prod-flag {
  position: absolute; z-index: 2; top: 1.35rem; left: 1.35rem;
  background: var(--rojo); color: #fff; font-size: .64rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: .26rem .55rem; border-radius: 100px;
}
.prod.is-hidden { display: none; }

/* =============================================================
   9. Franja de datos
   ============================================================= */
.stats {
  display: grid; gap: 1px; background: var(--linea);
  border-block: 1px solid var(--linea);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--crema); padding: clamp(1.6rem, 3vw, 2.6rem) 1.25rem; text-align: center; }
.stat b {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 4.8vw, 3.4rem); line-height: 1; color: var(--rojo);
  letter-spacing: 0;
}
.stat span { display: block; margin-top: .6rem; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-mute); }

/* =============================================================
   10. Nosotros / historia
   ============================================================= */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-media {
  border-radius: var(--r); overflow: hidden; background: var(--arena);
  aspect-ratio: 4 / 3; position: relative;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media--sticky { position: sticky; top: calc(var(--nav-h) + 24px); }

.timeline { display: grid; gap: 0; margin-top: 1rem; }
.tl {
  display: grid; grid-template-columns: 92px 1fr; gap: 1.25rem;
  padding-block: 1.6rem; border-top: 1px solid var(--linea);
}
.tl:last-child { border-bottom: 1px solid var(--linea); }
.tl b { font-family: var(--display); font-size: 1.4rem; color: var(--rojo); line-height: 1.1; }
.tl h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.tl p { color: var(--tinta-soft); font-size: .95rem; }
@media (max-width: 540px) { .tl { grid-template-columns: 1fr; gap: .35rem; } }

.pilares { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .pilares { grid-template-columns: repeat(3, 1fr); } }
.pilar {
  background: var(--papel); border: 1px solid var(--linea); border-radius: var(--r);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.pilar:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -28px rgba(36,26,18,.45); }
.pilar-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--arena); color: var(--rojo); margin-bottom: 1rem;
}
.pilar-ico svg { width: 20px; height: 20px; }
.pilar h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.pilar p { font-size: .93rem; color: var(--tinta-soft); }

.quote {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-left: clamp(1.5rem, 4vw, 3rem);
  border-left: 3px solid var(--rojo);
  max-width: 60ch;
}
.quote p {
  font-family: var(--display); font-weight: 300; font-style: normal;
  font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 1.4; letter-spacing: 0;
}

/* =============================================================
   11. Distribuidores + mapa
   ============================================================= */
.dist { background: var(--arena); color: var(--tinta); }
.dist .section-head p { color: var(--tinta-soft); }
.dist-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .dist-grid { grid-template-columns: 0.85fr 1.15fr; } }

.mapa-wrap { position: relative; display: grid; place-items: center; padding-block: 1rem; }
.mapa { width: 100%; max-width: 300px; height: auto; overflow: visible; }
.mapa-shape {
  fill: rgba(199,22,29,.06);
  stroke: var(--rojo); stroke-width: 1.4; stroke-linejoin: round;
}
/* Cada zona es una pepa de membrillo — mapa estático, sin animación ni interacción */
.mapa-pin .pepa-in, .mapa-pin image {
  filter: drop-shadow(0 1px 1.5px rgba(36,26,18,.35));
}
.mapa-pin circle.halo { fill: var(--rojo); opacity: .22; }

.dist-benefits { list-style: none; padding: 0; display: grid; gap: 1rem; margin-block: 1.75rem; }
.dist-benefits li { display: flex; gap: .85rem; align-items: flex-start; }
.dist-benefits li svg { width: 20px; height: 20px; color: var(--rojo); flex: none; margin-top: 3px; }
.dist-benefits b { display: block; font-family: var(--display); font-size: 1.02rem; }
.dist-benefits p { font-size: .9rem; color: var(--tinta-soft); }

/* =============================================================
   12. Formularios
   ============================================================= */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 720px) { .form-row--2 { grid-template-columns: 1fr 1fr; } .form-row--3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-mute); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 10px;
  border: 1px solid var(--linea); background: var(--papel); color: var(--tinta);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(199,22,29,.13);
}
.form-dark .field label { color: rgba(251,246,236,.6); }
.form-dark .field input, .form-dark .field select, .form-dark .field textarea {
  background: rgba(251,246,236,.06); border-color: rgba(251,246,236,.2); color: var(--crema);
}
.form-dark .field input:focus, .form-dark .field select:focus, .form-dark .field textarea:focus {
  border-color: var(--amarillo); box-shadow: 0 0 0 3px rgba(246,181,0,.18);
}
.form-note { font-size: .8rem; color: var(--tinta-mute); }
.form-dark .form-note { color: rgba(251,246,236,.55); }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .5rem; }

.card-form {
  background: var(--papel); border: 1px solid var(--linea); border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form-dark.card-form { background: rgba(251,246,236,.04); border-color: rgba(251,246,236,.14); }

/* =============================================================
   13. Contacto
   ============================================================= */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; } }
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.contact-list li { display: grid; gap: .25rem; }
.contact-list span { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-mute); }
.contact-list a, .contact-list p { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.contact-list a { transition: color .3s var(--ease-out); }
.contact-list a:hover { color: var(--rojo); }
.map-embed { border-radius: var(--r); overflow: hidden; border: 1px solid var(--linea); aspect-ratio: 16/10; background: var(--arena); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.social-row { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--linea); transition: all .4s var(--ease-out);
}
.social-row a:hover { background: var(--tinta); color: var(--crema); transform: translateY(-3px); }
.social-row svg { width: 16px; height: 16px; fill: currentColor; }

/* =============================================================
   14. Cinta CTA
   ============================================================= */
.cta-band {
  background: var(--amarillo); color: var(--tinta);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.cta-band .container { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 960px) { .cta-band .container { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); max-width: 20ch; }
.cta-band p { max-width: 48ch; margin-top: .5rem; color: rgba(36,26,18,.75); }

/* =============================================================
   15. Página: encabezado interno
   ============================================================= */
.page-head {
  background: var(--crema); color: var(--tinta);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--linea);
}
.page-head::after {
  content: ""; position: absolute; right: -6%; top: -70%;
  width: 52vmax; height: 52vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(246,181,0,.24), transparent 62%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); margin-block: 1rem .8rem; }
.page-head p { color: var(--tinta-soft); max-width: 56ch; font-size: 1.05rem; }
.crumbs { font-size: .78rem; color: var(--tinta-mute); margin-top: 1.5rem; }
.crumbs a:hover { color: var(--rojo); }

/* =============================================================
   16. Footer
   ============================================================= */
.footer {
  background: var(--crema); color: var(--tinta-soft);
  border-top: 1px solid var(--linea);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer img.footer-logo { height: 46px; width: auto; margin-bottom: 1rem; }
.footer h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rojo); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; font-size: .92rem; }
.footer a:hover { color: var(--rojo); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--linea);
  color: var(--tinta-mute);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .8rem;
}

/* =============================================================
   17. WhatsApp flotante
   ============================================================= */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.05rem; border-radius: 100px;
  background: #25d366; color: #0b3d24; font-weight: 600; font-size: .88rem;
  box-shadow: 0 14px 34px -12px rgba(37,211,102,.9);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.wa svg { width: 22px; height: 22px; fill: currentColor; }
.wa:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 20px 44px -14px rgba(37,211,102,1); }
.wa-label { display: none; }
@media (min-width: 720px) { .wa-label { display: inline; } .wa { right: 26px; bottom: 26px; } }

/* =============================================================
   18. Reveals
   ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }
[data-delay="5"] { transition-delay: .4s; }
[data-delay="6"] { transition-delay: .48s; }

/* =============================================================
   19. Transiciones entre páginas
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   20. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .mapa-pin.hub circle.halo { animation: none; }
  .hero-media video { display: none; }
}

/* =============================================================
   21. Ajustes finos
   ============================================================= */
.hero-copy { max-width: 46ch; }
.prod-fig { transition: transform .4s var(--ease-out); transform-style: preserve-3d; }
.filters { align-items: center; }

/* =============================================================
   22. Nosotros — texto + video card + datos con íconos
   ============================================================= */
.about2 { padding-top: clamp(3rem, 6vw, 5rem); }
.about2-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .about2-grid { grid-template-columns: 1fr 1.05fr; } }
.about2-copy h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-block: 1rem 1.1rem; }
.about2-copy .lead { max-width: 46ch; }

/* Botón redondo amarillo */
.btn-round-yellow {
  display: inline-flex; align-items: center; gap: .7rem;
  margin-top: 1.8rem; padding: .7rem 1.5rem .7rem .7rem;
  background: var(--amarillo); color: var(--tinta);
  border-radius: 100px; font-weight: 600; font-size: .95rem;
  box-shadow: 0 12px 26px -12px rgba(246,181,0,.9);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.btn-round-yellow:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(246,181,0,1); }
.bry-play {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--tinta); color: var(--amarillo);
}
.bry-play svg { width: 15px; height: 15px; margin-left: 2px; }

/* Video card (poster + play + caption) */
.about2-video {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden;
  background: var(--tinta); cursor: pointer; padding: 0; border: 0;
  box-shadow: 0 30px 60px -30px rgba(36,26,18,.55);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.about2-video:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(36,26,18,.6); }
.about2-video img { width: 100%; height: 100%; object-fit: cover; }
.about2-video::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,11,6,.72) 0%, transparent 45%),
              linear-gradient(to right, rgba(18,11,6,.35), transparent 55%);
}
.about2-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%; z-index: 2;
  display: grid; place-items: center;
  background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.9);
  backdrop-filter: blur(4px); color: #fff;
  transition: transform .4s var(--ease-bounce), background .35s var(--ease-out);
}
.about2-video:hover .about2-video-play { transform: translate(-50%,-50%) scale(1.1); background: var(--rojo); border-color: var(--rojo); }
.about2-video-play svg { width: 26px; height: 26px; margin-left: 3px; }
.about2-video-cap {
  position: absolute; left: clamp(1rem,3vw,1.6rem); bottom: clamp(1rem,3vw,1.5rem); z-index: 2;
  text-align: left; color: #fff;
}
.about2-video-cap b {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.05;
}
.about2-video-cap em {
  display: block; font-style: normal; font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.05;
  font-family: var(--display);
  border-bottom: 3px solid var(--rojo); padding-bottom: .35rem; width: fit-content;
}

/* Modal del video */
.video-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.25rem; }
.video-modal[hidden] { display: none; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(10,6,3,.85); backdrop-filter: blur(4px); animation: fadeIn .3s var(--ease-out); }
.video-modal-box {
  position: relative; z-index: 1; width: min(960px, 100%);
  aspect-ratio: 16/9; background: #000; border-radius: var(--r);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); animation: modalIn .4s var(--ease-out);
}
.video-modal-box video { width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: var(--r); }
.video-modal-close {
  position: absolute; top: -18px; right: -18px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--crema); color: var(--tinta); box-shadow: 0 8px 20px -6px rgba(0,0,0,.6);
  transition: transform .3s var(--ease-out), background .3s;
}
.video-modal-close:hover { transform: scale(1.08); background: var(--amarillo); }
.video-modal-close svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .video-modal-close { top: -14px; right: 6px; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* Datos con íconos (estilo del print) */
/* La franja de datos de nosotros: 3 columnas iguales, líneas divisorias finas */
.stats--about {
  background: transparent; border-block: 1px solid var(--linea);
  grid-template-columns: 1fr; gap: 0;
}
@media (min-width: 700px) { .stats--about { grid-template-columns: repeat(3, 1fr); } }
.stats--about .stat {
  background: var(--crema); border-left: 1px solid var(--linea);
}
.stats--about .stat:first-child { border-left: 0; }
@media (max-width: 699px) {
  .stats--about .stat { border-left: 0; border-top: 1px solid var(--linea); }
  .stats--about .stat:first-child { border-top: 0; }
}
.stats--about .stat {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem);
}
.stats--about .stat-ico { color: var(--rojo); margin-bottom: .5rem; }
.stats--about .stat-ico svg { width: 30px; height: 30px; }
.stats--about .stat b {
  font-family: var(--display); font-weight: 700; color: var(--rojo);
  font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1; letter-spacing: 0;
}
.stats--about .stat span {
  margin-top: .15rem; font-size: .9rem; letter-spacing: .01em; text-transform: none;
  color: var(--tinta-mute);
}

/* Portal de vendedores en el menú mobile */
.nav-portal-mobile { display: none; }
@media (max-width: 960px) {
  .nav-portal-mobile { display: block !important; color: var(--amarillo) !important; font-weight: 600; }
}
@media (max-width: 600px) { .btn--portal { display: none; } }
