/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy: #0A3560;
  --navy-2: #072A4D;
  --navy-3: #12457A;
  --yellow: #FFC64E;
  --yellow-soft: #FFF3D1;
  --slate: #788A98;
  --slate-2: #52636F;
  --grey: #EAEAEA;
  --grey-2: #F5F6F7;
  --paper: #FFFFFF;
  --ink: #0F1F30;
  --ink-soft: #3A4A5A;
  --line: rgba(10, 53, 96, 0.12);
  --shadow: 0 10px 30px rgba(10, 53, 96, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 53, 96, 0.18);

  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --max: 1240px;
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 76px;

  --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);
  --ease-menu: cubic-bezier(0.22, 1, 0.36, 1);   /* salida muy suave, sin rebote */
}

/* =============================================================
   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: var(--nav-h); }
/* scroll-padding-top ya deja las secciones justo debajo del nav fijo.
   No agregar scroll-margin: se suman y la sección queda hundida. */
/* Durante la transición de círculo el salto tiene que ser instantáneo */
html.no-smooth { scroll-behavior: auto; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; }
ul { list-style: none; padding: 0; }
::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem;
  background: var(--navy); color: #fff; z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-navy { background: var(--navy); color: #fff; }
.section-grey { background: var(--grey-2); }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy-3); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--yellow); border-radius: 2px; }
.section-navy .kicker { color: var(--yellow); }

.title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  letter-spacing: .01em;
  line-height: .95;
  color: var(--navy);
  max-width: 18ch;
}
.section-navy .title { color: #fff; }
.title em { font-style: normal; color: var(--yellow); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-soft); max-width: 60ch; }
.section-navy .lead { color: rgba(255,255,255,.78); }

.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .section-head .lead { justify-self: end; padding-bottom: .4rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  line-height: 1; white-space: nowrap; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s, color .3s;
  will-change: transform;
}
.btn .ico { width: 20px; height: 20px; flex: none; }
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 10px 24px rgba(255,198,78,.35); }
.btn-primary:hover { background: #FFD066; box-shadow: 0 14px 30px rgba(255,198,78,.45); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(10,53,96,.25); }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.35); }
.btn-wa:hover { background: #1fc65b; }
.btn-sm { padding: .7rem 1.1rem; font-size: .85rem; }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }

/* Cards & chips */
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--yellow-soft); color: var(--navy);
}

/* =============================================================
   4. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(10,53,96,.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1.5rem; }
.nav-brand { display: flex; align-items: center; gap: .7rem; }
.nav-brand img { height: 44px; width: auto; }
.nav-links { display: none; gap: 1.8rem; font-weight: 500; font-size: .95rem; color: var(--ink-soft); }
.nav-links a { position: relative; padding-block: .3rem; transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-actions .btn-wa { display: none; }
/* Hamburguesa → X. gap fijo de 5px: cada línea queda a 7px exactos del centro */
.nav-toggle {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: var(--grey-2); transition: background .3s var(--ease-out), transform .2s var(--ease-out);
}
.nav-toggle:active { transform: scale(.92); }
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 0; background: var(--navy); border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .2s var(--ease-out), background .3s;
}
.nav-toggle[aria-expanded="true"] { background: var(--navy); }
.nav-toggle[aria-expanded="true"] span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel: entra deslizando desde arriba, detrás del nav (z-index menor) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110;          /* por encima del nav: su propia cabecera manda */
  background: var(--navy); color: #fff;
  display: flex; flex-direction: column; gap: .15rem; overflow-y: auto; overscroll-behavior: contain;
  padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .5s var(--ease-menu), visibility 0s .5s;
  will-change: transform;
}
.mobile-menu.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease-menu), visibility 0s 0s; }
/* Halo cálido de fondo, solo decorativo */
.mobile-menu::before {
  content: ""; position: absolute; inset: auto -20% -30% -20%; height: 60%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255,198,78,.18), transparent 70%);
  pointer-events: none;
}

/* Cabecera propia con el botón de cerrar siempre visible */
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: calc(var(--nav-h) - 1rem); margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 1rem;
}
.mobile-menu-head img { height: 34px; width: auto; }
.mobile-close {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem .55rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: .88rem;
  transition: background .25s, transform .2s var(--ease-out);
  min-height: 44px;
}
.mobile-close:hover, .mobile-close:active { background: var(--yellow); color: var(--navy); }
.mobile-close:active { transform: scale(.94); }
.mobile-close .ico { width: 18px; height: 18px; }

/* Items: entran escalonados y salen todos juntos, sin saltos */
.mobile-menu > *:not(.mobile-menu-head) {
  position: relative;
  opacity: 0; transform: translateY(10px);
  transition: opacity .34s var(--ease-menu) var(--md, 0ms), transform .34s var(--ease-menu) var(--md, 0ms);
}
.mobile-menu.is-open > *:not(.mobile-menu-head) { opacity: 1; transform: none; }
.mobile-menu.is-open > *:nth-child(2)  { --md: 120ms; }
.mobile-menu.is-open > *:nth-child(3)  { --md: 155ms; }
.mobile-menu.is-open > *:nth-child(4)  { --md: 190ms; }
.mobile-menu.is-open > *:nth-child(5)  { --md: 225ms; }
.mobile-menu.is-open > *:nth-child(6)  { --md: 260ms; }
.mobile-menu.is-open > *:nth-child(7)  { --md: 295ms; }
.mobile-menu.is-open > *:nth-child(8)  { --md: 330ms; }
.mobile-menu.is-open > *:nth-child(9)  { --md: 365ms; }
/* Al cerrar, todos se desvanecen juntos y rápido */
.mobile-menu:not(.is-open) > *:not(.mobile-menu-head) { --md: 0ms; transition-duration: .18s; }

.mobile-menu a {
  font-family: var(--display); font-size: clamp(1.75rem, 7.5vw, 2.3rem); letter-spacing: .02em;
  padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.mobile-menu a:active { color: var(--yellow); }
.mobile-menu .btn { font-family: var(--sans); font-size: 1rem; margin-top: 1.1rem; border-bottom: 0; padding: .95rem 1.5rem; }

/* Desde 900px: menú completo arriba, sin hamburguesa ni panel móvil */
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-actions .btn-wa { display: inline-flex; }
  .mobile-menu { display: none; }
}
/* Entre 900 y 1120px todo entra, pero más compacto */
@media (min-width: 900px) and (max-width: 1119px) {
  .nav-inner { gap: .9rem; }
  .nav-brand img { height: 36px; }
  .nav-links { gap: 1rem; font-size: .84rem; }
  .nav-actions { gap: .45rem; }
  .nav-actions .btn-wa { padding: .6rem .85rem; font-size: .8rem; }
  .nav-actions .btn-wa .ico { width: 16px; height: 16px; }
}

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h));
  display: grid; align-items: center; color: #fff; overflow: clip; background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.06); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,42,77,.96) 0%, rgba(7,42,77,.86) 35%, rgba(7,42,77,.35) 70%, rgba(7,42,77,.25) 100%),
              linear-gradient(0deg, rgba(7,42,77,.75) 0%, transparent 40%);
}
.hero-inner { position: relative; padding-block: clamp(4rem, 10vh, 7rem) 3rem; display: grid; gap: 1.6rem; max-width: 720px; }
.hero-kicker { display: inline-flex; align-items: center; gap: .7rem; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255,198,78,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,198,78,.55); } 70% { box-shadow: 0 0 0 12px rgba(255,198,78,0); } 100% { box-shadow: 0 0 0 0 rgba(255,198,78,0); } }
.hero-title {
  font-family: var(--display); font-size: clamp(3.4rem, 9vw, 7.4rem); line-height: .92; letter-spacing: .01em;
  max-width: 14ch;
}
.hero-title em { font-style: normal; color: var(--yellow); }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.85); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.18); max-width: 620px; }
.hero-stat strong { display: block; font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; color: var(--yellow); }
.hero-stat > span { font-size: .8rem; color: rgba(255,255,255,.72); line-height: 1.3; display: block; margin-top: .25rem; }
.hero-stat strong span { font: inherit; color: inherit; display: inline; }
.hero-scroll { position: absolute; right: var(--gutter); bottom: 1.6rem; display: none; align-items: center; gap: .6rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); writing-mode: vertical-rl; }
.hero-scroll::after { content: ""; width: 1px; height: 48px; background: linear-gradient(var(--yellow), transparent); }
@media (min-width: 960px) { .hero-scroll { display: flex; } }

/* Split word reveal */
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); animation: splitSafety .01s 2.5s forwards; }
.is-ready .hero-title .split-word > span { transform: none; }
@keyframes splitSafety { to { transform: none; } }

/* =============================================================
   6. Marcas (marquee)
   ============================================================= */
.brands { background: var(--navy); color: #fff; padding-block: 2.2rem 2.6rem; overflow: clip; position: relative; }
.brands-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.brands-head p { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.65); font-weight: 600; }
.brands-head .chip { background: rgba(255,198,78,.14); color: var(--yellow); }
.marquee { --gap: clamp(1.6rem, 4vw, 3.4rem); display: flex; gap: var(--gap); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--gap); flex: none; align-items: center; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
.marquee-item { flex: none; height: 84px; display: grid; place-items: center; opacity: .92; transition: opacity .3s, transform .4s var(--ease-out); }
.marquee-item img { height: 84px; width: auto; max-width: 240px; object-fit: contain; }
.marquee-item:hover { opacity: 1; transform: scale(1.06); }
@media (min-width: 960px) { .marquee-item, .marquee-item img { height: 110px; } .marquee-item img { max-width: 300px; } }

/* --- Con el dedo: en vez de girar solo, se desliza a mano ---
   El movimiento automático no se puede frenar en un celular, así que en
   pantallas táctiles se apaga y el carrusel pasa a ser un deslizador nativo,
   con inercia del sistema. El track duplicado (que solo existe para el bucle
   infinito) se oculta para que no aparezcan los logos repetidos. */
@media (pointer: coarse) {
  .marquee {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* El degradado se aplica desde JS solo del lado donde queda contenido */
    mask-image: none;
    -webkit-mask-image: none;
  }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee-track { animation: none; padding-inline: var(--gutter, 1rem); }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-item:hover { transform: none; }

  /* Degradado solo hacia donde todavía hay para deslizar */
  .marquee.hay-izq  { mask-image: linear-gradient(90deg, transparent, #000 7%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%); }
  .marquee.hay-der  { mask-image: linear-gradient(90deg, #000 93%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 93%, transparent); }
  .marquee.hay-izq.hay-der { mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }

  /* Las reseñas se acomodan de a una; los logos van libres porque entran varios */
  .reviews-marquee { scroll-snap-type: x mandatory; }
  .reviews-marquee .review { scroll-snap-align: center; }
}

/* =============================================================
   7. Diferenciales
   ============================================================= */
.pillars { display: grid; gap: 1.4rem; }
.pillar {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow);
  transform-style: preserve-3d; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,42,77,.95) 0%, rgba(7,42,77,.45) 45%, rgba(7,42,77,.05) 100%); }
.pillar-body { position: relative; z-index: 1; padding: 1.6rem; display: grid; gap: .5rem; }
.pillar-num { font-family: var(--display); font-size: 1rem; letter-spacing: .1em; color: var(--yellow); }
.pillar h3 { font-family: var(--display); font-size: 2rem; letter-spacing: .02em; line-height: .95; }
.pillar p { font-size: .95rem; color: rgba(255,255,255,.82); max-width: 36ch; }
.pillar:hover { box-shadow: var(--shadow-lg); }
.pillar:hover img { transform: scale(1.06); filter: saturate(1.1); }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(2, 1fr); } .pillar:nth-child(3) { grid-column: 1 / -1; min-height: 320px; } }
@media (min-width: 960px) { .pillars { grid-template-columns: repeat(3, 1fr); } .pillar, .pillar:nth-child(3) { grid-column: auto; min-height: 460px; } }

/* =============================================================
   8. Rubros
   ============================================================= */
.rubros { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.rubro {
  display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--line); font-weight: 500; font-size: .95rem; color: var(--navy);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.rubro svg { width: 28px; height: 28px; flex: none; color: var(--navy-3); }
.rubro:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--yellow); }
@media (min-width: 720px) { .rubros { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .rubros { grid-template-columns: repeat(4, 1fr); } }

.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; left: 1rem; bottom: 1rem; background: var(--yellow); color: var(--navy); padding: .9rem 1.1rem; border-radius: 14px;
  display: grid; gap: .1rem; box-shadow: var(--shadow);
}
.about-badge strong { font-family: var(--display); font-size: 1.9rem; line-height: 1; }
.about-badge span { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.about-copy { display: grid; gap: 1.2rem; }
.about-list { display: grid; gap: .8rem; margin-top: .4rem; }
.about-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink-soft); }
.about-list li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: .8rem; display: grid; place-items: center; margin-top: .15rem; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }

/* =============================================================
   9. Catálogo
   ============================================================= */
.catalog-tools { display: grid; gap: 1rem; margin-bottom: 2rem; }
.search { position: relative; }
.search input {
  width: 100%; padding: .95rem 1.2rem .95rem 3rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(10,53,96,.08); }
.search .ico { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--slate); }
.filters { display: flex; gap: .5rem; overflow-x: auto; overflow-y: visible; padding-bottom: .4rem; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .85rem; font-weight: 500; color: var(--ink-soft);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (min-width: 960px) { .catalog-tools { grid-template-columns: 340px 1fr; align-items: center; } }

.products { display: grid; gap: 1.3rem; }
.product {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); transform-style: preserve-3d;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--grey-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.product-media.is-contain img { object-fit: contain; }
.product:hover .product-media img { transform: scale(1.05); }
.product-media .chip { position: absolute; left: .8rem; top: .8rem; }
.product-media .chip.featured { left: auto; right: .8rem; background: var(--yellow); }
.product-body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: .45rem; flex: 1; align-content: start; }
.product-brand { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.product h3 { font-size: 1.12rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
.product-pres { font-size: .88rem; font-weight: 500; color: var(--navy-3); display: inline-flex; align-items: center; gap: .4rem; }
.product-pres::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.product p { font-size: .9rem; color: var(--ink-soft); }
.product-foot { margin-top: auto; padding-top: .9rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.product-foot .btn { padding: .65rem 1rem; font-size: .82rem; }
.catalog-empty { grid-column: 1 / -1; text-align: center; padding: 3.5rem 1rem; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--slate-2); display: grid; gap: .6rem; justify-items: center; }
.catalog-empty strong { color: var(--navy); font-size: 1.1rem; }
.catalog-note { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; font-size: .88rem; color: var(--slate-2); }
.catalog-note a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 540px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .products { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   10. Envíos y horarios
   ============================================================= */
.zones-grid { display: grid; gap: 2.5rem; }
.zones { display: grid; gap: 1rem; }
.zone {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.3rem 1.4rem;
  display: grid; gap: .6rem; transition: background .3s, transform .4s var(--ease-out), border-color .3s;
}
.zone:hover { background: rgba(255,255,255,.1); border-color: rgba(255,198,78,.5); transform: translateX(4px); }
.zone-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.zone h3 { font-family: var(--display); font-size: 1.6rem; letter-spacing: .03em; color: #fff; }
.zone-days { font-weight: 600; color: var(--yellow); font-size: .95rem; white-space: nowrap; }
.zone-areas { font-size: .88rem; color: rgba(255,255,255,.7); }
.zone-note { font-size: .82rem; color: rgba(255,255,255,.55); }
.days { display: flex; gap: .35rem; }
.days span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.08); color: rgba(255,255,255,.45); }
.days span.on { background: var(--yellow); color: var(--navy); }
.hours-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-lg); display: grid; gap: 1.2rem; align-self: start; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.hours-card h3 { font-family: var(--display); font-size: 2rem; color: var(--navy); letter-spacing: .02em; }
.hours-list { display: grid; gap: .6rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.hours-list li span:first-child { color: var(--ink-soft); }
.hours-list li span:last-child { font-weight: 600; color: var(--navy); }
.hours-card .btn { justify-self: start; }
.hours-tip { font-size: .85rem; color: var(--slate-2); background: var(--yellow-soft); padding: .8rem 1rem; border-radius: 10px; }
@media (min-width: 960px) { .zones-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }

/* =============================================================
   11. Reseñas
   ============================================================= */
/* Carrusel de reseñas, mismo mecanismo que el de marcas */
.reviews-marquee { --gap: 1.1rem; padding-block: .4rem 1rem; }
.reviews-marquee .marquee-track { animation-duration: 90s; align-items: stretch; }
.reviews-marquee .review { flex: none; width: min(80vw, 350px); }
@media (prefers-reduced-motion: reduce) { .reviews-marquee .marquee-track { animation-duration: 200s; } }

.review { background: #fff; border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); display: grid; gap: .8rem; align-content: start; position: relative; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review::before { content: "\201C"; position: absolute; right: 1.2rem; top: .4rem; font-family: var(--display); font-size: 5rem; line-height: 1; color: var(--yellow); opacity: .6; }
.stars { color: var(--yellow); letter-spacing: .1em; font-size: 1rem; }
.review p { color: var(--ink-soft); font-size: .95rem; }
.review-author { display: flex; align-items: center; gap: .8rem; margin-top: .3rem; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-family: var(--display); font-size: 1.2rem; }
.review-author strong { display: block; font-size: .92rem; color: var(--navy); }
.review-author span { font-size: .8rem; color: var(--slate-2); }
.reviews-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--navy); color: #fff; }
.reviews-cta p { color: rgba(255,255,255,.8); font-size: .95rem; }
.reviews-cta strong { color: #fff; display: block; font-size: 1.05rem; }
@media (min-width: 720px) { .reviews-marquee { --gap: 1.4rem; } }

/* =============================================================
   12. Contacto
   ============================================================= */
.contact { position: relative; overflow: clip; }
.contact-bg { position: absolute; inset: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,42,77,.97), rgba(7,42,77,.82) 60%, rgba(7,42,77,.6)); }
.contact-inner { position: relative; display: grid; gap: 2.5rem; color: #fff; }
.contact-copy { display: grid; gap: 1.2rem; }
.contact .kicker { color: var(--yellow); }
.contact .title { color: #fff; }
.contact .lead { color: rgba(255,255,255,.8); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.contact-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1.1rem; }
@supports not (backdrop-filter: blur(10px)) { .contact-card { background: rgba(7,42,77,.9); } }
.contact-row { display: flex; gap: .9rem; align-items: flex-start; }
.contact-row .ico { width: 24px; height: 24px; flex: none; color: var(--yellow); margin-top: .1rem; }
.contact-row strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.contact-row span, .contact-row a { font-size: 1.05rem; font-weight: 500; }
.contact-row a:hover { color: var(--yellow); }
.phone-big { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: .03em; color: var(--yellow); line-height: 1; }
@media (min-width: 960px) { .contact-inner { grid-template-columns: 1.2fr 1fr; align-items: center; } }

/* =============================================================
   13. Footer
   ============================================================= */
.footer { background: var(--navy-2); color: rgba(255,255,255,.7); padding-block: 3rem 2rem; font-size: .88rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { display: grid; gap: .8rem; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { max-width: 36ch; }
.footer h3 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.footer ul { display: grid; gap: .45rem; }
.footer a:hover { color: var(--yellow); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .78rem; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.55); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* =============================================================
   14. Flotante WhatsApp
   ============================================================= */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px rgba(37,211,102,.4);
  transition: transform .4s var(--ease-bounce), box-shadow .3s;
}
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); box-shadow: 0 18px 36px rgba(37,211,102,.5); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: waPulse 2.4s infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-label { position: absolute; right: 68px; white-space: nowrap; background: #fff; color: var(--navy); font-size: .8rem; font-weight: 600; padding: .5rem .8rem; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s var(--ease-out); pointer-events: none; }
.wa-float:hover .wa-label { opacity: 1; transform: none; }

/* =============================================================
   14b. Lista de consulta (carrito)
   ============================================================= */
/* Botón Agregar y control de cantidad dentro de la tarjeta */
.btn-add { width: 100%; }
.product.in-cart { box-shadow: 0 0 0 2px var(--yellow), var(--shadow); }
.product-foot .qty { display: inline-flex; align-items: center; gap: .2rem; background: var(--navy); border-radius: 999px; padding: .25rem; }
.qty-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.2rem; line-height: 1; transition: background .25s; }
.qty-btn:hover { background: rgba(255,255,255,.16); }
.qty-num { min-width: 28px; text-align: center; font-weight: 700; color: #fff; font-size: .95rem; }
.qty-tag { font-size: .78rem; font-weight: 600; color: var(--navy-3); }
/* Con el dedo, los +/− necesitan más área que con el mouse */
@media (pointer: coarse) { .qty-btn { width: 42px; height: 42px; font-size: 1.35rem; } }

/* Botón del carrito en la barra superior */
.nav-cart {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  height: 40px; padding: 0 .9rem; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: .88rem;
  transition: transform .3s var(--ease-out), background .3s;
  animation: cartPop .45s var(--ease-bounce);
}
.nav-cart:hover { background: var(--navy-3); transform: translateY(-2px); }
.nav-cart .ico { width: 20px; height: 20px; color: var(--yellow); }
.nav-cart-text { display: none; }
@keyframes cartPop { from { opacity: 0; transform: scale(.7); } }
.nav-cart.is-bump { animation: cartBump .5s var(--ease-bounce); }
@keyframes cartBump { 30% { transform: scale(1.14); } }

.cart-badge {
  position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--yellow); color: var(--navy);
  font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}
@media (min-width: 1120px) {
  .nav-cart { padding: 0 1rem 0 .9rem; }
  .nav-cart-text { display: inline; white-space: nowrap; }
  .nav-cart .cart-badge { top: -6px; right: -6px; }
}

/* Carrito dentro del menú móvil */
.mobile-cart {
  position: relative; display: flex; align-items: center; gap: .7rem;
  margin-top: 1.2rem; padding: .9rem 1.2rem; border-radius: 999px;
  background: rgba(255,255,255,.1); color: #fff; font-weight: 600; font-size: 1rem;
  border: 1px solid rgba(255,255,255,.25);
}
.mobile-cart .ico { width: 22px; height: 22px; color: var(--yellow); }
.mobile-cart .cart-badge { position: static; margin-left: auto; border-color: transparent; }
@media (min-width: 900px) { .mobile-cart { display: none; } }

/* Panel deslizante */
/* Cerrado: fuera del árbol de render (sin capas ni filtros que cuesten pintar) */
.cart-panel { position: fixed; inset: 0; z-index: 120; pointer-events: none; visibility: hidden; transition: visibility 0s .4s; }
.cart-panel.is-open { pointer-events: auto; visibility: visible; transition-delay: 0s; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(7,42,77,.55); opacity: 0; transition: opacity .35s var(--ease-out); }
.cart-panel.is-open .cart-backdrop { opacity: 1; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.cart-sheet {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(100%, 430px);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s var(--ease-out);
  box-shadow: -20px 0 60px rgba(10,53,96,.25);
}
.cart-panel.is-open .cart-sheet { transform: none; }
.cart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.4rem; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-family: var(--display); font-size: 2rem; color: var(--navy); letter-spacing: .02em; }
.cart-head p { font-size: .85rem; color: var(--slate-2); }
.cart-close { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grey-2); color: var(--navy); flex: none; transition: background .25s, color .25s; }
.cart-close:hover { background: var(--navy); color: #fff; }
.cart-close .ico { width: 20px; height: 20px; }
.cart-list { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: grid; gap: .8rem; align-content: start; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: .8rem; align-items: center; padding-bottom: .8rem; border-bottom: 1px dashed var(--line); }
.cart-item img, .cart-ph { width: 60px; height: 46px; object-fit: contain; border-radius: 8px; background: var(--grey-2); }
.cart-item-body { min-width: 0; }
.cart-item-body strong { display: block; font-size: .9rem; color: var(--navy); line-height: 1.3; }
.cart-item-body span { font-size: .78rem; color: var(--slate-2); }
.cart-item .qty { display: inline-flex; align-items: center; gap: .1rem; background: var(--navy); border-radius: 999px; padding: .15rem; }
.cart-item .qty-btn { width: 28px; height: 28px; font-size: 1rem; }
.cart-item .qty-num { min-width: 20px; font-size: .85rem; }
@media (pointer: coarse) { .cart-item .qty-btn { width: 38px; height: 38px; font-size: 1.15rem; } }
.cart-foot { padding: 1.2rem 1.4rem calc(1.2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: .8rem; background: var(--grey-2); }
.cart-foot .btn-wa { width: 100%; }
.cart-note { font-size: .8rem; color: var(--slate-2); line-height: 1.5; }
.cart-clear { font-size: .82rem; color: var(--slate-2); text-decoration: underline; text-underline-offset: 3px; justify-self: center; padding: .7rem 1rem; min-height: 44px; }
.cart-clear:hover { color: #c62828; }

/* El panel se abre desde arriba: no interfiere con el botón flotante de WhatsApp */

/* =============================================================
   14c. Transición entre secciones (círculo que cierra y abre)
   ============================================================= */
/* El círculo lo anima main.js con valores exactos; acá va lo visual */
.iris {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: var(--navy);
  display: grid; place-items: center;
  clip-path: circle(0px at 50% 50%);
  visibility: hidden;
}
.iris.is-active { visibility: visible; }
.iris-mark { width: clamp(60px, 13vw, 96px); height: auto; color: var(--yellow); opacity: 0; transform: scale(.75); }
.iris.is-closing .iris-mark { animation: markIn .4s var(--ease-out) forwards; }
.iris.is-opening .iris-mark { animation: markOut .28s var(--ease-out) forwards; }
@keyframes markIn  { 45% { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes markOut { to { opacity: 0; transform: scale(1.3); } }

/* =============================================================
   15. Effects / reveal
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.grain { pointer-events: none; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.admin-link { font-size: .75rem; opacity: .6; }

/* =============================================================
   16. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-kicker .dot, .wa-float::before { animation: none; }
  .marquee-track { animation-duration: 120s; }
}
