/* =====================================================
   H & L ALIMCERV Group — Stylesheet
   Mobile-first, dark luxury theme, gold accents
   ===================================================== */

/* ── Variables base ─────────────────────────────────── */
:root {
  /* Accent (overridden by JS theme switcher) */
  --accent:        #c9a96e;
  --accent-light:  #e0c48a;
  --accent-dark:   #9a7a4a;
  --accent-rgb:    201,169,110;

  /* Gold (alias to accent for backwards compat) */
  --gold:        var(--accent);
  --gold-light:  var(--accent-light);
  --gold-dark:   var(--accent-dark);
  --border-gold: rgba(var(--accent-rgb),.3);
  --shadow-gold: 0 0 20px rgba(var(--accent-rgb),.25);

  /* Dark theme defaults */
  --bg-base:     #0f0d0b;
  --bg-surface:  #161310;
  --bg-card:     #1e1b17;
  --bg-card2:    #252118;
  --bg-input:    #2e2a23;
  --border:      #332e26;
  --text-primary:   #f2ede6;
  --text-secondary: #a8998a;
  --text-muted:     #6b5f52;

  /* Status colors */
  --green:  #4caf50;
  --red:    #f44336;
  --blue:   #2196f3;
  --orange: #ff9800;

  /* Shape */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
  --shadow:    0 8px 32px rgba(0,0,0,.5);

  --transition: .25s cubic-bezier(.4,0,.2,1);
  --topbar-h: 64px;
  --font-body:    'Montserrat', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-scale: 1;
}

/* ── LIGHT THEME ────────────────────────────────────── */
[data-theme="light"] {
  --bg-base:     #f5f2ee;
  --bg-surface:  #ede9e3;
  --bg-card:     #ffffff;
  --bg-card2:    #f8f5f0;
  --bg-input:    #eae6e0;
  --border:      #d4cfc8;
  --text-primary:   #1a1510;
  --text-secondary: #5a4f42;
  --text-muted:     #9a8e80;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow:    0 8px 32px rgba(0,0,0,.12);
}

/* ── ACCENT VARIANTS ────────────────────────────────── */
[data-accent="gold"] {
  --accent:       #c9a96e;
  --accent-light: #e0c48a;
  --accent-dark:  #9a7a4a;
  --accent-rgb:   201,169,110;
}
[data-accent="emerald"] {
  --accent:       #34d399;
  --accent-light: #6ee7b7;
  --accent-dark:  #059669;
  --accent-rgb:   52,211,153;
}
[data-accent="rose"] {
  --accent:       #f43f5e;
  --accent-light: #fb7185;
  --accent-dark:  #be123c;
  --accent-rgb:   244,63,94;
}
[data-accent="sky"] {
  --accent:       #38bdf8;
  --accent-light: #7dd3fc;
  --accent-dark:  #0284c7;
  --accent-rgb:   56,189,248;
}
[data-accent="violet"] {
  --accent:       #a78bfa;
  --accent-light: #c4b5fd;
  --accent-dark:  #7c3aed;
  --accent-rgb:   167,139,250;
}
[data-accent="amber"] {
  --accent:       #fbbf24;
  --accent-light: #fcd34d;
  --accent-dark:  #d97706;
  --accent-rgb:   251,191,36;
}

/* ── BORDER RADIUS VARIANTS ─────────────────────────── */
[data-radius="sharp"] {
  --radius-sm: 4px;
  --radius:    6px;
  --radius-lg: 10px;
}
[data-radius="round"] {
  --radius-sm: 16px;
  --radius:    24px;
  --radius-lg: 36px;
}

/* ── FONT SIZE VARIANTS ─────────────────────────────── */
[data-fontsize="small"]  { font-size: 14px; }
[data-fontsize="medium"] { font-size: 16px; }
[data-fontsize="large"]  { font-size: 18px; }

/* ── NO ANIMATIONS ──────────────────────────────────── */
[data-animations="off"] *,
[data-animations="off"] *::before,
[data-animations="off"] *::after {
  animation-duration: 0.001ms !important;
  transition-duration: 0.001ms !important;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea {
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.15);
}
select option { background: var(--bg-card2); }
ul { list-style: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Container ─────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Background — professional gradient ─────────────── */
body {
  background:
    radial-gradient(ellipse 100% 70% at 0% 0%,   rgba(40,20,6,.9)    0%, transparent 55%),
    radial-gradient(ellipse 80%  60% at 100% 5%,  rgba(20,10,3,.8)    0%, transparent 50%),
    radial-gradient(ellipse 60%  50% at 50% 100%, rgba(15,9,2,.7)     0%, transparent 55%),
    linear-gradient(160deg, #0d0804 0%, #080603 35%, #060404 65%, #040304 100%);
  background-attachment: fixed;
}

.bg-particles {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(201,169,110,.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(201,169,110,.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(201,169,110,.03) 0%, transparent 55%);
  pointer-events: none;
  animation: bgDrift 25s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  0%   { opacity: 1;    transform: scale(1); }
  50%  { opacity: .75;  transform: scale(1.03) translateX(10px); }
  100% { opacity: 1;    transform: scale(1); }
}
.bg-particles::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(201,169,110,.55) 0%, transparent 100%),
    radial-gradient(1px   1px   at 78% 15%, rgba(201,169,110,.45) 0%, transparent 100%),
    radial-gradient(1px   1px   at 45% 68%, rgba(201,169,110,.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 52%, rgba(201,169,110,.4)  0%, transparent 100%),
    radial-gradient(1px   1px   at 8%  85%, rgba(201,169,110,.3)  0%, transparent 100%),
    radial-gradient(1px   1px   at 60% 5%,  rgba(201,169,110,.25) 0%, transparent 100%),
    radial-gradient(1px   1px   at 33% 92%, rgba(201,169,110,.2)  0%, transparent 100%);
  animation: particleFloat 22s ease-in-out infinite alternate;
}
@keyframes particleFloat {
  0%   { transform: translateY(0) rotate(0deg)   scale(1); }
  50%  { transform: translateY(-12px) rotate(1deg) scale(1.01); }
  100% { transform: translateY(-22px) rotate(2.5deg) scale(1.02); }
}

/* ── Skip link ─────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #000; padding: .5rem 1.5rem;
  border-radius: var(--radius-sm); font-weight: 700; z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* ══════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════ */
.topbar {
  position: sticky; top: 0; z-index: 900;
  height: var(--topbar-h);
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.topbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.5); }
.topbar__inner { height: 100%; display: flex; align-items: center; gap: .75rem; }

.brand {
  display: flex; align-items: center; gap: .75rem;
  flex-shrink: 0; text-decoration: none;
}
.brand__logo-wrap {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--gold-dark);
  background: var(--bg-card);
}
.brand__img { width: 100%; height: 100%; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  color: var(--gold); line-height: 1.1; letter-spacing: .04em;
}
.brand__tag {
  font-size: .6rem; font-weight: 500; color: var(--text-muted);
  letter-spacing: .1em; text-transform: uppercase;
}

.topbar__search { flex: 1; max-width: 420px; margin: 0 auto; display: none; }
.topbar__search-inner {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 999px; padding: .4rem .9rem;
  transition: border-color var(--transition);
}
.topbar__search-inner:focus-within { border-color: var(--gold); }
.topbar__search-inner i { color: var(--text-muted); font-size: .85rem; flex-shrink: 0; }
.topbar__search-inner input { background: none; border: none; padding: 0; font-size: .88rem; width: 100%; }
.topbar__search-inner input:focus { box-shadow: none; }

.topbar__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

.icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; color: var(--text-primary); font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.icon-btn:hover { background: var(--bg-card); color: var(--gold); }
.badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; background: var(--gold);
  color: #000; font-size: .65rem; font-weight: 700;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; animation: pop .2s ease;
}
@keyframes pop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3)} }

.user-menu { position: relative; display: none; }
.user-menu__trigger {
  gap: .4rem; width: auto; padding: 0 .75rem; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: .82rem; color: var(--text-secondary); white-space: nowrap;
}
.user-menu__trigger:hover { border-color: var(--gold-dark); color: var(--gold); }
.user-menu__name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.user-menu__dropdown {
  position: absolute; top: calc(100% + .5rem); right: 0;
  width: 220px; background: var(--bg-card2);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); z-index: 100;
  transform-origin: top right; transform: scale(.9);
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.user-menu__dropdown.open { transform: scale(1); opacity: 1; visibility: visible; }
.user-menu__header { padding: .75rem 1rem; }
.user-menu__sep { border: none; border-top: 1px solid var(--border); }
.user-menu__item {
  display: flex; align-items: center; gap: .65rem;
  width: 100%; padding: .7rem 1rem;
  font-size: .85rem; color: var(--text-secondary);
  transition: background var(--transition), color var(--transition); text-align: left;
}
.user-menu__item:hover { background: var(--bg-input); color: var(--text-primary); }
.user-menu__item--admin { color: var(--gold); }
.user-menu__item--admin:hover { color: var(--gold-light); }
.user-menu__item--danger { color: var(--red); }
.user-menu__item i { width: 16px; text-align: center; }

.auth-btns { display: flex; align-items: center; gap: .5rem; }
.auth-btns span { display: none; }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-card); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center; overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url('img/arroz.jpg') center/cover no-repeat,
    linear-gradient(135deg, #0a0a0a 0%, #1a1008 100%);
  filter: brightness(.25) saturate(.8);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.88) 0%, rgba(10,8,2,.72) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.hero__content { flex: 1; max-width: 580px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(201,169,110,.1); border: 1px solid var(--border-gold);
  padding: .3rem .9rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 1rem; color: var(--text-primary);
}
.hero__title--accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__subtitle { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 2rem; }

.hero__search { margin-bottom: 1.5rem; }
.hero__search-wrap {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(201,169,110,.3);
  border-radius: 999px; padding: .35rem .35rem .35rem 1.1rem;
  backdrop-filter: blur(10px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hero__search-wrap:focus-within {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,169,110,.12);
}
.hero__search-wrap i { color: var(--text-muted); flex-shrink: 0; }
.hero__search-wrap input { background: none; border: none; flex: 1; font-size: .95rem; padding: .3rem; }
.hero__search-wrap input:focus { box-shadow: none; }

.hero__chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  padding: .35rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  font-size: .78rem; font-weight: 600; color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition);
}
.chip:hover { border-color: var(--gold-dark); color: var(--gold); }
.chip--active { background: var(--gold); border-color: var(--gold); color: #000; }

.hero__image-wrap { flex-shrink: 0; position: relative; display: none; }
.hero__float-card {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(201,169,110,.25);
  backdrop-filter: blur(12px); border-radius: var(--radius);
  padding: .6rem 1.1rem; font-size: .82rem; font-weight: 600; color: var(--gold);
  position: absolute; white-space: nowrap;
  animation: floatCard 4s ease-in-out infinite;
}
.hero__float-card--1 { top: -20px; left: -40px; animation-delay: 0s; }
.hero__float-card--2 { bottom: -10px; right: -20px; animation-delay: 2s; }
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.hero__wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero__wave svg { width: 100%; height: 60px; }

/* ══════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: 1.25rem 0;
}
.stats-bar__inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 1.5rem;
}
.stat-item { display: flex; align-items: center; gap: .75rem; font-size: .82rem; }
.stat-item i {
  font-size: 1.25rem; color: var(--gold); width: 36px; height: 36px;
  background: rgba(201,169,110,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.stat-item div { display: flex; flex-direction: column; }
.stat-item strong { color: var(--text-primary); font-size: .85rem; }
.stat-item span { color: var(--text-muted); font-size: .72rem; }

/* ══════════════════════════════════════════
   SECTION / MAIN
══════════════════════════════════════════ */
.main { position: relative; z-index: 1; }
.section { padding: 3rem 0; }
.section__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.section__eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .25rem;
}
.section__title {
  font-family: var(--font-display); font-size: 1.75rem;
  font-weight: 700; color: var(--text-primary);
}
.section__filters { display: flex; gap: .75rem; flex-wrap: wrap; }
.filter-select {
  padding: .45rem .75rem; font-size: .82rem;
  border-radius: var(--radius-sm); cursor: pointer; min-width: 160px;
}
.filter-input { padding: .45rem .75rem; font-size: .82rem; border-radius: var(--radius-sm); }

/* ══════════════════════════════════════════
   GRID DE PRODUCTOS
══════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.skeleton-card {
  height: 380px;
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}
@keyframes skeleton { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.producto {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.producto:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--shadow-gold);
  border-color: rgba(201,169,110,.25);
}
.producto__img-wrap {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-card2);
}
.producto__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.producto:hover .producto__img-wrap img { transform: scale(1.07); }

.producto__badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--gold); color: #000; font-size: .65rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 999px;
  letter-spacing: .05em; text-transform: uppercase; z-index: 1;
}
.producto__badge--sale { background: var(--red); color: #fff; }
.producto__badge--popular { background: var(--blue); color: #fff; }

.producto__fav {
  position: absolute; top: .6rem; right: .6rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: color var(--transition), background var(--transition);
  z-index: 1; font-size: .9rem;
}
.producto__fav:hover, .producto__fav.active { color: #e53935; background: rgba(229,57,53,.15); }

.producto__body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.producto__header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.producto__title { font-size: .95rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.producto__desc { font-size: .78rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.producto__category {
  display: inline-block; font-size: .65rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-dark);
  background: rgba(201,169,110,.08); padding: .15rem .5rem; border-radius: 4px;
}
.producto__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-top: .25rem;
}
.precio { display: flex; align-items: baseline; gap: .2rem; font-weight: 700; }
.precio__old { font-size: .75rem; color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-right: .2rem; }
.precio__currency { font-size: .85rem; color: var(--gold); }
.precio__amount { font-size: 1.2rem; color: var(--gold); }
.precio__unit { font-size: .7rem; color: var(--text-muted); font-weight: 400; }
.producto__actions { display: flex; gap: .4rem; }

/* ══════════════════════════════════════════
   BOTONES
══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: .85rem;
  cursor: pointer; border: none; text-align: center;
  transition: all var(--transition); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.1); opacity: 0; transition: opacity .15s;
}
.btn:active::after { opacity: 1; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #0a0a0a; box-shadow: 0 4px 14px rgba(201,169,110,.3);
}
.btn--gold:hover { box-shadow: 0 6px 22px rgba(201,169,110,.5); transform: translateY(-1px); }
.btn--outline-gold {
  background: transparent; border: 1px solid var(--gold-dark); color: var(--gold);
}
.btn--outline-gold:hover { background: rgba(201,169,110,.1); border-color: var(--gold); }
.btn--ghost {
  background: var(--bg-input); border: 1px solid var(--border); color: var(--text-secondary);
}
.btn--ghost:hover { border-color: var(--text-muted); color: var(--text-primary); }
.btn--whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,.25);
}
.btn--whatsapp:hover { box-shadow: 0 6px 22px rgba(37,211,102,.45); transform: translateY(-1px); }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { background: #d32f2f; transform: translateY(-1px); }
.btn--sm { padding: .35rem .75rem; font-size: .78rem; }
.btn--lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }
.btn--icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ══════════════════════════════════════════
   NO RESULTS
══════════════════════════════════════════ */
.no-results { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.no-results i { font-size: 3rem; margin-bottom: 1rem; display: block; }
.no-results p { margin-bottom: 1.5rem; }

/* ══════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, rgba(37,211,102,.08) 0%, rgba(18,140,126,.08) 100%);
  border-top: 1px solid rgba(37,211,102,.15); border-bottom: 1px solid rgba(37,211,102,.15);
  padding: 2.5rem 0;
}
.cta-banner__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta-banner__title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: .25rem;
}
.cta-banner__sub { color: var(--text-secondary); font-size: .9rem; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding-top: .5rem; }
.footer__ornament {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 2rem; color: var(--gold-dark);
}
.ornament-line { flex: 1; height: 1px; background: var(--border-gold); }
.footer__ornament i { font-size: .65rem; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--gold); margin-bottom: .2rem; }
.footer__sub { color: var(--text-muted); font-size: .75rem; margin-bottom: .75rem; }
.footer__desc { color: var(--text-secondary); font-size: .82rem; line-height: 1.6; margin-bottom: 1.25rem; }
.footer__heading { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .75rem; }
.footer__col p { font-size: .82rem; color: var(--text-secondary); display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.footer__col i { color: var(--gold-dark); width: 14px; }
.footer__col a { color: var(--text-secondary); transition: color var(--transition); }
.footer__col a:hover { color: var(--gold); }
.footer__social { display: flex; gap: .5rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: .85rem;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--gold); color: #000; border-color: var(--gold); transform: translateY(-2px); }
.social-btn--wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.footer__bottom {
  border-top: 1px solid var(--border); text-align: center;
  padding: 1rem; font-size: .75rem; color: var(--text-muted);
}

/* ── FAB & scroll-top ───────────────────────────────── */
.fab-whatsapp {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.7); }
.fab-whatsapp::before {
  content: ''; position: absolute; width: 100%; height: 100%;
  border-radius: 50%; background: rgba(37,211,102,.4);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0%{transform:scale(1);opacity:.8} 100%{transform:scale(2);opacity:0} }
.scroll-top {
  position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 800;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  opacity: 0; pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--gold); color: #000; border-color: var(--gold); }

/* ══════════════════════════════════════════
   DRAWER
══════════════════════════════════════════ */
.drawer { position: fixed; inset: 0; z-index: 950; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--transition);
}
.drawer.open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(300px, 85vw); background: var(--bg-surface);
  border-right: 1px solid var(--border);
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open .drawer__panel { transform: none; }
.drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.drawer__brand { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--gold); }
.drawer__user {
  display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem;
  background: rgba(201,169,110,.05); border-bottom: 1px solid var(--border);
}
.drawer__avatar i { font-size: 2rem; color: var(--gold-dark); }
.drawer__user-name { font-weight: 600; font-size: .9rem; }
.drawer__user-phone { font-size: .75rem; color: var(--text-muted); }
.drawer__nav { padding: .75rem 0; flex: 1; }
.drawer__link {
  display: flex; align-items: center; gap: .75rem; padding: .8rem 1.25rem;
  font-size: .9rem; color: var(--text-secondary); transition: all var(--transition);
  border-radius: 0; width: 100%; text-align: left; border-left: 3px solid transparent;
}
.drawer__link:hover { background: rgba(201,169,110,.06); color: var(--text-primary); border-left-color: var(--gold); }
.drawer__link--admin { color: var(--gold); }
.drawer__link i { width: 18px; text-align: center; }
.drawer__auth, .drawer__auth-logged {
  padding: 1.25rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .6rem;
}

/* ══════════════════════════════════════════
   MODALES
══════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 960;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; visibility: hidden;
}
.modal.open { visibility: visible; }
.modal__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--transition);
}
.modal.open .modal__overlay { opacity: 1; }
.modal__content {
  position: relative; z-index: 1;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px) scale(.95); opacity: 0;
  transition: all .3s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow);
}
.modal.open .modal__content { transform: none; opacity: 1; }
.modal__content--wide { max-width: 700px; }
.modal__content--auth { max-width: 400px; }
.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-card); z-index: 2;
}
.modal__title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; gap: .5rem; color: var(--text-primary);
}
.modal__title i { color: var(--gold); }
.modal__body { padding: 1.5rem; }
.modal__footer {
  padding: 1.25rem 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .75rem;
}

/* ── Carrito ─────────────────────────────────────────── */
.cart-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img {
  width: 60px; height: 60px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--bg-card2); flex-shrink: 0;
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item__price { color: var(--gold); font-size: .85rem; font-weight: 600; }
.cart-item__qty { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; transition: all var(--transition);
}
.qty-btn:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.qty-num { font-size: .88rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-remove { color: var(--text-muted); font-size: .8rem; transition: color var(--transition); }
.cart-remove:hover { color: var(--red); }
.cart-empty {
  text-align: center; padding: 2.5rem; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.cart-empty i { font-size: 2.5rem; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.cart-total__amount { font-size: 1.25rem; color: var(--gold); }

/* ── Mis pedidos ─────────────────────────────────────── */
.order-card {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem;
}
.order-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.order-card__id { font-weight: 700; font-size: .9rem; }
.order-card__date { font-size: .75rem; color: var(--text-muted); }
.order-card__items { font-size: .82rem; color: var(--text-secondary); margin-bottom: .5rem; }
.order-card__footer { display: flex; justify-content: space-between; align-items: center; }
.order-card__total { font-weight: 700; color: var(--gold); }

/* ── Auth forms ──────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label { font-size: .8rem; font-weight: 600; color: var(--text-secondary); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > i:first-child {
  position: absolute; left: .85rem; color: var(--text-muted); font-size: .85rem; pointer-events: none;
}
.input-wrap input { padding-left: 2.5rem; }
.input-eye {
  position: absolute; right: .75rem; color: var(--text-muted); font-size: .85rem;
  padding: .25rem; transition: color var(--transition);
}
.input-eye:hover { color: var(--gold); }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-switch { font-size: .8rem; color: var(--text-muted); text-align: center; }
.auth-link { color: var(--gold); background: none; cursor: pointer; font-size: inherit; text-decoration: underline; }
.form-error { font-size: .8rem; color: var(--red); min-height: 1.2em; animation: shake .3s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* ── Steps ───────────────────────────────────────────── */
.step-indicator {
  display: flex; align-items: center; gap: 0;
  padding: 1rem 2rem; border-bottom: 1px solid var(--border);
}
.step-dot { display: flex; flex-direction: column; align-items: center; gap: .25rem; flex-shrink: 0; }
.step-dot span {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-input); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--text-muted); transition: all var(--transition);
}
.step-dot p { font-size: .7rem; color: var(--text-muted); }
.step-dot--active span { background: var(--gold); border-color: var(--gold); color: #000; }
.step-dot--active p { color: var(--gold); }
.step-dot--done span { background: var(--green); border-color: var(--green); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 .5rem; margin-bottom: 1.2rem; }

/* ── OTP ─────────────────────────────────────────────── */
.otp-box { text-align: center; }
.otp-box__icon { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; }
.otp-box__title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: .5rem; }
.otp-box__desc { font-size: .85rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.6; }
.otp-box__phone { color: var(--gold); font-weight: 600; }
.otp-inputs { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1rem; }
.otp-digit {
  width: 44px; height: 52px; text-align: center;
  font-size: 1.2rem; font-weight: 700; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 2px solid var(--border);
  transition: border-color var(--transition); padding: 0;
}
.otp-digit:focus { border-color: var(--gold); }
.otp-digit.filled { border-color: var(--gold-dark); }
.otp-demo-alert {
  background: rgba(33,150,243,.1); border: 1px solid rgba(33,150,243,.3);
  border-radius: var(--radius-sm); padding: .65rem 1rem;
  font-size: .82rem; color: var(--blue); margin-bottom: 1rem; text-align: left;
}
.otp-actions { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-top: 1rem; }
.otp-timer { font-size: .75rem; color: var(--text-muted); }

/* ── Status badges ───────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .05em;
  padding: .25rem .65rem; border-radius: 999px; text-transform: uppercase;
}
.status--pendiente  { background: rgba(255,152,0,.15); color: var(--orange); }
.status--confirmado { background: rgba(33,150,243,.15); color: var(--blue); }
.status--en_camino  { background: rgba(156,39,176,.15); color: #9c27b0; }
.status--entregado  { background: rgba(76,175,80,.15);  color: var(--green); }
.status--cancelado  { background: rgba(244,67,54,.15);  color: var(--red); }

/* ══════════════════════════════════════════
   PANEL ADMIN
══════════════════════════════════════════ */
.admin-overlay { position: fixed; inset: 0; z-index: 970; visibility: hidden; }
.admin-overlay.open { visibility: visible; }
.admin-panel {
  position: absolute; inset: 0; display: flex; background: var(--bg-base);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.admin-overlay.open .admin-panel { transform: none; }

.admin-sidebar {
  width: 220px; flex-shrink: 0; background: var(--bg-surface);
  border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto;
}
.admin-sidebar__brand {
  display: flex; align-items: center; gap: .65rem; padding: 1.25rem 1rem;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--gold);
  border-bottom: 1px solid var(--border);
}
.admin-sidebar__nav { flex: 1; padding: .75rem 0; }
.admin-nav-btn {
  display: flex; align-items: center; gap: .65rem; width: 100%; padding: .8rem 1rem;
  font-size: .85rem; color: var(--text-muted); transition: all var(--transition);
  border-left: 3px solid transparent; text-align: left; border-radius: 0; position: relative;
}
.admin-nav-btn:hover { background: rgba(201,169,110,.06); color: var(--text-secondary); border-left-color: var(--gold-dark); }
.admin-nav-btn.active { background: rgba(201,169,110,.1); color: var(--gold); border-left-color: var(--gold); }
.admin-nav-btn i { width: 18px; text-align: center; font-size: .9rem; }
.admin-nav-btn span { flex: 1; }
.admin-badge {
  min-width: 18px; height: 18px; background: var(--red); color: #fff;
  font-size: .65rem; font-weight: 700; border-radius: 999px;
  display: none; align-items: center; justify-content: center; padding: 0 4px;
}
.admin-badge.show { display: flex; }
.admin-sidebar__close {
  margin: 1rem; padding: .6rem 1rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-muted); font-size: .82rem;
  display: flex; align-items: center; gap: .5rem; transition: all var(--transition);
}
.admin-sidebar__close:hover { border-color: var(--red); color: var(--red); }

.admin-content {
  flex: 1; overflow-y: auto; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.admin-tab { display: none; flex-direction: column; gap: 1.5rem; }
.admin-tab.active { display: flex; }
.admin-content__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.admin-content__header h2 {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--text-primary);
  display: flex; align-items: center; gap: .5rem;
}
.admin-content__header h2 i { color: var(--gold); }

.admin-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; display: flex; align-items: center; gap: 1rem;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--border-gold); }
.stat-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.stat-card__icon--blue   { background: rgba(33,150,243,.15); color: var(--blue); }
.stat-card__icon--gold   { background: rgba(201,169,110,.15); color: var(--gold); }
.stat-card__icon--green  { background: rgba(76,175,80,.15); color: var(--green); }
.stat-card__icon--purple { background: rgba(156,39,176,.15); color: #9c27b0; }
.stat-card__label { font-size: .75rem; color: var(--text-muted); margin-bottom: .2rem; }
.stat-card__value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }

.admin-two-col { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.admin-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.admin-card__title {
  font-size: .9rem; font-weight: 700; display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1rem; color: var(--text-primary);
}
.admin-card__title i { color: var(--gold); }

.admin-form-box {
  background: var(--bg-card); border: 1px solid var(--border-gold);
  border-radius: var(--radius); padding: 1.5rem;
}
.admin-form-box h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); margin-bottom: 1.25rem; }
.admin-form-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 1.25rem;
}
.form-group--full { grid-column: 1 / -1; }
.admin-form-actions { display: flex; gap: .75rem; }
.admin-check {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--text-secondary); cursor: pointer;
}
.admin-check input { width: auto; }

.image-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--transition); cursor: pointer;
}
.image-upload-area:hover, .image-upload-area.drag-over { border-color: var(--gold); background: rgba(201,169,110,.05); }
.image-preview {
  padding: 2rem; text-align: center; color: var(--text-muted); font-size: .82rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.image-preview i { font-size: 2rem; color: var(--text-muted); }

.admin-table-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 600px; }
.admin-table th {
  background: var(--bg-card2); padding: .75rem 1rem;
  text-align: left; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table td {
  padding: .75rem 1rem; border-bottom: 1px solid var(--border);
  color: var(--text-secondary); vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.admin-table .admin-loading { text-align: center; color: var(--text-muted); padding: 2rem; }
.admin-table img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }
.admin-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

.pw-hidden { letter-spacing: .12em; font-size: .95rem; }
.pw-toggle { color: var(--gold); cursor: pointer; font-size: .72rem; margin-left: .3rem; }

.user-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem;
}
.user-detail-info { background: var(--bg-card2); border-radius: var(--radius-sm); padding: 1rem; }
.user-detail-info label { font-size: .72rem; color: var(--text-muted); display: block; margin-bottom: .2rem; }
.user-detail-info p { font-size: .88rem; font-weight: 600; }
.user-detail-section { margin-bottom: 1.5rem; }
.user-detail-section h4 {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: .75rem;
}
.loading-text { text-align: center; padding: 2rem; color: var(--text-muted); }

/* ══════════════════════════════════════════
   TOASTS
══════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 9999;
  display: flex; flex-direction: column-reverse; gap: .5rem;
  pointer-events: none; width: min(380px, calc(100vw - 2rem));
}
.toast {
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .85rem 1.1rem;
  box-shadow: var(--shadow); font-size: .85rem; color: var(--text-primary);
  pointer-events: auto; animation: toastIn .3s ease forwards;
}
.toast.removing { animation: toastOut .25s ease forwards; }
@keyframes toastIn  { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
@keyframes toastOut { from{opacity:1;transform:translateY(0)} to{opacity:0;transform:translateY(10px)} }
.toast__icon { font-size: 1.1rem; flex-shrink: 0; }
.toast--success .toast__icon { color: var(--green); }
.toast--error   .toast__icon { color: var(--red); }
.toast--info    .toast__icon { color: var(--blue); }
.toast--warning .toast__icon { color: var(--orange); }
.toast__msg { flex: 1; line-height: 1.4; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (min-width: 600px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .auth-btns span { display: inline; }
  .hero__image-wrap { display: block; }
  .admin-two-col { grid-template-columns: 1fr 1fr; }
  .user-detail-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  :root { --topbar-h: 70px; }
  .hamburger { display: none; }
  .topbar__search { display: flex; }
  .user-menu { display: flex; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .section { padding: 4rem 0; }
  .admin-sidebar { width: 240px; }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .admin-stats-grid { grid-template-columns: repeat(4, 1fr); }
  .admin-two-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .admin-content { padding: 1rem .75rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .modal__content { max-height: 95vh; border-radius: var(--radius) var(--radius) 0 0; }
  .modal { align-items: flex-end; padding: 0; }
  .section__head { flex-direction: column; }
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ══════════════════════════════════════════
   PREMIUM UI ENHANCEMENTS
══════════════════════════════════════════ */

/* ── Stagger children ───────────────────────────────── */
.stagger-children > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-out-expo), transform .5s var(--ease-out-expo);
}

/* ── Custom easings ─────────────────────────────────── */
:root {
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-expo:  cubic-bezier(0.7, 0, 0.84, 0);
  --glass-bg:      rgba(255,255,255,.04);
  --glass-border:  rgba(255,255,255,.08);
}

/* ── Button ripple ──────────────────────────────────── */
.btn { isolation: isolate; }
.ripple {
  position: absolute; border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim .55s cubic-bezier(.4,0,.2,1) forwards;
  background: rgba(255,255,255,.22);
  pointer-events: none;
  width: 10px; height: 10px;
}
@keyframes rippleAnim { to { transform: scale(40); opacity: 0; } }

/* ── Tactile button press ───────────────────────────── */
.btn--gold:active     { transform: translateY(1px) scale(.98) !important; }
.btn--whatsapp:active { transform: translateY(1px) scale(.98) !important; }
.btn--danger:active   { transform: translateY(1px) scale(.98) !important; }

/* ── Scroll reveal system ───────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s var(--ease-out-expo), transform .65s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal--left.visible, .reveal--right.visible { transform: none; }
.reveal--scale { transform: scale(.94) translateY(16px); }
.reveal--scale.visible { transform: none; }

/* ── Section heads reveal ───────────────────────────── */
.section__head, .stats-bar__inner, .cta-banner__inner {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease-out-expo), transform .6s var(--ease-out-expo);
}
.section__head.visible, .stats-bar__inner.visible, .cta-banner__inner.visible {
  opacity: 1; transform: none;
}

/* ── Enhanced skeleton with gold shimmer ────────────── */
.skeleton-card {
  position: relative; overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--border);
}
.skeleton-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(201,169,110,.09) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}
.skeleton-card::after {
  content: 'H&L';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--font-display); font-size: 2rem; font-weight: 900;
  color: rgba(201,169,110,.1); letter-spacing: .06em; pointer-events: none;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Product card entrance animation ───────────────── */
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.producto {
  --card-delay: 0ms;
  animation: cardEntrance .5s var(--ease-spring) var(--card-delay) both;
}

/* ── Glass shine on card hover ──────────────────────── */
.producto {
  --shine-x: 50%; --shine-y: 50%;
}
.producto::before {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y),
    rgba(255,255,255,.07) 0%, transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.producto:hover::before { opacity: 1; }

/* ── Modal spring entrance ──────────────────────────── */
.modal.open .modal__content {
  animation: modalSpring .45s var(--ease-spring) forwards;
}
@keyframes modalSpring {
  from { opacity: 0; transform: translateY(30px) scale(.93); }
  to   { opacity: 1; transform: none; }
}

/* ── Toast glassmorphism ────────────────────────────── */
.toast {
  background: rgba(20,20,20,.92);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-color: rgba(255,255,255,.07);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ── Enhanced topbar glass ──────────────────────────── */
.topbar {
  background: rgba(8,8,8,.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom-color: rgba(255,255,255,.05);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 4px 24px rgba(0,0,0,.35);
}
@keyframes topbarEnter {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: none; }
}
.topbar { animation: topbarEnter .6s var(--ease-out-expo) both; }

/* ── Hero content entrance ──────────────────────────── */
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero__eyebrow  { animation: heroContentIn .7s var(--ease-out-expo) .15s both; }
.hero__title    { animation: heroContentIn .7s var(--ease-out-expo) .25s both; }
.hero__subtitle { animation: heroContentIn .7s var(--ease-out-expo) .35s both; }
.hero__search   { animation: heroContentIn .7s var(--ease-out-expo) .45s both; }
.hero__chips    { animation: heroContentIn .7s var(--ease-out-expo) .55s both; }
.hero__image-wrap { animation: heroContentIn .8s var(--ease-out-expo) .4s both; }

/* ── Hero search liquid glass ───────────────────────── */
.hero__search-wrap {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1),
              inset 0 -1px 0 rgba(0,0,0,.2),
              0 8px 32px rgba(0,0,0,.3);
}

/* ── Stat items hover ───────────────────────────────── */
.stat-item { transition: transform .3s var(--ease-spring); }
.stat-item:hover { transform: translateY(-3px); }
.stat-item i { transition: transform .3s var(--ease-spring), box-shadow .3s ease; }
.stat-item:hover i { transform: scale(1.15); box-shadow: 0 0 16px rgba(201,169,110,.35); }

/* ── Chip spring hover ──────────────────────────────── */
.chip { transition: all .25s var(--ease-spring); }
.chip:hover { transform: translateY(-2px); }
.chip--active { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(201,169,110,.3); }

/* ── FAB bob animation ──────────────────────────────── */
.fab-whatsapp { animation: fabBob 3s ease-in-out infinite; }
@keyframes fabBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.fab-whatsapp:hover { animation: none; transform: scale(1.1); }

/* ── Brand logo hover ───────────────────────────────── */
.brand__logo-wrap { transition: transform .35s var(--ease-spring), box-shadow .35s ease; }
.brand:hover .brand__logo-wrap {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 0 0 3px rgba(201,169,110,.2);
}

/* ── Social buttons spring ──────────────────────────── */
.social-btn { transition: transform .3s var(--ease-spring), background .25s ease, border-color .25s ease; }
.social-btn:hover { transform: translateY(-3px) scale(1.08) !important; }

/* ── Admin panel improved ───────────────────────────── */
.admin-sidebar {
  background: rgba(13,13,13,.98);
  backdrop-filter: blur(20px);
}
.admin-nav-btn {
  margin: 2px 8px; width: calc(100% - 16px);
  border-radius: var(--radius-sm); border-left: none;
  border-left: 3px solid transparent;
}
.admin-nav-btn.active {
  box-shadow: 0 2px 12px rgba(201,169,110,.12);
}

/* ── Premium confirm dialog ─────────────────────────── */
.confirm-dialog-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 1100; display: flex; align-items: center; justify-content: center;
  padding: 1rem; animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.confirm-dialog {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; max-width: 380px; width: 100%;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.04);
  animation: modalSpring .4s var(--ease-spring) forwards; text-align: center;
}
.confirm-dialog__icon { font-size: 2.5rem; color: var(--red); margin-bottom: 1rem; }
.confirm-dialog__title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: .5rem; }
.confirm-dialog__msg { color: var(--text-secondary); font-size: .85rem; margin-bottom: 1.5rem; line-height: 1.6; }
.confirm-dialog__actions { display: flex; gap: .75rem; justify-content: center; }

/* ── Admin mobile bottom nav ────────────────────────── */
.admin-bottom-nav {
  display: none; position: sticky; bottom: 0; left: 0; right: 0;
  background: rgba(13,13,13,.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: .4rem 0; z-index: 100;
}
.admin-bottom-nav__inner { display: flex; justify-content: space-around; }
.admin-bottom-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: .4rem .6rem; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .6rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  transition: all .25s var(--ease-spring); min-width: 50px;
}
.admin-bottom-btn i { font-size: 1.1rem; }
.admin-bottom-btn.active { color: var(--gold); }
.admin-bottom-btn:hover { color: var(--text-primary); transform: translateY(-2px); }

/* ══════════════════════════════════════════
   SPLASH SCREEN
══════════════════════════════════════════ */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #080604 0%, #0d0a06 40%, #060404 100%);
  transition: opacity .6s ease, visibility .6s ease;
}
.splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.splash__logo-wrap {
  position: relative; width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center; margin-bottom: .5rem;
}
.splash__logo {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; position: relative; z-index: 2;
  animation: splashLogoPop .7s var(--ease-spring) .3s both;
}
@keyframes splashLogoPop {
  from { transform: scale(0.4) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);    opacity: 1; }
}
.splash__ring {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(201,169,110,.4);
  animation: splashRing 2s ease-in-out infinite;
}
.splash__ring--1 { width: 90px;  height: 90px;  animation-delay: 0s; }
.splash__ring--2 { width: 110px; height: 110px; animation-delay: .3s; border-color: rgba(201,169,110,.25); }
.splash__ring--3 { width: 130px; height: 130px; animation-delay: .6s; border-color: rgba(201,169,110,.1); }
@keyframes splashRing {
  0%,100% { transform: scale(1);    opacity: 1; }
  50%     { transform: scale(1.08); opacity: .6; }
}
.splash__brand {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 900;
  color: var(--gold); letter-spacing: .08em;
  animation: splashTextIn .6s var(--ease-out-expo) .6s both;
}
.splash__tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted);
  animation: splashTextIn .6s var(--ease-out-expo) .75s both;
}
@keyframes splashTextIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.splash__bar {
  width: 160px; height: 3px; background: rgba(255,255,255,.08);
  border-radius: 99px; overflow: hidden; margin-top: .5rem;
  animation: splashTextIn .4s ease .9s both;
}
.splash__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  width: 0%; border-radius: 99px;
  transition: width .05s linear;
}

/* ══════════════════════════════════════════
   BANNER CARRUSEL
══════════════════════════════════════════ */
.banner-carousel {
  position: relative; overflow: hidden;
  height: clamp(220px, 45vw, 360px);
  background: #080604;
}
.carousel__track {
  display: flex; height: 100%;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 100%; height: 100%;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}

/* Slide gradients (professional, each different) */
.carousel__slide--1 {
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(180,120,30,.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(120,70,10,.2) 0%, transparent 55%),
    linear-gradient(130deg, #0f0900 0%, #1a0f02 40%, #0c0702 100%);
}
.carousel__slide--2 {
  background:
    radial-gradient(ellipse 60% 70% at 10% 60%, rgba(10,80,40,.4) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 30%, rgba(5,60,30,.25) 0%, transparent 55%),
    linear-gradient(130deg, #020d06 0%, #03130a 40%, #020808 100%);
}
.carousel__slide--3 {
  background:
    radial-gradient(ellipse 65% 70% at 80% 50%, rgba(40,20,100,.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 20%, rgba(20,10,60,.2) 0%, transparent 55%),
    linear-gradient(130deg, #04020d 0%, #080413 40%, #060310 100%);
}

/* Animated light sweep across each slide */
.carousel__slide::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.04) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: slideSheen 4s ease-in-out infinite;
}
@keyframes slideSheen {
  0%,100% { background-position: 200% 0; }
  50%     { background-position: -200% 0; }
}

.carousel__content {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
  width: 100%;
}
.carousel__text { flex: 1; max-width: 520px; }
.carousel__eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); background: rgba(201,169,110,.12); border: 1px solid var(--border-gold);
  padding: .25rem .75rem; border-radius: 999px; margin-bottom: .65rem;
}
.carousel__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 900; line-height: 1.15; color: var(--text-primary); margin-bottom: .5rem;
}
.carousel__slide--2 .carousel__title { color: #e0ffe8; }
.carousel__slide--3 .carousel__title { color: #e8e0ff; }
.carousel__title span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.carousel__slide--2 .carousel__title span {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.carousel__slide--3 .carousel__title span {
  background: linear-gradient(135deg, #a78bfa 0%, #818cf8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.carousel__sub { font-size: .85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.carousel__cta { box-shadow: 0 4px 20px rgba(201,169,110,.3); }
.carousel__badge-group { flex-shrink: 0; display: none; }
.carousel__badge-card {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(201,169,110,.25);
  backdrop-filter: blur(12px); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; font-weight: 700; color: var(--gold);
  font-size: .9rem; text-align: center;
  animation: floatCard 3.5s ease-in-out infinite;
}
.carousel__badge-card i { font-size: 2rem; margin-bottom: .2rem; }
.carousel__badge-card--green { color: #4ade80; border-color: rgba(74,222,128,.25); background: rgba(74,222,128,.07); }
.carousel__badge-card--gold  { color: var(--gold); }

/* Dots */
.carousel__dots {
  position: absolute; bottom: .85rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem; z-index: 10;
}
.carousel__dot {
  width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.3);
  border: none; cursor: pointer; transition: all .3s var(--ease-spring); padding: 0;
}
.carousel__dot.active { width: 24px; background: var(--gold); }

/* Arrows */
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-size: .9rem; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease-spring); backdrop-filter: blur(8px);
}
.carousel__arrow:hover { background: var(--gold); color: #000; transform: translateY(-50%) scale(1.08); }
.carousel__arrow--prev { left: .75rem; }
.carousel__arrow--next { right: .75rem; }

@media (min-width: 640px) {
  .carousel__badge-group { display: flex; }
}

/* ══════════════════════════════════════════
   TOP VENDIDOS STRIP
══════════════════════════════════════════ */
.top-strip {
  background: linear-gradient(90deg, rgba(201,169,110,.05) 0%, rgba(201,169,110,.02) 100%);
  border-top: 1px solid rgba(201,169,110,.12); border-bottom: 1px solid rgba(201,169,110,.12);
  padding: .6rem 0; overflow: hidden;
}
.top-strip__inner {
  display: flex; align-items: center; gap: 1rem;
}
.top-strip__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: .35rem;
}
.top-strip__scroll {
  display: flex; gap: .6rem; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.top-strip__scroll::-webkit-scrollbar { display: none; }
.top-chip {
  flex: 0 0 auto; scroll-snap-align: start;
  display: flex; align-items: center; gap: .4rem;
  background: rgba(201,169,110,.08); border: 1px solid rgba(201,169,110,.15);
  border-radius: 999px; padding: .3rem .8rem;
  font-size: .75rem; font-weight: 600; color: var(--text-secondary);
  white-space: nowrap; cursor: pointer;
  transition: all .25s var(--ease-spring);
}
.top-chip img {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
}
.top-chip:hover { background: rgba(201,169,110,.15); color: var(--gold); transform: translateY(-2px); }

/* ══════════════════════════════════════════
   FOOTER UPDATES
══════════════════════════════════════════ */
.footer {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,169,110,.04) 0%, transparent 60%),
    linear-gradient(180deg, #0a0804 0%, #060504 100%);
  border-top: 1px solid rgba(201,169,110,.1);
}
.footer__glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,.5), transparent);
}
.footer__logo-wrap {
  width: 52px; height: 52px; border-radius: 50%;
  overflow: hidden; border: 2px solid rgba(201,169,110,.25);
  background: var(--bg-card); margin-bottom: .75rem;
}
.footer__logo { width: 100%; height: 100%; object-fit: cover; }
.footer__wa-btn { margin-top: .75rem; }
.footer__col--brand { grid-column: 1 / -1; }
.footer__bottom {
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
  padding: 1rem 1.5rem; font-size: .75rem; color: var(--text-muted);
}
.footer__rights { }
.footer__dev {
  display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--text-muted);
}
.footer__dev-link {
  display: inline-flex; align-items: center; gap: .3rem;
  color: #25d366; font-weight: 700;
  border-bottom: 1px solid #25d366;
  padding-bottom: 1px;
  transition: all .25s ease;
}
.footer__dev-link:hover { color: #4ade80; border-color: #4ade80; }
.footer__dev-wa { font-size: .9rem; }

@media (min-width: 640px) {
  .footer__col--brand { grid-column: auto; }
}

/* ══════════════════════════════════════════
   3D ENTRANCE ANIMATIONS
══════════════════════════════════════════ */
body.page-loaded .topbar {
  animation: enterFromTop .7s var(--ease-spring) both;
}
body.page-loaded .hero__content {
  animation: enterFromLeft .8s var(--ease-spring) .15s both;
}
body.page-loaded .hero__image-wrap {
  animation: enterFromRight .8s var(--ease-spring) .25s both;
}
body.page-loaded .banner-carousel {
  animation: enterFromBottom .7s var(--ease-spring) .1s both;
}

@keyframes enterFromTop {
  from { transform: translateY(-60px) rotateX(8deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes enterFromLeft {
  from { transform: translateX(-50px) rotateY(8deg) scale(.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes enterFromRight {
  from { transform: translateX(50px) rotateY(-8deg) scale(.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes enterFromBottom {
  from { transform: translateY(40px) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ── Mobile grid fix ────────────────────────────────── */
@media (max-width: 479px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }
  .producto__title { font-size: .82rem; }
  .producto__desc  { display: none; }
  .producto__body  { padding: .75rem; gap: .35rem; }
  .precio__amount  { font-size: 1rem; }
  .btn--sm { padding: .3rem .55rem; font-size: .72rem; }
  .producto__actions { flex-direction: column; gap: .3rem; }
  .producto__actions .btn--sm { width: 100%; justify-content: center; }

  .hero { padding: 2.5rem 0 2rem; min-height: auto; }
  .hero__title { font-size: 1.5rem; }
  .hero__subtitle { font-size: .88rem; }
  .hero__search-wrap { flex-wrap: wrap; }
  .hero__chips { gap: .35rem; }
  .chip { font-size: .72rem; padding: .28rem .7rem; }

  .topbar__inner { gap: .4rem; }
  .brand__text { display: none; }
  .auth-btns .btn span { display: none; }

  .section__head { gap: .5rem; }
  .section__filters { width: 100%; }
  .filter-select { min-width: 0; flex: 1; font-size: .76rem; }

  .carousel__title { font-size: 1.2rem; }
  .carousel__sub   { display: none; }
  .banner-carousel { height: 190px; }

  .modal__content { border-radius: var(--radius) var(--radius) 0 0; }
}

@media (max-width: 767px) {
  .admin-bottom-nav { display: block; }
  .admin-sidebar { display: none; }
  .admin-content { padding-bottom: 4rem; }
  .admin-panel { flex-direction: column; }

  .stats-bar__inner { gap: .75rem; }
  .stat-item strong { font-size: .8rem; }
  .stat-item span   { font-size: .68rem; }

  .footer__bottom { flex-direction: column; text-align: center; gap: .4rem; }
}

/* ══════════════════════════════════════════
   LIGHT THEME OVERRIDES
══════════════════════════════════════════ */
[data-theme="light"] body {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%,  rgba(var(--accent-rgb),.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(var(--accent-rgb),.05) 0%, transparent 55%),
    linear-gradient(160deg, #f5f0ea 0%, #ede8e2 50%, #f0ece5 100%);
}
[data-theme="light"] .bg-particles {
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(var(--accent-rgb),.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(var(--accent-rgb),.04) 0%, transparent 55%);
}
[data-theme="light"] .topbar {
  background: rgba(245,240,234,.92);
  border-bottom-color: rgba(0,0,0,.08);
}
[data-theme="light"] .hero__bg { filter: brightness(.55) saturate(.9); }
[data-theme="light"] .hero__overlay {
  background: linear-gradient(135deg, rgba(245,240,234,.7) 0%, rgba(237,232,225,.5) 100%);
}
[data-theme="light"] .hero__title { color: #1a1510; }
[data-theme="light"] .hero__subtitle { color: #5a4f42; }
[data-theme="light"] .stats-bar { background: rgba(255,255,255,.7); }
[data-theme="light"] .footer {
  background: linear-gradient(180deg, #ede9e3 0%, #e5e0d9 100%);
}
[data-theme="light"] .modal__content  { background: var(--bg-card); }
[data-theme="light"] .drawer__panel   { background: var(--bg-surface); }
[data-theme="light"] .admin-panel     { background: var(--bg-base); }
[data-theme="light"] .admin-sidebar   { background: var(--bg-surface); }
[data-theme="light"] .carousel__slide--1 {
  background: linear-gradient(130deg, #fff8ec 0%, #fdf2de 100%);
}
[data-theme="light"] .carousel__slide--2 {
  background: linear-gradient(130deg, #ecfdf5 0%, #d1fae5 100%);
}
[data-theme="light"] .carousel__slide--3 {
  background: linear-gradient(130deg, #f5f3ff 0%, #ede9fe 100%);
}
[data-theme="light"] .carousel__title { color: #1a1510; }
[data-theme="light"] .toast {
  background: rgba(255,255,255,.95);
  color: #1a1510;
  border-color: rgba(0,0,0,.1);
}

/* ══════════════════════════════════════════
   PANEL DE AJUSTES
══════════════════════════════════════════ */
.settings-overlay {
  position: fixed; inset: 0; z-index: 980;
  visibility: hidden;
}
.settings-overlay.open { visibility: visible; }
.settings-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease;
}
.settings-overlay.open .settings-backdrop { opacity: 1; }

.settings-drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(340px, 92vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.4);
  overflow-y: auto;
}
.settings-overlay.open .settings-drawer { transform: none; }

.settings-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-card); z-index: 2;
}
.settings-drawer__header h2 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  display: flex; align-items: center; gap: .5rem;
  color: var(--text-primary);
}
.settings-drawer__header h2 i { color: var(--accent); }

.settings-drawer__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1.5rem; }

.settings-section { display: flex; flex-direction: column; gap: .75rem; }
.settings-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); display: flex; align-items: center; gap: .4rem;
}
.settings-hint { font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }

/* Mode buttons */
.settings-mode-btns { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; }
.mode-btn {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: .7rem .5rem; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1.5px solid var(--border);
  color: var(--text-secondary); font-size: .76rem; font-weight: 600;
  transition: all .25s var(--ease-spring); cursor: pointer;
}
.mode-btn i { font-size: 1.1rem; }
.mode-btn:hover { border-color: var(--accent); color: var(--accent); }
.mode-btn.active {
  background: rgba(var(--accent-rgb),.12);
  border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.2);
}

/* Color swatches */
.settings-colors { display: flex; gap: .55rem; flex-wrap: wrap; }
.color-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--sw); border: 2.5px solid transparent;
  cursor: pointer; transition: all .25s var(--ease-spring);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--sw), 0 2px 8px rgba(0,0,0,.4);
  transform: scale(1.1);
}

/* Radius buttons */
.settings-radius-btns, .settings-font-btns {
  display: flex; gap: .5rem;
}
.radius-btn, .font-btn {
  flex: 1; padding: .5rem .4rem; border-radius: var(--radius-sm);
  background: var(--bg-input); border: 1.5px solid var(--border);
  color: var(--text-secondary); font-size: .76rem; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: all .25s var(--ease-spring);
}
.radius-btn:hover, .font-btn:hover { border-color: var(--accent); color: var(--accent); }
.radius-btn.active, .font-btn.active {
  background: rgba(var(--accent-rgb),.12);
  border-color: var(--accent); color: var(--accent);
}

/* Toggle switch */
.settings-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.toggle-switch { position: relative; flex-shrink: 0; cursor: pointer; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  display: block; width: 46px; height: 26px; border-radius: 999px;
  background: var(--border); transition: background .25s ease;
  position: relative;
}
.toggle-switch input:checked + .toggle-track { background: var(--accent); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .25s var(--ease-spring);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.toggle-switch input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }

/* Settings icon animation */
#open-settings { transition: transform .4s var(--ease-spring), color .2s; }
#open-settings:hover { transform: rotate(45deg); color: var(--accent); }
