/* Distribuidora Juan Pablo — sitio vidriera
   Layout: "estantería" — bandas a todo el ancho; cada producto como un artículo en góndola,
   con su etiqueta de código en mono, como las etiquetas reales del depósito. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("../fonts/plex-mono-500.woff2") format("woff2"); }

:root {
  /* Color: azul marino del logo como base; verde de la fachada (y del catálogo) como segundo color;
     rojo del logo solo en detalles; neutros fríos con un sesgo hacia el azul */
  --navy: #123f63;
  --navy-deep: #0b2640;
  --navy-soft: #16567f;
  --green: #24513a;
  --green-soft: #e7efe9;
  --red: #ab2428;
  --orange: #ee8325;
  --sky: #a9d4e7;
  --ink: #172231;
  --muted: #556273;
  --paper: #ffffff;
  --mist: #f0f4f7;
  --line: #dbe3ea;
  --wa: #1d9d55;
  --wa-deep: #157a41;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, .74);

  /* Type: Archivo ancho (expandido) para títulos, Archivo normal para texto, Plex Mono para códigos y medidas */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --r-1: 4px; --r-2: 10px; --r-3: 18px;
  --header-h: 64px;
  --maxw: 1200px;
  --shadow-1: 0 1px 2px rgba(11, 38, 64, .06), 0 4px 14px rgba(11, 38, 64, .06);
  --shadow-2: 0 18px 50px rgba(11, 38, 64, .22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 76px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%; max-width: calc(var(--maxw) + 2 * 32px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* ---------- tipografía ---------- */
.display, h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; color: inherit; }
h1 { font-size: clamp(2.05rem, 1.4rem + 3.3vw, 4.1rem); line-height: 1.02; font-weight: 800; font-variation-settings: "wdth" 116; letter-spacing: -.012em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.6rem); line-height: 1.06; font-weight: 800; font-variation-settings: "wdth" 114; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; line-height: 1.2; font-weight: 750; font-variation-settings: "wdth" 108; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.eyebrow {
  font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; font-variation-settings: "wdth" 106;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-line { border-color: var(--line); color: var(--navy); background: var(--paper); }
.btn-line:hover { border-color: var(--navy); }
.btn-sm { min-height: 40px; font-size: .92rem; padding: 0 1em; }
.link-arrow { font-family: var(--f-display); font-weight: 700; color: var(--navy); text-decoration: none; display: inline-flex; gap: .4em; align-items: center; font-variation-settings: "wdth" 106; }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); margin-right: auto; min-width: 0; }
.brand img { width: auto; height: 40px; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 112; font-size: 1.02rem; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--f-mono); font-weight: 500; font-size: .62rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink); padding: .4rem .2rem; position: relative; font-variation-settings: "wdth" 104; }
.nav a::after { content: ""; position: absolute; left: .2rem; right: .2rem; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: none; }
.menu-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; cursor: pointer;
}
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy); transition: transform .25s; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding-block: var(--s-3) var(--s-5); }
.menu-open .mobile-nav { display: block; }
.mobile-nav a:not(.btn) { display: block; padding: .85rem 0; font-family: var(--f-display); font-weight: 750; font-size: 1.35rem; font-variation-settings: "wdth" 112; text-decoration: none; color: var(--navy); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: var(--s-4); width: 100%; }
@media (max-width: 430px) {
  .header-row { gap: 10px; }
  .brand { gap: .45rem; }
  .brand img { height: 36px; }
  .brand-name { font-size: .95rem; font-variation-settings: "wdth" 100; }
}
@media (min-width: 920px) {
  .nav { display: flex; gap: 1.7rem; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mobile-nav, .menu-open .mobile-nav { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy-deep); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero-media { position: relative; aspect-ratio: 4 / 3.1; max-width: 100%; overflow: hidden; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 8% 50%;
  animation: recorrido 46s ease-in-out infinite alternate;
}
@keyframes recorrido { from { object-position: 6% 50%; } to { object-position: 94% 50%; } }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 38, 64, .15) 0%, rgba(11, 38, 64, .1) 45%, var(--navy-deep) 100%); }
.hero-caption {
  position: absolute; z-index: 2; left: max(16px, env(safe-area-inset-left, 0px)); top: 14px;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(11, 38, 64, .72); color: #fff; padding: .4em .8em; border-radius: 999px; display: inline-flex; gap: .5em; align-items: center;
}
.hero-caption svg { width: 12px; height: 12px; }
.hero-body { position: relative; z-index: 2; padding-block: 0 var(--s-6); margin-top: -2.5rem; display: grid; gap: var(--s-5); }
.hero-stamp {
  justify-self: start; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: .45em .95em; display: inline-flex; gap: .7em; align-items: center;
}
.hero-stamp b { color: #fff; font-weight: 500; }
.hero-stamp i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(171, 36, 40, .35); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: var(--on-dark-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-ctas .btn { flex: 1 1 220px; }
.facts { border-top: 1px solid rgba(255, 255, 255, .16); position: relative; z-index: 2; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.facts li { padding: var(--s-4) var(--s-3) var(--s-4) 0; border-bottom: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 2px; }
.facts li:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .12); }
.facts li:nth-child(even) { padding-left: var(--s-4); }
.facts li:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.facts strong { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 118; font-size: 1.12rem; color: #fff; line-height: 1.1; }
.facts li > span { font-size: .84rem; color: var(--on-dark-muted); }
@media (min-width: 900px) {
  .hero-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-media::after { background: linear-gradient(90deg, rgba(11, 38, 64, .94) 0%, rgba(11, 38, 64, .78) 38%, rgba(11, 38, 64, .2) 72%, rgba(11, 38, 64, .35) 100%), linear-gradient(0deg, rgba(11, 38, 64, .9) 0%, rgba(11, 38, 64, 0) 30%); }
  .hero-caption { left: auto; right: max(32px, env(safe-area-inset-right, 0px)); top: auto; bottom: 120px; }
  .hero-body { margin-top: 0; padding-block: clamp(4.5rem, 9vw, 7.5rem) var(--s-7); }
  .hero-body > * { max-width: 680px; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .facts ul { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
  .facts li:last-child:nth-child(odd) { grid-column: auto; }
  .facts li, .facts li:nth-child(even) { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .12); padding: var(--s-5) var(--s-5); }
  .facts li:first-child { padding-left: 0; }
  .facts li:last-child { border-right: 0; }
}

/* ---------- secciones ---------- */
.section { padding-block: clamp(3.25rem, 2.5rem + 3vw, 5.5rem); }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: var(--on-dark); }
.section-navy .eyebrow { color: #fff; opacity: .8; }
.section-head { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: end; justify-content: space-between; margin-bottom: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }
.section-head > div { display: grid; gap: var(--s-3); min-width: 0; }

/* rubros */
.rubros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 760px) { .rubros { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); } }
.rubro {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.rubro:hover { border-color: var(--navy); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.rubro figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 1; background: var(--paper); }
.rubro figure img { position: absolute; inset: 12%; width: 76%; height: 76%; max-width: none; object-fit: contain; transition: transform .35s; }
.rubro:hover figure img { transform: scale(1.05); }
.rubro div { align-content: start; padding: var(--s-3) var(--s-4) var(--s-4); border-top: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.rubro h3 { font-size: clamp(.98rem, .9rem + .3vw, 1.12rem); }
.rubro span { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); letter-spacing: .04em; }

/* por qué */
.why { display: grid; gap: var(--s-6); align-items: center; }
.why-photo { margin: 0; position: relative; border-radius: var(--r-2); overflow: hidden; aspect-ratio: 4 / 4.4; max-width: 100%; }
.why-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.why-photo figcaption { position: absolute; left: 12px; bottom: 12px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .92); color: var(--navy); padding: .35em .7em; border-radius: 999px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.why-list li { display: grid; grid-template-columns: 46px 1fr; gap: var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.why-list li:first-child { padding-top: 0; }
.why-list svg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--paper); color: var(--green); border: 1px solid var(--line); }
.why-list p { color: var(--muted); margin-top: 4px; }
.notice {
  margin-top: var(--s-5); display: flex; gap: var(--s-3); align-items: flex-start;
  background: var(--green-soft); color: var(--green); border-radius: var(--r-2); padding: var(--s-4) var(--s-5);
}
.notice strong { font-family: var(--f-display); font-variation-settings: "wdth" 110; display: block; color: var(--green); }
.notice p { color: var(--ink); font-size: .95rem; }
.notice svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
@media (min-width: 900px) { .why { grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 5vw, 5rem); } }

/* pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); counter-reset: paso; }
.steps li { display: grid; gap: var(--s-3); align-content: start; padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .2); }
.step-n { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 125; font-size: 3rem; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--sky); }
.steps h3 { color: #fff; font-size: 1.3rem; }
.steps p { color: var(--on-dark-muted); max-width: 38ch; }
.steps-cta { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.steps-cta p { color: var(--on-dark-muted); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

/* marcas */
.brands { padding-block: var(--s-6); border-block: 1px solid var(--line); overflow: hidden; }
.brands-label { text-align: center; margin-bottom: var(--s-4); }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.marquee li { font-family: var(--f-display); font-weight: 750; font-variation-settings: "wdth" 122; font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); color: var(--navy); white-space: nowrap; display: flex; align-items: center; }
.marquee li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-inline: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); opacity: .85; }
.brands:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* nosotros teaser */
.split { display: grid; gap: var(--s-6); align-items: center; }
.split-photo { border-radius: var(--r-2); overflow: hidden; max-width: 100%; }
.split-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.split-text { display: grid; gap: var(--s-4); min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 5vw, 4.5rem); } }

/* ubicación */
.place { display: grid; gap: var(--s-5); }
.map {
  position: relative; border-radius: var(--r-2); overflow: hidden; min-height: 320px; background: #e9ece6; border: 1px solid var(--line);
  display: grid; max-width: 100%;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-card {
  position: relative; z-index: 2; align-self: end; margin: var(--s-4); background: var(--paper); border-radius: var(--r-2); box-shadow: var(--shadow-1);
  padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-2); max-width: 340px;
}
.map-card strong { font-family: var(--f-display); font-variation-settings: "wdth" 112; font-size: 1.15rem; color: var(--navy); }
.map.has-embed .map-art, .map.has-embed .map-card { display: none; }
.info { display: grid; gap: 0; align-content: start; }
.place-photo { margin: 0 0 var(--s-5); position: relative; border-radius: var(--r-2); overflow: hidden; max-width: 100%; }
.place-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.place-photo figcaption { position: absolute; left: 12px; bottom: 12px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .92); color: var(--navy); padding: .35em .7em; border-radius: 999px; }
.info-row { display: grid; grid-template-columns: 112px 1fr; gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.info-row:first-child { padding-top: 0; }
.info-row dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.info-row dd { margin: 0; min-width: 0; }
.info-row dd a { text-decoration: none; font-weight: 600; }
.info-row dd a:hover { text-decoration: underline; }
.info-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
@media (min-width: 900px) { .place { grid-template-columns: 7fr 5fr; gap: clamp(2rem, 4vw, 3.5rem); } .map { min-height: 460px; } }
.open-now { display: inline-flex; align-items: center; gap: .45em; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .2em .6em; border-radius: 999px; margin-left: .4em; vertical-align: 2px; }
.open-now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.open-now.is-open { color: var(--green); background: var(--green-soft); }
.open-now.is-closed { color: var(--muted); background: var(--mist); }

/* banda CTA */
.cta-band { background: var(--navy-deep); color: #fff; }
.cta-band .wrap { padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem); display: grid; gap: var(--s-5); align-items: center; }
.cta-band p { color: var(--on-dark-muted); max-width: 52ch; margin-top: var(--s-3); }
@media (min-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-muted); border-top: 1px solid rgba(255, 255, 255, .1); padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer .wrap { padding-block: var(--s-7) var(--s-6); display: grid; gap: var(--s-6); }
.footer-grid { display: grid; gap: var(--s-6); }
.footer-brand { display: grid; gap: var(--s-3); max-width: 34ch; }
.footer-brand .logo-chip { width: 84px; background: #fff; border-radius: var(--r-1); padding: 8px; }
.footer-brand strong { font-family: var(--f-display); font-variation-settings: "wdth" 114; color: #fff; font-size: 1.15rem; }
.site-footer h4 { margin: 0 0 var(--s-3); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; font-size: .85rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr 1.3fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 70; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .55em; height: 58px; min-width: 58px; padding: 0 17px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; box-shadow: 0 10px 28px rgba(21, 122, 65, .38);
  font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 106; transition: background-color .2s, transform .2s;
}
.wa-float:hover { background: var(--wa-deep); transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float span { display: none; }
@media (min-width: 720px) { .wa-float span { display: inline; } .wa-float { padding: 0 22px 0 18px; } }

/* ---------- encabezado de página interna ---------- */
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.25rem) clamp(2rem, 1.6rem + 2vw, 3.25rem); display: grid; gap: var(--s-4); }
.page-head h1 { color: var(--navy); max-width: 20ch; }

/* ---------- productos ---------- */
.toolbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 40;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.toolbar .wrap { padding-block: var(--s-3); display: grid; gap: var(--s-3); }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 50px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--mist);
  padding: 0 46px 0 48px; font: inherit; font-size: 1rem; color: var(--ink); outline: none; transition: border-color .2s, background-color .2s;
}
.search input:focus { border-color: var(--navy); background: var(--paper); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: #8a8fa1; }
.search-clear { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.chips { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: .5em; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 600; font-size: .92rem; white-space: nowrap;
  font-variation-settings: "wdth" 104; text-decoration: none; color: var(--ink);
}
.chip small { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .72); }
@media (min-width: 720px) {
  .toolbar .wrap { grid-template-columns: minmax(260px, 360px) 1fr; align-items: center; }
  .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}
.results-meta { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.catalog { padding-block: var(--s-6) var(--s-8); display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-3); margin-bottom: var(--s-4); border-bottom: 2px solid var(--navy); }
.group-head h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); color: var(--navy); }
.group-head span { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  display: grid; grid-template-rows: auto 1fr; text-align: left; padding: 0; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--navy); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.card figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 1; background: var(--paper); }
.card figure img { position: absolute; inset: 9%; width: 82%; height: 82%; max-width: none; object-fit: contain; transition: transform .35s; }
.card:hover figure img { transform: scale(1.04); }
.card-body { padding: var(--s-3) var(--s-4) var(--s-4); border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; min-width: 0; }
.card-brand { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.card h3 { font-size: clamp(.92rem, .86rem + .25vw, 1.05rem); color: var(--navy); overflow-wrap: anywhere; }
.card-meta { font-size: .84rem; color: var(--muted); }
.dots { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 2px; }
.sw { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(11, 38, 64, .18); flex: none; }
.dots small { font-family: var(--f-mono); font-size: .68rem; color: var(--muted); margin-left: 2px; }
.empty { text-align: center; padding: var(--s-8) 0; display: grid; gap: var(--s-4); justify-items: center; }
.empty h2 { color: var(--navy); font-size: 1.5rem; }
.empty p { color: var(--muted); max-width: 46ch; }

/* ficha */
.ficha {
  border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; border-radius: var(--r-3) var(--r-3) 0 0;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2); overflow: hidden;
}
.ficha[open] { display: flex; flex-direction: column; animation: sube .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes sube { from { transform: translateY(24px); opacity: .4; } }
.ficha::backdrop { background: rgba(11, 38, 64, .62); backdrop-filter: blur(3px); }
.ficha-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.ficha-top .eyebrow { font-size: .68rem; }
.ficha-nav { display: flex; gap: var(--s-2); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.icon-btn:hover { border-color: var(--navy); }
.icon-btn svg { width: 18px; height: 18px; }
.ficha-scroll { overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); }
.ficha-grid { display: grid; }
.ficha-photo { margin: 0; background: var(--paper); display: grid; place-items: center; padding: var(--s-5) 14%; border-bottom: 1px solid var(--line); }
.ficha-photo img { max-height: 38vh; width: auto; object-fit: contain; }
.ficha-info { padding: var(--s-5) var(--s-5) var(--s-6); display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
.ficha-info h2 { color: var(--navy); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.ficha-sub { color: var(--muted); }
.ficha-sub b { color: var(--green); font-family: var(--f-mono); font-weight: 500; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-2); }
table.var { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.var th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .65rem .9rem; background: var(--mist); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.var td { padding: .6rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .94rem; }
table.var tr:last-child td { border-bottom: 0; }
table.var td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
table.var td:last-child, table.var th:last-child { text-align: right; }
table.var tr.is-on td { background: var(--green-soft); }
.tag { display: inline-block; font-family: var(--f-mono); font-size: .8rem; padding: .12em .55em; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); letter-spacing: .02em; }
.colors h3 { font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); font-variation-settings: normal; }
.colors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.colors li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; }
.colors .sw { width: 16px; height: 16px; }
.sw-surtido { background: conic-gradient(#d0262d 0 20%, #f2c230 0 40%, #2e8b3e 0 60%, #2f5da8 0 80%, #7b4ba0 0); }
.ficha-note { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.ficha-note a { color: var(--wa-deep); font-weight: 700; }
@media (min-width: 860px) {
  .ficha { margin: auto; width: min(1000px, calc(100% - 64px)); max-height: min(86vh, 760px); border-radius: var(--r-3); }
  .ficha-grid { grid-template-columns: 1fr 1.05fr; min-height: 100%; }
  .ficha-photo { border-bottom: 0; border-right: 1px solid var(--line); padding: var(--s-6); position: sticky; top: 0; align-self: start; height: min(70vh, 640px); }
  .ficha-photo img { max-height: 100%; }
  .ficha-info { padding: var(--s-6); }
}

/* ---------- nosotros ---------- */
.story { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.story li { display: grid; gap: var(--s-2); padding-block: var(--s-5); border-top: 1px solid var(--line); }
.story-when { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 122; font-size: 1.6rem; color: var(--red); line-height: 1; }
.story h3 { color: var(--navy); font-size: 1.3rem; }
.story p { color: var(--muted); max-width: 58ch; }
@media (min-width: 820px) { .story li { grid-template-columns: 200px 1fr; gap: var(--s-6); } .story li > div { display: grid; gap: var(--s-2); } }
.quote { font-family: var(--f-display); font-weight: 650; font-variation-settings: "wdth" 108; font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); line-height: 1.25; color: var(--navy); max-width: 30ch; text-wrap: balance; margin: 0; }
.quote-wrap { display: grid; gap: var(--s-4); }
.values { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.values span { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: .4em .9em; color: var(--green); background: var(--paper); }
.bento { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento figure { margin: 0; min-height: 0; position: relative; border-radius: var(--r-2); overflow: hidden; background: var(--mist); max-width: 100%; }
.bento img { width: 100%; height: 100%; object-fit: cover; }
.bento figcaption { position: absolute; left: 10px; bottom: 10px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .92); color: var(--navy); padding: .3em .65em; border-radius: 999px; }
.bento .b-wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.bento .b-tall { aspect-ratio: 3 / 4; }
@media (max-width: 859.98px) { .bento { grid-auto-flow: dense; } .bento figure:not(.b-wide):not(.b-tall) { aspect-ratio: 4 / 3; } }
@media (min-width: 860px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: var(--s-4); }
  .bento .b-wide { grid-column: span 2; aspect-ratio: auto; }
  .bento .b-tall { grid-row: span 2; aspect-ratio: auto; }
}

/* ---------- contacto ---------- */
.contact-grid { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .contact-grid { grid-template-columns: 1.15fr 1fr 1.2fr 1.2fr; } }
.c-value.is-long { font-size: 1.08rem; overflow-wrap: normal; word-break: normal; }
.c-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.c-card.is-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.c-card.is-wa .c-label, .c-card.is-wa p { color: rgba(255, 255, 255, .85); }
.c-card.is-wa .c-value { color: #fff; }
.c-label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.c-value { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 112; font-size: 1.35rem; color: var(--navy); line-height: 1.15; overflow-wrap: anywhere; user-select: all; }
.c-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.copy-btn { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; height: 36px; padding: 0 12px; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--navy); }
.c-card.is-wa .copy-btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); color: #fff; }
.c-card.is-wa .btn { background: #fff; color: var(--wa-deep); }
.ship { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .ship { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ship > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-5); display: grid; gap: var(--s-2); grid-template-columns: 44px 1fr; align-items: start; }
.ship svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.ship p { color: var(--muted); }
.mayorista { display: flex; gap: var(--s-4); align-items: center; background: var(--navy); color: #fff; border-radius: var(--r-2); padding: var(--s-5); }
.mayorista svg { width: 32px; height: 32px; flex: none; }
.mayorista strong { font-family: var(--f-display); font-variation-settings: "wdth" 114; font-size: 1.2rem; display: block; }
.mayorista p { color: var(--on-dark-muted); }


/* ---------- acciones de encabezado ---------- */
.head-actions { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }
.page-head .head-actions { margin-top: var(--s-2); }

/* ---------- zonas ---------- */
.zonas { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); border-top: 1px solid rgba(255, 255, 255, .16); padding-top: var(--s-5); overflow: hidden; }
.zonas-head { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: baseline; margin-bottom: var(--s-4); }
.zonas-head p { color: var(--on-dark-muted); }
.marquee-zonas { animation-duration: 70s; animation-direction: reverse; }
.marquee-zonas li { font-family: var(--f-display); font-weight: 650; font-variation-settings: "wdth" 110; font-size: clamp(1rem, .95rem + .4vw, 1.25rem); color: #fff; }
.marquee-zonas li::after { background: rgba(255, 255, 255, .35); width: 5px; height: 5px; margin-inline: clamp(.9rem, .8rem + 1vw, 1.5rem); }
.zonas-light { border-top: 0; margin-top: var(--s-5); padding-top: 0; }
.zonas-light .marquee-zonas li { color: var(--navy); }
.zonas-light .marquee-zonas li::after { background: var(--red); opacity: .6; }

/* ---------- reseñas ---------- */
.reviews { overflow: hidden; }
.rev-track { display: flex; width: max-content; animation: marquee 90s linear infinite; padding-block: 4px var(--s-2); }
.rev-track:hover { animation-play-state: paused; }
.rev-rail { display: flex; gap: var(--s-4); padding-right: var(--s-4); }
.rev {
  margin: 0; width: min(340px, 82vw); flex: none; display: grid; gap: var(--s-4); align-content: space-between;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-5);
}
.rev-stars { display: flex; gap: 2px; color: #f2b01e; }
.rev-stars svg { width: 18px; height: 18px; }
.rev blockquote { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.rev figcaption { display: flex; align-items: center; gap: var(--s-3); }
.rev-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--f-display); font-weight: 800; flex: none; }
.rev figcaption strong { display: block; font-family: var(--f-display); font-variation-settings: "wdth" 106; color: var(--navy); line-height: 1.2; }
.rev figcaption small { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- preguntas frecuentes ---------- */
.faq-wrap { display: grid; gap: var(--s-5); }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding-block: var(--s-4); font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 106; font-size: 1.08rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.4rem; font-weight: 400; color: var(--green); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: var(--s-4); max-width: 62ch; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 4fr 7fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; } }
@media (min-width: 760px) { .ship { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- agregar al pedido (ficha) ---------- */
.add { display: grid; gap: var(--s-3); background: var(--mist); border-radius: var(--r-2); padding: var(--s-4); }
.add h3 { font-size: 1rem; color: var(--navy); }
.add-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.add label { display: grid; gap: 4px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.add select, .add input, .pedido input {
  width: 100%; height: 46px; border-radius: var(--r-1); border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; padding: 0 .75rem;
}
.add select:focus, .add input:focus, .pedido input:focus { outline: none; border-color: var(--navy); }
.add-btn { width: 100%; }
.add-err { color: var(--red); font-size: .88rem; }

/* ---------- botón Mi pedido ---------- */
.pedido-fab {
  position: fixed; z-index: 70; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .55em; height: 58px; padding: 0 18px 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; box-shadow: 0 10px 28px rgba(11, 38, 64, .35);
  font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 106; font-size: 1rem;
}
.pedido-fab svg { width: 24px; height: 24px; }
.pedido-fab b { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--red); display: grid; place-items: center; font-size: .82rem; }
.pedido-fab.bump { animation: bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.12); } }

/* ---------- panel Mi pedido ---------- */
.pedido {
  border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; border-radius: var(--r-3) var(--r-3) 0 0;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2); overflow: hidden;
}
.pedido[open] { display: flex; flex-direction: column; animation: sube .28s cubic-bezier(.2, .8, .2, 1); }
.pedido::backdrop { background: rgba(11, 38, 64, .62); backdrop-filter: blur(3px); }
.pedido-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.pedido-top h2 { font-size: 1.5rem; color: var(--navy); }
.pedido-body { overflow-y: auto; overscroll-behavior: contain; padding: var(--s-4) var(--s-5) calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); display: grid; gap: var(--s-4); }
.pedido-empty { display: grid; gap: var(--s-4); justify-items: start; color: var(--muted); padding-block: var(--s-4); }
.pedido-list { list-style: none; margin: 0; padding: 0; display: grid; }
.pl-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s-2) var(--s-3); align-items: center; padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.pl-item img, .pl-ph { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--paper); padding: 4px; }
.pl-info { display: grid; gap: 2px; min-width: 0; }
.pl-info strong { font-family: var(--f-display); font-variation-settings: "wdth" 106; color: var(--navy); font-size: .98rem; overflow-wrap: anywhere; }
.pl-info span:not(.tag) { font-size: .86rem; color: var(--muted); }
.pl-info .tag { justify-self: start; }
.pl-qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.pl-qty button { width: 34px; height: 38px; border: 0; background: var(--paper); cursor: pointer; font-size: 1.1rem; color: var(--navy); }
.pl-qty input { width: 52px; height: 38px; border: 0; text-align: center; padding: 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.pl-qty input::-webkit-outer-spin-button, .pl-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pl-del { grid-column: 2 / -1; justify-self: end; border: 0; background: none; color: var(--muted); font-size: .82rem; text-decoration: underline; cursor: pointer; padding: 0; }
.pedido-total { color: var(--navy); font-size: .9rem; }
.pedido fieldset { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-4); margin: 0; display: grid; gap: var(--s-3); }
.pedido legend { font-family: var(--f-display); font-weight: 700; color: var(--navy); padding: 0 .4em; }
.pedido legend small { font-weight: 400; color: var(--muted); }
.pedido fieldset label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.pedido-send { width: 100%; }
.pedido-hint { font-size: .85rem; color: var(--muted); text-align: center; }
.pedido-clear { justify-self: center; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .88rem; }
@media (min-width: 860px) {
  .pedido { margin: 0 0 0 auto; height: 100%; max-height: 100vh; width: 440px; border-radius: 0; }
  .pedido[open] { animation: entra .3s cubic-bezier(.2, .8, .2, 1); }
  @keyframes entra { from { transform: translateX(30px); opacity: .4; } }
}

/* ---------- aviso ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-2);
  max-width: calc(100% - 32px); text-align: center; animation: sube .25s ease-out; transition: opacity .3s;
}
.toast.is-out { opacity: 0; }

/* ---------- movimiento ---------- */
.rv-wait { opacity: 0; transform: translateY(18px); }
.rv-in { animation: aparece .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes aparece { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(29, 157, 85, .55); animation: pulso 2.6s ease-out infinite; pointer-events: none; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(29, 157, 85, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(29, 157, 85, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-media img { object-position: 50% 50%; }
  .marquee { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: .6rem; }
  .rev-track { width: auto; overflow-x: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .rev-rail[aria-hidden="true"] { display: none; }
  .rv-wait { opacity: 1; transform: none; }
}

/* ---------- buscador del encabezado ---------- */
.search-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; cursor: pointer; flex: none; transition: border-color .2s, background-color .2s;
}
.search-btn:hover { border-color: var(--navy); }
.search-btn svg { width: 19px; height: 19px; flex: none; }
.search-btn span { display: none; }
@media (min-width: 1180px) {
  .search-btn { width: auto; height: 40px; border-radius: 999px; padding: 0 16px 0 13px; background: var(--mist); border-color: var(--mist); color: var(--muted); font-size: .92rem; }
  .search-btn:hover { background: var(--paper); }
  .search-btn span { display: inline; }
  .search-btn::after { content: "/"; font-family: var(--f-mono); font-size: .72rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 .4em; margin-left: .6em; color: var(--muted); background: var(--paper); }
}
.buscador {
  border: 0; padding: 0; margin: 0 auto auto; width: 100%; max-width: 100%; max-height: 86vh; border-radius: 0 0 var(--r-3) var(--r-3);
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2); overflow: hidden;
}
.buscador[open] { display: flex; flex-direction: column; animation: baja .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes baja { from { transform: translateY(-16px); opacity: .3; } }
.buscador::backdrop { background: rgba(11, 38, 64, .55); backdrop-filter: blur(3px); }
.bq-box { display: flex; flex-direction: column; min-height: 0; padding-top: env(safe-area-inset-top, 0px); }
.bq-form { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); }
.bq-form > svg { width: 22px; height: 22px; color: var(--navy); flex: none; }
.bq-form input {
  flex: 1; min-width: 0; height: 52px; border: 0; outline: none; background: transparent; font: inherit; font-size: 1.15rem; color: var(--ink);
}
.bq-form input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.bq-form input::placeholder { color: #8a8fa1; }
.bq-body { overflow-y: auto; overscroll-behavior: contain; padding: var(--s-2) var(--s-3) var(--s-4); }
.bq-hint { color: var(--muted); font-size: .92rem; padding: var(--s-3) var(--s-3) var(--s-2); }
.bq-list { list-style: none; margin: 0; padding: 0; display: grid; }
.bq-item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: 8px var(--s-3);
  border-radius: var(--r-2); text-decoration: none; color: var(--ink);
}
.bq-item img { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-1); background: #fff; padding: 3px; }
.bq-item strong { display: block; font-family: var(--f-display); font-variation-settings: "wdth" 106; color: var(--navy); line-height: 1.2; overflow-wrap: anywhere; }
.bq-item strong mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bq-item small { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.bq-item .tag { font-size: .74rem; }
.bq-item:hover, .bq-item.is-active { background: var(--mist); }
.bq-all { display: flex; justify-content: center; align-items: center; gap: .4em; margin: var(--s-2) var(--s-3) 0; padding: .8rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 106; color: var(--navy); }
.bq-all:hover, .bq-all.is-active { border-color: var(--navy); background: var(--mist); }
.bq-none { padding: var(--s-4) var(--s-3); color: var(--muted); display: grid; gap: var(--s-3); justify-items: start; }
@media (min-width: 720px) {
  .buscador { margin-top: 9vh; width: min(680px, calc(100% - 64px)); max-height: 76vh; border-radius: var(--r-3); }
  .bq-box { padding-top: 0; }
}

/* ---------- filtros por marca y color ---------- */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); padding-top: var(--s-5); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.sel { position: relative; display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding-left: 14px; transition: border-color .2s; }
.sel:hover, .sel:focus-within { border-color: var(--navy); }
.sel span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.sel select {
  -webkit-appearance: none; appearance: none; border: 0; background: transparent; height: 100%; padding: 0 34px 0 8px; font: inherit; font-size: .92rem; font-weight: 600; color: var(--navy); cursor: pointer; outline: none; max-width: 52vw;
}
.sel::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel.is-set { background: var(--navy); border-color: var(--navy); }
.sel.is-set span { color: rgba(255, 255, 255, .7); }
.sel.is-set select { color: #fff; }
.sel.is-set::after { border-color: #fff; }
.sel select option { color: var(--ink); background: #fff; }
.f-reset { display: inline-flex; align-items: center; gap: .35em; height: 40px; padding: 0 12px; border: 0; background: none; color: var(--red); font-weight: 600; font-size: .9rem; cursor: pointer; }
.f-reset svg { width: 14px; height: 14px; }
.f-reset:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .filter-row { justify-content: flex-start; }
  .filters { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sel { min-width: 0; padding-left: 12px; }
  .sel select { flex: 1; min-width: 0; max-width: none; padding-left: 6px; text-overflow: ellipsis; }
  .f-reset { grid-column: 1 / -1; justify-self: start; height: 30px; padding: 0; }
}
.chip.is-zero:not([aria-pressed="true"]) { opacity: .45; }

/* ---------- los más pedidos ---------- */
.section-top { padding-top: 0; overflow: hidden; }
.section-head > .top-nav { display: none; gap: var(--s-2); }
@media (hover: hover) and (min-width: 720px) { .section-head > .top-nav { display: flex; } }
.top-nav .icon-btn:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.top-track {
  --edge: max(16px, env(safe-area-inset-left, 0px));
  display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 6px var(--edge) var(--s-4); scroll-padding-inline: var(--edge); outline: none;
}
.top-track::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .top-track { --edge: max(32px, calc((100% - var(--maxw)) / 2)); gap: var(--s-4); } }
.top-card {
  position: relative; flex: 0 0 min(232px, 64vw); scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; text-decoration: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.top-card:hover { border-color: var(--navy); box-shadow: var(--shadow-1); }
.top-card figure { margin: 0; position: relative; aspect-ratio: 1; overflow: hidden; background: #fff; }
.top-card figure img { position: absolute; inset: 12%; width: 76%; height: 76%; max-width: none; object-fit: contain; transition: transform .35s; }
.top-n {
  position: absolute; z-index: 2; top: 8px; left: 12px; font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 125;
  font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--navy); font-variant-numeric: tabular-nums; pointer-events: none;
}
.top-card:nth-child(-n+3) .top-n { color: var(--navy); -webkit-text-stroke: 0; }
.top-card:first-child .top-n { color: var(--red); }
.top-body { display: grid; gap: 4px; align-content: start; padding: var(--s-3) var(--s-4) var(--s-4); border-top: 1px solid var(--line); }
.top-body strong { font-family: var(--f-display); font-variation-settings: "wdth" 108; font-size: 1.02rem; color: var(--navy); line-height: 1.2; }
.top-meta { font-size: .84rem; color: var(--muted); }

/* ---------- guía de medidas (ficha) ---------- */
.guia { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-4) var(--s-4) var(--s-3); display: grid; gap: var(--s-2); }
.guia-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.guia h3 { font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-variation-settings: normal; }
.guia-view { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.guia-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 2px; }
.guia svg { display: block; margin-inline: auto; max-width: none; overflow: visible; touch-action: manipulation; }
.g-grid { stroke: #c9d4de; stroke-width: 1; stroke-dasharray: 2 4; }
.g-base { stroke: var(--ink); stroke-width: 1.2; opacity: .35; }
.g-item { cursor: pointer; }
.g-shape { fill: var(--mist); stroke: #8ea2b5; stroke-width: 1.2; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.g-shape.is-dashed { stroke-dasharray: 3 3; }
.g-item:hover .g-shape { fill: #dfe8f0; stroke: var(--navy-soft); }
.g-item.is-on .g-shape { fill: var(--navy); stroke: var(--navy); }
.g-lab { font-family: var(--f-mono); font-size: 10.5px; fill: var(--muted); text-anchor: middle; }
.g-item.is-on .g-lab { fill: var(--red); font-weight: 500; }
.guia-cap { font-size: .9rem; color: var(--ink); min-height: 1.4em; }
.guia-cap b { color: var(--navy); font-family: var(--f-display); font-variation-settings: "wdth" 106; }
.guia-note { font-size: .78rem; color: var(--muted); }

/* ---------- fotos que reaccionan al mouse ---------- */
@media (hover: hover) and (pointer: fine) {
  .tilt { transform-style: preserve-3d; will-change: transform; }
  .tilt.is-tilting {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px);
    transition: transform .12s ease-out, border-color .2s, box-shadow .2s;
    box-shadow: calc(var(--px, 0) * -10px) calc(14px - var(--py, 0) * 6px) 30px rgba(11, 38, 64, .16);
  }
  .tilt.is-tilting figure img { transform: translate3d(calc(var(--px, 0) * 6px), calc(var(--py, 0) * 6px), 0) scale(1.04); transition: transform .15s ease-out; }
  .tilt figure::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(169, 212, 231, .28), rgba(169, 212, 231, 0) 55%);
  }
  .tilt.is-tilting figure::after { opacity: 1; }
}

/* ---------- transición suave entre páginas ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.wa-float { view-transition-name: wa-float; }
.pedido-fab { view-transition-name: pedido-fab; }
::view-transition-old(root) { animation: vt-sale .2s ease-in both; }
::view-transition-new(root) { animation: vt-entra .34s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-sale { to { opacity: 0; } }
@keyframes vt-entra { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .tilt.is-tilting, .tilt.is-tilting figure img { transform: none; }
}
