/*
 * ═══════════════════════════════════════════════════════════
 *  LICORES EXPRESS POPAYÁN — Design System v2.0
 *  Estilo dual claro/oscuro · Lujo · Funcionalidad
 *  Tipografía: Poppins (cuerpo) + Prata (títulos)
 * ═══════════════════════════════════════════════════════════
 */

/* ─────────────────────────────────────────────────────────────
   1. GOOGLE FONTS
───────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Prata&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ─────────────────────────────────────────────────────────────
   2. DESIGN TOKENS — MODO CLARO (default)
───────────────────────────────────────────────────────────── */
:root {
  /* Superficies */
  --bg:            #FFFFFF;
  --bg-secondary:  #F8F6F2;
  --bg-card:       #FFFFFF;
  --bg-elevated:   #F4F1EB;
  --bg-overlay:    rgba(255,255,255,0.94);

  /* Textos */
  --text:          #121212;
  --text-muted:    #5A5A5A;
  --text-dim:      #9A9A9A;
  --text-inverse:  #FFFFFF;

  /* Acentos Dorados */
  --gold:          #D4AF37;
  --gold-light:    #E8C96A;
  --gold-dark:     #B8941A;
  --gold-dim:      rgba(212,175,55,0.12);
  --gold-glow:     rgba(212,175,55,0.28);

  /* Dorado ámbar para CTA */
  --amber:         #C9912A;
  --amber-hover:   #B07820;

  /* Bordes */
  --border:        rgba(18,18,18,0.10);
  --border-gold:   rgba(212,175,55,0.30);
  --border-focus:  rgba(212,175,55,0.60);

  /* Sombras */
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.14);
  --shadow-xl:     0 24px 64px rgba(0,0,0,0.18);
  --shadow-gold:   0 8px 32px rgba(212,175,55,0.22);

  /* Tokens UI */
  --radius:        8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --transition:    cubic-bezier(0.4, 0, 0.2, 1);

  /* Glassmorphism */
  --glass:         rgba(255,255,255,0.92);
  --glass-border:  rgba(212,175,55,0.18);

  /* Estado */
  --success:       #1A7A4A;
  --danger:        #C0392B;

  /* Navbar */
  --nav-bg:        rgba(255,255,255,0.95);
  --nav-border:    rgba(212,175,55,0.20);
  --nav-height:    68px;
}

/* ─────────────────────────────────────────────────────────────
   3. DESIGN TOKENS — MODO OSCURO
───────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0F0F0F;
    --bg-secondary:  #141414;
    --bg-card:       #1A1A1A;
    --bg-elevated:   #222222;
    --bg-overlay:    rgba(15,15,15,0.96);

    --text:          #F7F7F7;
    --text-muted:    #A0A0A0;
    --text-dim:      #606060;
    --text-inverse:  #0F0F0F;

    --border:        rgba(255,255,255,0.08);
    --border-gold:   rgba(212,175,55,0.22);
    --border-focus:  rgba(212,175,55,0.50);

    --shadow-sm:     0 1px 4px rgba(0,0,0,0.40);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.50);
    --shadow-lg:     0 12px 40px rgba(0,0,0,0.60);
    --shadow-xl:     0 24px 64px rgba(0,0,0,0.70);
    --shadow-gold:   0 8px 32px rgba(212,175,55,0.18);

    --glass:         rgba(15,15,15,0.92);
    --glass-border:  rgba(212,175,55,0.12);

    --nav-bg:        rgba(10,10,10,0.95);
    --nav-border:    rgba(212,175,55,0.14);
  }
}

/* ─────────────────────────────────────────────────────────────
   4. RESET & BASE
───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  border: none;
  background: none;
}

/* Scrollbar personalizado */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ─────────────────────────────────────────────────────────────
   5. TIPOGRAFÍA
───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Prata', Georgia, 'Times New Roman', serif;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }

.font-body { font-family: 'Poppins', sans-serif; }
.font-display { font-family: 'Prata', serif; }

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }

/* Eyebrow label */
.eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─────────────────────────────────────────────────────────────
   6. NAVBAR
───────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9000;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.3s var(--transition), box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
}

.logo-img-wrap img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Prata', serif;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
}

.logo-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Buscador predictivo */
.navbar__search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.search-input {
  width: 100%;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 1rem 0 2.75rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
}

.search-results.show {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--gold-dim);
}

.search-result-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.search-result-item:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Nav links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--gold-dim);
}

.nav-link.active {
  color: var(--gold-dark);
  font-weight: 600;
}

/* Nav acciones */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Mobile menu */
#mobile-menu {
  display: none;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
}

#mobile-menu.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: all 0.2s;
  margin-bottom: 2px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text);
  background: var(--gold-dim);
}

/* ─────────────────────────────────────────────────────────────
   7. BOTONES
───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.4rem;
  transition: all 0.2s var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

/* Primario — dorado / ámbar */
.btn-primary {
  background: var(--gold);
  color: #0F0F0F;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Secundario — contorno dorado */
.btn-outline {
  background: transparent;
  color: var(--gold-dark);
  border: 1.5px solid var(--border-gold);
}

.btn-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

/* Ghost */
.btn-ghost {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

/* Ícono */
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.btn-icon:hover {
  background: var(--gold-dim);
  border-color: var(--border-gold);
  color: var(--gold-dark);
}

/* WhatsApp */
.btn-wsp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.btn-wsp:hover {
  background: #1ebe5c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.30);
}

/* Badge en botón icono */
.btn-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  background: var(--gold);
  color: #0F0F0F;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg);
}

/* ─────────────────────────────────────────────────────────────
   8. CARDS DE PRODUCTO
───────────────────────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s var(--transition),
              box-shadow 0.3s,
              border-color 0.3s;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

.product-card:hover .product-img img {
  transform: scale(1.07);
}

.product-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--transition);
}

.product-img-placeholder {
  font-size: 4rem;
  opacity: 0.18;
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-offer {
  background: var(--danger);
  color: #fff;
}

.badge-new {
  background: var(--gold);
  color: #0F0F0F;
}

.badge-top {
  background: var(--bg-elevated);
  color: var(--gold-dark);
  border: 1px solid var(--border-gold);
}

.btn-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-fav:hover,
.btn-fav.on {
  color: var(--gold);
  border-color: var(--border-gold);
}

.product-info {
  padding: 1rem;
}

.product-brand {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.product-name {
  font-family: 'Prata', serif;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.stars {
  color: var(--gold);
  font-size: 0.72rem;
}

.rating-count {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.product-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.price-current {
  font-family: 'Prata', serif;
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 400;
}

.price-old {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.price-discount {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(192,57,43,0.10);
  color: var(--danger);
  border-radius: 4px;
  padding: 2px 6px;
}

.btn-add {
  width: 100%;
  background: var(--gold);
  color: #0F0F0F;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-add:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-add:disabled {
  background: var(--bg-elevated);
  color: var(--text-dim);
  cursor: not-allowed;
  transform: none;
}

/* ─────────────────────────────────────────────────────────────
   9. GRILLAS
───────────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* ─────────────────────────────────────────────────────────────
   10. TARJETAS DE CATEGORÍA
───────────────────────────────────────────────────────────── */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-dim);
  opacity: 0;
  transition: opacity 0.3s;
}

.category-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card:hover::before {
  opacity: 1;
}

.category-emoji {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.category-card:hover .category-emoji {
  transform: scale(1.15);
}

.category-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.category-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────────────────────
   11. INPUTS
───────────────────────────────────────────────────────────── */
.input-field {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.input-field::placeholder {
  color: var(--text-dim);
}

/* ─────────────────────────────────────────────────────────────
   12. CARRITO PANEL
───────────────────────────────────────────────────────────── */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#overlay.on {
  opacity: 1;
  pointer-events: all;
}

#carrito {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 8100;
  width: min(420px, 100vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border-gold);
  transform: translateX(100%);
  transition: transform 0.35s var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

#carrito.on {
  transform: translateX(0);
}

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-title {
  font-family: 'Prata', serif;
  font-size: 1.35rem;
  color: var(--text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.cart-empty-icon {
  font-size: 3rem;
  opacity: 0.2;
}

.cart-item {
  display: flex;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  transition: border-color 0.2s;
}

.cart-item:hover {
  border-color: var(--border-gold);
}

.cart-item-img {
  width: 50px;
  height: 58px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.84rem; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.cart-item-price { font-size: 0.84rem; color: var(--gold-dark); font-weight: 700; }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  cursor: pointer;
}

.qty-btn:hover {
  background: var(--gold-dim);
  border-color: var(--border-gold);
  color: var(--gold-dark);
}

.qty-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  min-width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 5px 0;
}

.cart-line .amount { color: var(--text); }
.cart-line.free-shipping { color: var(--success); }

.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}

.btn-checkout {
  width: 100%;
  background: var(--gold);
  color: #0F0F0F;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-checkout:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* ─────────────────────────────────────────────────────────────
   13. VERIFICACIÓN DE EDAD
───────────────────────────────────────────────────────────── */
#modal-edad {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.age-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-gold);
  animation: modalUp 0.5s var(--transition);
}

@keyframes modalUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.age-ornament {
  font-family: 'Prata', serif;
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.age-modal-box h2 {
  font-family: 'Prata', serif;
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.age-modal-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.age-buttons {
  display: flex;
  gap: 12px;
}

.age-legal {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   14. HERO
───────────────────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  padding-top: var(--nav-height);
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Líneas diagonales sutiles */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 80px,
    var(--gold-dim) 80px, var(--gold-dim) 81px
  );
  pointer-events: none;
  opacity: 0.4;
}

.hero-glow {
  position: absolute;
  right: -5%;
  top: 10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(
    ellipse at 70% 40%,
    var(--gold-glow) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-content {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  border-radius: 99px;
  padding: 5px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  margin-bottom: 1.75rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.72); }
}

.hero h1 {
  color: var(--text);
  margin-bottom: 0.3rem;
}

.hero h1 em {
  color: var(--gold);
  font-style: italic;
}

.gold-line {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.5rem 0;
}

.hero-desc {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

.hero-desc strong {
  color: var(--text);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-family: 'Prata', serif;
  font-size: 1.9rem;
  color: var(--text);
  line-height: 1;
}

.stat-num span { color: var(--gold); }
.stat-lbl { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }

/* Visual decorativo del hero */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  height: 90vh;
}

.bottles-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 520px;
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  animation: rotate 20s linear infinite;
}

.ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.ring-2 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: rotate 14s linear infinite reverse;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.bottle {
  position: absolute;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

.bot-c { left:50%; top:50%; transform:translate(-50%,-50%); width:100px; animation:float1 6s ease-in-out infinite; }
.bot-l { left:8%;  top:42%; transform:translateY(-50%);     width:76px;  animation:float2 7s ease-in-out infinite 1s; opacity:.65; }
.bot-r { right:3%; top:38%; transform:translateY(-50%);     width:82px;  animation:float3 8s ease-in-out infinite .5s; opacity:.6; }

@keyframes float1 { 0%,100%{transform:translate(-50%,-50%) translateY(0)} 50%{transform:translate(-50%,-50%) translateY(-14px)} }
@keyframes float2 { 0%,100%{transform:translateY(-50%)} 50%{transform:translateY(calc(-50% - 10px))} }
@keyframes float3 { 0%,100%{transform:translateY(-50%)} 50%{transform:translateY(calc(-50% + 10px))} }

/* ─────────────────────────────────────────────────────────────
   15. TRUST BANNER
───────────────────────────────────────────────────────────── */
.trust-banner {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   16. SECCIONES GENERALES
───────────────────────────────────────────────────────────── */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.section-full {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.section-title {
  font-family: 'Prata', serif;
  color: var(--text);
}

.section-title em {
  color: var(--gold);
  font-style: italic;
}

.section-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color 0.2s;
}

.section-link:hover {
  color: var(--gold-dark);
}

/* Decorador dorado */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
  margin: 0 clamp(1rem, 4vw, 3rem);
}

/* ─────────────────────────────────────────────────────────────
   17. SECCIÓN DE DOMICILIOS
───────────────────────────────────────────────────────────── */
.delivery-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
}

.delivery-info {
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
}

.delivery-card {
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.info-item:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-sm);
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.info-text h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.info-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-text strong {
  color: var(--gold-dark);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────
   18. FOOTER
───────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-legal-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.footer-legal-bar p {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-legal-bar strong {
  color: var(--text-muted);
  font-weight: 600;
}

.footer-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 2.5rem;
}

.footer-brand-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--gold-dark);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

.payment-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.pay-chip {
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 99px;
}

/* ─────────────────────────────────────────────────────────────
   19. MENSAJES FLASH
───────────────────────────────────────────────────────────── */
.flash {
  animation: fadeInDown 0.35s ease both;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.flash-success { background: rgba(26,122,74,0.10); border: 1px solid rgba(26,122,74,0.30); color: var(--success); }
.flash-error   { background: rgba(192,57,43,0.10); border: 1px solid rgba(192,57,43,0.30); color: var(--danger); }
.flash-info    { background: rgba(212,175,55,0.10); border: 1px solid var(--border-gold); color: var(--gold-dark); }

/* ─────────────────────────────────────────────────────────────
   20. ANIMACIONES
───────────────────────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity:0; transform:translateY(-12px); }
  to   { opacity:1; transform:translateY(0); }
}

@keyframes fadeInUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}

.page-enter {
  animation: fadeInUp 0.4s ease both;
}

/* ─────────────────────────────────────────────────────────────
   21. UTILIDADES
───────────────────────────────────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.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;
}

/* ─────────────────────────────────────────────────────────────
   22. RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: var(--nav-height);
  }

  .hero-visual { display: none; }

  .hero-content {
    padding: 4rem 2rem 3.5rem;
  }

  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .delivery-card {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .navbar__search {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .trust-banner {
    gap: 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   23. TABLA TIENDA / CATÁLOGO
───────────────────────────────────────────────────────────── */
.store-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
}

.store-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  height: fit-content;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.filter-option:hover,
.filter-option.active {
  background: var(--gold-dim);
  color: var(--text);
}

.filter-option.active {
  color: var(--gold-dark);
  font-weight: 600;
}

@media (max-width: 900px) {
  .store-layout {
    grid-template-columns: 1fr;
  }

  .store-sidebar {
    position: static;
  }
}
