/* ===================== ARCANO TIENDA — REDESIGN ===================== */

/* === VARIABLES === */
:root {
  /* === BASE: negro café profundo (Arcano Nocturno) === */
  --bg: #0E0A07;
  --bg-card: #1A130D;
  --bg-secondary: #251A11;
  --surface: #2B1F14;
  --border: #3D2A1C;
  --border-light: #2A1C12;

  /* === TEXTO: tonos crema cálido (alto contraste sobre negro) === */
  --text: #F5E6D0;
  --text-sec: #C9B89A;
  --text-muted: #9A8A78;
  --dark: #F5E6D0; /* headings — ahora claros sobre fondo oscuro */

  /* === ACENTOS DE MARCA: dorados del logo (más vivos para oscuro) === */
  --gold: #E8B84B;
  --gold-hover: #C9963A;
  --gold-light: rgba(232,184,75,0.15);
  --gold-glow: rgba(232,184,75,0.25);

  /* === ACENTOS DE ESPECIAS: matices complementarios === */
  --spice-red: #C0492C;     /* pimentón / ají */
  --spice-green: #6B8E4E;   /* hierbas */
  --spice-amber: #D4924A;   /* curry / cúrcuma */

  /* === ESTADOS (tonos más armónicos con especias) === */
  --success: #6B8E4E;
  --error: #C0492C;
  --warning: #D4924A;

  /* === Texto sobre elementos oscuros/dorados: siempre crema === */
  --text-on-dark: #F5E6D0;

  /* === Sombras (más profundas para fondo oscuro) === */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.7);

  /* === Radios y curvas === */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 64px;
  --tabs-h: 64px;

  /* === TEMA DINÁMICO (variables RGB que JS actualiza) === */
  --bg-r: 14; --bg-g: 10; --bg-b: 7;
  --bg-card-r: 26; --bg-card-g: 19; --bg-card-b: 13;
  --bg-secondary-r: 37; --bg-secondary-g: 26; --bg-secondary-b: 17;
  --surface-r: 43; --surface-g: 31; --surface-b: 20;
  --border-r: 61; --border-g: 42; --border-b: 28;
  --text-r: 245; --text-g: 230; --text-b: 208;
  --scroll-progress: 0;
  /* --dark, --text-sec, --text-muted se setean via JS */
}

/* === FONDO DINÁMICO ===
   Sistema de 3 capas:
   1. Color base (cambia con scroll via JS)
   2. Mesh gradient con "polvo de especias" dorado (rotación lenta)
   3. Partículas doradas flotando
   Todo en un div fijo detrás del contenido.

   Variables dinámicas (seteadas por bg-dynamic.js):
   --scroll-progress: 0 a 1 (progreso del BG, no del texto)
   --mesh-opacity: opacidad del mesh gradient
   --particles-opacity: opacidad de las partículas
   --vignette-opacity: opacidad del vignette
*/
.bg-dynamic {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: rgb(var(--bg-r), var(--bg-g), var(--bg-b));
  transition: background 0.6s var(--ease);
}

/* Mesh gradient: manchas doradas suaves que rotan lentamente.
   En tema oscuro, los tonos dorados se ven más vibrantes. */
.bg-dynamic::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(232, 184, 75, 0.12), transparent 60%),
    radial-gradient(ellipse 800px 500px at 85% 60%, rgba(212, 146, 74, 0.08), transparent 65%),
    radial-gradient(ellipse 500px 400px at 50% 90%, rgba(192, 73, 44, 0.05), transparent 60%);
  animation: bg-mesh-rotate 60s linear infinite;
  opacity: var(--mesh-opacity, 0.5);
  transition: opacity 1.2s var(--ease);
}

.bg-dynamic[data-mesh-speed="slow"]::before    { animation-duration: 120s; }
.bg-dynamic[data-mesh-speed="normal"]::before   { animation-duration: 60s; }
.bg-dynamic[data-mesh-speed="fast"]::before     { animation-duration: 25s; }
.bg-dynamic[data-mesh-speed="none"]::before     { animation: none; }

@keyframes bg-mesh-rotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Partículas doradas (polvo de especias) */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--particles-opacity, 0.5);
  transition: opacity 1.2s var(--ease);
}

.bg-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 148, 58, 0.9), rgba(160, 118, 44, 0));
  animation: bg-particle-float var(--p-duration, 20s) ease-in-out infinite;
  animation-delay: var(--p-delay, 0s);
  opacity: var(--p-opacity, 0.5);
  filter: blur(0.5px);
}

@keyframes bg-particle-float {
  0%, 100% { transform: translate(0, 0) scale(0.8); opacity: var(--p-opacity, 0.3); }
  25% { transform: translate(20px, -30px) scale(1.2); opacity: 0.8; }
  50% { transform: translate(-15px, -60px) scale(1); opacity: 0.6; }
  75% { transform: translate(25px, -40px) scale(1.4); opacity: 0.9; }
}

/* Vignette sutil que aparece en scroll profundo.
   Opacidad controlada por --vignette-opacity (seteada por JS según config.intensidad). */
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 1) 100%);
  opacity: var(--vignette-opacity, 0);
  transition: opacity 0.8s var(--ease);
}

/* Respetar accesibilidad: si el usuario prefiere menos movimiento, desactivar */
@media (prefers-reduced-motion: reduce) {
  .bg-dynamic::before { animation: none; }
  .bg-dynamic[data-mesh-speed="slow"]::before,
  .bg-dynamic[data-mesh-speed="normal"]::before,
  .bg-dynamic[data-mesh-speed="fast"]::before { animation: none; }
  .bg-particle { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: rgb(var(--bg-r), var(--bg-g), var(--bg-b));
  color: rgb(var(--text-r), var(--text-g), var(--text-b));
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::selection { background: var(--gold); color: var(--bg); }

/* === HEADER / NAV === */
.nav-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(var(--bg-card-r), var(--bg-card-g), var(--bg-card-b), 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 2px solid rgba(var(--border-r), var(--border-g), var(--border-b), 0.8);
  transition: box-shadow var(--ease), background 0.6s var(--ease), border-color 0.6s var(--ease);
}
.nav-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  height: 100%; display: flex; align-items: center;
  padding: 0 24px; gap: 16px;
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.nav-item {
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-sec);
  transition: all 0.25s var(--ease); position: relative;
  letter-spacing: 0.02em;
}
.nav-item:hover { color: var(--text); background: var(--surface); }
.nav-item.active { color: var(--gold); background: var(--gold-light); font-weight: 600; }
.hamburger {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-xs); color: var(--text);
}
.hamburger:hover { background: var(--surface); }
.nav-cart {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); position: relative;
  transition: all 0.2s var(--ease);
}
.nav-cart:hover { background: var(--surface); color: var(--gold); }
.nav-faq-mm {
  width: 42px; height: 42px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  color: var(--text); position: relative;
  transition: all 0.2s var(--ease);
}
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold); color: var(--bg); font-size: 0.65rem; font-weight: 700;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  line-height: 1; pointer-events: none;
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0;
  width: 280px; height: 100%;
  background: var(--bg-card);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu-overlay.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-panel .mm-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu-panel .mm-header span {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
}
.mobile-menu-panel .mm-close {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--text-sec); }
.mobile-menu-panel .mm-close:hover { background: var(--surface); }
.mm-nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 12px; border-radius: var(--radius-sm);
  font-size: 1.15rem; font-weight: 500; color: var(--text);
  transition: all 0.2s var(--ease);
}
.mm-nav-item:hover { background: var(--surface); }
.mm-nav-item.active { background: var(--gold-light); color: var(--gold); font-weight: 600; }
.mm-nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Mobile Menu Footer */
.mm-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.mm-logo {
  height: 40px;
  width: auto;
  opacity: 0.7;
}
.mm-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.mm-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-sec);
  transition: all 0.2s var(--ease);
}
.mm-social a:hover {
  color: var(--gold);
  background: var(--gold-light);
}
.mm-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* === BOTTOM TABS (MOBILE) === */
.bottom-tabs {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--tabs-h); z-index: 100;
  background: rgba(var(--bg-card-r), var(--bg-card-g), var(--bg-card-b), 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 2px solid rgba(var(--border-r), var(--border-g), var(--border-b), 0.8);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-tabs-inner {
  display: flex; height: 100%;
}
.btab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--text-muted); font-size: 0.65rem; font-weight: 500;
  transition: color 0.2s var(--ease); position: relative;
  letter-spacing: 0.02em;
}
.btab svg { width: 22px; height: 22px; transition: all 0.2s var(--ease); }
.btab.active { color: var(--gold); }
.btab.active svg { transform: scale(1.1); }

/* === MAIN CONTENT === */
main {
  max-width: 1400px; margin: 0 auto;
  padding: calc(var(--nav-h) + 24px) 24px 40px;
  min-height: 100vh;
  display: flex;
  gap: 32px;
}
.main-content {
  flex: 1;
  min-width: 0;
}
.page { animation: pageFadeIn 0.35s var(--ease); }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === HERO === */
.hero-section {
  text-align: center;
  padding: 48px 20px 40px;
  position: relative;
}
.hero-section h2 {
  font-family: var(--font-display); font-size: 2.25rem; font-weight: 800;
  color: var(--text); margin-bottom: 10px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero-section p {
  font-size: 1.05rem; color: var(--text-sec); max-width: 480px; margin: 0 auto;
  line-height: 1.6;
}
.hero-accent {
  display: inline-block; width: 48px; height: 3px;
  background: var(--gold); border-radius: 2px;
  margin-bottom: 20px;
}

/* === FILTER BAR === */
.filter-bar {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 32px;
}
.filter-pill {
  padding: 8px 20px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-sec); border: 1px solid var(--border);
  background: var(--bg-card); transition: all 0.25s var(--ease);
  letter-spacing: 0.02em;
}
.filter-pill:hover { border-color: var(--gold); color: var(--gold); }
.filter-pill.active {
  background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 600;
}

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* === PRODUCT CARD === */

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.35s var(--ease);
  cursor: pointer;
  position: relative;
}
.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 184, 75, 0.4);
}
.product-card:hover::after {
  opacity: 1;
}
.card-img-wrap {
  height: 280px; position: relative; overflow: hidden;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .card-img-wrap img { transform: scale(1.03); }
.card-img-wrap span {
  font-size: 3.5rem; line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.card-type-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-type-badge.blend { background: var(--gold); color: #1A130D; }
.card-type-badge.especia { background: var(--spice-green); color: #1A130D; }
.card-type-badge.pack { background: var(--spice-red); color: var(--text-on-dark); }
.card-body { padding: 16px 18px 18px; background: var(--bg-secondary); }
.card-name {
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.card-meta {
  font-size: 0.82rem; color: var(--text-sec); margin-bottom: 14px;
}
.card-prices { display: flex; gap: 8px; }
.price-btn {
  flex: 1; padding: 10px 8px; border-radius: var(--radius-sm);
  border: 1px solid rgba(232, 184, 75, 0.15);
  text-align: center;
  background: transparent;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.price-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 184, 75, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.price-btn:hover {
  border-color: rgba(232, 184, 75, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.price-btn:hover::before {
  opacity: 1;
}
.price-btn:active { transform: scale(0.97); }
.price-label {
  font-size: 0.72rem; font-weight: 600; color: var(--text-sec);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px;
}
.price-value {
  font-size: 1.15rem; font-weight: 700; color: var(--text);
}
.price-btn:hover .price-value { color: var(--gold); }
.card-coming-soon {
  font-size: 0.72rem; font-weight: 600; color: var(--gold);
  text-align: center; padding: 8px 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(232, 184, 75, 0.3);
  border-radius: 100px;
  background: transparent;
  display: inline-block;
  margin: 4px auto;
}
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state p { font-size: 1.15rem; margin-top: 8px; }

/* === PRODUCT DETAIL MODAL === */
.detail-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: overlayIn 0.25s var(--ease);
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.detail-modal {
  position: relative;
  background: var(--bg-card);
  border-radius: 20px;
  max-width: 720px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  display: flex;
  animation: modalSlideUp 0.35s var(--ease);
  box-shadow: var(--shadow-xl);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.detail-modal-img {
  width: 280px; min-height: 320px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--surface), var(--bg-secondary));
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px 0 0 20px; overflow: hidden;
}
.detail-modal-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-modal-img span { font-size: 5rem; }
.detail-modal-content {
  flex: 1; padding: 32px 28px;
  position: relative;
}
.detail-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--text-sec);
  background: var(--surface); z-index: 2;
  transition: all 0.2s var(--ease);
}
.detail-close:hover { background: var(--border); color: var(--text); }
.detail-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: var(--bg);
  border: none;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s var(--ease);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.detail-nav:hover {
  background: #FFD700;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 4px 24px rgba(232, 184, 75, 0.4);
}
.detail-nav-prev { left: 12px; }
.detail-nav-next { right: 12px; }
.detail-type-tag {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 12px;
}
.detail-type-tag.blend { background: var(--gold-light); color: var(--gold); }
.detail-type-tag.especia { background: rgba(107,142,78,0.18); color: var(--spice-green); }
.detail-type-tag.pack { background: rgba(192,73,44,0.18); color: var(--spice-red); }
.detail-modal-content h2 {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  color: var(--text); margin-bottom: 12px; line-height: 1.2;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.detail-tag {
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 500;
  background: var(--surface); color: var(--text-sec);
}
.detail-desc {
  font-size: 1.02rem; color: var(--text-sec); line-height: 1.65;
  margin-bottom: 20px;
}
.detail-prices-row { display: flex; gap: 10px; }
.detail-price-card {
  flex: 1; padding: 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); text-align: center;
  transition: all 0.2s var(--ease); background: transparent;
}
.detail-price-card:hover {
  border-color: var(--gold); background: var(--gold-light);
  transform: translateY(-2px);
}
.detail-price-card:active { transform: scale(0.97); }
.detail-price-label {
  font-size: 0.72rem; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px;
}
.detail-price-val {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
}
.detail-price-card:hover .detail-price-val { color: var(--gold); }
.detail-ingredients {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.detail-ingredients-label {
  font-size: 0.8rem; font-weight: 600; color: var(--text-sec);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
.detail-ingredient-chip {
  display: inline-block; padding: 4px 12px; margin: 0 4px 6px 0;
  border-radius: 100px; font-size: 0.78rem;
  background: var(--gold-light); color: var(--gold-hover);
  border: 1px solid rgba(196,148,58,0.2);
}

/* === CART DRAWER === */
.cart-overlay-bg {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.cart-overlay-bg.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 100vw; z-index: 301;
  background: var(--bg-card);
  border-left: 2px solid rgba(232, 184, 75, 0.15);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.cart-drawer-header h3 {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
}
.cart-drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--text-sec); transition: all 0.2s var(--ease);
}
.cart-drawer-close:hover { background: var(--surface); }
.cart-drawer-body {
  flex: 1; overflow-y: auto; padding: 0 24px 24px;
}
.cart-drawer-item {
  display: flex; gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}
.cart-drawer-item-info { flex: 1; min-width: 0; }
.cart-drawer-item-name {
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-drawer-item-detail {
  font-size: 0.78rem; color: var(--text-muted); margin-top: 2px;
}
.cart-drawer-item-qty {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  margin-top: 8px;
}
.cart-qty-btn {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.15rem; color: var(--text); transition: all 0.15s var(--ease);
}
.cart-qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-qty-num {
  font-size: 0.9rem; font-weight: 600; min-width: 20px; text-align: center;
}
.cart-drawer-item-price {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  white-space: nowrap; flex-shrink: 0; padding-top: 2px;
}
.cart-drawer-item-rm {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--text-muted); transition: all 0.15s var(--ease);
  flex-shrink: 0;
}
.cart-drawer-item-rm:hover { background: rgba(196,64,64,0.08); color: var(--error); }
.cart-drawer-total {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 24px;
  border-top: 2px solid var(--border);
  font-family: var(--font-display); font-size: 0.95rem;
  flex-shrink: 0;
}
.cart-drawer-total .cart-line {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 500;
}
.cart-drawer-total .cart-line .cart-line-total {
  font-weight: 800; font-size: 1.15rem; padding-top: 6px; border-top: 1px solid var(--border-light);
}
.cart-drawer-total .cart-line .cart-line-total span:last-child,
.cart-drawer-total .cart-line-total span:last-child { color: var(--text); }
.cart-drawer-total .envio-gratis { color: #6b8e4e; font-weight: 700; }
.cart-drawer-total .envio-pendiente { color: var(--text-sec); font-style: italic; font-size: 0.9rem; }
.cart-drawer-total .envio-costo { color: var(--text); font-weight: 700; }
.cart-drawer-total .envio-calculando { color: var(--text-sec); font-style: italic; }
.cart-drawer-footer {
  padding: 16px 24px 24px; flex-shrink: 0;
  border-top: 1px solid var(--border-light);
}
.btn-primary {
  width: 100%; padding: 14px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--bg); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.02em; transition: all 0.2s var(--ease);
  border: 1px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  width: 100%; padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--text-sec);
  font-size: 0.9rem; font-weight: 500; margin-top: 8px;
  transition: all 0.2s var(--ease);
}
.btn-secondary:hover { border-color: var(--text-sec); }

/* === ORDER FORM (in drawer) === */
.order-form {
  padding: 20px 0 0;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-sec);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px;
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.form-input {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-xs);
  border: 1px solid var(--border); background: var(--bg);
  font-size: 0.9rem; color: var(--text);
  transition: border-color 0.2s var(--ease);
  outline: none;
}
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { min-height: 70px; resize: vertical; }
.qr-section {
  margin-top: 16px; padding: 16px;
  background: var(--gold-light); border-radius: var(--radius-sm);
  text-align: center;
}
.qr-section p { font-size: 0.8rem; font-weight: 600; color: var(--gold); margin-bottom: 8px; }
.qr-section img { max-width: 240px; border-radius: 8px; margin: 0 auto; }
.qr-section small { font-size: 0.72rem; color: var(--text-sec); }

/* === RECIPE PAGE === */
.page-header {
  text-align: center; padding: 48px 20px 40px; margin-bottom: 0;
}
.page-header h2 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--text); margin-bottom: 6px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.page-header p {
  color: var(--text-sec); font-size: 0.95rem;
}
.recipe-tabs {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 28px;
}
.recipe-tab {
  padding: 8px 20px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-sec); border: 1px solid var(--border);
  background: var(--bg-card); transition: all 0.25s var(--ease);
  letter-spacing: 0.02em;
}
.recipe-tab.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.recipe-tab:hover:not(.active) { border-color: var(--gold); color: var(--gold); }
.recipe-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.recipe-grid-card {
  background: var(--bg-secondary); border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 20px; cursor: pointer;
  transition: all 0.25s var(--ease);
}
.recipe-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.rgc-cat {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--gold); margin-bottom: 8px;
}
.rgc-title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.rgc-meta {
  display: flex; gap: 12px; font-size: 0.8rem; color: var(--text-muted);
}
.rgc-diff { font-weight: 600; }
.rgc-diff.easy { color: var(--success); }
.rgc-diff.medium { color: var(--gold); }
.rgc-diff.hard { color: var(--error); }

/* === RECIPE DETAIL (in-page) === */
.recipe-detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-sec);
  border: 1px solid var(--border); background: var(--bg-card);
  margin-bottom: 24px; transition: all 0.2s var(--ease);
}
.recipe-detail-back:hover { border-color: var(--gold); color: var(--gold); }
.recipe-detail {
  max-width: 760px; margin: 0 auto;
  animation: pageFadeIn 0.35s var(--ease);
}
.rd-header {
  margin-bottom: 28px;
}
.rd-cat-badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; color: var(--gold);
  background: var(--gold-light); text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 12px;
}
.rd-title {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
  color: var(--text); line-height: 1.2; margin-bottom: 12px;
}
.rd-meta {
  display: flex; gap: 16px; font-size: 0.88rem; color: var(--text-sec);
  flex-wrap: wrap;
}
.rd-meta span { display: flex; align-items: center; gap: 4px; }
.rd-diff { font-weight: 600; }
.rd-desc {
  font-size: 0.95rem; color: var(--text-sec); line-height: 1.7;
  margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.rd-section-label {
  font-size: 0.78rem; font-weight: 600; color: var(--text-sec);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.rd-ingredients { list-style: none; margin-bottom: 28px; }
.rd-ingredients li {
  padding: 8px 0; border-bottom: 1px solid var(--border-light);
  font-size: 1.02rem; color: var(--text);
  padding-left: 20px; position: relative;
}
.rd-ingredients li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); transform: translateY(-50%);
}
.rd-steps { counter-reset: step; margin-bottom: 28px; }
.rd-steps li {
  counter-increment: step; padding: 14px 0 14px 44px;
  border-bottom: 1px solid var(--border-light);
  font-size: 1.02rem; color: var(--text); line-height: 1.65;
  position: relative;
}
.rd-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-light); color: var(--gold);
  font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rd-blend-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--gold-light); border: 1px solid rgba(196,148,58,0.2);
  font-size: 0.85rem; font-weight: 600; color: var(--gold-hover);
  cursor: pointer; transition: all 0.2s var(--ease);
  margin-bottom: 24px;
}
.rd-blend-tag:hover { background: var(--gold); color: var(--bg); }
.rd-share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 0.85rem; font-weight: 500;
  color: var(--text-sec); transition: all 0.2s var(--ease);
}
.rd-share-btn:hover { border-color: var(--gold); color: var(--gold); }
.arcano-link {
  color: var(--gold); cursor: pointer;
  border-bottom: 1px dashed var(--gold);
  transition: opacity 0.15s;
}
.arcano-link:hover { opacity: 0.7; }

/* === BLEND BUILDER === */
.bb-container {
  max-width: 560px; margin: 0 auto;
  background: var(--bg-secondary); padding: 20px;
}
/* Steps indicator */
.bb-steps {
  display: flex; justify-content: center; gap: 0; margin-bottom: 24px;
}
.bb-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex: 1; position: relative;
}
.bb-step:not(:last-child)::after {
  content: ''; position: absolute; top: 13px; left: calc(50% + 16px); width: calc(100% - 32px); height: 2px;
  background: var(--border); z-index: 0;
}
.bb-step.done:not(:last-child)::after { background: var(--gold); }
.bb-step-num {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; border: 2px solid var(--border); color: var(--text-muted); background: var(--surface); z-index: 1;
}
.bb-step.done .bb-step-num { border-color: var(--gold); background: var(--gold); color: var(--bg); }
.bb-step.active .bb-step-num { border-color: var(--gold); background: var(--bg-secondary); color: var(--gold); }
.bb-step-label { font-size: 0.65rem; color: var(--text-muted); text-align: center; font-weight: 500; }
.bb-step.done .bb-step-label { color: var(--gold); }
.bb-step.active .bb-step-label { color: var(--text); font-weight: 600; }
/* Step content */
.bb-step-content { min-height: 200px; }
.bb-step-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--text); margin: 0 0 6px; }
.bb-step-desc { font-size: 0.88rem; color: var(--text-sec); margin: 0 0 20px; }
/* Step 1 */
.bb-name-input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-xs);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 1rem; color: var(--text); outline: none;
  transition: border-color 0.2s var(--ease);
}
.bb-name-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.bb-name-input::placeholder { color: var(--text-muted); }
/* Step 2 */
.bb-size-cards { display: flex; gap: 16px; }
.bb-size-card {
  flex: 1; padding: 28px 20px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: var(--surface); text-align: center; cursor: pointer; transition: all 0.2s var(--ease);
}
.bb-size-card:hover { border-color: var(--gold); }
.bb-size-card.selected { border-color: var(--gold); background: var(--gold-light); }
.bb-size-card-icon { width: 80px; height: 80px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; }
.bb-size-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.bb-size-card-name { font-size: 1rem; font-weight: 600; color: var(--text); }
.bb-size-card-price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--gold); margin-top: 8px; }
/* Step 3 */
.bb-selected-count { font-size: 0.82rem; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
.bb-chips-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s var(--ease);
}
.bb-chip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-light); }
.bb-chip.selected { border-color: var(--gold); background: var(--gold); color: var(--bg); }
.bb-chip.selected:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.bb-chip.disabled { opacity: 0.35; pointer-events: none; }
.bb-chip-check { font-size: 0.78rem; font-weight: 700; margin-left: 2px; }
/* Step 4 */
.bb-mix-list { display: flex; flex-direction: column; gap: 0; }
.bb-mix-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.bb-mix-row:last-child { border-bottom: none; }
.bb-mix-name { flex: 1; font-size: 0.95rem; font-weight: 500; color: var(--text); }
.bb-mix-controls { display: flex; align-items: center; gap: 6px; }
.bb-pct-display { display: flex; align-items: center; background: var(--surface); border-radius: 6px; overflow: hidden; }
.bb-pct-input { width: 44px; padding: 6px 2px; border: none; text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--text); outline: none; background: transparent; }
.bb-pct-sym { font-size: 0.78rem; color: var(--text-muted); padding-right: 8px; }
.bb-pct-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--text-sec); background: var(--surface); transition: all 0.15s var(--ease); }
.bb-pct-btn:hover { border-color: var(--gold); color: var(--gold); }
.bb-total-section { margin-top: 16px; }
.bb-total-bar { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; margin-bottom: 6px; }
.bb-total-fill { height: 100%; border-radius: 4px; transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.bb-total-text { font-size: 0.82rem; font-weight: 600; }
/* Step 5 */
.bb-summary { background: var(--surface); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.bb-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.bb-summary-row:not(:last-child) { border-bottom: 1px solid var(--border-light); }
.bb-summary-label { font-size: 0.85rem; color: var(--text-sec); }
.bb-summary-value { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.bb-summary-price { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); }
.bb-summary-specs { display: flex; flex-direction: column; gap: 6px; }
.bb-summary-spec { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface); border-radius: 8px; }
.bb-spec-name { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.bb-spec-pct { font-size: 0.9rem; font-weight: 700; color: var(--gold); }
/* Navigation */
.bb-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--border); }
.bb-nav-btn {
  padding: 12px 28px; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600;
  transition: all 0.2s var(--ease); cursor: pointer;
}
.bb-nav-btn.prev { border: 1px solid var(--border); background: transparent; color: var(--text-sec); }
.bb-nav-btn.prev:hover { border-color: var(--gold); color: var(--gold); }
.bb-nav-btn.next { background: var(--gold); color: var(--bg); border: 1px solid var(--gold); }
.bb-nav-btn.success { background: var(--spice-green); color: #1A130D; border: none; }
.bb-nav-btn.success.dark { background: var(--gold-hover); color: var(--bg); }

.bb-nav-btn.next:hover:not(.disabled) { background: var(--gold-hover); border-color: var(--gold-hover); }
.bb-nav-btn.next.disabled { opacity: 0.35; cursor: not-allowed; }
.bb-nav-btn.next.cart { background: var(--gold); color: var(--bg); }
.bb-nav-btn.next.cart:hover { background: var(--gold-hover); }
/* === BLEND SUCCESS === */
.bb-success { text-align: center; padding: 40px 20px; animation: pageFadeIn 0.35s var(--ease); }
.bb-success-body { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.bb-success-img { width: 110px; height: auto; border-radius: 12px; flex-shrink: 0; }
.bb-success-text { text-align: left; }
.bb-success-title { margin: 0 0 6px 0; }
.bb-success-desc { margin: 0; }

.bb-success-img { height: 140px; width: auto; margin-bottom: 16px; }
.bb-success-title { font-size: 1.4rem !important; }
.bb-success-desc { font-size: 1rem !important; margin-bottom: 28px !important; }
.bb-success-btns { display: flex; flex-direction: column; gap: 10px; max-width: 260px; margin: 0 auto; }
.bb-success-btns .bb-nav-btn { width: 100%; justify-content: center; padding: 14px; font-size: 0.95rem; }
.bb-empty { text-align: center; padding: 28px 16px; color: var(--text-muted); font-size: 0.88rem; }

/* === FAQ === */
.faq-container {
  max-width: 720px; margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; font-size: 1.15rem; font-weight: 500;
  color: var(--text); transition: color 0.2s var(--ease);
  gap: 16px;
}
.faq-q:hover { color: var(--gold); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); font-size: 1.1rem; color: var(--text-sec);
  transition: all 0.3s var(--ease);
}
.faq-item.open .faq-icon { background: var(--gold); color: var(--bg); transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }
.faq-a p {
  font-size: 1.02rem; color: var(--text-sec); line-height: 1.7;
}

/* === TOAST === */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--bg); padding: 12px 24px;
  border-radius: 100px; font-size: 0.88rem; font-weight: 600;
  z-index: 10000; box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s var(--ease), toastOut 0.3s var(--ease) 1.7s forwards;
  white-space: nowrap;
}
@keyframes toastIn { from { opacity:0; transform: translateX(-50%) translateY(16px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { from { opacity:1; transform: translateX(-50%) translateY(0); } to { opacity:0; transform: translateX(-50%) translateY(16px); } }

/* === SUCCESS STATE === */
.success-box {
  text-align: center; padding: 48px 24px;
  animation: pageFadeIn 0.35s var(--ease);
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.success-box h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--text); margin-bottom: 8px;
}
.success-box p { color: var(--text-sec); margin-bottom: 24px; }

/* === LOADER === */
.loader {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === FOOTER === */
.store-footer {
  text-align: center; padding: 36px 24px;
  color: var(--text-muted); font-size: 0.8rem;
  border-top: 2px solid rgba(var(--border-r), var(--border-g), var(--border-b), 0.6);
  max-width: 1280px; margin: 0 auto;
  letter-spacing: 0.02em;
}
.store-footer .footer-line { display: block; margin-top: 4px; }

/* === SOCIAL (in footer) === */
.footer-social {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 16px;
}
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sec); transition: all 0.2s var(--ease);
}
.footer-social a:hover { color: var(--gold); background: var(--gold-light); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* === PAGE PLACEHOLDER === */
.page-placeholder {
  text-align: center; padding: 80px 20px; color: var(--text-muted);
}

/* === RESPONSIVE === */

/* === RIGHT SIDEBAR === */
.right-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  height: calc(100vh - var(--nav-h) - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-logo-wrap {
  margin-bottom: 28px;
}
.sidebar-logo {
  width: 100%;
  height: auto;
  display: block;
}
.sidebar-content {
  flex: 1;
  overflow-y: auto;
  font-size: 0.88rem;
  color: var(--text-sec);
  line-height: 1.6;
}
.sidebar-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.sidebar-content p {
  margin-bottom: 12px;
}
.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-cat-list li {
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background 0.2s var(--ease);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-sec);
}
.sidebar-cat-list li:hover,
.sidebar-cat-list li.active {
  background: var(--gold-light);
  color: var(--gold);
}
.sidebar-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px solid rgba(var(--border-r), var(--border-g), var(--border-b), 0.6);
}
.sidebar-social a {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sec); transition: all 0.2s var(--ease);
}
.sidebar-social a:hover { color: var(--gold); background: var(--gold-light); }
.sidebar-social svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 768px) {
  .nav-cart { display: none !important; }
  .btab-cart { position: relative; }
  .btab-badge {
    position: absolute; top: 4px; right: 50%; transform: translateX(16px);
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--gold); color: var(--bg); font-size: 0.6rem; font-weight: 700;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    line-height: 1; pointer-events: none;
  }
  .right-sidebar { display: none; }
  main { flex-direction: column; gap: 0; }
  .nav-links { display: none; }
  .nav-cart { display: none !important; }
  .nav-left { flex-shrink: 0; }
  .mc-btn { margin-right: auto; }
  .hamburger { display: flex; }
  .bottom-tabs { display: block; }
  main { padding: calc(var(--nav-h) + 16px) 16px calc(var(--tabs-h) + 24px); }
  .hero-section { padding: 32px 16px 28px; }
  .page-header { padding: 32px 16px 28px; }
  .hero-section h2 { font-size: 1.6rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-img-wrap { height: 180px; }
  .card-body { padding: 12px 14px 14px; }
  .card-name { font-size: 1.02rem; }
  .price-label { font-size: 0.62rem; }
  .price-value { font-size: 0.82rem; }
  .price-btn { padding: 8px 6px; }
  .detail-modal { flex-direction: column; border-radius: 16px; max-height: 92vh; }
  .detail-modal-img { width: 100%; min-height: 200px; max-height: none; border-radius: 16px 16px 0 0; }
  .detail-modal-img img { height: auto; object-fit: contain; }
  .detail-modal-img span { font-size: 3.5rem; }
  .detail-modal-content { padding: 24px 20px; }
  .detail-modal-content h2 { font-size: 1.3rem; }
  .cart-drawer { width: 100%; }
  .recipe-grid { grid-template-columns: 1fr; }
  .rd-title { font-size: 1.4rem; }
  .toast { bottom: calc(var(--tabs-h) + 16px); }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-img-wrap { height: 150px; }
  .card-body { padding: 10px 12px 12px; }
  .card-name { font-size: 0.85rem; margin-bottom: 2px; }
  .card-meta { font-size: 0.72rem; margin-bottom: 10px; }
  .price-label { font-size: 0.58rem; }
  .price-value { font-size: 0.78rem; }
  .card-prices { gap: 6px; }
  .nav-inner { padding: 0 16px; }
  .form-row { flex-direction: column; gap: 0; }
}

/* === BLEND CART TAGS (in cart drawer) === */
.cart-blend-specs { margin-top: 4px; }
.cart-blend-name { font-size: 0.82rem; font-weight: 600; color: var(--gold); }
.cart-blend-tag {
  display: inline-block; padding: 2px 8px; margin: 2px 2px 0 0;
  border-radius: 100px; font-size: 0.7rem;
  background: var(--gold-light); color: var(--gold-hover);
}

/* === CART ORDER SUMMARY === */
.cart-order-summary {
  padding: 16px 0; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.cart-order-summary-title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.cart-order-summary-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 0.85rem; color: var(--text-sec);
}


/* === HERO & PAGE HEADER LOGO === */
.hero-inner { display: flex; align-items: center; gap: 20px; }
.hero-logo { height: 80px; width: auto; flex-shrink: 0; }
.hero-text h2 { margin-bottom: 4px; }

.page-header:has(.page-header-logo) { display: flex; align-items: center; gap: 16px; }
.page-header-logo { height: 64px; width: auto; flex-shrink: 0; }
.page-header-text h2 { margin-bottom: 4px; }
.page-header-text p { margin: 0; }



@media (max-width: 768px) {
  .hero-logo { height: 64px; }
  .page-header-logo { height: 52px; }
  .gc-modal { margin: 16px; padding: 28px 20px; }
  .gc-benefits { grid-template-columns: 1fr; }
}

/* === GRANDES CLIENTES NAV HIGHLIGHT === */
.nav-item-highlight {
  color: var(--gold) !important;
  font-weight: 600;
}
.nav-item-highlight:hover { opacity: 0.8; }
.mm-nav-highlight { color: var(--gold) !important; font-weight: 600; }

/* === GRANDES CLIENTES MODAL === */
.gc-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.gc-overlay.open { opacity: 1; pointer-events: auto; }
.gc-modal {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 40px 36px;
  max-width: 480px; width: 90%;
  box-shadow: var(--shadow-xl);
  animation: pageFadeIn 0.3s var(--ease);
  max-height: 90vh; overflow-y: auto;
}
.gc-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--text-sec);
  background: var(--surface); transition: all 0.2s var(--ease);
  z-index: 2;
}
.gc-close:hover { background: var(--gold-light); color: var(--gold); }
.gc-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--gold); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.gc-icon svg { width: 28px; height: 28px; }
.gc-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--text); margin-bottom: 12px;
}
.gc-desc {
  font-size: 0.92rem; color: var(--text-sec); line-height: 1.7;
  margin-bottom: 20px;
}
.gc-benefits {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 24px;
}
.gc-benefit {
  padding: 10px 14px; border-radius: var(--radius-xs);
  background: var(--bg); font-size: 0.82rem; font-weight: 500;
  color: var(--text);
  border-left: 3px solid var(--gold);
}
.gc-form .form-group { margin-bottom: 14px; }
.gc-form .form-input {
  background: var(--bg-card);
}
.gc-form .btn-primary { margin-top: 4px; }

/* === BLOG === */
.blog-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.blog-tab { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--text-sec); cursor: pointer; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; transition: all 0.25s var(--ease); }
.blog-tab:hover { border-color: var(--gold); color: var(--gold); }
.blog-tab.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.blog-card { background-color: var(--bg-card); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: all 0.3s var(--ease); border: 1px solid var(--border); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.blog-card-img { width: 100%; height: 180px; overflow: hidden; background: var(--bg); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.03); }
.blog-card-body { padding: 16px; }
.blog-card-cat { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gold); }
.blog-card-title { font-size: 1.05rem; font-weight: 600; margin: 6px 0; color: var(--text); line-height: 1.3; }
.blog-card-sub { font-size: 0.85rem; color: var(--text-sec); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-date { font-size: 0.78rem; color: var(--text-muted); }
.blog-detail { max-width: 720px; margin: 0 auto; }
.blog-back-btn { background: none; border: none; color: var(--gold); cursor: pointer; font-size: 0.9rem; padding: 8px 0; font-weight: 500; }
.blog-back-btn:hover { text-decoration: underline; }
.blog-detail-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.blog-detail-date { font-size: 0.85rem; color: var(--text-muted); }
.blog-detail-title { font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 8px; }
.blog-detail-sub { font-size: 1.05rem; color: var(--text-sec); margin-bottom: 24px; line-height: 1.5; }
.blog-detail-img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 28px; max-height: 400px; object-fit: cover; }
.blog-detail-content { font-size: 0.95rem; line-height: 1.8; color: var(--text); }
.blog-detail-content p { margin-bottom: 16px; }
.blog-detail-content h2, .blog-detail-content h3 { margin: 24px 0 12px; color: var(--text); }
.blog-detail-content ul, .blog-detail-content ol { margin: 12px 0 16px 20px; }
.blog-detail-content li { margin-bottom: 6px; }
.blog-detail-content blockquote { border-left: 3px solid var(--gold); padding: 12px 20px; margin: 20px 0; background: var(--gold-light); border-radius: 0 var(--radius-xs) var(--radius-xs) 0; font-style: italic; }
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-detail-title { font-size: 1.4rem; }
  .blog-card-img { height: 160px; }
}

/* SEO: screen-reader only - visible to crawlers, hidden to users */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* === MI CUENTA (boton + modal) === */
.mc-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-sec);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s var(--ease);
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}
.mc-btn:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-light); }
.mc-btn-initials { display: none; font-size: 0.8rem; font-weight: 700; color: var(--gold); }
.mc-btn-active .mc-btn-initials { display: inline; }
.mc-btn-active svg { display: none; }
.mc-btn-active {
  background: var(--gold-light);
  border-color: var(--gold);
  width: auto;
  height: 34px;
  border-radius: 20px;
  padding: 0 14px;
  color: var(--gold);
}
.mc-btn-active:hover { background: var(--gold); color: var(--bg); }
.mc-btn-active:hover .mc-btn-initials { color: var(--bg); }

.mc-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: mc-fade 0.2s ease;
}
@keyframes mc-fade { from { opacity: 0; } to { opacity: 1; } }

.mc-modal {
  background: var(--bg, #1b0b07);
  border: 1px solid var(--border-light, #3a2218);
  border-radius: 12px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  color: var(--text, #f0e6d3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.mc-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none;
  font-size: 1.6rem; color: var(--text-muted, #9a8a78);
  cursor: pointer; line-height: 1;
}
.mc-close:hover { color: var(--gold, #c9a84c); }

.mc-login, .mc-historial { padding: 28px 24px 24px; }
.mc-login h3, .mc-historial h4 {
  font-size: 1.3rem; font-weight: 700;
  color: var(--gold, #c9a84c);
  margin-bottom: 8px;
}
.mc-historial h4 { margin-top: 20px; font-size: 1rem; }
.mc-sub {
  color: var(--text-muted, #9a8a78);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.mc-hint {
  color: var(--text-muted, #9a8a78);
  font-size: 0.78rem;
  margin-top: 18px;
  text-align: center;
}
.mc-help {
  color: var(--text-muted, #9a8a78);
  font-size: 0.78rem;
  margin-top: 8px;
}
.mc-help a { color: var(--gold, #c9a84c); }

.mc-user-info {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.mc-user-name {
  font-size: 1.1rem; font-weight: 700;
  color: var(--text, #f0e6d3);
}
.mc-user-meta {
  color: var(--text-muted, #9a8a78);
  font-size: 0.85rem;
  margin-top: 2px;
}
.mc-user-stats {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted, #9a8a78);
}
.mc-user-stats b { color: var(--gold, #c9a84c); font-size: 0.95rem; }

.mc-pedido-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light, #2d1a10);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.mc-pedido-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.mc-pedido-fecha {
  font-size: 0.75rem;
  color: var(--text-muted, #9a8a78);
}
.mc-pedido-estado {
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
/* Estados de pedido — paleta de especias */
.mc-estado-nuevo { background: rgba(192, 73, 44, 0.18); color: #E8633E; }
.mc-estado-ok { background: rgba(107, 142, 78, 0.18); color: #8FB568; }
.mc-estado-cancelado { background: rgba(155, 100, 100, 0.18); color: #D89090; }
.mc-estado-pend { background: rgba(212, 146, 74, 0.18); color: #E8A560; }

.mc-pedido-items {
  font-size: 0.8rem;
  color: var(--text-sec, #c4b8aa);
  line-height: 1.5;
}
.mc-pedido-item { padding: 1px 0; }
.mc-pedido-total {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold, #c9a84c);
}
.mc-empty {
  text-align: center;
  color: var(--text-muted, #9a8a78);
  font-size: 0.85rem;
  padding: 24px 0;
}

@media (max-width: 768px) {
  .mc-btn { width: 34px; height: 34px; }
  .mc-modal { max-width: 100%; max-height: 100vh; border-radius: 0; }
  .mc-login, .mc-historial { padding: 24px 18px; }
}

/* === MI CUENTA — Tabs y Promos === */
.mc-tabs {
  display: flex; gap: 4px; margin: 18px 0 14px;
  border-bottom: 1px solid var(--border-light);
}
.mc-tab {
  flex: 1;
  background: none; border: none;
  padding: 10px 8px;
  color: var(--text-muted);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.mc-tab:hover { color: var(--gold); }
.mc-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.mc-tab-count {
  background: var(--bg-darker, rgba(0,0,0,0.3));
  padding: 1px 6px; border-radius: 8px;
  font-size: 0.65rem; min-width: 18px; text-align: center;
}
.mc-tab.active .mc-tab-count { background: var(--gold); color: var(--bg); }

.mc-promos-title {
  font-size: 0.95rem; font-weight: 700; color: var(--gold);
  margin: 18px 0 10px;
}
.mc-promos-list { display: flex; flex-direction: column; gap: 8px; }
.mc-promo-card {
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.08), rgba(201, 168, 76, 0.04));
  border: 1px solid rgba(247, 147, 26, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  position: relative;
}
.mc-promo-destacada {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.15);
}
.mc-promo-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.mc-promo-nombre {
  font-size: 0.92rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.mc-promo-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.mc-promo-codigo {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.3);
  border: 1px dashed var(--gold);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 6px;
}
.mc-promo-codigo:hover { background: rgba(201, 168, 76, 0.15); }
.mc-promo-codigo span:first-child { color: var(--text-muted); }
.mc-promo-codigo b { color: var(--gold); font-family: monospace; font-size: 0.92rem; letter-spacing: 0.04em; flex: 1; }
.mc-copy-hint { font-size: 0.65rem; color: var(--text-muted); opacity: 0.7; }
.mc-promo-vigencia {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* === MI CUENTA — UX Mejorada (Inscribirme + Espera) === */
.mc-login-header {
  text-align: center;
  margin-bottom: 20px;
}
.mc-login-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--gold-light);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.mc-divider {
  display: flex; align-items: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.mc-divider::before, .mc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.mc-divider span {
  padding: 0 12px;
}

/* Estado de espera: icono pulse + timer */
.mc-espera-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  position: relative;
}
.mc-espera-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4;
  animation: mc-pulse 2s ease-out infinite;
}
@keyframes mc-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 0; }
}
.mc-espera-icon svg { position: relative; z-index: 1; }

.mc-timer {
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 240px;
}
.mc-timer-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--spice-amber));
  border-radius: 2px;
}

/* Input OTP con estilo premium */
.mc-otp-input {
  text-align: center;
  letter-spacing: 0.4em;
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold) !important;
  background: var(--gold-light) !important;
  border: 2px solid var(--gold) !important;
  padding: 14px !important;
}
.mc-otp-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.mc-otp-input::placeholder {
  color: var(--text-muted);
  letter-spacing: 0.4em;
  opacity: 0.5;
}

/* Icono de éxito (check verde) */
.mc-exito-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  animation: mc-exito-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes mc-exito-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* === POPUP LATERAL (rediseño elegante) === */
.popup-lateral {
  position: fixed;
  right: -380px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  z-index: 150;
  background: var(--pp-bg, #1A130D);
  border-radius: 18px 0 0 18px;
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.5), -2px 0 0 var(--pp-accent, #E8B84B);
  overflow: hidden;
  transition: right 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.popup-lateral.show {
  right: 0;
}

/* Header con imagen + overlay para el botón cerrar */
.popup-lateral-header {
  position: relative;
  flex-shrink: 0;
}
.popup-lateral-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.popup-lateral-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

/* Botón cerrar integrado en el header con overlay */
.popup-lateral-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.2s ease;
  line-height: 1;
}
.popup-lateral-close:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

/* Body con jerarquía */
.popup-lateral-body {
  padding: 20px 22px 22px;
  position: relative;
}

/* Acento superior: barra dorada que conecta con el borde */
.popup-lateral-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pp-accent, #E8B84B), transparent);
  opacity: 0.5;
}

.popup-lateral-title {
  font-family: var(--font-display);
  font-size: var(--pp-title-size, 1.25rem);
  font-weight: var(--pp-title-weight, 800);
  font-style: var(--pp-title-italic, normal);
  text-decoration: var(--pp-title-deco, none);
  color: var(--pp-accent, #E8B84B);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.popup-lateral-text {
  font-family: var(--font-body);
  font-size: var(--pp-text-size, 0.9rem);
  font-weight: var(--pp-text-weight, 400);
  font-style: var(--pp-text-italic, normal);
  text-decoration: var(--pp-text-deco, none);
  color: var(--pp-text, #F5E6D0);
  line-height: 1.6;
  margin-bottom: 18px;
  opacity: 0.92;
  letter-spacing: 0.005em;
}

/* Botón CTA con estilo premium */
.popup-lateral-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  background: var(--pp-btn-bg, #E8B84B);
  color: var(--pp-btn-text, #0E0A07);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.popup-lateral-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.popup-lateral-btn::after {
  content: '→';
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  .popup-lateral {
    width: calc(100vw - 24px);
    right: calc(-100vw - 10px);
    border-radius: 18px 0 0 18px;
  }
  .popup-lateral.show {
    right: 0;
  }
}

/* ============================================================
   EFECTO OPENING — Cofre madera negra (cortina bidireccional)
   ============================================================ */

/* El overlay ahora sigue el scroll, no lo bloquea */
#opening-overlay {
  pointer-events: none;
}
html.no-opening #opening-overlay {
  display: none !important;
}

.opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
  overflow: hidden;
}

/* === Tapa superior === */
.opening-lid-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background:
    /* Vetas oscuras profundas */
    repeating-linear-gradient(92deg,
      transparent 0px, transparent 2px,
      rgba(40,25,15,0.4) 2px, rgba(40,25,15,0.4) 3px,
      transparent 3px, transparent 7px,
      rgba(60,40,20,0.3) 7px, rgba(60,40,20,0.3) 8px,
      transparent 8px, transparent 18px,
      rgba(20,12,6,0.5) 18px, rgba(20,12,6,0.5) 20px,
      transparent 20px, transparent 32px,
      rgba(35,22,12,0.4) 32px, rgba(35,22,12,0.4) 33px
    ),
    /* Vetas diagonales sutiles */
    repeating-linear-gradient(178deg,
      transparent 0px, transparent 40px,
      rgba(50,32,16,0.15) 40px, rgba(50,32,16,0.15) 42px,
      transparent 42px, transparent 90px
    ),
    /* Manchas oscuras naturales */
    radial-gradient(ellipse 200px 100px at 25% 60%, rgba(10,5,2,0.6), transparent 70%),
    radial-gradient(ellipse 150px 80px at 75% 30%, rgba(15,8,3,0.5), transparent 70%),
    radial-gradient(ellipse 100px 60px at 60% 80%, rgba(8,4,1,0.7), transparent 70%),
    /* Base: gradiente vertical madera negra */
    linear-gradient(180deg,
      #0a0604 0%,
      #14100a 30%,
      #1a1208 60%,
      #0e0904 90%,
      #050302 100%
    );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 80px;
  will-change: transform, opacity;
  overflow: hidden;
  box-shadow:
    inset 0 -40px 80px rgba(0,0,0,0.95),
    inset 0 -2px 0 rgba(232,184,75,0.15);
}

/* Brillo sutil en la tapa superior (reflejo de luz desde arriba) */
.opening-lid-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 35%;
  background: radial-gradient(ellipse at center top,
    rgba(232,184,75,0.06) 0%,
    rgba(232,184,75,0.02) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Línea dorada inferior de la tapa superior (donde se une con la inferior) */
.opening-lid-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(232,184,75,0.2) 30%,
    #E8B84B 50%,
    #8a6f1e 80%,
    rgba(0,0,0,0.5) 100%);
  box-shadow:
    0 4px 20px rgba(232,184,75,0.4),
    0 -8px 24px rgba(0,0,0,0.8);
  z-index: 2;
}

/* === Tapa inferior === */
.opening-lid-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background:
    repeating-linear-gradient(92deg,
      transparent 0px, transparent 2px,
      rgba(40,25,15,0.4) 2px, rgba(40,25,15,0.4) 3px,
      transparent 3px, transparent 7px,
      rgba(60,40,20,0.3) 7px, rgba(60,40,20,0.3) 8px,
      transparent 8px, transparent 18px,
      rgba(20,12,6,0.5) 18px, rgba(20,12,6,0.5) 20px,
      transparent 20px, transparent 32px,
      rgba(35,22,12,0.4) 32px, rgba(35,22,12,0.4) 33px
    ),
    repeating-linear-gradient(178deg,
      transparent 0px, transparent 40px,
      rgba(50,32,16,0.15) 40px, rgba(50,32,16,0.15) 42px,
      transparent 42px, transparent 90px
    ),
    radial-gradient(ellipse 200px 100px at 75% 40%, rgba(10,5,2,0.6), transparent 70%),
    radial-gradient(ellipse 150px 80px at 25% 70%, rgba(15,8,3,0.5), transparent 70%),
    radial-gradient(ellipse 100px 60px at 40% 20%, rgba(8,4,1,0.7), transparent 70%),
    linear-gradient(0deg,
      #0a0604 0%,
      #14100a 30%,
      #1a1208 60%,
      #0e0904 90%,
      #050302 100%
    );
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  will-change: transform, opacity;
  overflow: hidden;
  box-shadow:
    inset 0 40px 80px rgba(0,0,0,0.95),
    inset 0 2px 0 rgba(232,184,75,0.15);
}

.opening-lid-bottom::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 35%;
  background: radial-gradient(ellipse at center bottom,
    rgba(232,184,75,0.06) 0%,
    rgba(232,184,75,0.02) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.opening-lid-bottom::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(0deg,
    transparent 0%,
    rgba(232,184,75,0.2) 30%,
    #E8B84B 50%,
    #8a6f1e 80%,
    rgba(0,0,0,0.5) 100%);
  box-shadow:
    0 -4px 20px rgba(232,184,75,0.4),
    0 8px 24px rgba(0,0,0,0.8);
  z-index: 2;
}

/* === Logo en tapa superior === */
.opening-logo {
  width: 200px;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 8px 24px rgba(0,0,0,0.95))
    drop-shadow(0 2px 8px rgba(0,0,0,0.7));
  position: relative;
  z-index: 3;
  /* Distancia desde el borde inferior de la tapa superior
     para que coincida con el texto de la tapa inferior */
  margin-bottom: -40px;
}

/* === Título ARCANO en tapa inferior === */
.opening-title {
  position: relative;
  z-index: 3;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  color: #E8B84B;
  letter-spacing: 0.12em;
  text-shadow:
    0 4px 16px rgba(0,0,0,0.95),
    0 0 24px rgba(232,184,75,0.2),
    0 2px 4px rgba(0,0,0,0.8);
  margin: 0;
  line-height: 1;
  /* Distancia desde el borde superior de la tapa inferior
     para que coincida con el logo de la tapa superior */
  margin-top: -10px;
}

.opening-subtitle {
  position: relative;
  z-index: 3;
  color: #8a7a5c;
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-top: 12px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

/* === Esquinas metálicas === */
.opening-corner {
  position: absolute;
  width: 70px;
  height: 70px;
  z-index: 2;
  pointer-events: none;
}
.opening-corner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(232,184,75,0.5) 0%,
    rgba(138,111,30,0.25) 50%,
    transparent 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.opening-corner::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  width: 7px;
  height: 7px;
  background: radial-gradient(circle, #E8B84B 30%, #1a0f08 100%);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.9), inset 0 1px 1px rgba(255,255,255,0.2);
}
.opening-corner-tl { top: 24px; left: 24px; }
.opening-corner-tr { top: 24px; right: 24px; transform: scaleX(-1); }
.opening-corner-bl { bottom: 24px; left: 24px; transform: scaleY(-1); }
.opening-corner-br { bottom: 24px; right: 24px; transform: scale(-1, -1); }

/* === Hint === */
.opening-hint {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  color: #8a7a5c;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-weight: 600;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: openingHintBounce 2s ease-in-out infinite;
}
.opening-hint-arrow {
  font-size: 1.3rem;
  line-height: 1;
  color: #c9a84c;
}
@keyframes openingHintBounce {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.9; transform: translateX(-50%) translateY(4px); }
}

@media (max-width: 600px) {
  .opening-logo { width: 140px; margin-bottom: -30px; }
  .opening-corner { width: 50px; height: 50px; }
  .opening-corner-tl, .opening-corner-tr { top: 16px; }
  .opening-corner-tl, .opening-corner-bl { left: 16px; }
  .opening-corner-tr, .opening-corner-br { right: 16px; }
  .opening-corner-bl, .opening-corner-br { bottom: 16px; }
}

