﻿/* ═══════════════════════════════════════════════════════
   PangaStore — Design System
   Palette: Violet #6D28D9 · Orange #F97316 · Pink #EC4899
═══════════════════════════════════════════════════════ */
:root {
  --violet: #6D28D9;
  --violet-dark: #4C1D95;
  --violet-light: #EDE9FE;
  --orange: #F97316;
  --orange-light: #FFF7ED;
  --pink: #EC4899;
  --teal: #0D9488;
  --grad: linear-gradient(135deg, #6D28D9 0%, #EC4899 50%, #F97316 100%);
  --grad-h: linear-gradient(135deg, #5B21B6 0%, #DB2777 50%, #EA580C 100%);
  --bg: #F8F7FF;
  --surface: #FFFFFF;
  --surface2: #F3F0FF;
  --border: #E5E1F7;
  --text: #1E1B4B;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --shadow-sm: 0 1px 4px rgba(109,40,217,.06), 0 1px 2px rgba(0,0,0,.03);
  --shadow: 0 4px 20px rgba(109,40,217,.09), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 40px rgba(109,40,217,.14), 0 4px 16px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 60px rgba(109,40,217,.18), 0 8px 24px rgba(0,0,0,.08);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --nav-h: 68px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; margin: 0; padding: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #E5E1F7; }
::-webkit-scrollbar-thumb { background: #9B7FD4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7C3AED; }

/* ── TYPOGRAPHY ────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; color: var(--text); }
.text-gradient { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }

/* ── LAYOUT ─────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.navbar .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav-logo svg { height: 40px; width: auto; }
.nav-search { flex: 1; max-width: 480px; }
.nav-search form { position: relative; }
.nav-search input {
  width: 100%; padding: 10px 44px 10px 18px;
  border: 2px solid var(--border); border-radius: var(--radius-full);
  background: var(--surface2); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.nav-search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(109,40,217,.1); }
.nav-search button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: var(--grad); border: none; border-radius: 50%;
  width: 30px; height: 30px; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-full);
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link.active { background: var(--violet-light); color: var(--violet); }
.nav-cart {
  position: relative; background: var(--grad); color: #fff;
  border-radius: var(--radius-full); padding: 8px 18px;
  font-weight: 600; display: flex; align-items: center; gap: 8px;
  transition: opacity .2s, transform .2s;
}
.nav-cart:hover { opacity: .9; transform: translateY(-1px); }
.cart-badge {
  background: #fff; color: var(--violet); font-size: .75rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-hamburger { display: none; background: none; border: none; padding: 8px; }

/* ── HERO / BANNER ──────────────────────────────────── */
.hero-slider { position: relative; display: grid; overflow: hidden; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: #4C1D95; }
.hero-slide {
  grid-area: 1 / 1;
  width: 100%;
  display: flex; align-items: center;
  background: var(--grad); color: #fff; padding: 60px;
  background-size: cover; background-position: center center;
  background-repeat: no-repeat;
  opacity: 0; pointer-events: none;
  transition: opacity .75s ease;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(40,5,90,.88) 0%, rgba(80,20,160,.72) 40%, rgba(109,40,217,.65) 70%, rgba(109,40,217,.60) 100%);
  z-index: 0;
}
.hero-slide .hero-content { position: relative; z-index: 1; }
.hero-content { position: relative; max-width: 640px; }
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.9);
  margin-bottom: 28px;
  line-height: 1.6;
}
.slider-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .35s ease; }
.slider-dot.active { width: 28px; border-radius: 4px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.5); }
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(255,255,255,.18); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 1.6rem; line-height: 1; backdrop-filter: blur(4px);
  transition: background .2s;
}
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,.35); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-full); font-weight: 600; font-size: .95rem; border: none; transition: all .2s; cursor: pointer; white-space: nowrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, #8B5CF6 50%, var(--pink) 100%);
  background-size: 200% 200%;
  animation: gradShift 4s ease infinite;
  border: none; color: #fff;
  box-shadow: 0 4px 15px rgba(109,40,217,.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(109,40,217,.5);
  transform: translateY(-2px);
}
@keyframes gradShift {
  0%,100% { background-position: left center; }
  50% { background-position: right center; }
}
.btn-outline { background: transparent; border: 2px solid var(--violet); color: var(--violet); }
.btn-outline:hover { background: var(--violet-light); }
.btn-white { background: #fff; color: var(--violet); }
.btn-white:hover { background: var(--violet-light); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1DA851; transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(109,40,217,.06);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(109,40,217,.14);
}
.card-body { padding: 18px; }

/* ── PRODUCTO CARD ───────────────────────────────────── */
.prod-card { position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prod-card-img { aspect-ratio: 1; overflow: hidden; background: var(--surface2); position: relative; }
.prod-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.prod-card:hover .prod-card-img img { transform: scale(1.09); }
.prod-badge { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-full); font-size: .75rem; font-weight: 700; line-height: 1; }
.badge-oferta { background: #EF4444; color: #fff; }
.badge-nuevo { background: var(--violet); color: #fff; }
.badge-combo { background: var(--orange); color: #fff; }
.prod-card-body { padding: 14px; }
.prod-card-cat { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.prod-card-name { font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.prod-card-prices { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-actual { font-size: 1.2rem; font-weight: 800; color: var(--violet); }
.price-original { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; }
.price-descuento { font-size: .75rem; font-weight: 700; color: #EF4444; background: #FEF2F2; padding: 2px 6px; border-radius: 4px; }
.prod-card-actions { padding: 0 14px 14px; display: flex; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.prod-card:hover .prod-card-actions { opacity: 1; transform: translateY(0); }
.btn-add { flex: 1; }
.btn-fav { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); background: none; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all .2s; }
.btn-fav:hover { border-color: var(--pink); color: var(--pink); background: #FDF2F8; }

/* ── COUNTDOWN (shared base — usado por flash banner strip) ── */
.countdown-timer { display: flex; align-items: center; gap: 4px; }
.cd-unit { text-align: center; background: rgba(255,255,255,.15); border-radius: var(--radius-sm); padding: 4px 8px; min-width: 40px; }
.cd-num { font-size: 1.1rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.cd-label { font-size: .55rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-top: 1px; color: #fff; }
.cd-sep { font-size: 1.1rem; font-weight: 800; opacity: .6; color: #fff; }

/* ── FLASH BANNER STRIP ───────────────────────────────── */
.flash-banner-strip { background: linear-gradient(90deg,#7C3AED 0%,#F97316 100%); padding: 10px 0; }
.flash-banner-inner { display: flex; align-items: center; gap: 16px; overflow: hidden; }
.flash-banner-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.flash-banner-label { font-size: .95rem; font-weight: 800; color: #fff; white-space: nowrap; letter-spacing: -.01em; }
.flash-cd { margin: 0; }
.flash-banner-products { overflow: hidden; flex: 1; mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%); }
.flash-ticker { display: flex; gap: 10px; width: max-content; animation-name: flash-scroll; animation-timing-function: linear; animation-iteration-count: infinite; padding: 4px 0; /* animation-duration set via inline style from PHP config */ }
.flash-ticker:hover { animation-play-state: paused; }
@keyframes flash-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.flash-prod-chip { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 10px; padding: 6px 10px; text-decoration: none; flex-shrink: 0; transition: background .15s; }
.flash-prod-chip:hover { background: rgba(255,255,255,.32); }
.flash-prod-chip img, .flash-prod-noimg { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.flash-prod-info { display: flex; flex-direction: column; gap: 2px; }
.flash-prod-name { font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.flash-prod-prices { display: flex; align-items: center; gap: 6px; }
.flash-prod-price { font-size: .88rem; font-weight: 800; color: #FCD34D; }
.flash-prod-pct { font-size: .7rem; background: #EF4444; color: #fff; border-radius: 4px; padding: 1px 5px; font-weight: 700; }
.flash-banner-cta { flex-shrink: 0; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: .82rem; font-weight: 700; padding: 7px 14px; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.flash-banner-cta:hover { background: rgba(255,255,255,.35); color: #fff; }

/* ── COMBO BANNERS GRID ───────────────────────────────── */
.combo-banners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.combo-banner { display: flex; align-items: center; border-radius: 16px; overflow: hidden; min-height: 140px; position: relative; }
.combo-banner-body { flex: 1; padding: 20px; }
.combo-banner-tag { display: inline-block; background: rgba(255,255,255,.25); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; padding: 2px 8px; border-radius: 99px; margin-bottom: 6px; }
.combo-banner-name { font-size: 1rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 4px; }
.combo-banner-items { font-size: .75rem; color: rgba(255,255,255,.75); margin-bottom: 10px; }
.combo-banner-pricing { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.combo-banner-price { font-size: 1.4rem; font-weight: 800; color: #fff; }
.combo-banner-orig { font-size: .82rem; color: rgba(255,255,255,.6); text-decoration: line-through; }
.combo-banner-save { font-size: .72rem; background: rgba(255,255,255,.25); color: #fff; border-radius: 99px; padding: 2px 8px; font-weight: 700; }
.combo-banner-btn { background: rgba(255,255,255,.9); color: #1E1B4B; border: none; font-size: .8rem; font-weight: 700; padding: 7px 14px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.combo-banner-btn:hover { background: #fff; }
.combo-banner-link { display: inline-flex; align-items: center; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: 8px; text-decoration: none; transition: background .15s; }
.combo-banner-link:hover { background: rgba(255,255,255,.32); color: #fff; }
.combo-banner { position: relative; overflow: hidden; min-height: 160px; }
.combo-banner-img { position: absolute; right: 0; top: 0; bottom: 0; width: 48%; overflow: hidden; border-radius: 0 16px 16px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.7) 28%, rgba(0,0,0,1) 55%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.7) 28%, rgba(0,0,0,1) 55%); }
.combo-banner-img img { width: 100%; height: 100%; object-fit: cover; }
.combo-banner-emoji { position: absolute; right: 0; top: 0; bottom: 0; width: 120px; display: flex; align-items: center; justify-content: center; font-size: 5.5rem; opacity: .25; }
.combo-banner-body { padding-right: 50%; }

/* ── COMBO CARD (página /combos) ─────────────────────── */
.combo-card { background: linear-gradient(135deg,#FFF7ED,#FFFBEB); border: 2px solid var(--orange); }
.combo-savings { background: var(--orange); color: #fff; border-radius: var(--radius-full); padding: 4px 12px; font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

/* ── SECTION HEADERS ─────────────────────────────────── */
.section { padding: 56px 0; }
.section-header { text-align:center; margin-bottom:40px; }
.section-header h2 { font-size:clamp(1.6rem,3vw,2.4rem); font-weight:800; margin-bottom:10px; letter-spacing:-0.03em; }
.section-header p { color:var(--text-muted); font-size:1.05rem; max-width:520px; margin:0 auto; }
.section-eyebrow {
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 14px; border-radius:50px;
  background:linear-gradient(135deg,rgba(109,40,217,.1),rgba(236,72,153,.1));
  color:var(--violet); font-size:.8rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  margin-bottom:14px;
}

/* ── CATEGORY PILLS ──────────────────────────────────── */
.cat-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-pill { padding: 8px 18px; border-radius: var(--radius-full); border: 2px solid var(--border); font-size: .9rem; font-weight: 500; color: var(--text-muted); background: var(--surface); transition: all .2s; cursor: pointer; }
.cat-pill:hover, .cat-pill.active { background: var(--violet); border-color: var(--violet); color: #fff; }

/* ── FILTROS SIDEBAR ─────────────────────────────────── */
.catalogo-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.catalogo-layout > * { min-width: 0; }
.filtros-panel { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 84px; }
.filtros-panel h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.filtro-group { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.filtro-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filtro-group > label:not(.filtro-check) { font-size: .7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; display: block; }
.filtro-check { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: .88rem; font-weight: 500; color: var(--text); transition: background .15s; text-transform: none; letter-spacing: 0; }
.filtro-check:hover { background: var(--surface2); }
.filtro-check input[type=checkbox],
.filtro-check input[type=radio] { accent-color: var(--violet); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.range-group { display: flex; gap: 8px; align-items: center; }
.range-group input { flex: 1; border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: .88rem; color: var(--text); background: var(--bg); min-width: 0; }
.range-group input:focus { outline: none; border-color: var(--violet); }
.range-group input::placeholder { color: var(--text-muted); }

/* ── PRODUCT GRID ─────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* ── PRODUCT DETAIL ──────────────────────────────────── */
.prod-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.prod-gallery { position: sticky; top: 84px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; max-height: 440px; background: var(--surface2); margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
.gallery-thumb.active { border-color: var(--violet); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-info h1 { font-size: 1.6rem; margin-bottom: 8px; }
.prod-cat-link { color: var(--violet); font-size: .85rem; font-weight: 500; }
.prod-rating { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.stars { color: #F59E0B; font-size: 1rem; letter-spacing: 1px; }
.rating-count { font-size: .85rem; color: var(--text-muted); }
.prod-price-block { margin: 20px 0; padding: 20px; background: var(--surface2); border-radius: var(--radius); }
.prod-price-main { font-size: 2.2rem; font-weight: 800; color: var(--violet); }
.prod-qty { display: flex; align-items: center; gap: 0; border: 2px solid var(--border); border-radius: var(--radius-full); overflow: hidden; width: fit-content; margin-bottom: 16px; }
.qty-btn { width: 40px; height: 40px; border: none; background: none; font-size: 1.2rem; color: var(--violet); font-weight: 700; transition: background .15s; }
.qty-btn:hover { background: var(--violet-light); }
.qty-val { width: 48px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.tab-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn { padding: 10px 20px; font-weight: 600; font-size: .95rem; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; background: none; border-top: none; border-left: none; border-right: none; transition: all .2s; }
.tab-btn.active { color: var(--violet); border-bottom-color: var(--violet); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── REVIEWS ─────────────────────────────────────────── */
.review-card { background: var(--surface2); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.review-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 8px; }
.review-author { font-weight: 600; }
.review-date { font-size: .8rem; color: var(--text-muted); }
.review-photos { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.review-photo { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; cursor: pointer; }
.review-form { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 24px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-control { width: 100%; border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .95rem; transition: border-color .2s; }
.form-control:focus { outline: none; border-color: var(--violet); }
select.form-control { cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.star-select { display: flex; gap: 6px; font-size: 1.8rem; cursor: pointer; }
.star-select span { color: var(--border); transition: color .15s; }
.star-select span.active, .star-select span:hover { color: #F59E0B; }

/* ── CART ────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-item { display: flex; gap: 16px; padding: 20px; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 90px; height: 90px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--surface2); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 1.1rem; font-weight: 800; color: var(--violet); }
.cart-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: .85rem; margin-top: 4px; transition: color .2s; }
.cart-item-remove:hover { color: #EF4444; }
.cart-summary { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 84px; }
.cart-summary h3 { font-size: 1.1rem; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; }
.summary-row.total { font-size: 1.2rem; font-weight: 800; color: var(--violet); border-top: 2px solid var(--border); margin-top: 8px; padding-top: 16px; }
.envio-form { background: var(--surface2); border-radius: var(--radius-sm); padding: 16px; margin: 16px 0; }
.envio-form h4 { font-size: .9rem; font-weight: 600; margin-bottom: 12px; }

/* ── CHECKOUT ────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; }
.checkout-section { background: var(--surface); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.checkout-section h3 { font-size: 1.1rem; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 14px; }
.metodos-pago { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.metodo-btn { border: 2px solid var(--border); border-radius: var(--radius); padding: 16px 12px; text-align: center; cursor: pointer; transition: all .2s; background: none; }
.metodo-btn.active { border-color: var(--violet); background: var(--violet-light); }
.metodo-btn svg { width: 32px; height: 32px; margin: 0 auto 6px; }
.metodo-btn span { font-size: .85rem; font-weight: 600; display: block; }
.pago-info { background: var(--surface2); border-radius: var(--radius-sm); padding: 16px; margin-top: 12px; font-size: .9rem; line-height: 1.7; }

/* ── ACCOUNT ─────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.account-nav { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: 84px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem; color: var(--text-muted); transition: all .2s; margin-bottom: 4px; }
.account-nav a:hover, .account-nav a.active { background: var(--violet-light); color: var(--violet); font-weight: 600; }
.pedido-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.estado-badge { padding: 4px 12px; border-radius: var(--radius-full); font-size: .8rem; font-weight: 700; }
.estado-pendiente { background: #FEF3C7; color: #D97706; }
.estado-confirmado { background: #DBEAFE; color: #2563EB; }
.estado-preparando { background: #EDE9FE; color: var(--violet); }
.estado-enviado { background: #D1FAE5; color: #059669; }
.estado-entregado { background: #D1FAE5; color: #059669; }
.estado-cancelado { background: #FEE2E2; color: #DC2626; }

/* ── AUTH FORMS ──────────────────────────────────────── */
.auth-wrapper { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-card h2 { text-align: center; margin-bottom: 24px; font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.form-err { color: #EF4444; font-size: .85rem; margin-top: 4px; }

/* ── TOAST ───────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--text); color: #fff; padding: 14px 20px; border-radius: var(--radius); font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; max-width: 320px; animation: slideUp .3s ease; }
.toast.success { background: #059669; }
.toast.error { background: #DC2626; }
.toast.info { background: var(--violet); }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ── FOOTER ──────────────────────────────────────────── */
footer { background: #1E1B4B; color: rgba(255,255,255,.85); padding: 56px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { font-size: .9rem; opacity: .75; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); font-size: .9rem; padding: 3px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; opacity: .6; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.social-link:hover { background: var(--violet); }

/* ── BREADCRUMB ──────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-muted); padding: 16px 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--violet); }
.breadcrumb-sep { opacity: .4; }

/* ── EMPTY STATE ─────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state svg { width: 80px; height: 80px; color: var(--border); margin: 0 auto 20px; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ── VOLUME PRICING TABLE ───────────────────────────── */
.vol-pricing-table { background:#F0FDF4; border:1.5px solid #A7F3D0; border-radius:10px; padding:12px 14px; margin-bottom:16px; }
.vol-pricing-title { font-size:.8rem; font-weight:700; color:#065F46; margin-bottom:8px; }
.vol-pricing-table table { width:100%; border-collapse:collapse; font-size:.82rem; }
.vol-pricing-table th { text-align:left; color:#064E3B; font-weight:700; padding:3px 0; border-bottom:1px solid #A7F3D0; }
.vol-pricing-table td { padding:4px 0; border-bottom:1px solid #D1FAE5; color:var(--text); }
.vol-pricing-table tr:last-child td { border-bottom:none; }

/* ── ADMIN ───────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: linear-gradient(180deg,#1E1B4B 0%,#2D2A6E 100%); color: #fff; padding: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,.18); }
.admin-logo { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: .88rem; color: rgba(255,255,255,.65); transition: all .18s; border-left: 3px solid transparent; border-radius: 0; margin: 1px 0; }
.admin-nav-item:hover { background: rgba(109,40,217,.25); color: #fff; border-left-color: rgba(109,40,217,.6); }
.admin-nav-item.active { background: rgba(109,40,217,.35); color: #fff; border-left-color: var(--violet); font-weight: 600; }
.admin-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .8; }
.admin-nav-item.active svg { opacity: 1; }
.admin-nav-section { padding: 14px 20px 4px; font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.3); font-weight: 700; }
.admin-main { background: #EEEDF8; }
.admin-topbar { background: #fff; padding: 0 28px; height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(109,40,217,.06); }
.admin-topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.admin-topbar-right { display: flex; align-items: center; gap: 16px; }
.admin-user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 50px; background: var(--surface2); border: 1px solid var(--border); }
.admin-user-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#6D28D9,#EC4899); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.admin-user-name { font-size: .84rem; font-weight: 600; color: var(--text); }
.admin-content { padding: 24px 28px; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 12px rgba(109,40,217,.08); border: 1px solid rgba(109,40,217,.06); }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.admin-card-header h3 { font-size: 1rem; font-weight: 700; }

/* KPI grid — professional tiles */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 2px 12px rgba(109,40,217,.08); border: 1px solid rgba(109,40,217,.06); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(109,40,217,.14); }
.kpi-card::after { content:''; position:absolute; right:-16px; top:-16px; width:70px; height:70px; border-radius:50%; opacity:.08; }
.kpi-card.violet::after { background: var(--violet); }
.kpi-card.orange::after { background: var(--orange); }
.kpi-card.pink::after { background: var(--pink); }
.kpi-card.teal::after { background: var(--teal); }
.kpi-icon-wrap { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 12px; }
.kpi-card.violet .kpi-icon-wrap { background: rgba(109,40,217,.12); }
.kpi-card.orange .kpi-icon-wrap { background: rgba(249,115,22,.12); }
.kpi-card.pink .kpi-icon-wrap { background: rgba(236,72,153,.12); }
.kpi-card.teal .kpi-icon-wrap { background: rgba(13,148,136,.12); }
.kpi-val { font-size: 1.7rem; font-weight: 800; margin-bottom: 3px; line-height: 1; }
.kpi-card.violet .kpi-val { color: var(--violet); }
.kpi-card.orange .kpi-val { color: var(--orange); }
.kpi-card.pink .kpi-val { color: var(--pink); }
.kpi-card.teal .kpi-val { color: var(--teal); }
.kpi-label { font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.kpi-delta { font-size: .76rem; margin-top: 8px; font-weight: 600; display: flex; align-items: center; gap: 3px; }
.kpi-delta.up { color: #10B981; }
.kpi-delta.warn { color: var(--orange); }
.kpi-delta.neutral { color: var(--text-muted); }

/* Badges de estado */
.estado-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 50px; font-size: .76rem; font-weight: 600; }
.estado-pendiente { background: #FEF3C7; color: #92400E; }
.estado-pagado { background: #DBEAFE; color: #1E40AF; }
.estado-enviado { background: #D1FAE5; color: #065F46; }
.estado-entregado { background: #D1FAE5; color: #065F46; }
.estado-cancelado { background: #FEE2E2; color: #991B1B; }
.estado-nuevo { background: #EDE9FE; color: #5B21B6; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; border-collapse: collapse; }
th { background: #F9FAFB; text-align: left; padding: 10px 16px; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 700; }
td { padding: 11px 16px; border-bottom: 1px solid #F3F4F6; font-size: .88rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFAFE; }
.table-img { width: 42px; height: 42px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface2); }

/* ── PAGINATION ──────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border); background: none; font-size: .9rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.page-btn:hover, .page-btn.active { background: var(--violet); border-color: var(--violet); color: #fff; }

/* ── UTILITIES ───────────────────────────────────────── */
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}
.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}
.p-4{padding:16px}.p-6{padding:24px}
.rounded{border-radius:var(--radius-sm)}.rounded-full{border-radius:var(--radius-full)}
.w-full{width:100%}.text-center{text-align:center}.hidden{display:none}
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 16px; }
.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid #059669; }
.alert-error { background: #FEE2E2; color: #991B1B; border-left: 4px solid #DC2626; }
.alert-info { background: var(--violet-light); color: var(--violet-dark); border-left: 4px solid var(--violet); }

/* ── ADMIN BADGES ───────────────────────────────────── */
.badge-pill { display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:50px;font-size:.72rem;font-weight:700;letter-spacing:.02em; }
.badge-active { background:#D1FAE5;color:#065F46; }
.badge-inactive { background:#FEE2E2;color:#991B1B; }
.badge-combo { background:#FEF3C7;color:#92400E; }
.admin-page-header { display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;padding-bottom:16px;border-bottom:1px solid var(--border); }
.admin-page-header h2 { font-size:1.35rem;font-weight:800;color:var(--text); }
.admin-page-header p { font-size:.83rem;color:var(--text-muted);margin-top:2px; }
.btn-delete { background:#FEE2E2;color:#DC2626;border:1px solid #FECACA;border-radius:8px;padding:4px 10px;font-size:.76rem;font-weight:600;cursor:pointer;transition:background .15s; }
.btn-delete:hover { background:#FCA5A5; }


/* ── RESPONSIVE ──────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════
   NUEVOS COMPONENTES MOBILE
   ═══════════════════════════════════════════════════════ */

/* Filtros: overlay oscuro para bottom-sheet mobile */
.filtros-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 300;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.filtros-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Bottom Navigation Bar */
.bottom-nav-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--border);
  height: 60px;
  align-items: stretch;
  box-shadow: 0 -4px 20px rgba(109,40,217,.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: .6rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .02em;
  padding: 6px 4px;
  position: relative;
  transition: color .18s;
  min-height: 60px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
}
.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform .18s;
}
.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--violet); }
.bottom-nav-item.active svg { transform: scale(1.12); }
.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: var(--grad);
}
.bottom-nav-badge {
  position: absolute;
  top: 7px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  background: var(--orange);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid #fff;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════
   1024px — TABLET
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3,1fr); }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .catalogo-layout { grid-template-columns: 1fr; }
  .filtros-panel {
    display: none !important;
    position: fixed !important;
    top: 0; left: 0; bottom: 0; right: auto !important;
    width: min(300px, 88vw);
    max-height: none !important;
    z-index: 310;
    overflow-y: auto;
    border-radius: 0 20px 20px 0 !important;
    transform: none !important;
    transition: none !important;
    padding: 0 !important;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  .filtros-panel.open {
    display: block !important;
    animation: slideInLeft .28s cubic-bezier(.4,0,.2,1) forwards;
  }
  .filtros-panel.closing {
    display: block !important;
    animation: slideOutLeft .25s cubic-bezier(.4,0,.2,1) forwards;
  }
  @keyframes slideInLeft {
    from { transform: translateX(-110%); }
    to   { transform: translateX(0); }
  }
  @keyframes slideOutLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-110%); }
  }
  .filtros-panel::before { display: none !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-content-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 44px 0; }
  .combo-banner-body { padding-right: 42%; }
  .nosotros-section,
  .nosotros-section-contact,
  .combos-hero-section,
  .combos-cta-section { padding: 40px 0; }
}

/* ── WA FLOAT & CHAT BUBBLE ─────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 450;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  text-decoration: none; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg, .wa-float i { width: 28px; height: 28px; font-size: 1.6rem; }

.chat-bubble {
  position: fixed; bottom: 24px; left: 24px; z-index: 450;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad, linear-gradient(135deg,#6d28d9,#4f46e5)); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(109,40,217,.35); font-size: 1.4rem;
  transition: transform .2s, background .2s;
}
.chat-bubble:hover { transform: scale(1.08); }

.chat-window {
  position: fixed; bottom: 92px; left: 24px; z-index: 449;
  width: 360px; max-width: calc(100vw - 48px);
  background: var(--surface, #fff); border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  display: none; flex-direction: column; overflow: hidden;
  border: 1.5px solid var(--border, #e5e7eb); max-height: 520px;
}
.chat-window.open { display: flex; }

/* ── CHAT NOTIFICATION BADGE ─────────────────────────── */
.chat-notif {
  display: none; position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #ef4444; color: #fff;
  font-size: .65rem; font-weight: 700;
  align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.chat-notif.show { display: flex; }

/* ── CHAT HEADER ─────────────────────────────────────── */
.chat-hdr {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff; flex-shrink: 0;
}
.chat-hdr-info { flex: 1; min-width: 0; }
.chat-hdr-name { font-size: .9rem; font-weight: 700; color: #fff; }
.chat-hdr-status { font-size: .72rem; color: rgba(255,255,255,.8); margin-top: 1px; }
.chat-hdr-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: none; cursor: pointer;
  color: #fff; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.chat-hdr-close:hover { background: rgba(255,255,255,.35); }

/* ── CHAT MESSAGES ───────────────────────────────────── */
.chat-msgs {
  flex: 1; overflow-y: auto; padding: 14px 14px 8px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.chat-msgs::-webkit-scrollbar { width: 4px; }
.chat-msgs::-webkit-scrollbar-thumb { background: var(--border, #e5e7eb); border-radius: 4px; }

.chat-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.chat-msg.bot { flex-direction: row; }
.chat-msg.user { flex-direction: row-reverse; }

.chat-msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.chat-bubble-text {
  padding: 9px 13px; border-radius: 14px;
  font-size: .85rem; line-height: 1.45;
  max-width: 78%;
}
.chat-msg.bot .chat-bubble-text {
  background: var(--surface2, #f3f4f6); color: var(--text, #111);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-bubble-text {
  background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff;
  border-bottom-right-radius: 4px;
}

/* Quick-action chips */
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-chip {
  padding: 5px 12px; border-radius: 20px; font-size: .78rem; cursor: pointer;
  background: #ede9fe; color: #6d28d9; border: none; font-weight: 600;
  transition: background .15s;
}
.chat-chip:hover { background: #ddd6fe; }

/* Typing indicator */
.chat-typing {
  display: flex; gap: 4px; align-items: center;
  padding: 9px 13px; background: var(--surface2, #f3f4f6);
  border-radius: 14px; border-bottom-left-radius: 4px;
  width: fit-content;
}
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #9ca3af; animation: chatDot 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatDot { 0%,80%,100%{transform:scale(1);opacity:.5} 40%{transform:scale(1.3);opacity:1} }

/* Product card in chat */
.chat-product-card {
  border: 1.5px solid var(--border, #e5e7eb); border-radius: 10px;
  overflow: hidden; text-decoration: none; color: inherit;
  display: flex; gap: 10px; align-items: center;
  padding: 8px; max-width: 78%; background: var(--surface, #fff);
  transition: box-shadow .15s;
}
.chat-product-card:hover { box-shadow: 0 2px 12px rgba(109,40,217,.15); }
.chat-product-img { width: 52px; height: 52px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.chat-product-info { min-width: 0; }
.chat-product-name { font-size: .8rem; font-weight: 600; color: var(--text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-product-price { font-size: .82rem; color: #6d28d9; font-weight: 700; margin-top: 2px; }

/* ── CHAT INPUT AREA ─────────────────────────────────── */
.chat-input-area {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px; border-top: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #fff); flex-shrink: 0;
}
.chat-input {
  flex: 1; border: 1.5px solid var(--border, #e5e7eb); border-radius: 20px;
  padding: 8px 14px; font-size: .85rem; resize: none;
  background: var(--surface2, #f9fafb); color: var(--text, #111);
  outline: none; line-height: 1.4; max-height: 80px; overflow-y: auto;
  transition: border-color .15s;
}
.chat-input:focus { border-color: #7c3aed; }
.chat-send {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s;
}
.chat-send:hover { opacity: .85; }
.chat-send:disabled { opacity: .45; cursor: default; }

/* ═══════════════════════════════════════════════════════
   768px — MOBILE PRINCIPAL
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav-bar { display: flex; }
  .filtros-overlay { display: block; }
  /* filtros-panel drawer manejado por @media(max-width:1024px) arriba */
  .filtros-toggle-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: .88rem; font-weight: 600; color: var(--text);
    cursor: pointer; transition: border-color .18s, color .18s;
    min-height: 44px;
  }
  .filtros-toggle-btn:hover,
  .filtros-toggle-btn.active { border-color: var(--violet); color: var(--violet); }
  .navbar { height: auto; }
  .navbar .container { flex-wrap: wrap; gap: 0; padding-top: 10px; padding-bottom: 8px; row-gap: 8px; height: auto; }
  .nav-logo { order: 1; flex-shrink: 0; }
  .nav-links { order: 2; margin-left: auto; gap: 4px; }
  .nav-link { padding: 8px; border-radius: 50%; width: 40px; height: 40px; justify-content: center; }
  .nav-link span { display: none; }
  .nav-search { order: 3; flex: 0 0 100%; max-width: 100%; display: block; }
  .nav-search input { font-size: .9rem; }
  .nav-hamburger { display: flex; align-items: center; justify-content: center; order: 2; }
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; row-gap: 8px; }
  .site-logo { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .search-wrap, .header-search { order: 3; flex: 0 0 100%; max-width: 100%; }
  .mobile-nav-search { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .prod-detail { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .metodos-pago { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2,1fr) !important; gap: 12px; }
  /* ── Combobox ordenar compacto ── */
  .orden-select { max-width: 160px; }
  .prod-card-img { aspect-ratio: 1; }
  .prod-card-actions { opacity: 1; transform: translateY(0); padding: 0 10px 12px; gap: 6px; }
  .prod-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .prod-card:hover .prod-card-img img { transform: none; }
  .btn-add { min-height: 44px; font-size: .85rem; padding: 10px 12px; justify-content: center; }
  .btn-fav { width: 44px; height: 44px; flex-shrink: 0; }
  .hero-slider { min-height: 280px; border-radius: 0; }
  .hero-slide { padding: 32px 20px; }
  .slider-prev, .slider-next { display: none !important; }
  .hero-content h1 { font-size: 1.75rem; }
  .hero-content p { font-size: .95rem; margin-bottom: 20px; }
  .slider-prev, .slider-next { width: 36px; height: 36px; font-size: 1.1rem; }
  .flash-banner-strip { overflow: hidden; }
  .flash-banner-inner { flex-direction: column; gap: 8px; align-items: flex-start; }
  .flash-banner-left { width: 100%; justify-content: space-between; }
  .flash-banner-products {
    width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; mask-image: none; -webkit-mask-image: none;
    padding-bottom: 4px; scrollbar-width: none; -ms-overflow-style: none;
  }
  .flash-banner-products::-webkit-scrollbar { display: none; }
  .flash-ticker { animation: none; width: auto; flex-wrap: nowrap; }
  .flash-prod-chip { scroll-snap-align: start; flex-shrink: 0; }
  .flash-banner-cta { display: none; }
  .flash-banner-label { font-size: .8rem; }
  .combo-banners-grid {
    display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .combo-banners-grid::-webkit-scrollbar { display: none; }
  .combo-banner { flex: 0 0 80vw; max-width: 320px; scroll-snap-align: start; min-height: 140px; }
  .combo-banner-body { padding-right: 38%; }
  .combo-banner-img { width: 38%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-content-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 16px 0; }
  .footer-el { padding: 36px 0 0; }
  footer { padding: 40px 0 0; margin-top: 60px; }
  .section { padding: 32px 0; }
  .section-header { margin-bottom: 24px; }
  .container { padding: 0 16px; }
  .toast-container { left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .toast { max-width: 100%; }
  .mc-drawer { width: 100%; max-width: 100%; }
  .mc-footer { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-topbar { padding: 0 16px; }
  .admin-content { padding: 16px; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .cart-item { gap: 12px; padding: 14px; }
  .cart-item-img { width: 72px; height: 72px; }
  .cart-item-img-wrap { width: 72px; height: 72px; }
  .cart-summary, .account-nav { position: static; }
  .prod-gallery { position: static; }
  .prod-price-main { font-size: 1.8rem; }
  .prod-price-block { padding: 16px; }
  .checkout-section { padding: 20px 16px; }
  .auth-card { padding: 28px 20px; border-radius: var(--radius); }
  .tab-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; padding-bottom: 1px; scrollbar-width: none; }
  .tab-nav::-webkit-scrollbar { display: none; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .related-products { margin-top: 40px; padding-top: 32px; }
  .wa-float { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); right: 16px; width: 50px; height: 50px; }
  .chat-bubble { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); left: 16px; width: 50px; height: 50px; font-size: 1.3rem; }
  .chat-window { bottom: calc(132px + env(safe-area-inset-bottom, 0px)); left: 12px; width: calc(100vw - 24px); max-width: 100%; }
  .nosotros-section, .nosotros-section-contact { padding: 32px 0; }
  .nosotros-hero { padding: 28px 20px; }
  .nosotros-hero h1 { font-size: 1.7rem; }
  .nosotros-historia { grid-template-columns: 1fr; }
  .nosotros-avatar { display: none; }
  .nosotros-stats { grid-template-columns: repeat(2,1fr); padding: 24px 20px; gap: 16px; }
  .index-stats-section { padding: 28px 0; }
  .index-why-section { padding: 32px 0; }
  .index-wa-section { padding: 28px 0; }
  .combos-hero-section { padding: 36px 0; }
  .combos-cta-section { padding: 32px 0; }
  .trust-bar-container { gap: 16px; }
}

/* ═══════════════════════════════════════════════════════
   480px — MOVIL PEQUENO
   ═══════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 14px; }
  .prod-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .metodos-pago { grid-template-columns: repeat(2,1fr); }
  .kpi-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .container { padding: 0 12px; }
  .hero-slider { min-height: 220px; }
  .hero-slide { padding: 24px 16px; }
  .hero-content h1 { font-size: 1.45rem; }
  .hero-content p { font-size: .88rem; margin-bottom: 16px; }
  .slider-dots { bottom: 10px; }
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }
  .section { padding: 24px 0; }
  .section-header h2 { font-size: 1.3rem; }
  .section-header p { font-size: .88rem; }
  .flash-banner-strip { padding: 8px 0; }
  .flash-banner-label { font-size: .78rem; }
  .combo-banner { flex: 0 0 88vw; }
  .combo-banner-img { display: none; }
  .combo-banner-body { padding-right: 20px; }
  .prod-card-body { padding: 9px 9px 6px; }
  .prod-card-cat { font-size: .68rem; }
  .prod-card-name { font-size: .85rem; min-height: auto; }
  .price-actual { font-size: 1.05rem; }
  .price-original { font-size: .78rem; }
  .prod-card-actions { padding: 0 9px 10px; gap: 5px; }
  .btn-add { font-size: .8rem; padding: 9px 8px; min-height: 40px; }
  .btn-fav { width: 40px; height: 40px; }
  .prod-badge { top: 7px; left: 7px; }
  .prod-info h1 { font-size: 1.25rem; }
  .prod-price-main { font-size: 1.5rem; }
  .prod-price-block { padding: 14px; }
  .tab-btn { padding: 9px 12px; font-size: .82rem; }
  .checkout-section { padding: 14px; }
  .checkout-section h3 { font-size: .95rem; padding-bottom: 10px; margin-bottom: 14px; }
  .auth-card { padding: 24px 14px; border-radius: var(--radius); }
  .auth-card h2 { font-size: 1.3rem; }
  footer { padding: 32px 0 0; margin-top: 40px; }
  .footer-grid { gap: 18px; }
  .related-products { margin-top: 28px; padding-top: 24px; }
  .related-grid { gap: 10px; }
  .vol-pricing-table { padding: 10px 12px; }
  .vol-pricing-table table { font-size: .78rem; }
  .pedido-card { padding: 14px; }
  .kpi-val { font-size: 1.4rem; }
  .kpi-label { font-size: .75rem; }
  .nosotros-section, .nosotros-section-contact { padding: 20px 0; }
  .nosotros-hero { padding: 20px 16px; }
  .nosotros-hero h1 { font-size: 1.45rem; }
  .nosotros-stats { grid-template-columns: 1fr 1fr; padding: 18px 14px; }
  .index-stats-section { padding: 20px 0; }
  .index-why-section { padding: 24px 0; }
  .index-wa-section { padding: 20px 0; }
  .combos-hero-section { padding: 28px 0; }
  .combos-cta-section { padding: 24px 0; }
}

/* ═══════════════════════════════════════════════════════
   360px — MOVIL MUY ESTRECHO
   ═══════════════════════════════════════════════════════ */

@media (max-width: 360px) {
  .container { padding: 0 10px; }
  .bottom-nav-item { font-size: .52rem; gap: 2px; }
  .bottom-nav-item svg { width: 20px; height: 20px; }
  .nav-logo svg { height: 32px; }
  .nav-link { width: 36px; height: 36px; padding: 6px; }
  .hero-slider { min-height: 200px; }
  .hero-content h1 { font-size: 1.2rem; }
  .hero-content p { font-size: .82rem; }
  .slider-prev, .slider-next { width: 30px; height: 30px; font-size: .9rem; }
  .prod-grid { gap: 8px; }
  .prod-card-body { padding: 8px 8px 4px; }
  .prod-card-name { font-size: .8rem; }
  .price-actual { font-size: .98rem; }
  .prod-card-actions { padding: 0 8px 8px; gap: 4px; }
  .btn-add { font-size: .75rem; padding: 8px 6px; min-height: 38px; border-radius: 8px; }
  .btn-fav { width: 36px; height: 36px; border-radius: 8px; }
  .flash-banner-label { font-size: .72rem; }
  .cd-num { font-size: .9rem; }
  .cd-unit { min-width: 32px; padding: 3px 5px; }
  .combo-banner { flex: 0 0 92vw; min-height: 120px; }
  .combo-banner-name { font-size: .9rem; }
  .combo-banner-price { font-size: 1.2rem; }
  .prod-info h1 { font-size: 1.1rem; }
  .prod-price-main { font-size: 1.35rem; }
  .checkout-section { padding: 12px; }
  .auth-card { padding: 20px 12px; }
  .btn { font-size: .85rem; padding: 10px 16px; }
  .btn-lg { font-size: .95rem; padding: 12px 20px; }
  .toast { font-size: .82rem; padding: 12px 14px; }
  footer { padding: 28px 0 0; }
  .footer-col h4 { font-size: .82rem; }
  .footer-col a { font-size: .82rem; }
  .section-header h2 { font-size: 1.2rem; }
  .section { padding: 20px 0; }
}
/* ═══════════════════════════════════════════════════════
   MOBILE APP UX — mejoras táctiles
   ═══════════════════════════════════════════════════════ */

/* ── Botón Agregar siempre visible en touch ─────────── */
@media (max-width: 768px) {
  .prod-card-actions {
    opacity: 1 !important;
    transform: none !important;
    padding: 0 12px 12px;
  }
  .btn-add {
    min-height: 42px;
    font-size: .85rem;
    border-radius: 10px;
  }
  .prod-card-body { padding: 10px 12px 8px; }
  .prod-card-name { font-size: .84rem; min-height: auto; }
  .price-actual { font-size: 1.05rem; }
  .cats-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  .cat-card { padding: 18px 6px !important; border-radius: 14px; }
  .cat-card-icon { font-size: 1.85rem !important; }
  .cat-card-name { font-size: .75rem !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .trust-bar-item { font-size: .72rem; }
  .catalogo-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
}

/* ── Hero más app-like en mobile ─────────────────────── */
@media (max-width: 480px) {
  .hero-slider { border-radius: 0 !important; }
  .hero-content h1 { font-size: 1.55rem !important; }
  .hero-content p { font-size: .88rem !important; }
  .hero-content .btn { padding: 12px 22px; font-size: .9rem; }
}

/* ── Botones táctiles mínimos 44px ───────────────────── */
@media (max-width: 768px) {
  .btn { min-height: 44px; }
  .qty-btn { width: 48px; height: 48px; }
  .qty-val { font-size: 1rem; }
}
