/*
 * ═══════════════════════════════════════════════════════════
 *  LICORES DISTRI PUNTOS — Hoja de estilos global
 *  Cubre: layout principal (main.php), tienda, catalogo,
 *         inicio, admin, carrito, checkout, errores
 * ═══════════════════════════════════════════════════════════
 */

/* ─────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
───────────────────────────────────────────────────────────── */
:root {
  /* Paleta principal */
  --red:          #E8001A;
  --red-dark:     #be1222;
  --red-light:    #fb7185;
  --red-900:      #4c0519;
  --red-950:      #2d000e;

  /* Dorado */
  --gold:         #d4a017;
  --gold-light:   #f5c842;
  --gold-dim:     rgba(212, 160, 23, 0.18);

  /* Oscuros */
  --dark:         #080808;
  --dark-card:    #111111;
  --dark-800:     #111111;
  --dark-700:     #181818;
  --dark-600:     #222222;
  --dark-500:     #2e2e2e;
  --dark-400:     #3d3d3d;

  /* Tipografía */
  --text:         #e5e7eb;
  --text-muted:   #9ca3af;
  --text-dim:     #6b7280;

  /* Tokens UI */
  --border:       rgba(255, 255, 255, 0.07);
  --border-red:   rgba(232, 0, 26, 0.22);
  --border-gold:  rgba(212, 160, 23, 0.25);
  --glass:        rgba(13, 13, 13, 0.88);
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --transition:   cubic-bezier(0.4, 0, 0.2, 1);

  /* Sombras */
  --shadow-card:      0 4px 24px rgba(0, 0, 0, 0.6);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.8);
  --shadow-red:       0 0 30px rgba(232, 0, 26, 0.40);
  --shadow-red-sm:    0 0 12px rgba(232, 0, 26, 0.28);
  --shadow-gold:      0 0 20px rgba(212, 160, 23, 0.32);

  /* Versión dorada "Licores Express" (catalogo.php / inicio.php) */
  --negro:   #080808;
  --carbon:  #0f0f0f;
  --carbon2: #161616;
  --carbon3: #1e1e1e;
  --carbon4: #272727;
  --oro:     #c9a84c;
  --oro2:    #e8c870;
  --oro-dim: rgba(201, 168, 76, 0.12);
  --rojo:    #c0392b;
  --blanco:  #f5f0e8;
  --gris:    #7a7a7a;
  --gris2:   #3a3a3a;
  --texto:   #e8e2d6;
  --texto2:  #9a9080;
  --r:       6px;
  --r2:      12px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background-color: var(--dark);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ─────────────────────────────────────────────────────────────
   3. SCROLLBAR
───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }

/* ─────────────────────────────────────────────────────────────
   4. TIPOGRAFÍA
───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.15;
}

.font-display { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-accent  { font-family: 'Bebas Neue', Impact, sans-serif; letter-spacing: .04em; }
.font-body    { font-family: 'Outfit', system-ui, sans-serif; }

/* ─────────────────────────────────────────────────────────────
   5. NAVBAR / HEADER
───────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(200%);
  -webkit-backdrop-filter: blur(18px) saturate(200%);
  border-bottom: 1px solid var(--border-red);
  transition: background .3s var(--transition);
}
.navbar.scrolled { background: rgba(8, 8, 8, .96); }

.nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(229, 231, 235, .75);
  letter-spacing: .01em;
  padding: .35rem .1rem;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  border-color: var(--red);
}

/* Mobile menu */
#mobile-menu {
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .25s var(--transition), opacity .25s;
  pointer-events: none;
}
#mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Logo animación */
.logo-pulse { animation: pulseGlow 2.8s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(232, 0, 26, .45); }
  50%       { box-shadow: 0 0 34px rgba(232, 0, 26, .9);  }
}

/* ─────────────────────────────────────────────────────────────
   6. BOTONES
───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s var(--transition), box-shadow .2s;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  padding: .65rem 1.35rem;
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 0, 26, .45);
}

.btn-ghost {
  background: transparent;
  color: rgba(229, 231, 235, .8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .65rem 1.35rem;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
}

.btn-gold {
  background: var(--gold);
  color: #0d0d0d;
  border-radius: 10px;
  padding: .65rem 1.35rem;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 160, 23, .4);
}

.btn-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: rgba(229, 231, 235, .75);
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover {
  background: rgba(232, 0, 26, .15);
  color: var(--red-light);
  border-color: var(--border-red);
}

/* Variante ORO (páginas standalone) */
.btn-si {
  flex: 1;
  background: var(--oro);
  color: var(--negro);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px;
  border-radius: var(--r);
  transition: background .2s, transform .15s;
  cursor: pointer;
  border: none;
  font-family: 'Outfit', sans-serif;
}
.btn-si:hover { background: var(--oro2); transform: translateY(-2px); }

.btn-no {
  flex: 1;
  background: transparent;
  border: 1px solid var(--gris2);
  color: var(--texto2);
  font-size: .95rem;
  padding: 13px;
  border-radius: var(--r);
  transition: border-color .2s;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.btn-no:hover { border-color: var(--gris); }

.btn-checkout {
  width: 100%;
  background: var(--oro);
  color: var(--negro);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px;
  border-radius: var(--r);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
  cursor: pointer;
  border: none;
  font-family: 'Outfit', sans-serif;
}
.btn-checkout:hover { background: var(--oro2); transform: translateY(-1px); }

/* ─────────────────────────────────────────────────────────────
   7. CARDS
───────────────────────────────────────────────────────────── */
.card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .28s var(--transition), box-shadow .28s, border-color .28s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .7);
  border-color: rgba(232, 0, 26, .28);
}

/* Product card (tienda) */
.product-card {
  background: var(--dark-800);
  border: 1px solid var(--dark-600);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .28s var(--transition), box-shadow .28s, border-color .28s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .75);
  border-color: rgba(232, 0, 26, .3);
}
.product-card .group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* ─────────────────────────────────────────────────────────────
   8. BADGES
───────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .25rem .6rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

/* ─────────────────────────────────────────────────────────────
   9. INPUTS & FORMULARIOS
───────────────────────────────────────────────────────────── */
.input-field {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: .875rem;
  padding: .7rem 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input-field:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232, 0, 26, .15);
}
.input-field::placeholder { color: rgba(156, 163, 175, .5); }

/* Inputs modo ORO (standalone pages) */
.input-oro {
  background: var(--carbon3);
  border: 1px solid var(--gris2);
  border-radius: var(--r);
  color: var(--blanco);
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  padding: .7rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color .2s;
}
.input-oro:focus { border-color: var(--oro); }
.input-oro::placeholder { color: var(--texto2); }

select.input-field,
select.input-oro {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.5rem;
}

/* ─────────────────────────────────────────────────────────────
   10. CARRITO SLIDE-OVER (global)
───────────────────────────────────────────────────────────── */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, .75);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
#overlay.on { opacity: 1; pointer-events: all; }

#carrito {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 1200;
  width: min(400px, 100vw);
  background: var(--carbon2);
  border-left: 1px solid var(--gris2);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
}
#carrito.on { transform: translateX(0); }

.c-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gris2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.c-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blanco);
}
.btn-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--carbon3);
  border: 1px solid var(--gris2);
  color: var(--texto2);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  cursor: pointer;
}
.btn-x:hover { color: var(--oro); border-color: var(--oro); }

.c-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.c-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  color: var(--texto2);
  font-size: .9rem;
  text-align: center;
}
.c-vacio-icon { font-size: 3rem; opacity: .25; }

.c-item {
  display: flex;
  gap: 12px;
  background: var(--carbon3);
  border: 1px solid var(--gris2);
  border-radius: var(--r2);
  padding: 1rem;
}
.c-item-img {
  width: 52px;
  height: 60px;
  background: var(--carbon4);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.c-item-info { flex: 1; }
.c-item-nombre { font-size: .875rem; font-weight: 500; color: var(--blanco); margin-bottom: 3px; }
.c-item-precio { font-size: .875rem; color: var(--oro); font-weight: 600; }
.c-item-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

.ctrl-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--carbon4);
  border: 1px solid var(--gris2);
  color: var(--texto);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  cursor: pointer;
}
.ctrl-btn:hover { background: var(--oro-dim); border-color: var(--oro); color: var(--oro); }
.ctrl-cant { font-size: .875rem; font-weight: 600; color: var(--blanco); min-width: 20px; text-align: center; }

.c-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gris2);
}
.c-linea {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--texto2);
  padding: 5px 0;
}
.c-linea .monto { color: var(--blanco); }
.c-linea.total {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blanco);
  border-top: 1px solid var(--gris2);
  margin-top: 6px;
  padding-top: 12px;
}
.c-linea .gratis { color: #4ade80; font-size: .75rem; }

/* ─────────────────────────────────────────────────────────────
   11. NAVBAR STANDALONE (catalogo.php / inicio.php)
───────────────────────────────────────────────────────────── */
nav.nav-oro {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, .95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, .1);
  padding: 0 clamp(1rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: background .3s;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--oro);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--negro);
}
.logo-nombre { font-size: 1.1rem; font-weight: 700; color: var(--blanco); line-height: 1.15; }
.logo-sub {
  font-family: 'Outfit', sans-serif;
  font-size: .65rem;
  color: var(--oro);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  font-size: .85rem;
  color: var(--texto2);
  transition: color .2s;
  letter-spacing: .3px;
}
.nav-links a:hover,
.nav-links a.activo { color: var(--blanco); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.btn-carrito-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--carbon3);
  border: 1px solid var(--gris2);
  border-radius: var(--r);
  padding: 7px 14px;
  color: var(--texto);
  font-size: .85rem;
  transition: all .2s;
  cursor: pointer;
}
.btn-carrito-nav:hover { border-color: var(--oro); color: var(--oro); }
.btn-carrito-nav .badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--oro);
  color: var(--negro);
  border-radius: 50%;
  width: 17px; height: 17px;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-wsp-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #25d366;
  color: #000;
  font-size: .85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--r);
  transition: all .2s;
}
.btn-wsp-nav:hover { background: #1ebe5c; }

/* ─────────────────────────────────────────────────────────────
   12. PAGE HEADERS
───────────────────────────────────────────────────────────── */
.page-header {
  padding: 100px clamp(1.5rem, 5vw, 4rem) 3rem;
  background: var(--carbon);
  border-bottom: 1px solid var(--gris2);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(201, 168, 76, .02) 60px,
    rgba(201, 168, 76, .02) 61px
  );
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--texto2);
  margin-bottom: 1rem;
}
.breadcrumb a:hover { color: var(--oro); }

/* ─────────────────────────────────────────────────────────────
   13. SECCIÓN HERO (inicio.php standalone)
───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem clamp(1.5rem, 6vw, 5rem) 4rem;
  background: var(--negro);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(201, 168, 76, .07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 90%, rgba(192, 57, 43, .05) 0%, transparent 60%);
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────
   14. PRODUCT GRID (tienda.php — layout con Tailwind)
───────────────────────────────────────────────────────────── */
/* 
  tienda.php usa Tailwind CDN + config personalizada en main.php.
  Estas clases complementan las que no están en el CDN base.
*/
.product-card .img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: .6;
}
.product-card .img-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────────
   15. CATÁLOGO STANDALONE (catalogo.php)
───────────────────────────────────────────────────────────── */
.cat-layout {
  display: grid;
  grid-template-columns: var(--sidebar, 240px) 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem);
}
@media (max-width: 768px) {
  .cat-layout { grid-template-columns: 1fr; }
}

/* Sidebar de filtros */
.cat-sidebar {
  position: sticky;
  top: 84px;
  height: fit-content;
  background: var(--carbon2);
  border: 1px solid var(--gris2);
  border-radius: var(--r2);
  padding: 1.5rem;
}
.cat-sidebar h3 {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--texto2);
  margin-bottom: 1rem;
}

.cat-filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r);
  font-size: .875rem;
  color: var(--texto2);
  transition: all .2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.cat-filter-btn:hover { background: var(--carbon3); color: var(--blanco); }
.cat-filter-btn.activo {
  background: var(--oro-dim);
  color: var(--oro);
  border-color: rgba(201, 168, 76, .2);
}
.cat-filter-icon {
  width: 28px; height: 28px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Grid de productos catálogo */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 480px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}

.prod-card {
  background: var(--carbon2);
  border: 1px solid var(--gris2);
  border-radius: var(--r2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--transition), box-shadow .25s, border-color .25s;
  cursor: pointer;
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  border-color: rgba(201, 168, 76, .25);
}

.prod-img {
  height: 160px;
  background: var(--carbon3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--transition);
}
.prod-card:hover .prod-img img { transform: scale(1.06); }

.prod-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.prod-cat {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--oro);
}
.prod-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.2;
}
.prod-precio { margin-top: auto; display: flex; align-items: baseline; gap: .5rem; }
.prod-precio .actual { font-size: 1.1rem; font-weight: 700; color: var(--blanco); }
.prod-precio .antes  { font-size: .8rem; color: var(--gris); text-decoration: line-through; }

.prod-footer {
  padding: .75rem 1rem;
  border-top: 1px solid var(--gris2);
  display: flex;
  gap: .5rem;
}
.btn-add {
  flex: 1;
  background: var(--oro);
  color: var(--negro);
  font-weight: 700;
  font-size: .8rem;
  padding: 8px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .2s;
  cursor: pointer;
  border: none;
  font-family: 'Outfit', sans-serif;
}
.btn-add:hover { background: var(--oro2); transform: translateY(-1px); }
.btn-add:disabled {
  background: var(--carbon4);
  color: var(--gris);
  cursor: not-allowed;
  transform: none;
}

/* Badges producto */
.prod-badge {
  position: absolute;
  top: 8px; left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tag {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 20px;
  width: fit-content;
}
.tag-oferta   { background: var(--rojo);   color: #fff; }
.tag-destacado { background: var(--oro);   color: var(--negro); }
.tag-stock    { background: rgba(234, 88, 12, .8); color: #fff; }

/* ─────────────────────────────────────────────────────────────
   16. BÚSQUEDA & FILTROS (barra superior)
───────────────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  background: var(--carbon);
  border-bottom: 1px solid var(--gris2);
  flex-wrap: wrap;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gris);
  width: 16px; height: 16px;
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--carbon3);
  border: 1px solid var(--gris2);
  border-radius: var(--r);
  color: var(--blanco);
  font-family: 'Outfit', sans-serif;
  font-size: .875rem;
  padding: .6rem 1rem .6rem 2.5rem;
  outline: none;
  transition: border-color .2s;
}
.search-input:focus { border-color: var(--oro); }
.search-input::placeholder { color: var(--texto2); }

/* ─────────────────────────────────────────────────────────────
   17. MODAL VERIFICACIÓN DE EDAD (inicio.php)
───────────────────────────────────────────────────────────── */
#modal-edad {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-box {
  background: var(--carbon2);
  border: 1px solid var(--gris2);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: fadeUp .5s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-corona { font-family: 'Cormorant Garamond', serif; font-size: 3rem; color: var(--oro); margin-bottom: .5rem; }
.modal-box h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: .8rem;
}
.modal-box p { font-size: .9rem; color: var(--texto2); line-height: 1.7; margin-bottom: 2rem; }
.modal-btns { display: flex; gap: 12px; }
.modal-legal { font-size: .7rem; color: var(--gris); margin-top: 1.5rem; line-height: 1.6; }

/* ─────────────────────────────────────────────────────────────
   18. SECCIONES HOME (inicio.php)
───────────────────────────────────────────────────────────── */
/* Categorías destacadas */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
@media (max-width: 480px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
}
.cat-card {
  background: var(--carbon2);
  border: 1px solid var(--gris2);
  border-radius: var(--r2);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s var(--transition);
}
.cat-card:hover {
  border-color: rgba(201, 168, 76, .3);
  background: var(--carbon3);
  transform: translateY(-3px);
}
.cat-card .icon { font-size: 2rem; }
.cat-card .label { font-size: .8rem; font-weight: 500; color: var(--texto); }

/* Sección "Cómo funciona" */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.step-card {
  background: var(--carbon2);
  border: 1px solid var(--gris2);
  border-radius: var(--r2);
  padding: 1.75rem;
  position: relative;
}
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--oro);
  opacity: .2;
  line-height: 1;
  margin-bottom: .75rem;
}
.step-card h3 { font-size: 1rem; font-weight: 600; color: var(--blanco); margin-bottom: .4rem; }
.step-card p  { font-size: .85rem; color: var(--texto2); line-height: 1.6; }

/* Banners/features */
.feature-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--carbon2);
  border: 1px solid var(--gris2);
  border-radius: var(--r2);
  padding: 1rem 1.5rem;
  flex: 1;
  min-width: 200px;
}
.feature-icon { font-size: 1.5rem; flex-shrink: 0; }
.feature-text .title { font-weight: 600; font-size: .9rem; color: var(--blanco); }
.feature-text .desc  { font-size: .75rem; color: var(--texto2); margin-top: 2px; }

/* ─────────────────────────────────────────────────────────────
   19. TOAST NOTIFICATIONS
───────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark-700);
  border: 1px solid var(--dark-500);
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .8);
  max-width: 320px;
  animation: slideInRight .35s ease;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--red);
}
.toast-msg { font-size: .875rem; color: #fff; font-weight: 500; }

/* ─────────────────────────────────────────────────────────────
   20. ADMIN DASHBOARD
───────────────────────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
}

.admin-sidebar {
  background: var(--dark-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .6rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text-muted);
  transition: all .18s;
  cursor: pointer;
}
.admin-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.admin-link.active { background: rgba(232, 0, 26, .12); color: var(--red-light); }

.admin-main { padding: 1.5rem 2rem; flex: 1; }
@media (max-width: 640px) { .admin-main { padding: 1rem; } }

.stat-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color .2s, transform .2s;
}
.stat-card:hover { border-color: var(--border-red); transform: translateY(-2px); }
.stat-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; color: #fff; margin-top: .25rem; }
.stat-sub   { font-size: .75rem; color: var(--text-dim); margin-top: .25rem; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th {
  background: var(--dark-700);
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
  padding: .65rem 1rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.admin-table tr:hover td { background: rgba(255, 255, 255, .02); }

/* ─────────────────────────────────────────────────────────────
   21. CARRITO PAGE (carrito.php)
───────────────────────────────────────────────────────────── */
.cart-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-item {
  display: flex;
  gap: 1rem;
  background: var(--carbon2);
  border: 1px solid var(--gris2);
  border-radius: var(--r2);
  padding: 1rem;
  align-items: center;
}
.cart-item-img {
  width: 70px; height: 80px;
  background: var(--carbon3);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.cart-summary {
  background: var(--carbon2);
  border: 1px solid var(--gris2);
  border-radius: var(--r2);
  padding: 1.5rem;
  position: sticky;
  top: 84px;
}
.cart-summary h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gris2);
}

/* ─────────────────────────────────────────────────────────────
   22. CHECKOUT (checkout.php)
───────────────────────────────────────────────────────────── */
.checkout-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-card {
  background: var(--carbon2);
  border: 1px solid var(--gris2);
  border-radius: var(--r2);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.checkout-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 1.25rem;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--carbon3);
  border: 1px solid var(--gris2);
  border-radius: var(--r);
  padding: .85rem 1rem;
  cursor: pointer;
  transition: border-color .2s;
}
.pay-method.selected { border-color: var(--oro); background: var(--oro-dim); }
.pay-method:hover { border-color: var(--gris); }

/* ─────────────────────────────────────────────────────────────
   23. FOOTER (layout main.php)
───────────────────────────────────────────────────────────── */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-red), transparent);
  margin: 2rem 0;
}

/* ─────────────────────────────────────────────────────────────
   24. UTILIDADES GLOBALES
───────────────────────────────────────────────────────────── */
.section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.15;
}
.section-sub {
  font-size: .9rem;
  color: var(--texto2);
  margin-top: .5rem;
}
.max-w { max-width: 1200px; margin: 0 auto; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-red), transparent);
}

.grad-radial-red {
  background: radial-gradient(ellipse at center, rgba(232, 0, 26, .12) 0%, transparent 70%);
}
.grad-radial-oro {
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, .1) 0%, transparent 70%);
}

.grain-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}

/* Tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, .95);
  color: #e5e7eb;
  font-size: .72rem;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
  padding: .35rem .7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* Flash messages */
.flash {
  animation: fadeInDown .35s ease both;
  border-radius: 10px;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .875rem;
  font-weight: 500;
}
.flash-success { background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .3); color: #34d399; }
.flash-error   { background: rgba(232, 0, 26, .12);   border: 1px solid rgba(232, 0, 26, .3);   color: #fb7185; }
.flash-info    { background: rgba(59, 130, 246, .12);  border: 1px solid rgba(59, 130, 246, .3);  color: #93c5fd; }
.flash-warning { background: rgba(245, 158, 11, .12);  border: 1px solid rgba(245, 158, 11, .3);  color: #fcd34d; }

/* Transición de página */
.page-enter { animation: fadeInUp .4s ease both; }

/* Spinner de carga */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255, 255, 255, .15);
  border-top-color: var(--oro);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────────────────────
   25. ANIMACIONES GLOBALES
───────────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.animate-fade-in       { animation: fadeIn .35s ease both; }
.animate-fade-in-down  { animation: fadeInDown .4s ease both; }
.animate-fade-in-up    { animation: fadeInUp .45s ease both; }
.animate-slide-in-left { animation: slideInLeft .4s ease both; }
.animate-float         { animation: float 6s ease-in-out infinite; }

/* ─────────────────────────────────────────────────────────────
   26. ERROR PAGES (404, 500)
───────────────────────────────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 2rem;
  gap: 1rem;
}
.error-code {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  opacity: .85;
}
.error-title { font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; color: var(--blanco); }
.error-msg   { font-size: .9rem; color: var(--texto2); max-width: 380px; line-height: 1.7; }

/* ─────────────────────────────────────────────────────────────
   27. RESPONSIVE HELPERS
───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
  .cat-sidebar { position: static; }
  .prod-nombre { font-size: 1rem; }
}
@media (min-width: 641px) {
  .show-mobile { display: none !important; }
}
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .cat-layout    { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   28. WHATSAPP FLOAT BUTTON (global)
───────────────────────────────────────────────────────────── */
.wsp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 800;
  width: 52px; height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  transition: transform .2s, box-shadow .2s;
  color: #fff;
}
.wsp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .55);
}
.wsp-float svg { width: 26px; height: 26px; }
