/* La Gran Feria Navideña — tienda pública */

:root {
  --red: #d50f1a;
  --red-dark: #a3000e;
  --green: #167a37;
  --green-deep: #0f3d26;
  --gold: #f5b82e;
  --gold-soft: #fff1cc;
  --cream: #fff8ee;
  --paper: #ffffff;
  --ink: #1b1b1f;
  --ink-soft: #4a4a52;
  --muted: #6e6e78;
  --line: rgba(27, 27, 31, 0.1);
  --wa: #1fa855;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(27, 27, 31, 0.08);
  --shadow-lg: 0 24px 60px rgba(27, 27, 31, 0.16);
  --display: 'Fredoka', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.kicker {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--red);
  margin-bottom: .6em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 999px;
  padding: .8em 1.4em;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  text-decoration: none; line-height: 1.1;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-lg { padding: 1em 1.8em; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(213, 15, 26, .3); }
.btn-primary:hover { background: var(--red-dark); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn-white { background: #fff; color: var(--red); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-white:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(31, 168, 85, .3); margin-top: 10px; }
.btn-wa:hover { background: #178a45; }
.btn-link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: .6em; }
.btn-add { background: var(--green); color: #fff; padding: .6em 1em; font-size: .92rem; }
.btn-add:hover { background: var(--green-deep); }
.is-pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.12); } }

/* ---------- Anuncio + header ---------- */
.announce { background: var(--green-deep); color: #fff; font-size: .88rem; font-weight: 500; padding: 8px 0; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 20px; }
.announce-links { display: flex; gap: 16px; margin-left: auto; }
.announce-links a { text-decoration: none; }
.announce-links a:hover { text-decoration: underline; }
.announce-inner > span:first-child:not(:last-child) { margin-left: 0; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; }
.brand-name { font-family: var(--display); font-size: 1.3rem; line-height: 1; color: var(--green); font-weight: 600; }
.brand-name strong { color: var(--red); font-weight: 700; }
.search { display: flex; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding-left: 16px; }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,122,55,.15); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: .95rem; padding: 10px 0; outline: none; }
.search button { width: 44px; height: 42px; border: 0; background: none; color: var(--ink-soft); display: grid; place-items: center; }
.search-desk { flex: 1; max-width: 460px; margin-left: auto; }
.search-movil { display: none; }
.main-nav { background: var(--cream); border-top: 1px solid var(--line); }
.nav-list { list-style: none; display: flex; justify-content: center; margin: 0 auto; }
.nav-list > li { position: relative; }
.nav-list > li + li::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: rgba(27,27,31,.2); }
.nav-top {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 22px; border: 0; background: none;
  font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.nav-top:hover, .has-sub.is-open > .nav-top { color: var(--red); }
.nav-top i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.has-sub.is-open > .nav-top i { transform: translateY(1px) rotate(225deg); }
.sub { list-style: none; margin: 0; padding: 0; background: var(--red); min-width: 230px; display: none; }
.sub a { display: block; padding: 11px 18px; color: #fff; text-decoration: none; font-size: .93rem; font-weight: 500; }
.sub a:hover { background: var(--red-dark); }
.has-sub.is-open > .sub { display: block; }
@media (min-width: 961px) {
  .sub { position: absolute; top: 100%; left: 0; box-shadow: var(--shadow-lg); border-radius: 0 0 12px 12px; overflow: hidden; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--cream); color: var(--ink);
}
.cart-btn:hover { background: var(--gold-soft); }
.cart-count {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .2s;
}
.cart-count.is-visible { transform: scale(1); }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: none; padding: 12px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Carrusel ---------- */
.slider { position: relative; overflow: hidden; background: var(--green-deep); }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; color: #fff; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-green {
  background:
    radial-gradient(1200px 500px at 85% 10%, rgba(245,184,46,.22), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(213,15,26,.45), transparent 60%),
    linear-gradient(160deg, #134d30 0%, var(--green-deep) 60%, #0a2a1a 100%);
}
.slide-red { background: radial-gradient(900px 500px at 85% 20%, #ee3b3b, transparent 60%), linear-gradient(150deg, var(--red) 0%, var(--red-dark) 100%); }
.slide-gold { background: radial-gradient(900px 500px at 85% 20%, #ffe08a, transparent 60%), linear-gradient(150deg, var(--gold) 0%, #e79a12 100%); color: var(--ink); }
.slide-night { background: radial-gradient(900px 500px at 85% 20%, rgba(31,168,85,.4), transparent 60%), linear-gradient(150deg, #123524 0%, #07170f 100%); }
.slide .kicker { color: var(--gold); }
.slide-gold .kicker { color: var(--red-dark); }
.slide h1, .slide-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 4.8vw, 3.6rem); line-height: 1.08; margin: 0 0 .35em; text-wrap: balance; }
.slide-inner {
  position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 32px;
  padding: clamp(36px, 5vw, 60px) 84px clamp(52px, 6vw, 72px);
  min-height: 420px;
}
.slide-sub { font-size: clamp(1rem, 1.5vw, 1.15rem); opacity: .9; max-width: 34em; margin-bottom: 22px; }
.slide-art { display: grid; place-items: center; }
.slide-art img { width: min(100%, 300px); background: rgba(255,255,255,.97); border-radius: 28px; padding: 5%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.slide-emoji { font-size: clamp(6rem, 13vw, 10rem); line-height: 1; filter: drop-shadow(0 18px 30px rgba(0,0,0,.28)); }
.slider .snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 58px; border: 0; background: rgba(255,255,255,.92); color: var(--red);
  font-size: 2rem; line-height: 1; border-radius: 10px;
}
.slider-arrow:hover { background: #fff; }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2; display: flex; justify-content: center; gap: 4px; }
.slider-dots button { width: 24px; height: 24px; padding: 6px; border: 0; background: none; }
.slider-dots button::before { content: ''; display: block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; transition: background .2s; }
.slider-dots button.is-active::before { background: #fff; }

/* ---------- Banners ---------- */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 26px; padding-bottom: 26px; }
.promo {
  display: flex; flex-direction: column; gap: 2px; justify-content: center;
  min-height: 136px; padding: 22px 28px; border-radius: var(--radius); color: #fff; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.promo-green { background: linear-gradient(120deg, var(--green) 0%, var(--green-deep) 100%); }
.promo-red { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); }
.promo-kicker { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.promo strong { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; }
.promo-go { font-weight: 600; font-size: .92rem; color: var(--gold); margin-top: 4px; }

/* ---------- Accesos rápidos ---------- */
.exps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.exp {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 26px 14px 30px; background: #fff; border-radius: var(--radius); text-decoration: none;
  border-bottom: 10px solid var(--c); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.exp:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.exp-red { --c: var(--red); --s: #fde3e4; }
.exp-green { --c: var(--green); --s: #dcf1e3; }
.exp-gold { --c: var(--gold); --s: var(--gold-soft); }
.exp-night { --c: var(--green-deep); --s: #dbe7e0; }
.exp-wine { --c: var(--red-dark); --s: #f6dcdc; }
.exp-icon { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: var(--s); font-size: 2.7rem; line-height: 1; }
.exp-name { font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--ink); line-height: 1.2; }

/* ---------- Intro + confianza ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.intro-copy p:not(.kicker) { color: var(--ink-soft); font-size: 1.05rem; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trust-grid div { display: flex; align-items: center; gap: 12px; padding: 18px; background: var(--cream); border-radius: var(--radius-sm); }
.trust-grid span { font-size: 1.7rem; }
.trust-grid p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.35; }
.trust-grid strong { display: block; color: var(--ink); font-size: .95rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section-tight { padding-top: 32px; }
.section-soft { background: var(--cream); }
.section-head { margin-bottom: 32px; max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-more { margin: 32px 0 0; }
.page-head { background: var(--cream); padding-bottom: 28px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 8px 0 .2em; }
.page-head p { margin-bottom: 0; }
.empty { padding: 48px 0; }

/* ---------- Mosaico de categorías ---------- */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; gap: 14px; }
.tile {
  position: relative; overflow: hidden; display: grid; place-items: center;
  grid-column: span 2; border-radius: var(--radius); text-decoration: none; color: #fff;
  transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile-1 { background: linear-gradient(145deg, var(--red) 0%, var(--red-dark) 100%); }
.tile-2 { background: linear-gradient(145deg, var(--green) 0%, var(--green-deep) 100%); }
.tile-3 { background: linear-gradient(145deg, #e79a12 0%, #a86a00 100%); }
.tile-4 { background: linear-gradient(145deg, #1d5c3c 0%, #0a2a1a 100%); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.06); }
.tile:has(img)::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.tile-emoji { position: absolute; right: 6%; bottom: -8%; font-size: clamp(5.5rem, 11vw, 9rem); line-height: 1; opacity: .3; }
.tile-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px; }
.tile-text strong { font-family: var(--display); font-size: clamp(1.3rem, 2.8vw, 2.1rem); line-height: 1.1; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.tile-text small { font-size: .9rem; opacity: .92; }
.tile:first-child { grid-column: span 3; grid-row: span 2; }
.tile:nth-child(2), .tile:nth-child(3) { grid-column: span 3; }
.tile:only-child { grid-column: span 6; }
.tile:first-child:nth-last-child(2), .tile:nth-child(2):last-child { grid-column: span 3; grid-row: span 2; }
.tile:nth-child(4):last-child { grid-column: span 6; }
.tile:nth-child(4):nth-last-child(2), .tile:nth-child(5):last-child { grid-column: span 3; }

/* ---------- Franja de contacto ---------- */
.cta-band { background: var(--green-deep); color: #fff; padding: 26px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
.cta-band p { margin: 0; font-family: var(--display); font-size: 1.3rem; }
.cta-band .btn-wa { margin-top: 0; }

/* ---------- Grid de productos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 1; background: var(--cream); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: .8rem;
  padding: 5px 10px; border-radius: 999px;
}
.badge-gold { background: var(--gold); color: var(--ink); }
.badge-dark { background: var(--ink); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card-cat { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); font-weight: 600; margin-bottom: 4px; }
.card-title { font-size: 1.08rem; font-weight: 600; margin-bottom: 14px; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--red); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin: 0; color: var(--ink); }
.price s { font-size: .8em; color: var(--muted); font-weight: 500; margin-left: 6px; }

/* ---------- Filtros ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filters-center { justify-content: center; margin-bottom: 0; }
.chip {
  padding: .5em 1.05em; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line);
  text-decoration: none; font-weight: 500; font-size: .92rem;
  transition: background .15s, color .15s;
}
.chip:hover { background: var(--gold-soft); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Cómo comprar ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 26px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.steps span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; }

/* ---------- FAQ / acordeón ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 28px 18px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; }

/* ---------- Página de producto ---------- */
.breadcrumb { padding-top: 20px; font-size: .88rem; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); padding-top: 22px; padding-bottom: 40px; align-items: start; }
.gallery { position: sticky; top: 140px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--cream); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { flex: 0 0 80px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--cream); }
.thumb.is-active { border-color: var(--red); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.pdp-hook { font-size: 1.12rem; color: var(--ink-soft); }
.price-lg { font-size: 2rem; margin: 10px 0 18px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.save { background: var(--gold-soft); color: var(--ink); font-size: .9rem; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.benefits { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.benefits li { background: var(--cream); border-radius: var(--radius-sm); padding: 12px 16px; }
.urgency { color: var(--red); font-weight: 600; }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.grow { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 42px; height: 100%; min-height: 44px; border: 0; background: none; font-size: 1.2rem; }
.qty input { width: 44px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 32px; min-height: 32px; font-size: 1rem; }
.qty-sm span { min-width: 22px; text-align: center; font-weight: 600; }
.sold-out { padding: 14px 18px; background: var(--cream); border-radius: var(--radius-sm); font-weight: 600; }
.pdp-trust { list-style: none; padding: 16px 0; margin: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #111; color: rgba(255,255,255,.75); padding: 56px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 28px; }
.footer-logo { background: #fff; border-radius: 16px; padding: 10px; width: 140px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.pay-list { font-size: .85rem; margin-top: 12px; }
.copyright { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(31,168,85,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Drawer del carrito ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(10,20,14,.45); opacity: 0; transition: opacity .25s; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(440px, 100%); background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: var(--shadow-lg);
  visibility: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.35rem; margin: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); font-size: 1rem; }
.drawer-step { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; }
.cart-items { padding: 6px 22px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--cream); }
.ci-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ci-info a { font-weight: 600; text-decoration: none; line-height: 1.25; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cart-empty { padding: 48px 22px; text-align: center; }
.drawer-foot { margin-top: auto; padding: 18px 22px 22px; border-top: 1px solid var(--line); background: #fff; position: sticky; bottom: 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin-bottom: 4px; }
.total-row strong { font-family: var(--display); font-size: 1.5rem; }
.checkout { padding: 18px 22px 0; gap: 12px; }
.checkout label, .checkout legend { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.checkout input, .checkout textarea {
  width: 100%; font: inherit; font-weight: 400; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfbfb;
}
.checkout input:focus, .checkout textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(22,122,55,.15); }
.checkout fieldset { border: 0; padding: 0; margin: 0; }
.checkout .drawer-foot { margin: 6px -22px 0; }
.pay-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pay-option { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.pay-option input { width: auto; margin: 0; accent-color: var(--green); }
.pay-option:has(input:checked) { border-color: var(--green); background: rgba(22,122,55,.07); }
.form-error { background: #fdecec; color: var(--red-dark); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .92rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.done { padding: 40px 26px; text-align: center; justify-content: center; }
.done-icon { font-size: 3.4rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70;
  transform: translate(-50%, 120px);
  visibility: hidden;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 500; box-shadow: var(--shadow-lg);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Aparición ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .announce-links { display: none; }
  .search-desk { display: none; }
  .search-movil { display: flex; margin: 12px 20px 6px; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 90px); overflow-y: auto;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; padding: 0 20px 12px; }
  .nav-list > li + li::before { display: none; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-top { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 1.05rem; }
  .sub { background: var(--cream); border-radius: var(--radius-sm); margin-bottom: 10px; }
  .sub a { color: var(--ink); padding: 12px 16px; }
  .sub a:hover { background: var(--gold-soft); }
  .header-actions { margin-left: auto; }
  .menu-btn { display: flex; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .intro { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-inner { height: 68px; }
  .slide-inner { grid-template-columns: 1fr; text-align: center; gap: 14px; padding: 26px 20px 56px; min-height: 0; }
  .slide-art { order: -1; }
  .slide-art img { width: 160px; }
  .slide-emoji { font-size: 6rem; }
  .slide-sub { margin-left: auto; margin-right: auto; }
  .slide .btn { width: 100%; }
  .slider-arrow { width: 34px; height: 46px; font-size: 1.6rem; top: 130px; }
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
  .promos { grid-template-columns: 1fr; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .promo { min-height: 104px; }
  .exps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .exp:last-child:nth-child(odd) { grid-column: span 2; }
  .exp-icon { width: 76px; height: 76px; font-size: 2.2rem; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 136px; gap: 10px; }
  .mosaic .tile { grid-column: span 1; grid-row: span 1; }
  .mosaic .tile:first-child { grid-column: span 2; grid-row: span 1; }
  .mosaic .tile:last-child:nth-child(even) { grid-column: span 2; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px; }
  .card-title { font-size: .95rem; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .price { font-size: 1.1rem; }
  .btn-add { width: 100%; }
  .brand-name { font-size: 1.05rem; }
  .brand img { width: 38px; height: 38px; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .buy-row { flex-direction: column; }
  .qty { align-self: flex-start; }
}
