/* =========================================================
   The Funky Factory · Tema Oscuro
   ========================================================= */

@font-face {
  font-family: 'Fredoka';
  src: url('fonts/Fredoka.ttf') format('truetype-variations'),
       url('fonts/Fredoka.ttf') format('truetype');
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink:        #ff2d8a;
  --pink-700:    #d61c70;
  --lime:        #d3ff3c;
  --lime-soft:   #b7e022;
  --black:       #000000;
  --ink:         #ffffff;
  --ink-2:       #c4c4cf;
  --muted:       #7a7a86;
  --line:        #1f1f24;
  --bg:          #0a0a0c;
  --bg-soft:     #131318;
  --card:        #16161c;
  --card-soft:   #1d1d24;
  --shadow-sm:   0 2px 6px rgba(0, 0, 0, .35);
  --shadow-md:   0 12px 32px rgba(0, 0, 0, .5);
  --shadow-lg:   0 24px 60px rgba(0, 0, 0, .6);
  --radius:      18px;
  --radius-lg:   28px;
  --radius-pill: 999px;
  --container:   1240px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: 'Fredoka', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--lime);
  background: rgba(211, 255, 60, .12);
  padding: 6px 12px; border-radius: var(--radius-pill);
}

/* =========================================================
   Promo bar
   ========================================================= */
.promo {
  background: var(--lime);
  color: #000;
  font-weight: 700; font-size: .88rem;
  overflow: hidden; position: relative;
}
.promo__track {
  display: flex; gap: 48px; align-items: center;
  white-space: nowrap; padding: 10px 0;
  animation: marquee 35s linear infinite;
  width: max-content;
}
.promo__track > span { display: inline-flex; align-items: center; gap: 8px; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   Topbar / Nav
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, .85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
}
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 6px; justify-self: center; }
.nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .92rem;
  color: var(--ink-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.is-active { color: var(--pink); }
.nav a.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--pink); border-radius: 2px;
}
.caret { font-size: .7em; opacity: .65; }

.actions { display: flex; gap: 4px; align-items: center; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink); transition: background .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { background: var(--card-soft); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--badge .badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: .65rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}
.icon-btn--badge .badge--accent { background: var(--pink); color: #fff; }
.theme-toggle {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; margin-left: 6px;
  background: var(--lime); color: #000;
  transition: transform .2s var(--ease);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle:hover { transform: rotate(20deg) scale(1.05); }

.hamburger { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 32px 0 12px; }
.hero__card {
  background:
    radial-gradient(80% 120% at 0% 100%, rgba(255, 45, 138, .25) 0%, transparent 60%),
    radial-gradient(80% 120% at 100% 0%, rgba(211, 255, 60, .18) 0%, transparent 60%),
    linear-gradient(135deg, #16161c 0%, #1c0d18 100%);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px;
  align-items: center;
  position: relative; overflow: hidden;
  border: 1px solid #25252d;
  box-shadow: var(--shadow-lg);
}
.hero__copy { position: relative; z-index: 1; }
.hero__copy h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  line-height: 1.05; font-weight: 800;
  margin: 14px 0 18px;
  letter-spacing: -.02em;
  color: #fff;
}
.hero__copy h1 em {
  font-style: normal;
  color: var(--lime);
}
.hero__copy p {
  font-size: 1.05rem; color: var(--ink-2);
  margin: 0 0 28px; max-width: 520px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__rating {
  display: flex; align-items: center; gap: 10px;
  font-size: .92rem; color: var(--ink-2);
}
.hero__rating .stars { color: var(--lime); letter-spacing: 2px; }
.hero__rating strong { color: var(--ink); }

.hero__art { position: relative; display: flex; justify-content: center; }
.hero__art img {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px; height: auto;
  filter: drop-shadow(0 30px 50px rgba(255, 45, 138, .45));
  animation: floaty 6s ease-in-out infinite;
}

/* Hero (oscuro) — splash + robot saltando apilados */
.hero__art--stack {
  position: relative;
  min-height: 460px;
  align-items: center;
}
.hero__art--stack img {
  position: absolute;
  animation: none;
  filter: none;
  max-width: none;
}
.hero__splash {
  width: min(110%, 560px) !important;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  z-index: 0;
  filter: drop-shadow(0 30px 60px rgba(255, 45, 138, .35)) !important;
  animation: splash-pulse 7s ease-in-out infinite !important;
}
.hero__robot {
  width: min(82%, 380px) !important;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  z-index: 2;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)) !important;
  animation: jump 5.5s ease-in-out infinite !important;
}
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
@keyframes splash-pulse {
  0%, 100% { transform: translate(-50%, -52%) scale(1)   rotate(0deg); opacity: .9; }
  50%      { transform: translate(-50%, -50%) scale(1.04) rotate(-2deg); opacity: 1; }
}
@keyframes jump {
  0%, 100% { transform: translate(-50%, -55%); }
  35%      { transform: translate(-50%, -62%) rotate(-3deg); }
  65%      { transform: translate(-50%, -50%) rotate(2deg); }
}
/* =========================================================
   Carrusel del hero (3 diapositivas)
   ========================================================= */
.hero-carousel { position: relative; }
.hero-carousel__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.hero-carousel__track {
  display: flex;
  transition: transform .6s var(--ease);
  will-change: transform;
}
.hero-slide { flex: 0 0 100%; min-width: 100%; }
/* Cada diapositiva ocupa la altura de la más alta para que no salte el layout */
.hero-slide .hero__card { height: 100%; margin: 0; }

/* Flechas */
.hero-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 10, 12, .55); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: var(--ink);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.hero-carousel__arrow:hover { background: var(--pink); border-color: var(--pink); }
.hero-carousel__arrow--prev { left: 14px; }
.hero-carousel__arrow--next { right: 14px; }

/* Puntos */
.hero-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.hero-carousel__dots button {
  width: 9px; height: 9px; padding: 0; border-radius: var(--radius-pill);
  background: var(--card-soft); border: 1px solid var(--line); cursor: pointer;
  transition: width .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.hero-carousel__dots button.is-active { width: 26px; background: var(--pink); border-color: var(--pink); }

/* Slide 2 · productos destacados */
.hero__card--featured { display: flex; flex-direction: column; gap: 18px; }
.hero-feat__head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  margin: 8px 0 6px; color: #fff; letter-spacing: -.02em;
}
.hero-feat__head h2 em { font-style: normal; color: var(--lime); }
.hero-feat__head p { margin: 0; color: var(--ink-2); }
.hero-feat__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero-feat__cta { align-self: flex-start; }

/* Slide 3 · promoción del mes */
.hero__card--promo { grid-template-columns: 1.15fr .85fr; }
.hero-promo__copy h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800;
  margin: 12px 0 14px; color: #fff; letter-spacing: -.02em; line-height: 1.05;
}
.hero-promo__copy h2 em { font-style: normal; color: var(--lime); }
.hero-promo__copy p { color: var(--ink-2); margin: 0 0 24px; max-width: 520px; }
.hero-promo__hint { display: block; margin-top: 16px; color: var(--ink-2); font-size: .9rem; }
.hero-promo__hint strong { color: var(--lime); }
.hero-promo__art { display: grid; place-items: center; }
.hero-promo__discount {
  display: grid; place-items: center; gap: 2px;
  width: min(70%, 220px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--pink), var(--pink-700));
  box-shadow: 0 24px 60px rgba(255, 45, 138, .5);
  transform: rotate(-8deg);
  animation: floaty 6s ease-in-out infinite;
}
.hero-promo__discount strong { font-size: clamp(2.4rem, 6vw, 3.6rem); color: #fff; font-weight: 800; line-height: 1; }
.hero-promo__discount em { font-style: normal; color: var(--lime); font-weight: 800; letter-spacing: 3px; }

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__track { transition: none; }
  .hero-promo__discount { animation: none; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: .95rem;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  cursor: pointer;
}
.btn--primary {
  background: var(--pink); color: #fff;
  box-shadow: 0 8px 22px rgba(255, 45, 138, .45);
}
.btn--primary:hover { background: var(--pink-700); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(255, 45, 138, .55); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 2px solid rgba(255, 255, 255, .85);
}
.btn--ghost:hover { background: var(--lime); color: #000; border-color: var(--lime); }

/* =========================================================
   Benefits strip
   ========================================================= */
.benefits-strip {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.benefits-strip__inner {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
}
.benefit {
  display: flex; align-items: center; gap: 12px;
}
.benefit__icon {
  width: 48px; height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.benefit strong { display: block; font-size: .92rem; }
.benefit span { color: var(--muted); font-size: .82rem; }

/* =========================================================
   Catalog
   ========================================================= */
.catalog { padding: 64px 0 32px; }
.catalog__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.catalog__head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin: 8px 0 0;
  letter-spacing: -.01em;
}
/* Pestañas en 2 líneas (4 por fila): Todos · Packs · … */
.filter-tabs {
  display: grid; gap: 8px;
  grid-template-columns: repeat(4, max-content);
  justify-content: end;
}
.tab {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .88rem;
  color: var(--ink-2);
  background: var(--card-soft);
  transition: all .2s var(--ease);
  text-align: center; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--lime); color: #000; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(255, 45, 138, .25);
  border-color: rgba(255, 45, 138, .4);
}
.card__media {
  position: relative;
  background: #f4f4f7;  /* product images have white-ish bg already, keep light */
  aspect-ratio: 1 / .9;
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .35s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__quick {
  position: absolute; bottom: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  box-shadow: var(--shadow-md);
}
.card:hover .card__quick { opacity: 1; transform: translateY(0); }
.card__quick:hover { background: var(--pink); color: #fff; }
.card__quick svg { width: 16px; height: 16px; }

.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; background: var(--card); color: var(--ink); }
.card__name { font-size: 1rem; font-weight: 700; margin: 2px 0; color: var(--ink); }
.card__rating { font-size: .82rem; color: var(--muted); }
.card__rating .stars { color: #ffd23a; }
.card__row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px;
}
.card__price { font-size: 1.05rem; font-weight: 800; color: var(--pink); }
.card__cart {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--lime); color: #000;
  display: grid; place-items: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.card__cart:hover { background: var(--pink); color: #fff; transform: scale(1.06); }
.card__cart svg { width: 16px; height: 16px; }

/* =========================================================
   CTA Personaliza
   ========================================================= */
.cta-band { padding: 64px 0; }
.cta-band__inner {
  background:
    radial-gradient(60% 110% at 100% 0%, rgba(255, 45, 138, .35) 0%, transparent 70%),
    linear-gradient(135deg, var(--lime-soft) 0%, var(--lime) 100%);
  color: #000;
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px;
  align-items: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 14px 0 14px; line-height: 1.1; color: #000; }
.cta-band h2 em { font-style: normal; color: var(--pink); }
.cta-band p { color: rgba(0, 0, 0, .76); margin: 0 0 24px; max-width: 480px; }
.cta-band .eyebrow { background: rgba(0, 0, 0, .12); color: #000; }
.cta-band .btn--primary { background: #000; color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.4); }
.cta-band .btn--primary:hover { background: var(--pink); }
.cta-band__art { position: relative; z-index: 1; }
.cta-band__art img {
  width: min(280px, 90%); height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-left: auto; display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35));
  animation: floaty 5s ease-in-out infinite;
}

/* =========================================================
   Coming Soon
   ========================================================= */
.coming { padding: 32px 0 64px; }
.coming__card {
  background: linear-gradient(135deg, #1a0a14 0%, #0d1f04 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: center;
  position: relative; overflow: hidden;
  border: 1px solid #1f1f24;
}
.coming__copy h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1; margin: 14px 0 16px;
  font-weight: 800; letter-spacing: -.02em;
}
.coming__copy h2 em { font-style: normal; color: var(--pink); }
.coming__copy p { color: rgba(255,255,255,.78); margin: 0 0 24px; }
.coming .eyebrow { background: rgba(255, 45, 138, .15); color: var(--pink); }
.newsletter {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(255,255,255,.06); padding: 8px;
  border-radius: var(--radius-pill);
  max-width: 460px;
  border: 1px solid rgba(255,255,255,.08);
}
.newsletter input {
  flex: 1; min-width: 200px;
  background: transparent; border: 0; outline: 0;
  color: #fff; padding: 10px 16px;
  font: inherit;
}
.newsletter input::placeholder { color: rgba(255,255,255,.55); }
.coming__art img {
  width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1);
}

/* =========================================================
   Reviews
   ========================================================= */
.reviews { padding: 56px 0 32px; background: var(--bg-soft); }
.reviews__head { text-align: center; margin-bottom: 36px; }
.reviews__head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 12px 0 0; }
.reviews__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.review {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(211, 255, 60, .4);
}
.review .stars { color: var(--lime); letter-spacing: 2px; margin-bottom: 12px; }
.review p { margin: 0 0 18px; color: var(--ink-2); line-height: 1.55; }
.review footer { display: flex; flex-direction: column; }
.review footer strong { color: var(--ink); }
.review footer span { color: var(--muted); font-size: .82rem; }

/* =========================================================
   Bottom benefits
   ========================================================= */
.benefits-bottom { padding: 56px 0; }
.benefits-bottom__inner {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
  text-align: center;
}
.benefit-x {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.benefit-x__icon {
  width: 56px; height: 56px;
  background: rgba(255, 45, 138, .14);
  color: var(--pink);
  border-radius: 16px;
  display: grid; place-items: center; font-size: 1.4rem;
  margin-bottom: 6px;
}
.benefit-x strong { font-size: .92rem; }
.benefit-x span { color: var(--muted); font-size: .8rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #050507;
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer__brand img { height: 56px; width: auto; margin-bottom: 14px; }
.site-footer__brand p { color: var(--ink-2); font-size: .92rem; line-height: 1.55; }
.site-footer__col h4 {
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted);
  margin: 0 0 16px;
}
.site-footer__col a {
  display: block;
  color: var(--ink-2);
  margin-bottom: 10px;
  font-size: .92rem;
  transition: color .15s var(--ease);
}
.site-footer__col a:hover { color: var(--pink); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  background: var(--card-soft);
  display: grid; place-items: center;
  border-radius: 50%; margin-bottom: 0;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.payments { display: flex; flex-wrap: wrap; gap: 8px; }
.payments span {
  font-size: .7rem; font-weight: 800;
  background: var(--card-soft);
  padding: 6px 10px; border-radius: 8px;
  letter-spacing: .04em;
}

.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.site-footer__bottom .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.site-footer__bottom small { color: var(--muted); font-size: .82rem; }
.theme-link {
  font-size: .9rem; color: var(--ink-2);
  display: inline-flex; gap: 6px;
}
.theme-link strong { color: var(--lime); }
.theme-link:hover strong { text-decoration: underline; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero__card,
  .cta-band__inner,
  .coming__card { grid-template-columns: 1fr; padding: 36px; }
  .hero__art { order: -1; }
  .hero__copy h1 { font-size: 2.4rem; }
  .benefits-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .benefits-bottom__inner { grid-template-columns: repeat(3, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .catalog__head { grid-template-columns: 1fr; }
  .filter-tabs { justify-content: start; }
}

@media (max-width: 980px) {
  .hero__art--stack { min-height: 360px; }
  .hero__card--promo { grid-template-columns: 1fr; }
  .hero-promo__art { order: -1; }
  .hero-promo__discount { width: 160px; }
}

@media (max-width: 720px) {
  .hero__art--stack { min-height: 300px; }
  .hero__splash { width: min(120%, 460px) !important; }
  .hero__robot  { width: min(70%, 280px)  !important; }
  .topbar__inner { grid-template-columns: auto auto 1fr; }
  .nav {
    position: fixed; inset: 64px 16px auto 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    flex-direction: column; gap: 4px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    z-index: 60;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 14px; }
  .hamburger {
    display: inline-grid; place-items: center; gap: 4px;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--card-soft);
  }
  .hamburger span {
    display: block; width: 18px; height: 2px;
    background: var(--ink); border-radius: 2px;
  }
  .actions { justify-self: end; gap: 0; }
  .actions .icon-btn:not(.cart) { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .filter-tabs { grid-template-columns: repeat(2, 1fr); justify-content: stretch; }
  .hero-feat__row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-feat__row .card:nth-child(3) { display: none; }
  .hero-carousel__arrow { width: 38px; height: 38px; font-size: 1.4rem; }
  .hero-carousel__arrow--prev { left: 8px; }
  .hero-carousel__arrow--next { right: 8px; }
  .benefits-strip__inner { grid-template-columns: 1fr; }
  .benefits-bottom__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .hero__card { padding: 28px; }
  .cta-band__inner, .coming__card { padding: 28px; }
  .newsletter { flex-direction: column; border-radius: var(--radius); padding: 12px; }
  .newsletter input { width: 100%; padding: 12px; }
  .newsletter .btn { width: 100%; justify-content: center; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Carrito (drawer lateral) · usa los tokens del tema
   ========================================================= */
.cart-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.cart-drawer.is-open { visibility: visible; }
.cart-drawer__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  opacity: 0; transition: opacity .3s var(--ease);
}
.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }
.cart-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(420px, 100%); display: flex; flex-direction: column;
  background: var(--card); color: var(--ink);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.cart-drawer.is-open .cart-drawer__panel { transform: none; }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.cart-drawer__head h3 { margin: 0; font-size: 1.15rem; }
.cart-drawer__close {
  background: none; border: 0; color: var(--ink-2); cursor: pointer;
  width: 36px; height: 36px; border-radius: var(--radius-pill);
  display: grid; place-items: center; transition: background .2s var(--ease), color .2s var(--ease);
}
.cart-drawer__close:hover { background: var(--card-soft); color: var(--ink); }
.cart-drawer__close svg { width: 20px; height: 20px; }
.cart-drawer__list { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-drawer__empty { color: var(--muted); text-align: center; margin: 40px 0; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px;
  align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-item__img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--card-soft); }
.cart-item__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: .95rem; }
.cart-item__price { color: var(--ink-2); font-size: .9rem; }
.cart-qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; }
.cart-qty__btn {
  width: 28px; height: 28px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--card-soft); color: var(--ink);
  cursor: pointer; font-size: 1rem; line-height: 1; display: grid; place-items: center;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.cart-qty__btn:hover { border-color: var(--pink); }
.cart-qty__n { min-width: 20px; text-align: center; font-weight: 600; }
.cart-item__remove {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  width: 32px; height: 32px; display: grid; place-items: center; transition: color .2s var(--ease);
}
.cart-item__remove:hover { color: var(--pink); }
.cart-item__remove svg { width: 18px; height: 18px; }
.cart-drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart-drawer__total { display: flex; align-items: center; justify-content: space-between; font-size: 1.05rem; }
.cart-drawer__total strong { font-size: 1.25rem; }
.cart-drawer__checkout { width: 100%; }
.cart-drawer__checkout:disabled { opacity: .5; cursor: not-allowed; }
.cart-drawer__clear {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: .85rem; text-decoration: underline; justify-self: center;
}
.cart-drawer__clear:hover { color: var(--ink-2); }

/* =========================================================
   Modal "Personaliza" (solicitud de presupuesto)
   ========================================================= */
.pz-modal { position: fixed; inset: 0; z-index: 1100; visibility: hidden; }
.pz-modal.is-open { visibility: visible; }
.pz-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .3s var(--ease); }
.pz-modal.is-open .pz-modal__overlay { opacity: 1; }
.pz-modal__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%);
  width: min(520px, calc(100% - 32px)); max-height: 90vh; overflow-y: auto;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 32px; opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.pz-modal.is-open .pz-modal__panel { opacity: 1; transform: translate(-50%, -50%); }
.pz-modal__close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  background: none; border: 0; color: var(--ink-2); cursor: pointer;
  border-radius: var(--radius-pill); display: grid; place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.pz-modal__close:hover { background: var(--card-soft); color: var(--ink); }
.pz-modal__close svg { width: 20px; height: 20px; }
.pz-modal__title { margin: 6px 0 4px; font-size: 1.4rem; }
.pz-modal__sub { color: var(--ink-2); margin: 0 0 18px; font-size: .95rem; }
.pz-modal__product {
  margin: 0 0 16px; padding: 8px 12px; background: var(--card-soft);
  border-radius: 12px; font-size: .9rem; color: var(--ink-2);
}
.pz-form { display: grid; gap: 14px; }
.pz-field { display: grid; gap: 6px; }
.pz-field > span { font-size: .85rem; color: var(--ink-2); }
.pz-field input, .pz-field textarea {
  width: 100%; padding: 11px 14px; background: var(--bg-soft); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; font: inherit; resize: vertical;
  transition: border-color .2s var(--ease);
}
.pz-field input:focus, .pz-field textarea:focus { outline: none; border-color: var(--pink); }
.pz-field input[type="file"] { padding: 9px 12px; }
.pz-form__msg { margin: 0; font-size: .9rem; min-height: 1.1em; }
.pz-form__msg[data-kind="error"] { color: var(--pink); }
.pz-form__msg[data-kind="ok"] { color: var(--lime-soft); }
.pz-form__submit { width: 100%; margin-top: 4px; }
.pz-form__submit:disabled { opacity: .6; cursor: not-allowed; }

/* =========================================================
   Vista rápida del producto (popup)
   ========================================================= */
.pm-modal { position: fixed; inset: 0; z-index: 1100; visibility: hidden; }
.pm-modal.is-open { visibility: visible; }
.pm-modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s var(--ease); }
.pm-modal.is-open .pm-modal__overlay { opacity: 1; }
.pm-modal__panel {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  width: min(860px, calc(100% - 32px));
  max-height: calc(100vh - 48px); overflow: auto;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr;
  opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.pm-modal.is-open .pm-modal__panel { opacity: 1; transform: translate(-50%, -50%); }
.pm-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(10, 10, 12, .5); border: 1px solid var(--line);
  color: var(--ink-2); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease);
}
.pm-modal__close:hover { background: var(--card-soft); color: var(--ink); }
.pm-modal__close svg { width: 20px; height: 20px; }

.pm-modal__media {
  position: relative; background: var(--bg-soft);
  display: grid; place-items: center; padding: 24px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.pm-modal__img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; border-radius: var(--radius); }
.pm-modal__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--pink); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 10px; border-radius: var(--radius-pill);
}

.pm-modal__info { padding: 34px 32px 28px; display: flex; flex-direction: column; gap: 8px; }
.pm-modal__cat { text-transform: capitalize; }
.pm-modal__title { margin: 4px 0 2px; font-size: 1.5rem; font-weight: 800; color: #fff; }
.pm-modal__rating { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pm-modal__rating .stars { color: #ffd23a; letter-spacing: 1px; }
.pm-modal__desc { color: var(--ink-2); font-size: .95rem; line-height: 1.5; margin: 8px 0; }

.pm-specs { margin: 4px 0 8px; display: grid; border-top: 1px solid var(--line); }
.pm-specs__row {
  display: grid; grid-template-columns: 42% 1fr; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.pm-specs dt { color: var(--muted); }
.pm-specs dd { margin: 0; color: var(--ink); }

.pm-modal__buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.pm-modal__price { font-size: 1.4rem; font-weight: 800; color: var(--pink); margin-right: auto; }
.pm-qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 2px; }
.pm-qty__btn {
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--ink); font-size: 1.15rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s var(--ease);
}
.pm-qty__btn:hover { background: var(--card-soft); }
.pm-qty__n { min-width: 26px; text-align: center; font-weight: 700; }
.pm-modal__add { white-space: nowrap; }
.pm-modal__msg { margin: 4px 0 0; font-size: .88rem; min-height: 1.1em; }
.pm-modal__msg[data-kind="ok"] { color: var(--lime-soft); }
.pm-modal__msg[data-kind="error"] { color: var(--pink); }

@media (max-width: 720px) {
  .pm-modal__panel { grid-template-columns: 1fr; }
  .pm-modal__media { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 18px; }
  .pm-modal__img { max-height: 260px; }
  .pm-modal__info { padding: 22px; }
  .pm-modal__price { width: 100%; margin-right: 0; }
  .pm-modal__add { flex: 1; justify-content: center; }
}

/* =========================================================
   Packs · constructor de cajas
   ========================================================= */
.packs { padding: 56px 0; }
.packs__head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.packs__head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: #fff; margin: 8px 0 6px; letter-spacing: -.02em; }
.packs__head p { color: var(--ink-2); margin: 0; }

/* Fila 1 · tamaños */
.packs__sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.pack-size {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 18px 10px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pack-size:hover { transform: translateY(-2px); border-color: var(--pink); }
.pack-size.is-active { border-color: var(--pink); box-shadow: 0 12px 28px rgba(255, 45, 138, .25); }
.pack-size strong { font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.pack-size span { font-size: .76rem; color: var(--muted); }
.pack-size__price { font-style: normal; margin-top: 6px; font-weight: 800; color: var(--pink); }
.pack-size.is-active .pack-size__price { color: var(--lime); }
.pack-size__tag {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--lime); color: #000; font-size: .64rem; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-pill); white-space: nowrap;
}

/* Progreso (sticky) + añadir */
.packs__progress {
  position: sticky; top: 12px; z-index: 40;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 10px 12px 10px 20px; margin-bottom: 22px; box-shadow: var(--shadow-md);
}
.packs__progress-track { flex: 1; min-width: 140px; height: 8px; background: var(--bg-soft); border-radius: var(--radius-pill); overflow: hidden; }
.packs__progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--lime)); transition: width .25s var(--ease); }
.packs__progress-meta { display: flex; align-items: center; gap: 10px; }
.packs__progress-meta strong { color: #fff; font-variant-numeric: tabular-nums; }
.packs__price { font-weight: 800; color: var(--pink); }
.packs__add { white-space: nowrap; }
.packs__add:disabled { opacity: .6; cursor: not-allowed; }

/* Filas siguientes · ítems elegibles */
.packs__grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pack-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s var(--ease);
}
.pack-item.is-selected { border-color: var(--pink); }
.pack-item__media { position: relative; aspect-ratio: 1; background: var(--bg-soft); }
.pack-item__media img { width: 100%; height: 100%; object-fit: cover; }
.pack-item__count {
  position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; padding: 0 6px;
  background: var(--pink); color: #fff; border-radius: var(--radius-pill);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.pack-item__name { font-size: .9rem; font-weight: 700; color: var(--ink); margin: 0; padding: 10px 12px 0; }
.pack-item__qty { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px 12px; margin-top: auto; }
.pack-item__btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: 1.1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s var(--ease);
}
.pack-item__btn:hover:not(:disabled) { background: var(--pink); color: #fff; border-color: var(--pink); }
.pack-item__btn:disabled { opacity: .4; cursor: not-allowed; }
.pack-item__n { font-weight: 700; min-width: 20px; text-align: center; }
.packs__empty { text-align: center; color: var(--muted); padding: 24px 0; }

/* Contenido del pack dentro del carrito */
.cart-item__qtytxt { font-size: .8rem; color: var(--muted); }
.cart-item__contenido { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: .78rem; color: var(--ink-2); max-height: 130px; overflow: auto; }
.cart-item__contenido li { line-height: 1.3; }

@media (max-width: 980px) {
  .packs__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .packs__sizes { grid-template-columns: repeat(3, 1fr); }
  .packs__grid { grid-template-columns: repeat(2, 1fr); }
  .packs__progress { padding: 12px; }
  .packs__add { width: 100%; }
}

/* La pestaña "Packs" ocupa toda la cuadrícula del catálogo */
.grid.grid--packs { display: block; }
.pack-builder__intro { text-align: center; max-width: 640px; margin: 0 auto 18px; }
.pack-builder__intro h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0 0 4px; }
.pack-builder__intro p { color: var(--ink-2); margin: 0; }

/* Diapositivas del carrusel generadas desde el CMS */
.hero__card--image { display: block; padding: 0; min-height: 460px; background-size: cover; background-position: center; }
.hero-slide__link { display: block; border-radius: var(--radius-lg); overflow: hidden; }
.hero__card--cms { display: flex; align-items: center; min-height: 420px; }
.hero__card--cms .hero__copy { max-width: 640px; position: relative; z-index: 1; }
.hero-slide__title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: #fff; margin: 8px 0 16px; line-height: 1.05; letter-spacing: -.02em; }
.hero-slide__title em { font-style: normal; color: var(--lime); }
.hero__card--cms .hero__copy p { color: var(--ink-2); margin: 0 0 24px; max-width: 560px; font-size: 1.05rem; }
@media (max-width: 720px) {
  .hero__card--image { min-height: 300px; }
  .hero__card--cms { min-height: 320px; }
}
