/* ============================================================
   ASTROGNOMO · Café de especialidad
   Rediseño base · Estética: cósmico renovado
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg:        #0A0911;
  --bg-2:      #100E1A;
  --bg-3:      #171327;
  --panel:     #1C1730;
  --panel-2:   #241D3B;

  --gold:      #E0B877;
  --gold-2:    #F3D89E;
  --gold-deep: #B08A52;

  --cream:     #F6F1E8;
  --cream-dim: #D9D0C2;
  --muted:     #ADA6BC;
  --dim:       #6E6783;

  --line:        rgba(224,184,119,0.16);
  --line-2:      rgba(224,184,119,0.34);

  --violet:    #5A4690;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1240px;
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 28px;

  --shadow:      0 24px 70px -24px rgba(0,0,0,0.75);
  --shadow-gold: 0 22px 60px -20px rgba(224,184,119,0.38);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold-2); }
h1,h2,h3,h4 { margin: 0; }

/* ---------- LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: "✦"; font-size: 0.9em; }

.title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 1.2rem;
}
.title em { font-style: italic; color: var(--gold); font-weight: 400; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 62ch; margin: 0; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn__icon { font-size: 1.05em; line-height: 1; }
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  color: #1A1206;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { color: #1A1206; box-shadow: 0 26px 64px -16px rgba(243,216,158,0.5); }
.btn--outline { background: transparent; color: var(--cream); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--gold); background: rgba(224,184,119,0.08); color: var(--gold-2); }
.btn--lg { padding: 1.1rem 2.2rem; font-size: 1.02rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--gold); font-weight: 600; font-size: 0.95rem;
}
.link-arrow:hover { color: var(--gold-2); gap: 0.6rem; }

/* ---------- STAR FIELD ---------- */
.stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, var(--cream) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 33%, var(--gold-2) 50%, transparent 51%),
    radial-gradient(2px 2px at 38% 18%, var(--cream) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 50%, var(--gold) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 25%, var(--cream-dim) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 38%, var(--gold-2) 50%, transparent 51%),
    radial-gradient(1px 1px at 12% 70%, var(--cream) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 33% 85%, var(--gold) 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 80%, var(--cream-dim) 50%, transparent 51%),
    radial-gradient(2px 2px at 80% 72%, var(--cream) 50%, transparent 51%);
  opacity: 0.55;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { 0%,100% { opacity: 0.35; } 50% { opacity: 0.75; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,9,17,0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--cream); }
.nav__logo-img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(224,184,119,0.45)); }
.nav__logo-text { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.3em; font-size: 0.95rem; }
.nav__actions { display: flex; align-items: center; gap: 0.7rem; }
.nav__shop-cta { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.nav__cart {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); color: var(--gold-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
  transition: border-color .25s, background .25s;
}
.nav__cart:hover { border-color: var(--gold); background: rgba(224,184,119,0.08); }
.nav__cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  color: #1A1206; font-size: 0.68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* Menú desplegable */
.menu { position: relative; }
.menu__toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; border: 1px solid var(--line); color: var(--cream);
  padding: 0.55rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  transition: border-color .25s, color .25s;
}
.menu__toggle:hover { border-color: var(--gold); color: var(--gold-2); }
.menu__toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.menu__toggle-bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu.is-open .menu__toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu.is-open .menu__toggle-bars span:nth-child(2) { opacity: 0; }
.menu.is-open .menu__toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu__panel {
  position: absolute; top: calc(100% + 14px); right: 0; width: 330px; max-width: calc(100vw - 2rem);
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.menu.is-open .menu__panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.menu__heading { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0.2rem 0.4rem 0.8rem; }
.menu__item { display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0.6rem; border-radius: var(--radius-sm); color: var(--cream); transition: background .2s, transform .2s; }
.menu__item:hover { background: rgba(224,184,119,0.1); color: var(--cream); transform: translateX(3px); }
.menu__item-icon { flex: 0 0 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(224,184,119,0.12); color: var(--gold-2); font-size: 1.05rem; }
.menu__item-text { display: flex; flex-direction: column; line-height: 1.25; }
.menu__item-text strong { font-weight: 600; font-size: 0.95rem; }
.menu__item-text small { color: var(--muted); font-size: 0.78rem; }
.menu__footer { display: flex; gap: 0.6rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.menu__social { flex: 1; text-align: center; padding: 0.55rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--cream-dim); transition: border-color .25s, color .25s; }
.menu__social:hover { border-color: var(--gold); color: var(--gold-2); }
.menu__overlay { position: fixed; inset: 0; background: rgba(6,5,12,0.5); backdrop-filter: blur(2px); z-index: 55; }
@media (max-width: 560px) { .nav__shop-cta { display: none; } .menu__panel { width: 300px; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse at 78% 18%, rgba(224,184,119,0.16), transparent 52%),
    radial-gradient(ellipse at 18% 82%, rgba(90,70,144,0.28), transparent 55%),
    var(--bg);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__slogan {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.0; font-weight: 500; letter-spacing: -0.015em;
  margin: 0 0 1.5rem; color: var(--cream);
}
.hero__slogan em { font-style: italic; color: var(--gold); font-weight: 400; position: relative; }
.hero__slogan .spark { color: var(--gold-2); }
.hero__sub { color: var(--muted); font-size: 1.14rem; max-width: 52ch; margin: 0 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-bottom: 1.1rem; }
.hero__secondary {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--cream); font-size: 0.98rem; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero__secondary span { transition: transform 0.2s ease; }
.hero__secondary:hover { color: var(--gold-2); border-color: var(--gold); }
.hero__secondary:hover span { transform: translateX(3px); }
.hero__rating {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 1.8rem; text-decoration: none;
  color: var(--cream-dim); font-size: 0.9rem;
}
.hero__rating-stars { color: var(--gold); letter-spacing: 0.08em; }
.hero__rating:hover { color: var(--gold-2); }
.hero__bullets { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; margin: 0; color: var(--cream-dim); font-size: 0.9rem; }
.hero__bullets li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__bullets li::before { content: "✓"; color: var(--gold); font-weight: 700; }

.hero__visual { position: relative; }
.hero__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.2;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,9,17,0.5)); }
.hero__badge {
  position: absolute; left: -14px; bottom: 22px; z-index: 2;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #1A1206;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em;
  padding: 0.7rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-gold);
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__frame { aspect-ratio: 16 / 11; }
}

/* ---------- MARQUEE / TRUST STRIP ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 2rem; padding: 1.5rem 0; }
.strip__item { display: flex; align-items: baseline; gap: 0.6rem; }
.strip__num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--gold); line-height: 1; }
.strip__label { color: var(--cream-dim); font-size: 0.82rem; letter-spacing: 0.04em; }

/* ---------- TRUST ROW (reductores de riesgo) ---------- */
.trust-row {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem 1.6rem; padding: 0; margin: 0 auto 2.6rem; max-width: 60rem;
  color: var(--cream-dim); font-size: 0.88rem;
}
.trust-row li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-row li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* ============================================================
   COVERFLOW 3D
   ============================================================ */
.coverflow-section {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse at 50% 16%, rgba(90,70,144,0.3), transparent 60%),
    radial-gradient(ellipse at 50% 92%, rgba(224,184,119,0.1), transparent 55%),
    var(--bg);
}
.coverflow { position: relative; margin-top: 1.5rem; display: flex; align-items: center; justify-content: center; }
.cf-stage { position: relative; width: 100%; max-width: 900px; height: clamp(360px, 54vw, 540px); margin: 0 auto; perspective: 1500px; }
.cf-item {
  position: absolute; top: 50%; left: 50%; width: clamp(210px, 46vw, 360px);
  margin: 0; padding: 0; background: none; border: none; cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform .55s var(--ease), opacity .55s, filter .55s; will-change: transform, opacity;
}
.cf-item img { width: 100%; height: auto; filter: drop-shadow(0 26px 30px rgba(0,0,0,0.55)); -webkit-user-drag: none; }
.cf-item__label { display: block; text-align: center; margin-top: 0.5rem; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; color: var(--cream); font-size: 1.05rem; opacity: 0; transition: opacity .4s; }
.cf-item[data-pos="0"]  { transform: translate(-50%, -50%) translateX(0)    scale(1)   rotateY(0);    z-index: 6; opacity: 1; }
.cf-item[data-pos="0"] .cf-item__label { opacity: 1; }
.cf-item[data-pos="0"] img { filter: drop-shadow(0 32px 44px rgba(0,0,0,0.62)) drop-shadow(0 0 30px rgba(224,184,119,0.3)); }
.cf-item[data-pos="1"]  { transform: translate(-50%, -50%) translateX(70%)  scale(.5) rotateY(-30deg); z-index: 5; opacity: .8; filter: brightness(.72); }
.cf-item[data-pos="-1"] { transform: translate(-50%, -50%) translateX(-70%) scale(.5) rotateY(30deg);  z-index: 5; opacity: .8; filter: brightness(.72); }
.cf-item[data-pos="hidden"], .cf-item[data-pos="gone"] { transform: translate(-50%, -50%) scale(.4); z-index: 1; opacity: 0; pointer-events: none; }
.cf-item[data-pos="gone"] { display: none; }
.cf-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 8;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(10,9,17,0.55); backdrop-filter: blur(6px); color: var(--gold-2);
  font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s, transform .2s, border-color .25s;
}
.cf-nav:hover { background: var(--gold); color: #1A1206; border-color: var(--gold); }
.cf-nav--prev { left: clamp(0.5rem, 4vw, 3rem); }
.cf-nav--next { right: clamp(0.5rem, 4vw, 3rem); }
.cf-info { text-align: center; margin-top: 0.5rem; }
.cf-info__badge { display: inline-block; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #1A1206; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem; }
.cf-info__badge[hidden] { display: none; }
.cf-info__name { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; color: var(--cream); margin: 0 0 0.3rem; }
.cf-info__notes { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.25rem; }
.cf-info__foot { display: inline-flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.cf-info__price { font-weight: 700; font-size: 1.5rem; color: var(--gold-2); }
.cf-dots { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1.5rem; }
.cf-dot { width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; background: var(--dim); opacity: .5; cursor: pointer; transition: opacity .25s, background .25s, transform .25s; }
.cf-dot:hover { opacity: .8; }
.cf-dot.is-active { background: var(--gold); opacity: 1; transform: scale(1.3); }
@media (max-width: 560px) { .cf-nav--prev { left: .25rem; } .cf-nav--next { right: .25rem; } }

/* ============================================================
   TIENDA · PRODUCTOS
   ============================================================ */
.products { background: var(--bg-2); }
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-3) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.product-card--featured { border-color: var(--line-2); box-shadow: var(--shadow-gold); }
.product-card__badge { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #1A1206; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px; }
/* Banderín del descafeinado (envase blanco): tono plateado frío para diferenciarlo del dorado "Más pedido" */
.product-card--decaf { border-color: rgba(150,170,190,0.35); }
.product-card__badge--decaf { background: linear-gradient(135deg, #EEF3F7, #B9C6D2); color: #1F2A33; box-shadow: 0 2px 10px rgba(120,140,160,0.35); }
/* Productos agotados: atenuados y enviados al final por JS */
.product-card.is-sold-out { opacity: 0.55; filter: grayscale(0.55); }
.product-card.is-sold-out:hover { transform: none; box-shadow: var(--shadow); }
.product-card.is-sold-out .product-card__visual img { filter: grayscale(0.6) drop-shadow(0 18px 24px rgba(0,0,0,0.5)); }
.product-card__visual { padding: 1.6rem 1.6rem 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 35%, rgba(90,70,144,0.22), transparent 70%); }
.product-card__visual img { width: auto; max-height: 230px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,0.5)); }

/* ---------- Galería de imágenes por producto ---------- */
.product-card__visual { position: relative; }
.pc-gallery { position: relative; width: 100%; }
.pc-gallery__viewport { overflow: hidden; }
.pc-gallery__track { display: flex; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.pc-gallery__slide { flex: 0 0 100%; height: 250px; display: flex; align-items: center; justify-content: center; }
.pc-gallery__slide img { width: auto; max-width: 100%; max-height: 230px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,0.5)); }
/* La foto de la bolsa trae mucho aire vacío: la ampliamos y centramos; el viewport recorta el sobrante */
.pc-gallery__slide--bag img { transform: scale(1.5); transform-origin: center center; }

.pc-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(10,9,17,0.55); color: var(--cream);
  font-size: 1.3rem; line-height: 1; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease, background .2s, border-color .2s;
}
.pc-gallery__nav--prev { left: 8px; }
.pc-gallery__nav--next { right: 8px; }
.pc-gallery__nav:hover { background: rgba(224,184,119,0.25); border-color: var(--gold); color: var(--gold-2); }
.product-card:hover .pc-gallery__nav, .pc-gallery__nav:focus-visible { opacity: 1; }
@media (hover: none) { .pc-gallery__nav { opacity: 0.75; } }

.pc-gallery__dots { position: absolute; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.pc-gallery__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(244,236,222,0.35); transition: background .2s, transform .2s; }
.pc-gallery__dots span.is-active { background: var(--gold); transform: scale(1.25); }
.product-card__body { padding: 1.2rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.product-card__tag { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.product-card__body h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--cream); margin: 0 0 0.4rem; }
.product-card__notes { color: var(--gold-2); font-size: 0.82rem; margin: 0 0 0.7rem; }
.product-card__body > p { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; }
.products__cta { text-align: center; color: var(--cream-dim); margin: 2.5rem 0 0; }
@media (max-width: 880px) { .products__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products__grid { grid-template-columns: 1fr; } }

/* Buy block (inyectado por cart.js) */
.product-card__buy { margin-top: auto; display: flex; flex-direction: column; gap: 0.7rem; }
.product-card__price-row { display: flex; align-items: baseline; justify-content: space-between; }
.product-card__price { font-weight: 700; font-size: 1.3rem; color: var(--gold-2); }
.product-card__stock { font-size: 0.78rem; color: var(--muted); }
.product-card__stock.is-out { color: #E5837A; }
.product-card__stock.is-low { color: #C8922A; font-weight: 600; }
.product-card__grind, .product-card__grind-otro { display: flex; flex-direction: column; gap: 0.3rem; }
.product-card__grind-label { font-size: 0.74rem; letter-spacing: 0.04em; color: var(--cream-dim); }
.product-card__grind-select, .product-card__grind-otro input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--cream); padding: 0.6rem 0.75rem; font-family: var(--font-body); font-size: 0.9rem;
}
.product-card__grind-select:focus, .product-card__grind-otro input:focus { outline: none; border-color: var(--gold); }
.product-card__add { width: 100%; margin-top: 0.2rem; }
.product-card__weight { font-size: 0.72em; font-weight: 500; color: var(--cream-dim); letter-spacing: 0.02em; }
.product-card__qty { display: flex; flex-direction: column; gap: 0.3rem; }
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; width: fit-content; }
.qty-stepper__btn {
  width: 40px; border: none; background: rgba(224,184,119,0.10); color: var(--gold-2);
  font-size: 1.2rem; line-height: 1; cursor: pointer; transition: background .2s;
}
.qty-stepper__btn:hover:not(:disabled) { background: rgba(224,184,119,0.22); }
.qty-stepper__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-stepper__input {
  width: 54px; text-align: center; border: none; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
  background: transparent; color: var(--cream); font-size: 1rem; font-weight: 600; -moz-appearance: textfield;
}
.qty-stepper__input::-webkit-outer-spin-button, .qty-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper__input:focus { outline: none; }

/* ============================================================
   QUIÉNES SOMOS
   ============================================================ */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); aspect-ratio: 4/5; }
.about__visual img { width: 100%; height: 100%; object-fit: cover; }
.about p { color: var(--cream-dim); }
.about p strong { color: var(--gold-2); }
.about__lead { font-size: 1.2rem; color: var(--cream) !important; font-family: var(--font-display); font-style: italic; }
.benefits { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.benefit { padding: 1.6rem 1.4rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s, border-color .3s; }
.benefit:hover { transform: translateY(-5px); border-color: var(--line-2); }
.benefit__icon { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(224,184,119,0.12); color: var(--gold-2); font-size: 1.4rem; margin-bottom: 0.9rem; }
.benefit h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 0 0 0.4rem; color: var(--cream); }
.benefit p { color: var(--muted); font-size: 0.9rem; margin: 0; }
@media (max-width: 980px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .about__inner { grid-template-columns: 1fr; } .about__visual { aspect-ratio: 16/11; } }

/* ============================================================
   TUTORIALES / MÉTODOS
   ============================================================ */
.methods__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.method { background: linear-gradient(180deg, var(--panel) 0%, var(--bg-3) 100%); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, border-color .3s; }
.method:hover { transform: translateY(-5px); border-color: var(--line-2); }
.method__visual { aspect-ratio: 1/1; overflow: hidden; background: var(--bg); }
.method__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.method:hover .method__visual img { transform: scale(1.05); }
.method__body { padding: 1.2rem 1.3rem 1.4rem; }
.method__body h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--cream); margin: 0 0 0.2rem; }
.method__type { color: var(--gold); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.9rem; }
.method__recipe { margin: 0; display: grid; gap: 0.4rem; }
.method__recipe > div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 0.4rem; }
.method__recipe dt { color: var(--muted); font-size: 0.82rem; margin: 0; }
.method__recipe dd { color: var(--cream); font-size: 0.82rem; margin: 0; text-align: right; }
.methods__cta { text-align: center; color: var(--cream-dim); margin-top: 2.5rem; }
@media (max-width: 980px) { .methods__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .methods__grid { grid-template-columns: 1fr; } }

/* ============================================================
   MULTIMEDIA + REELS
   ============================================================ */
.multimedia { background: var(--bg-2); }
.sub-head { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; color: var(--gold-2); margin: 0 0 1.3rem; letter-spacing: 0.01em; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 1rem; }
.tile { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.05); }
.tile--wide { grid-column: span 2; grid-row: span 2; }
.tile--tall { grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .tile--wide { grid-column: span 2; grid-row: span 1; } .tile--tall { grid-row: span 1; } }

.reels { margin-top: 3rem; }
.reels__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.reel { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.reel .instagram-media { margin: 0 !important; min-width: unset !important; }
.reel__caption { padding: 0.9rem 1.1rem; }
.reel__caption strong { display: block; color: var(--cream); font-size: 0.95rem; }
.reel__caption small { color: var(--muted); font-size: 0.8rem; }
.reel__fallback { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; justify-content: center; aspect-ratio: 9/16; text-align: center; padding: 1.5rem; background: radial-gradient(ellipse at 50% 40%, rgba(90,70,144,0.35), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg-2)); }
.reel__play { width: 56px; height: 56px; border-radius: 50%; background: rgba(224,184,119,0.2); border: 1px solid var(--gold); color: var(--gold-2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; padding-left: 3px; }
.multimedia__cta { text-align: center; color: var(--cream-dim); margin-top: 2.5rem; }
@media (max-width: 820px) { .reels__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.testimonial { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; }
.testimonial__stars { color: var(--gold); letter-spacing: 0.15em; margin-bottom: 0.9rem; }
.testimonial blockquote { margin: 0 0 1.2rem; color: var(--cream-dim); font-size: 1rem; line-height: 1.6; }
.testimonial figcaption { display: flex; flex-direction: column; }
.testimonial__name { font-weight: 600; color: var(--cream); }
.testimonial__role { color: var(--muted); font-size: 0.82rem; }
.testimonials__note { text-align: center; color: var(--cream-dim); margin-top: 2.5rem; }
@media (max-width: 880px) { .testimonials__grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; } }

/* ============================================================
   MUESTRA (slogan reinforcement)
   ============================================================ */
.sample { position: relative; overflow: hidden; background: var(--bg); }
.sample__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.sample__visual { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); aspect-ratio: 3/4; }
.sample__visual img { width: 100%; height: 100%; object-fit: cover; }
.sample__perks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.6rem; color: var(--cream-dim); }
.sample__perks li { display: flex; align-items: center; gap: 0.6rem; }
.sample__perks li::before { content: "✦"; color: var(--gold); }
.sample__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.sample__micro { color: var(--dim); font-size: 0.82rem; margin-top: 1.2rem; }
@media (max-width: 820px) { .sample__inner { grid-template-columns: 1fr; } .sample__visual { order: -1; aspect-ratio: 16/11; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq-item { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.2rem 1.5rem; font-weight: 600; color: var(--cream); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 1.5rem 1.3rem; color: var(--muted); }
.faq-item__body p { margin: 0; }
.faq-item__body strong { color: var(--cream); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { position: relative; overflow: hidden; background: var(--bg-2); }
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.contact__channels { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.contact__channels a { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(28,23,48,0.6); color: var(--cream); transition: border-color .25s, background .25s, transform .2s; }
.contact__channels a:hover { border-color: var(--gold); background: rgba(224,184,119,0.08); transform: translateX(3px); }
.contact__channel-icon { flex: 0 0 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(224,184,119,0.14); color: var(--gold-2); font-size: 1.1rem; }
.contact__channels a > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.contact__channels strong { font-weight: 600; }
.contact__channels small { color: var(--muted); font-size: 0.8rem; }
.contact__form-wrap { background: linear-gradient(180deg, var(--panel) 0%, var(--bg-3) 100%); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(1.5rem,4vw,2.25rem); box-shadow: var(--shadow); }
.contact-form h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; margin: 0 0 1.25rem; color: var(--cream); }
.contact-form label { display: block; margin-bottom: 1rem; }
.contact-form label span { display: block; font-size: 0.8rem; color: var(--cream-dim); margin-bottom: 0.4rem; }
.contact-form input, .contact-form textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--cream); padding: 0.7rem 0.9rem; font-family: var(--font-body); font-size: 0.95rem; transition: border-color .25s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; }
.contact-form button { width: 100%; margin-top: 0.4rem; }
.contact-form__msg { margin: 0.85rem 0 0; font-size: 0.85rem; color: var(--gold-2); min-height: 1.2em; }
@media (max-width: 820px) { .contact__inner { grid-template-columns: 1fr; } }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { position: relative; overflow: hidden; text-align: center; padding: clamp(4.5rem,10vw,8rem) 0; background: radial-gradient(ellipse at 50% 30%, rgba(90,70,144,0.32), transparent 60%), var(--bg); }
.final__inner { position: relative; max-width: 760px; margin: 0 auto; }
.final .title { margin-bottom: 1.2rem; }
.final p { color: var(--muted); font-size: 1.12rem; margin: 0 auto 2rem; max-width: 56ch; }
.final__micro { color: var(--dim); font-size: 0.85rem; margin-top: 1.2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2rem; }
.footer__logo { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(224,184,119,0.4)); margin-bottom: 0.6rem; }
.footer__brand p { color: var(--muted); font-size: 0.95rem; max-width: 32ch; }
.footer__col h4 { font-family: var(--font-display); font-size: 1.25rem; color: var(--cream); margin: 0 0 0.9rem; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer__col a { color: var(--cream-dim); font-size: 0.92rem; }
.footer__col a:hover { color: var(--gold-2); }
.footer__news-copy { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.8rem; }
.footer__news-form { display: flex; gap: 0.5rem; }
.footer__news-form input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; color: var(--cream); padding: 0.6rem 1rem; font-size: 0.9rem; }
.footer__news-form input:focus { outline: none; border-color: var(--gold); }
.footer__news-form .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.footer__news-msg { font-size: 0.82rem; color: var(--gold-2); margin: 0.6rem 0 0; min-height: 1em; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.82rem; }
.footer__bottom p { margin: 0; }
.footer__legal a { color: var(--dim); }
.footer__legal a:hover { color: var(--gold-2); }
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__inner { grid-template-columns: 1fr; } }

/* ============================================================
   CART FAB
   ============================================================ */
.cart-fab { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; width: 60px; height: 60px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #1A1206; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-gold); transition: transform .3s; }
.cart-fab:hover { transform: scale(1.08); }
.cart-fab__icon { font-size: 1.4rem; }
.cart-fab__count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bg); color: var(--gold-2); border: 1px solid var(--gold
/* ============== Descuento promoción (carrito + checkout) ============== */
.cart-row--promo { color: var(--gold-2); font-weight: 600; }
.cart-row--promo span:last-child { white-space: nowrap; }

/* ============== Pop-up promoción Día del Padre ============== */
.promo-popup { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 1.2rem; }
.promo-popup.is-open { display: flex; }
.promo-popup__overlay { position: absolute; inset: 0; background: rgba(6,5,12,0.78); backdrop-filter: blur(4px); }
.promo-popup__panel {
  position: relative; z-index: 1; width: 100%; max-width: 460px;
  background: linear-gradient(160deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-gold); padding: 0.9rem; text-align: center;
  animation: promoIn .4s var(--ease) both;
}
@keyframes promoIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.promo-popup__close {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
  width: 34px; height: 34px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(10,9,17,0.65); color: var(--cream);
  font-size: 0.95rem; line-height: 1; display: grid; place-items: center;
  transition: background .25s, transform .25s;
}
.promo-popup__close:hover { background: rgba(10,9,17,0.95); transform: rotate(90deg); }
.promo-popup__media { display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.promo-popup__media img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
/* Marcador mientras no haya imagen cargada */
.promo-popup__fallback {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 2.4rem 1.4rem; border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224,184,119,0.18), transparent 70%),
    linear-gradient(160deg, var(--bg-3), var(--bg));
  border: 1px solid var(--line);
}
.promo-popup__eyebrow { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.promo-popup__big {
  font-family: var(--font-display); font-weight: 700; line-height: 0.9;
  font-size: clamp(3.4rem, 16vw, 5rem);
  color: transparent; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); -webkit-background-clip: text; background-clip: text;
}
.promo-popup__big small { font-size: 0.32em; letter-spacing: 0.12em; margin-left: 0.35rem; vertical-align: middle; -webkit-text-fill-color: var(--gold-2); }
.promo-popup__headline { font-family: var(--font-display); font-size: 1.7rem; color: var(--cream); }
.promo-popup__sub { font-size: 0.84rem; color: var(--muted); line-height: 1.5; margin-top: 0.3rem; }
.promo-popup__cta { width: 100%; margin-top: 0.9rem; }
@media (max-width: 520px) { .promo-popup__panel { max-width: 100%; } }
@media (prefers-reduced-motion: reduce) { .promo-popup__panel { animation: none; } }
