/* =========================================================
   CAN Sweet Fun · Landing distribuidores
   Sistema visual según el Manual de Identidad CAN:
   - Color institucional: Rojo #E70033 (Pantone 185 C) + Negro.
   - Acentos: paletas de submarca (sección 4.5), saturados y armónicos.
   - Tipografía: Avenir Next (institucional) → Montserrat (respaldo,
     textos cortos) → Arial (respaldo, textos largos).
   - Imagen: producto sobre blanco; promoción "Back to Craft"
     (papel, textura, hecho a mano).
   ========================================================= */

:root {
  /* institucionales */
  --red: #E70033;
  --red-d: #B5002A;
  --black: #000;
  --ink: #141414;
  --muted: #5F5F66;
  --line: #E8E6E3;
  --paper: #FFFFFF;
  --cloud: #F5F3EF;

  /* submarcas (manual 4.5) */
  --yellow: #FFCA00;
  --orange: #FF7800;
  --blue: #0085CF;
  --magenta: #DE1B84;
  --green: #2DB034;
  --forest: #005643;
  --purple: #9325B2;
  --cyan: #2ECDD7;
  --coral: #FF818B;

  --f-head: 'Avenir Next', 'Avenir', 'Montserrat', Arial, sans-serif;
  --f-body: 'Avenir Next', 'Avenir', Arial, 'Helvetica Neue', sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 12px 34px -16px rgba(0, 0, 0, .28);
  --shadow-lg: 0 30px 70px -28px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --wrap: 1240px;
  --nav-h: 76px;
  --scene: #DE1B84;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 800; line-height: 1.04; margin: 0; letter-spacing: -.022em; }
p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--yellow); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- textura de papel (Back to Craft) ---------- */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('../assets/img/paper-grain.png') repeat; background-size: 160px; opacity: .9; mix-blend-mode: multiply;
}

/* borde de papel rasgado arriba de secciones de color */
.tear-top::before {
  content: ''; position: absolute; left: 0; right: 0; top: -15px; height: 16px; z-index: 1; background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V9l18-4 14 5 20-7 16 6 22-3 12 4 25-6 15 5 18-2 20 6 17-7 24 4 14-3 21 6 19-5 16 3 26-6 12 5 22-2 18 5 15-6 24 4 20-3 14 5 23-6 17 4 21-2 16 5V16Z'/%3E%3C/svg%3E") bottom / 600px 16px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V9l18-4 14 5 20-7 16 6 22-3 12 4 25-6 15 5 18-2 20 6 17-7 24 4 14-3 21 6 19-5 16 3 26-6 12 5 22-2 18 5 15-6 24 4 20-3 14 5 23-6 17 4 21-2 16 5V16Z'/%3E%3C/svg%3E") bottom / 600px 16px repeat-x;
}

/* ---------- progreso de lectura ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--red); }

/* ---------- botones ---------- */
.btn {
  --bg: var(--paper); --fg: var(--ink); --sh: rgba(0, 0, 0, .22);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.5em; border-radius: 999px; border: 0; text-decoration: none; white-space: nowrap;
  font-family: var(--f-head); font-weight: 700; font-size: .95rem; letter-spacing: .005em;
  background: var(--bg); color: var(--fg); box-shadow: 0 3px 0 0 var(--sh);
  transition: transform .3s var(--spring), box-shadow .2s, background-color .2s, color .2s;
}
.btn svg { font-size: 1.15em; transition: transform .35s var(--spring); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 0 var(--sh); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(2px) scale(.98) !important; box-shadow: 0 1px 0 0 var(--sh); }
.btn--sm { padding: .62em 1.1em; font-size: .86rem; }
.btn--lg { padding: 1.02em 1.75em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--red { --bg: var(--red); --fg: #fff; --sh: var(--red-d); }
.btn--white { --bg: #fff; --fg: var(--black); --sh: rgba(0, 0, 0, .25); }
.btn--black { --bg: var(--black); --fg: #fff; --sh: rgba(0, 0, 0, .35); }
.btn--line { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.btn--line:hover { --bg: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px #fff; }
.btn--ghost-dark { --bg: transparent; --fg: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
.btn--ghost-dark:hover { --bg: var(--black); --fg: #fff; box-shadow: inset 0 0 0 2px var(--black); }
.btn--outline { --bg: transparent; --fg: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
.btn--outline:hover { --bg: var(--black); --fg: #fff; box-shadow: inset 0 0 0 2px var(--black); }
.link-btn { border: 0; background: none; padding: 0; font-family: var(--f-head); font-weight: 700; font-size: .92rem; color: var(--red); text-decoration: none; cursor: pointer; display: inline-flex; gap: 6px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }

.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none;
  background: #fff; color: var(--black); font-size: 1.2rem; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45);
  transition: transform .3s var(--spring), background .2s, color .2s;
}
.round-btn:hover { transform: scale(1.08); background: var(--black); color: #fff; }
.round-btn:active { transform: scale(.92); }

/* ---------- títulos ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font-family: var(--f-head); font-weight: 600; font-size: .74rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light { color: #fff; }

.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section__head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__head--row > div { max-width: 740px; }
.section__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); color: var(--black); }
.section__lead { margin-top: 18px; font-size: 1.1rem; color: var(--muted); max-width: 620px; }
.section__head--center .section__lead { margin-inline: auto; }

/* resaltado tipo tira de papel (funciona aunque el texto ocupe varias líneas) */
.hl {
  --hl: var(--yellow);
  background: linear-gradient(var(--hl), var(--hl)) 0 86% / 0% .4em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em;
  transition: background-size 1s .3s var(--ease);
}
.is-in .hl, .hl.is-in { background-size: 100% .4em; }
.hl--yellow { --hl: var(--yellow); }
.hl--pink { --hl: #FFC2C7; }
.hl--red { --hl: #FFC9D5; }
.hl--sky { --hl: #A9EEF2; }

/* ---------- aparición ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }

.reveal-media { clip-path: inset(10% 6% 0 6% round var(--r)); transition: clip-path 1.2s var(--ease); }
.reveal-media img { transform: scale(1.14); transition: transform 1.6s var(--ease); }
.reveal-media.is-in { clip-path: inset(0 0 0 0 round var(--r)); }
.reveal-media.is-in img { transform: scale(1); }

.intro { animation: heroIn 1s var(--ease) both; }
.intro[data-delay="1"] { animation-delay: .08s; }
.intro[data-delay="2"] { animation-delay: .18s; }
.intro[data-delay="3"] { animation-delay: .28s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(12px); transition: box-shadow .3s, height .3s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0, 0, 0, .35); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav__logo { display: block; padding: 6px 0; flex: none; }
.nav__logo svg { width: 92px; height: auto; display: block; stroke: none; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  position: relative; color: var(--ink); text-decoration: none; font-family: var(--f-head); font-weight: 600; font-size: .9rem; padding: 10px 12px;
}
.nav__links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__links a.is-current { color: var(--red); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.quote-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--cloud); color: var(--black); transition: transform .3s var(--spring), background .2s; }
.quote-btn svg { width: 22px; height: 22px; }
.quote-btn:hover { background: var(--line); transform: rotate(-6deg); }
.quote-btn__count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: var(--red); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: .7rem; display: grid; place-items: center;
  transform: scale(0); transition: transform .35s var(--spring);
}
.quote-btn.has-items .quote-btn__count { transform: scale(1); }
.quote-btn.bump { animation: bump .5s var(--spring); }
@keyframes bump { 30% { transform: scale(1.2) rotate(-10deg); } 60% { transform: scale(.95) rotate(5deg); } }

.nav__burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cloud); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--black); transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 25px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* =========================================================
   HERO · escenario de producto
   ========================================================= */
.hero {
  margin-top: var(--nav-h); display: grid; grid-template-columns: minmax(420px, 40%) 1fr;
  height: calc(100svh - var(--nav-h)); min-height: 620px; max-height: 1000px; position: relative; background: var(--scene);
}
.hero__panel {
  background-color: var(--scene); color: #fff; position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(36px, 6vh, 80px) clamp(24px, 3.6vw, 64px) clamp(24px, 4vh, 44px);
  transition: background-color 1s var(--ease);
}
.hero__copy { max-width: 560px; }
.hero__title { font-size: clamp(2.7rem, 4.9vw, 5.2rem); line-height: .96; letter-spacing: -.035em; margin-bottom: 22px; }
.hero__title em {
  font-style: normal; display: inline-block; color: var(--black); background: var(--yellow); padding: .02em .14em .06em; margin: .04em 0;
  transform: rotate(-1.6deg); box-shadow: 0 6px 0 -1px rgba(0, 0, 0, .18);
}
.hero__lead { font-size: clamp(1rem, 1.15vw, 1.12rem); max-width: 470px; color: rgba(255, 255, 255, .92); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.hero__tab {
  border: 0; background: none; padding: 12px 0 0; text-align: left; color: rgba(255, 255, 255, .7); position: relative;
  font-family: var(--f-head); font-weight: 700; font-size: .74rem; letter-spacing: .02em; line-height: 1.25; transition: color .3s;
}
.hero__tab::before, .hero__tab::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.hero__tab::after { background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.hero__tab:hover, .hero__tab.is-active { color: #fff; }
.hero__tab small { display: block; font-weight: 600; opacity: .7; font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 2px; }

.hero__media { position: relative; overflow: hidden; background: #ddd; touch-action: pan-y; cursor: grab; }
.hero__media:active { cursor: grabbing; }
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene img {
  width: 100%; height: 100%; object-fit: cover; will-change: transform;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(var(--zoom, 1.06));
  transition: transform 1.4s var(--ease);
}
.scene.is-active { z-index: 1; }
.scene.is-active img { --zoom: 1.0; transition: transform 9s linear; }
.scene.is-entering { z-index: 2; animation: iris 1.15s var(--ease-io) both; }
.scene.is-leaving { z-index: 1; }
.scene.is-leaving img { transition: transform 1.2s var(--ease); --zoom: 1.12; filter: saturate(.9); }
@keyframes iris {
  from { clip-path: circle(0% at var(--fx, 50%) var(--fy, 50%)); }
  to { clip-path: circle(140% at var(--fx, 50%) var(--fy, 50%)); }
}
.hero__tear {
  position: absolute; left: -1px; top: 0; height: 100%; width: 34px; z-index: 3; fill: var(--scene); stroke: none;
  filter: drop-shadow(5px 0 5px rgba(0, 0, 0, .22)); transition: fill 1s var(--ease);
}

/* ficha del producto en escena: tarjeta de papel con cinta (Back to Craft) */
.hero__now { display: grid; gap: 22px; }
.hero__label {
  position: relative; width: 100%; max-width: 500px; background: #fff; color: var(--ink); padding: 18px 20px 16px; border-radius: 3px;
  display: grid; grid-template-columns: 1fr auto; column-gap: 18px; align-items: end;
  box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .55), 0 1px 0 rgba(0, 0, 0, .06);
  transform: rotate(-1deg); transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.hero__label > :not(.hero__label-actions) { grid-column: 1; }
.hero__label::before {
  content: ''; position: absolute; top: -11px; left: 38px; width: 80px; height: 22px; rotate: -4deg;
  background: rgba(255, 236, 160, .8); box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.hero__label.is-swap { opacity: 0; transform: translateY(10px) rotate(-2.5deg); }
.hero__family { display: inline-block; font-family: var(--f-head); font-weight: 700; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--scene); transition: color 1s; }
.hero__name { font-size: 1.55rem; margin: 2px 0 0; color: var(--black); }
.hero__line { font-size: .9rem; color: var(--muted); margin-bottom: 10px; font-style: italic; }
.hero__specs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero__specs div { padding: 9px 0; }
.hero__specs div { padding-right: 14px; }
.hero__specs div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.hero__specs dt { font-size: .62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.hero__specs dd { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: 1rem; }
.hero__label-actions { grid-column: 2; grid-row: 1 / span 4; display: flex; flex-direction: column; gap: 8px; align-self: end; }

.hero__nav { position: absolute; z-index: 4; right: clamp(16px, 3%, 32px); top: clamp(16px, 3%, 28px); display: flex; align-items: center; gap: 8px; }
.hero__count { font-family: var(--f-head); font-weight: 700; font-size: .85rem; color: #fff; margin-right: 8px; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); letter-spacing: .1em; }
.hero__count b { font-size: 1.1rem; }
[data-hero-pause] .i-play { display: none; }
[data-hero-pause].is-paused .i-play { display: block; fill: currentColor; }
[data-hero-pause].is-paused .i-pause { display: none; }

/* =========================================================
   TRUST
   ========================================================= */
.trust { padding: 56px 0 36px; background: var(--paper); border-bottom: 1px solid var(--line); }
.stats { list-style: none; padding: 0; margin: 0 auto 44px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 4px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--red); letter-spacing: -.03em; line-height: 1.1; }
.stats span { font-size: .92rem; color: var(--muted); }
.trust__label { text-align: center; font-family: var(--f-head); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .3em; color: var(--muted); margin-bottom: 16px; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; color: #A7A5A2; padding: 6px 26px; white-space: nowrap; position: relative; transition: color .25s; }
.marquee__item::after { content: ''; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--line); translate: 0 -50%; }
.marquee__item:hover { color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   EDITORIAL · Sweet Fun
   ========================================================= */
.editorial { background: var(--cloud); }
.editorial .section__title { max-width: 980px; font-size: clamp(2rem, 3.8vw, 3.1rem); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, 30vw); gap: 18px; }
.bento__item { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: #ddd; grid-column: span 6; }
.bento__item--tall { grid-row: span 2; }
.bento__item:nth-child(3), .bento__item--text { grid-column: span 3; }
.bento__item img { width: 100%; height: 100%; object-fit: cover; }
.bento__item--white { background: #fff; }
.bento__item--white img { object-fit: contain; padding: 4% 6% 70px; }
.bento__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 24px; color: #fff; display: grid; gap: 4px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
}
.bento__item figcaption b { font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.bento__item figcaption span { font-size: .95rem; opacity: .9; max-width: 40ch; }
.bento__item--white figcaption { background: none; color: var(--ink); padding: 18px 22px; }
.bento__item--white figcaption b { font-size: 1.2rem; }
.bento__item--text { background: var(--red); color: #fff; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.bento__item--text p { font-size: 1.12rem; line-height: 1.45; }
.bento__item--text .link-btn { color: #fff; }
@supports (animation-timeline: view()) {
  .bento__item:not(.bento__item--white) img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes drift { from { object-position: 50% 30%; } to { object-position: 50% 70%; } }
}

/* =========================================================
   BRANDS
   ========================================================= */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.brand-card {
  grid-column: span 2; position: relative; padding: 26px 24px 24px; border-radius: var(--r-lg); background: var(--c); color: var(--ink);
  min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; cursor: pointer; isolation: isolate;
  transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .3s;
}
.brand-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../assets/img/paper-grain.png'); background-size: 160px; mix-blend-mode: multiply; opacity: .8; }
.brand-card:nth-child(4), .brand-card--wide { grid-column: span 3; }
.brand-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .28), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.brand-card:hover::before { opacity: 1; }
.brand-card:hover { box-shadow: var(--shadow-lg); }
.brand-card h3 { font-size: 1.85rem; position: relative; color: var(--ink); }
.brand-card[style*="--ink:#fff"] h3, .brand-card[style*="--ink:#fff"] p { color: #fff; }
.brand-card p { font-size: .98rem; margin-top: 6px; max-width: 30ch; position: relative; color: rgba(20, 20, 20, .85); line-height: 1.45; }
.brand-card__logo { position: absolute; top: 22px; left: 22px; width: 150px; }
.brand-card__logo--chip { background: #fff; padding: 8px 12px; border-radius: 12px; width: 156px; }
.crayola-word { font-family: var(--f-head); font-weight: 800; font-size: 1.9rem; color: #fff; background: #1F7A3A; padding: 4px 18px 6px; border-radius: 50% / 60%; display: inline-block; transform: rotate(-6deg); box-shadow: inset 0 0 0 3px var(--yellow); }
.brand-card__pop img, img.brand-card__pop {
  position: absolute; right: 4%; top: 16px; width: auto; height: 60%; max-width: 46%; object-fit: contain;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .28)); transform: rotate(6deg); transition: transform .7s var(--spring);
}
.brand-card__pop--wide img { height: auto; width: 46%; max-width: none; top: 30px; }
.brand-card:hover .brand-card__pop img { transform: rotate(-3deg) scale(1.08) translateY(-6px); }
.brand-card--wide .brand-card__pop img { height: 84%; right: 7%; top: 8%; }
.brand-card__count {
  position: relative; align-self: flex-start; margin-top: 16px; font-family: var(--f-head); font-weight: 700; font-size: .8rem; padding: 7px 13px; border-radius: 99px;
  background: #fff; color: var(--black);
}
.brand-card__count::after { content: ' →'; display: inline-block; transition: transform .3s var(--spring); }
.brand-card:hover .brand-card__count::after { transform: translateX(4px); }
.badge { position: absolute; z-index: 3; font-family: var(--f-head); font-weight: 800; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; padding: 6px 11px; border-radius: 99px; }
.badge--new { top: 26px; left: 196px; background: var(--yellow); color: var(--black); }

/* =========================================================
   PRODUCTOS
   ========================================================= */
.products { background: var(--paper); }
.toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin: 0 -10px 18px;
  position: sticky; top: calc(var(--nav-h) + 6px); z-index: 20; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; padding: 9px 15px; border-radius: 999px; font-family: var(--f-head); font-weight: 700; font-size: .85rem; background: var(--cloud); color: var(--ink);
  transition: background .2s, color .2s, transform .3s var(--spring); display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { transform: translateY(-2px); background: var(--line); }
.chip.is-active { background: var(--black); color: #fff; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--chip); }
.chip small { font-size: .7rem; opacity: .6; }
.toolbar__right { display: flex; gap: 10px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: var(--cloud); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--black); }
.search svg { color: var(--muted); }
.search input { border: 0; background: transparent; padding: 11px 0; font: inherit; font-size: .95rem; width: 210px; outline: none; color: var(--ink); }
.select {
  appearance: none; border: 0; padding: 11px 38px 11px 16px; border-radius: 999px; font: inherit; font-size: .92rem; color: var(--ink);
  background: var(--cloud) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
  cursor: pointer;
}
.select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--black); }
.results { font-size: .88rem; color: var(--muted); margin: 4px 0 20px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.pcard {
  position: relative; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .3s;
  animation: cardIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms);
  content-visibility: auto; contain-intrinsic-size: 240px 430px;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.pcard:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--line), 0 26px 46px -26px rgba(0, 0, 0, .4); }
.pcard__media { position: relative; aspect-ratio: 1 / .95; display: grid; place-items: center; background: #fff; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; width: 100%; }
.pcard__media img { width: 80%; height: 82%; object-fit: contain; transition: transform .7s var(--ease); filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .14)); }
.pcard__media::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 8%; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .14), transparent); z-index: -0; }
.pcard:hover .pcard__media img { transform: scale(1.07) translateY(-4px); }
.pcard__view {
  position: absolute; left: 50%; bottom: 12px; translate: -50% 10px; opacity: 0; font-family: var(--f-head); font-weight: 700; font-size: .76rem;
  background: var(--black); color: #fff; padding: 7px 13px; border-radius: 99px; transition: opacity .3s, translate .4s var(--ease); pointer-events: none; z-index: 2;
}
.pcard:hover .pcard__view, .pcard__media:focus-visible .pcard__view { opacity: 1; translate: -50% 0; }
.pcard__ph { width: 66%; aspect-ratio: 1; border-radius: 50%; background: var(--bc); display: grid; place-items: center; text-align: center; padding: 16px;
  font-family: var(--f-head); font-weight: 800; color: var(--bi); font-size: 1.05rem; line-height: 1.1; position: relative; isolation: isolate; overflow: hidden; }
.pcard__ph::after { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../assets/img/paper-grain.png'); background-size: 160px; mix-blend-mode: multiply; }
.pcard__tag { position: absolute; top: 12px; left: 12px; font-family: var(--f-head); font-size: .66rem; font-weight: 700; letter-spacing: .1em; padding: 4px 9px; border-radius: 99px; background: var(--cloud); color: var(--ink); z-index: 2; }
.pcard__tag--new { background: var(--yellow); color: var(--black); }
.pcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; border-top: 1px solid var(--line); }
.pcard__brand { font-family: var(--f-head); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--bc2, var(--muted)); }
.pcard__name { font-size: 1.15rem; color: var(--black); letter-spacing: -.015em; }
.pcard__meta { display: grid; grid-template-columns: repeat(3, 1fr); font-size: .72rem; margin-top: auto; border-top: 1px dashed var(--line); padding-top: 10px; }
.pcard__meta div + div { border-left: 1px solid var(--line); padding-left: 8px; }
.pcard__meta b { display: block; font-family: var(--f-head); font-weight: 800; font-size: .95rem; }
.pcard__meta span { color: var(--muted); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.upc { border: 0; background: none; padding: 4px 0; font-size: .72rem; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; transition: color .2s; text-align: left; font-variant-numeric: tabular-nums; }
.upc:hover { color: var(--black); }
.upc.is-copied { color: var(--green); }
.add {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; transition: transform .35s var(--spring), background .2s; box-shadow: 0 3px 0 var(--red-d);
}
.add:hover { transform: rotate(90deg) scale(1.06); }
.add.is-added { background: var(--green); box-shadow: 0 3px 0 #1d7d23; transform: rotate(360deg); }
.products__more { display: flex; justify-content: center; margin-top: 40px; }
.products__more[hidden] { display: none; }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 0; color: var(--muted); }

/* =========================================================
   POR QUÉ CAN (rojo institucional)
   ========================================================= */
.why { background-color: var(--red); color: #fff; }
.why .section__title { color: #fff; }
.why .wrap { position: relative; z-index: 1; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .25); border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--r-lg); overflow: hidden; }
.why-card { padding: 36px 32px 38px; background: var(--red); position: relative; transition: background .35s; }
.why-card:hover { background: #D8002F; }
.why-card__icon { width: 46px; height: 46px; stroke-width: 1.8; margin-bottom: 26px; transition: transform .6s var(--spring); }
.why-card:hover .why-card__icon { transform: rotate(-8deg) scale(1.1); }
.why-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.why-card p { color: rgba(255, 255, 255, .86); font-size: .98rem; line-height: 1.55; }

/* =========================================================
   LOGÍSTICA / CALC
   ========================================================= */
.logistics { background: var(--cloud); }
.logistics__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.pack-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pack-steps li { position: relative; padding: 16px 14px; border-radius: 14px; background: #fff; transition: transform .3s var(--spring); }
.pack-steps li:hover { transform: translateY(-4px); }
.pack-steps__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--black); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: .75rem; margin-bottom: 10px; }
.pack-steps b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 1.05rem; color: var(--black); }
.pack-steps small { color: var(--muted); font-size: .8rem; }

.calc { padding: 30px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); display: grid; gap: 22px; }
.calc__product { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.calc__img { width: 96px; height: 112px; display: grid; place-items: center; background: #fff; }
.calc__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .18)); }
.calc__img img.pop { animation: pop .6s var(--spring); }
@keyframes pop { 0% { transform: scale(.6) rotate(-14deg); opacity: 0; } }
.field { display: grid; gap: 6px; }
.field > span { font-family: var(--f-head); font-weight: 700; font-size: .82rem; color: var(--black); }
.field > span small { font-weight: 500; color: var(--muted); }
.field .select { width: 100%; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--red) 0 var(--p, 5%), var(--line) var(--p, 5%) 100%); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 4px 10px rgba(0, 0, 0, .2); transition: transform .2s var(--spring); }
.range::-webkit-slider-thumb:hover, .range:active::-webkit-slider-thumb { transform: scale(1.2); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.calc__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.calc__out div { text-align: center; padding: 16px 6px; }
.calc__out div + div { border-left: 1px solid var(--line); }
.calc__out b { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--red); letter-spacing: -.03em; }
.calc__out span { font-size: .78rem; color: var(--muted); }
.calc__stack { height: 56px; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; gap: 3px; overflow: hidden; }
.calc__stack i { width: 16px; height: 12px; border-radius: 2px; background: var(--red); animation: drop .45s var(--spring) both; }
.calc__stack i:nth-child(3n) { background: var(--yellow); } .calc__stack i:nth-child(3n+1) { background: var(--black); }
@keyframes drop { from { transform: translateY(-36px); opacity: 0; } }

/* =========================================================
   PROCESO
   ========================================================= */
.process { background: var(--paper); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline__bar { position: absolute; left: 6%; right: 6%; top: 29px; height: 4px; border-radius: 99px; background: var(--line); z-index: 0; }
.timeline__bar span { display: block; height: 100%; border-radius: inherit; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.timeline__step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.timeline__n { width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-head); font-weight: 800; font-size: 1.5rem;
  background: #fff; color: var(--black); box-shadow: inset 0 0 0 2px var(--line); transition: background .4s, color .4s, box-shadow .4s, transform .5s var(--spring); }
.timeline__step.is-on .timeline__n { background: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(231, 0, 51, .14); transform: scale(1.06); }
.timeline__step h3 { font-size: 1.3rem; color: var(--black); margin-bottom: 8px; }
.timeline__step p { color: var(--muted); font-size: .96rem; }

/* =========================================================
   FÁBRICA (negro institucional)
   ========================================================= */
.factory { background-color: #0B0B0B; color: #fff; }
.factory.grain::after { mix-blend-mode: screen; opacity: .12; }
.factory .section__title { color: #fff; }
.factory__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; position: relative; z-index: 1; }
.factory__steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 0; counter-reset: f; border-top: 1px solid rgba(255, 255, 255, .16); }
.factory__steps li { counter-increment: f; padding: 18px 0 18px 58px; position: relative; color: rgba(255, 255, 255, .78); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.factory__steps li::before { content: '0' counter(f); position: absolute; left: 0; top: 18px; font-family: var(--f-head); font-weight: 800; color: var(--red); font-size: 1.1rem; }
.factory__steps b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; color: #fff; }
.certs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.certs li { padding: 14px 18px; border-radius: 14px; background: #fff; color: var(--black); min-width: 150px; transition: transform .35s var(--spring); }
.certs li:hover { transform: rotate(-2deg) translateY(-4px); }
.certs b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 1.35rem; color: var(--red); }
.certs span { font-size: .8rem; color: var(--muted); }

.factory__visual { display: grid; justify-items: center; gap: 20px; }
.gumball { width: min(340px, 80%); position: relative; }
.gumball__glass {
  aspect-ratio: 1; border-radius: 50%; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .5) 0 7%, rgba(255, 255, 255, .1) 18%, rgba(255, 255, 255, .04) 60%);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .25), inset -20px -30px 60px rgba(0, 0, 0, .35);
}
.gumball__glass i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); left: var(--x); top: var(--y);
  box-shadow: inset -4px -5px 0 rgba(0, 0, 0, .18), inset 4px 4px 0 rgba(255, 255, 255, .35); transition: transform .9s var(--spring), top .9s var(--spring); }
.gumball__base { margin: -18px auto 0; width: 70%; height: 112px; border-radius: 20px 20px 32px 32px; background: var(--red); position: relative; box-shadow: inset 0 -12px 0 var(--red-d); display: grid; place-items: center; }
.gumball__base svg { width: 54%; height: auto; stroke: none; --logo-mark: #fff; --logo-tag: #fff; }
.gumball.shake .gumball__glass { animation: shake .6s var(--ease); }
@keyframes shake { 20% { transform: rotate(-4deg); } 40% { transform: rotate(4deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { background: var(--cloud); }
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.contact__copy { position: sticky; top: calc(var(--nav-h) + 30px); }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.contact__list li { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.contact__list span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--red); font-size: 1.1rem; }
.contact__list a { text-decoration: none; border-bottom: 2px solid var(--red); }
.contact__photo { margin: 34px 0 0; width: 150px; border-radius: 0; }
.contact__photo img { filter: drop-shadow(0 18px 14px rgba(0, 0, 0, .2)); }

.form { position: relative; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input:not([type=radio]), .form textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink); padding: 13px 16px; border: 0; border-radius: 12px; background: var(--cloud);
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s, background .2s; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--black); background: #fff; }
.form .field .select { border-radius: 12px; padding: 13px 38px 13px 16px; }
.field__err { display: none; font-style: normal; font-size: .8rem; font-weight: 600; color: var(--red); }
.field.is-invalid input { box-shadow: inset 0 0 0 1.5px var(--red); animation: shake .4s; }
.field.is-invalid .field__err { display: block; }
.form__type { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__type legend { font-family: var(--f-head); font-weight: 700; font-size: .82rem; color: var(--black); margin-bottom: 10px; padding: 0; }
.form__type label { cursor: pointer; }
.form__type input { position: absolute; opacity: 0; pointer-events: none; }
.form__type span { display: inline-block; padding: 9px 15px; border-radius: 99px; font-family: var(--f-head); font-weight: 600; font-size: .85rem; background: var(--cloud); transition: all .25s var(--spring); }
.form__type input:checked + span { background: var(--black); color: #fff; }
.form__type input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form__note { font-size: .78rem; color: var(--muted); text-align: center; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.is-loading .btn__spinner { display: inline-block; }
.form__ok { position: absolute; inset: 0; border-radius: inherit; background: #fff; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 30px; animation: cardIn .5s var(--ease); }
.form__ok[hidden] { display: none; }
.form__ok-ico { width: 64px; height: 64px; color: var(--green); stroke-width: 2.4; }
.form__ok-ico path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: check .6s .2s var(--ease) forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }
.form__ok h3 { font-size: 1.8rem; color: var(--black); }
.form__ok p { color: var(--muted); }
.form__ok-actions { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--black); color: rgba(255, 255, 255, .7); padding: 80px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__logo { width: 140px; height: auto; margin-bottom: 18px; stroke: none; --logo-mark: #fff; --logo-tag: #fff; }
.footer h4 { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer nav a, .footer__grid > div a, .footer__grid > div span { display: block; text-decoration: none; margin-bottom: 9px; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__legal { margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; }

/* =========================================================
   VISTA RÁPIDA (producto en grande + zoom)
   ========================================================= */
.qv { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 24px; pointer-events: none; }
.qv__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.qv__panel {
  position: relative; width: min(1060px, 100%); max-height: calc(100svh - 48px); overflow: auto; background: #fff; border-radius: var(--r-lg);
  display: grid; grid-template-columns: 1.15fr 1fr; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .35s, transform .5s var(--ease);
}
.qv.is-open { pointer-events: auto; }
.qv.is-open .qv__backdrop { opacity: 1; }
.qv.is-open .qv__panel { opacity: 1; transform: none; }
.qv__close { position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--cloud); box-shadow: none; }
.qv__media { padding: 24px; border-right: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.qv__stage { position: relative; aspect-ratio: 1; border-radius: var(--r); background: #fff; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; }
.qv__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform .25s ease-out, opacity .3s; }
.qv__stage.is-scene img { object-fit: cover; padding: 0; }
.qv__stage.is-zoom img { transform: scale(var(--z, 2)); }
.qv__hint { font-size: .78rem; color: var(--muted); text-align: center; }
.qv__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.qv__thumbs button { width: 68px; height: 68px; border-radius: 12px; border: 0; padding: 0; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, transform .3s var(--spring); }
.qv__thumbs button:hover { transform: translateY(-2px); }
.qv__thumbs button.is-active { box-shadow: inset 0 0 0 2px var(--black); }
.qv__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.qv__thumbs button.is-scene img { object-fit: cover; padding: 0; }
.qv__info { padding: 40px 34px 34px; display: flex; flex-direction: column; gap: 10px; }
.qv__brand { font-family: var(--f-head); font-weight: 700; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--red); }
.qv__name { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--black); }
.qv__cat { color: var(--muted); }
.qv__specs { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 0 6px; border-top: 1px solid var(--line); }
.qv__specs div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.qv__specs div:nth-child(odd) { padding-right: 12px; }
.qv__specs dt { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.qv__specs dd { margin: 2px 0 0; font-family: var(--f-head); font-weight: 800; font-size: 1.05rem; color: var(--black); }
.qv__specs .upc { font-size: .95rem; color: var(--black); font-family: var(--f-head); font-weight: 800; padding: 0; }
.qv__buy { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 16px; }
.qv__buy .btn { flex: 1; }
.qv__note { font-size: .78rem; color: var(--muted); }

/* =========================================================
   DRAWER / TOAST / WA
   ========================================================= */
.drawer { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, .45); opacity: 0; transition: opacity .3s; backdrop-filter: blur(3px); }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .5s var(--ease); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.6rem; color: var(--black); }
.drawer__head .round-btn { background: var(--cloud); box-shadow: none; }
.drawer__list { list-style: none; margin: 0; padding: 14px 24px; overflow-y: auto; flex: 1; display: grid; align-content: start; gap: 10px; }
.drawer__empty { padding: 30px 24px; text-align: center; color: var(--muted); }
.drawer__empty[hidden] { display: none; }
.qitem { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--cloud); animation: cardIn .4s var(--ease); }
.qitem img, .qitem .qph { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; }
.qitem .qph { background: var(--bc); }
.qitem b { display: block; font-family: var(--f-head); font-size: .92rem; line-height: 1.2; }
.qitem small { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .2s var(--spring); }
.qty button:hover { transform: scale(1.12); }
.qty span { min-width: 24px; text-align: center; font-family: var(--f-head); font-weight: 800; }
.qty--lg { background: var(--cloud); border-radius: 99px; padding: 6px; }
.qty--lg button { width: 36px; height: 36px; font-size: 1.1rem; box-shadow: none; }
.qty--lg span { min-width: 34px; font-size: 1.05rem; }
.drawer__foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer__foot p { color: var(--muted); text-align: center; }
.drawer__foot b { color: var(--black); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 400; translate: -50% 0; padding: 12px 20px; border-radius: 99px; background: var(--black); color: #fff; font-family: var(--f-head); font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-lg); transform: translateY(120px); transition: transform .45s var(--spring); pointer-events: none; }
.toast.is-on { transform: none; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .3s var(--spring); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }

.confetti { position: fixed; z-index: 500; pointer-events: none; width: 12px; height: 12px; border-radius: 50%; top: 0; left: 0; }
.fly { position: fixed; z-index: 500; pointer-events: none; width: 56px; height: 56px; object-fit: contain; transition: transform .75s cubic-bezier(.5, -0.3, .6, 1), opacity .75s; }
body.is-locked { overflow: hidden; }

/* =========================================================
   RESPONSIVE (composición adaptada, no solo escalada)
   ========================================================= */
@media (min-width: 901px) and (max-height: 880px) {
  .hero__panel { padding-top: 30px; gap: 18px; }
  .hero__title { font-size: clamp(2.4rem, 4.1vw, 4.1rem); margin-bottom: 14px; }
  .hero__lead { font-size: .98rem; }
  .hero__cta { margin-top: 20px; }
  .hero__cta .btn--lg { padding: .85em 1.4em; }
  .hero__line { display: none; }
  .hero__now { gap: 16px; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .hero__lead { display: none; }
}
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 24px 22px; gap: 0;
    background: #fff; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3); animation: cardIn .35s var(--ease);
  }
  .nav.is-open .nav__links a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a::after { display: none; }
  .nav__actions { margin-left: auto; }
  .brand-card, .brand-card:nth-child(4), .brand-card--wide { grid-column: span 3; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: minmax(380px, 44%) 1fr; }
  .hero__tab { font-size: 0; }
  .hero__tab small { display: none; }
}
@media (max-width: 900px) {
  /* hero apilado: el producto primero y en grande */
  .hero { grid-template-columns: minmax(0, 1fr); height: auto; max-height: none; min-height: 0; }
  .hero__panel, .hero__copy, .hero__now { min-width: 0; }
  .hero__media { order: -1; aspect-ratio: 1 / 1.04; max-height: 74svh; width: 100%; }
  .hero__tear { display: none; }
  .hero__panel { padding: 34px 24px 28px; }
  .hero__panel::before {
    content: ''; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: var(--scene); transition: background-color 1s var(--ease);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V9l18-4 14 5 20-7 16 6 22-3 12 4 25-6 15 5 18-2 20 6 17-7 24 4 14-3 21 6 19-5 16 3 26-6 12 5 22-2 18 5 15-6 24 4 20-3 14 5 23-6 17 4 21-2 16 5V16Z'/%3E%3C/svg%3E") bottom / 600px 14px repeat-x;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V9l18-4 14 5 20-7 16 6 22-3 12 4 25-6 15 5 18-2 20 6 17-7 24 4 14-3 21 6 19-5 16 3 26-6 12 5 22-2 18 5 15-6 24 4 20-3 14 5 23-6 17 4 21-2 16 5V16Z'/%3E%3C/svg%3E") bottom / 600px 14px repeat-x;
  }
  .hero__now { order: -1; gap: 26px; }
  .hero__tabs { order: -1; gap: 6px; }
  .hero__tab { padding-top: 0; height: 10px; }
  .hero__label { max-width: none; padding: 16px 16px 14px; }
  .hero__name { font-size: 1.3rem; }
  .hero__line { display: none; }
  .hero__label { grid-template-columns: 1fr; }
  .hero__label-actions { grid-column: 1; grid-row: auto; flex-direction: row; margin-top: 12px; }
  .hero__label-actions .btn { flex: 1; padding: .7em 1em; font-size: .82rem; }
  .hero__nav { top: 12px; right: 12px; gap: 6px; }
  .hero__nav [data-hero-prev], .hero__count { display: none; }
  .hero__nav .round-btn { width: 40px; height: 40px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .bento { grid-auto-rows: minmax(240px, 52vw); }
  .bento__item, .bento__item:nth-child(3), .bento__item--text { grid-column: span 12; }
  .bento__item:nth-child(3), .bento__item--text { grid-column: span 6; }
  .bento__item--tall { grid-row: span 1; }
  .logistics__grid, .factory__grid, .contact__grid { grid-template-columns: 1fr; }
  .contact__copy { position: static; }
  .contact__photo { display: none; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline__bar { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .qv { padding: 0; place-items: end center; }
  .qv__panel { grid-template-columns: 1fr; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92svh; transform: translateY(40px); }
  .qv__media { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .qv__stage { aspect-ratio: 1 / .85; }
  .qv__info { padding: 22px 20px 26px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 36px); }
  .nav__actions .btn { display: none; }
  .nav__logo svg { width: 80px; }
  .hero__title { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .hero__cta .btn { flex: 1 1 auto; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-card, .brand-card:nth-child(4), .brand-card--wide { grid-column: auto; min-height: 300px; }
  .badge--new { left: auto; right: 22px; }
  .why-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .toolbar { position: static; margin: 0 0 14px; padding: 0; }
  .search input { width: 100%; }
  .toolbar__right, .search { width: 100%; }
  .toolbar__right .select { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-right: -18px; }
  .chip { flex: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard__name { font-size: 1rem; }
  .pcard__meta { grid-template-columns: 1fr 1fr; }
  .pcard__meta div:last-child { display: none; }
  .pcard__body { padding: 12px; }
  .upc { font-size: .66rem; }
  .pcard__view { display: none; }
  .pack-steps { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .bento__item:nth-child(3), .bento__item--text { grid-column: span 12; }
  .footer__grid { grid-template-columns: 1fr; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-media { clip-path: none; }
  .reveal-media img, .scene img { transform: none !important; }
}
