/* ==========================================================================
   Webpro Studio — sistema de diseño
   Oscuro por defecto, claro con [data-theme="light"]. Colores de marca
   (--primary / --accent) se inyectan desde Ajustes en el <head>.
   ========================================================================== */

:root {
  --primary: #7c3aed;
  --accent: #06b6d4;
  --bg: #07070d;
  --bg-2: #0d0d18;
  --surface: rgba(255, 255, 255, .045);
  --surface-solid: #12121f;
  --surface-2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #f4f4fb;
  --text-2: #c9c9dc;
  --muted: #8a8aa3;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
  --primary-soft: color-mix(in srgb, var(--primary) 18%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --grad: linear-gradient(135deg, var(--primary), var(--accent));
  --glass: blur(18px) saturate(160%);
  --header-h: 68px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f5fb;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --surface-2: rgba(15, 15, 40, .05);
  --border: rgba(15, 15, 40, .09);
  --border-strong: rgba(15, 15, 40, .16);
  --text: #12121f;
  --text-2: #3c3c55;
  --muted: #6b6b85;
  --shadow: 0 10px 40px -16px rgba(30, 30, 80, .25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: -20vh -20vw auto auto;
  width: 70vw; height: 70vh;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 22%, transparent), transparent);
  filter: blur(40px); pointer-events: none; z-index: -1;
}
body::after {
  content: "";
  position: fixed; inset: auto auto -25vh -20vw;
  width: 60vw; height: 60vh;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  filter: blur(40px); pointer-events: none; z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
::selection { background: var(--primary); color: #fff; }

.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; flex: none; }
.ic-lg { width: 28px; height: 28px; flex: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.center { text-align: center; }
.right { text-align: right; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 32px; } .mb { margin-bottom: 16px; } .mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s, border-color .2s;
  white-space: nowrap; user-select: none; line-height: 1.2;
}
.btn:hover { border-color: var(--primary); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn-primary:hover { box-shadow: 0 10px 32px -6px color-mix(in srgb, var(--primary) 85%, transparent); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { background: color-mix(in srgb, var(--danger) 16%, transparent); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: #fca5a5; }
[data-theme="light"] .btn-danger { color: #b91c1c; }
.btn-ok { background: color-mix(in srgb, var(--ok) 16%, transparent); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: #86efac; }
[data-theme="light"] .btn-ok { color: #15803d; }
.btn-sm { padding: 7px 12px; border-radius: 10px; font-size: .85rem; }
.btn-lg { padding: 15px 24px; border-radius: 14px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px; border-radius: 12px; }
.btn .count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 99px; background: var(--grad); color: #fff; font-size: .7rem; display: grid; place-items: center;
}
.btn-icon { position: relative; }

/* ---------- Superficies ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
}
.card-tight { padding: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .7;
}
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ---------- Insignias ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px;
  font-size: .74rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap;
}
.badge-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: #4ade80; border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.badge-warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: #fbbf24; border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.badge-danger { background: color-mix(in srgb, var(--danger) 15%, transparent); color: #f87171; border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.badge-info { background: color-mix(in srgb, var(--info) 15%, transparent); color: #60a5fa; border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.badge-muted { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.badge-brand { background: var(--grad); color: #fff; }
[data-theme="light"] .badge-ok { color: #15803d; }
[data-theme="light"] .badge-warn { color: #b45309; }
[data-theme="light"] .badge-danger { color: #b91c1c; }
[data-theme="light"] .badge-info { color: #1d4ed8; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: .84rem; font-weight: 700; color: var(--text-2); }
.hint { font-size: .78rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font: inherit; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: var(--bg-2);
}
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.select option { background: var(--surface-solid); color: var(--text); }
.input-group { display: flex; gap: 8px; }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 42px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border-strong); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.switch input:checked + .track { background: var(--grad); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--primary-soft); }

/* ---------- Avisos ---------- */
.flash-stack { position: fixed; top: 14px; right: 14px; left: 14px; z-index: 200; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; max-width: 420px; width: 100%;
  padding: 13px 16px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); animation: toast-in .35s cubic-bezier(.2,.9,.3,1.2); font-weight: 600;
}
.toast.out { animation: toast-out .3s forwards; }
.toast-success { border-left: 4px solid var(--ok); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--info); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
.alert { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); display: flex; gap: 10px; align-items: flex-start; }
.alert-warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.alert-danger { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.alert-ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.alert-info { border-color: color-mix(in srgb, var(--info) 40%, transparent); background: color-mix(in srgb, var(--info) 10%, transparent); }

/* ---------- Barra de anuncio + header ---------- */
.announce {
  background: var(--grad); color: #fff; font-size: .82rem; font-weight: 700; text-align: center;
  padding: 7px 16px; overflow: hidden; white-space: nowrap;
}
.announce span { display: inline-block; animation: marquee 22s linear infinite; padding-left: 100%; }
@media (min-width: 900px) { .announce span { animation: none; padding-left: 0; } }
@keyframes marquee { to { transform: translateX(-100%); } }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; flex: none; }
.brand-logo { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 900; box-shadow: 0 6px 20px -6px var(--primary); overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.header-search { flex: 1; max-width: 520px; position: relative; margin: 0 auto; }
.header-search .input { border-radius: 99px; padding-top: 10px; padding-bottom: 10px; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface-solid);
  border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; z-index: 60;
}
.search-results a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.search-results a:hover, .search-results a.active { background: var(--surface-2); }
.search-results .thumb { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 1.3rem; background: var(--primary-soft); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--text-2); font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { background: var(--surface-2); color: var(--text); }
@media (max-width: 899px) {
  .nav-links, .header-search.desktop, .hide-mobile { display: none !important; }
}
@media (min-width: 900px) { .hide-desktop { display: none !important; } }

.mobile-search { padding-top: 10px; }

/* ---------- Navegación inferior (estilo app) ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  border-top: 1px solid var(--border);
}
.bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; color: var(--muted); font-size: .68rem; font-weight: 700; position: relative; }
.bottom-nav a.active { color: var(--text); }
.bottom-nav a.active .ic { color: var(--primary); }
.bottom-nav .center-btn .bubble { width: 46px; height: 46px; margin-top: -22px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px var(--primary); }
.bottom-nav .dot { position: absolute; top: 2px; right: calc(50% - 18px); min-width: 17px; height: 17px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .62rem; display: grid; place-items: center; padding: 0 4px; }
@media (min-width: 900px) { .bottom-nav { display: none; } }
@media (max-width: 899px) { body.has-bottom-nav { padding-bottom: 84px; } }

/* ---------- Hero / banners ---------- */
.hero { padding: 22px 0 8px; }
.slider { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--border); }
.slides { display: flex; transition: transform .6s cubic-bezier(.6,.05,.2,1); }
.slide {
  min-width: 100%; position: relative; min-height: 300px; display: flex; align-items: center;
  padding: 36px clamp(20px, 5vw, 56px); overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 55%),
              radial-gradient(120% 140% at 0% 100%, color-mix(in srgb, var(--primary) 60%, transparent), transparent 60%), #0d0d18;
}
.slide img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.15)); }
.slide-content { position: relative; z-index: 2; max-width: 560px; color: #fff; }
.slide-content h2 { font-size: clamp(1.6rem, 4.6vw, 2.8rem); line-height: 1.08; margin-bottom: 12px; }
.slide-content p { color: rgba(255,255,255,.82); font-size: 1.02rem; margin-bottom: 20px; }
.slide .orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .9; animation: float 8s ease-in-out infinite; }
.slide .orb.o1 { width: 180px; height: 180px; right: 8%; top: 14%; background: radial-gradient(circle at 30% 30%, #fff8, var(--primary)); }
.slide .orb.o2 { width: 90px; height: 90px; right: 30%; bottom: 10%; background: radial-gradient(circle at 30% 30%, #fff8, var(--accent)); animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-18px) rotate(8deg); } }
@media (max-width: 640px) { .slide .orb.o1 { width: 110px; height: 110px; right: -20px; top: 10px; } .slide .orb.o2 { display: none; } .slide { min-height: 260px; } }
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.slider-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s; padding: 0; }
.slider-dots button.active { width: 24px; background: #fff; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 6px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.trust-item .ic-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.trust-item b { display: block; font-size: .9rem; }
.trust-item span { font-size: .76rem; color: var(--muted); }
@media (max-width: 899px) { .trust { grid-template-columns: repeat(2, 1fr); } .trust-item { padding: 11px; } }

/* ---------- Secciones ---------- */
.section { padding: 26px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head .eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.see-all { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--text-2); font-size: .9rem; }
.see-all:hover { color: var(--text); }

/* ---------- Categorías ---------- */
.cat-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-card {
  scroll-snap-align: start; position: relative; overflow: hidden; border-radius: 20px; padding: 16px;
  min-height: 118px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--border); background: var(--surface); transition: transform .25s, border-color .25s;
}
.cat-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 100% 0%, var(--c, var(--primary)), transparent 65%); opacity: .35; transition: opacity .25s; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--c, var(--primary)); }
.cat-card:hover::before { opacity: .55; }
.cat-card .emoji { font-size: 2rem; position: relative; filter: drop-shadow(0 6px 12px rgba(0,0,0,.35)); }
.cat-card b { position: relative; display: block; }
.cat-card span { position: relative; font-size: .75rem; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 700; font-size: .85rem; white-space: nowrap; color: var(--text-2); }
.chip.active, .chip:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Tarjetas de producto ---------- */
.grid-products { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width: 520px) { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .p-body { padding: 10px 11px 12px; } .p-price b { font-size: 1rem; } .p-go { width: 32px; height: 32px; } }
.p-card {
  position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.p-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 60%, transparent); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--primary) 60%, transparent); }
.p-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: grid; place-items: center; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.p-card:hover .p-media img { transform: scale(1.06); }
.p-media .emoji { font-size: clamp(2.6rem, 8vw, 3.6rem); filter: drop-shadow(0 10px 18px rgba(0,0,0,.4)); transition: transform .4s; }
.p-card:hover .p-media .emoji { transform: scale(1.1) rotate(-4deg); }
.p-media .p-name-overlay { position: absolute; left: 12px; right: 12px; bottom: 10px; font-weight: 800; font-size: .95rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.p-tags { position: absolute; top: 10px; left: 10px; right: 46px; display: flex; flex-wrap: wrap; gap: 5px; z-index: 2; }
.p-tag { padding: 3px 9px; border-radius: 99px; font-size: .7rem; font-weight: 800; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); }
.p-tag.off { background: var(--danger); }
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(6px);
  transition: transform .2s;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.active { color: #ff4d6d; }
.fav-btn.active svg { fill: currentColor; }
.p-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-cat { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.p-title { font-weight: 800; font-size: .98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-price { min-width: 0; }
.p-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px; }
.p-price small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.p-price b { font-size: 1.12rem; font-weight: 800; }
.p-price s { font-size: .78rem; color: var(--muted); margin-left: 4px; }
.p-go { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.stars { display: inline-flex; gap: 1px; color: #fbbf24; }
.stars svg { width: 14px; height: 14px; }
.stars svg.on { fill: currentColor; }
.rating-line { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }

/* ---------- Página de producto ---------- */
.product-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); padding: 22px 0 40px; }
@media (min-width: 900px) { .product-layout { grid-template-columns: 1.05fr 1fr; align-items: start; } .product-sticky { position: sticky; top: calc(var(--header-h) + 16px); } }
.gallery-main { border-radius: 24px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .emoji { font-size: 7rem; filter: drop-shadow(0 20px 30px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { width: 70px; height: 70px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; flex: none; background: none; }
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--text); }
.price-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.price-big b { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.price-big s { color: var(--muted); font-size: 1.05rem; }
.variant-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.variant-option { position: relative; cursor: pointer; }
.variant-option input { position: absolute; opacity: 0; }
.variant-option .box {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border-strong);
  background: var(--surface); transition: border-color .2s, background .2s, transform .15s; height: 100%;
}
.variant-option .box b { font-size: .92rem; }
.variant-option .box .vp { font-weight: 800; }
.variant-option .box .vs { font-size: .72rem; color: var(--muted); }
.variant-option:hover .box { border-color: var(--primary); }
.variant-option input:checked + .box { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 8px 22px -12px var(--primary); }
.variant-option input:checked + .box::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .7rem; display: grid; place-items: center; font-weight: 900; }
.variant-option input:disabled + .box { opacity: .45; cursor: not-allowed; }
.variant-option input:focus-visible + .box { box-shadow: 0 0 0 4px var(--primary-soft); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.qty button { width: 40px; height: 44px; border: 0; background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 48px; text-align: center; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.feature-list { display: grid; gap: 10px; }
.feature-list div { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--text-2); }
.feature-list .ic { color: var(--ok); }
.prose { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs a.active, .tabs button.active { color: var(--text); border-color: var(--primary); }
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px;
  transform: translateY(110%); transition: transform .3s;
}
.sticky-buy.show { transform: none; }
@media (min-width: 900px) { .sticky-buy { display: none; } }
.review { padding: 14px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { cursor: pointer; font-size: 1.6rem; color: var(--border-strong); transition: color .15s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #fbbf24; }

/* ---------- Carrito / checkout ---------- */
.two-col { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); padding: 22px 0 40px; }
@media (min-width: 980px) { .two-col { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .two-col > aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.cart-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: 0; }
.thumb { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; flex: none; display: grid; place-items: center; font-size: 1.8rem; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-sm { width: 46px; height: 46px; border-radius: 12px; font-size: 1.3rem; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; color: var(--text-2); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 8px; border-top: 1px dashed var(--border-strong); font-weight: 800; font-size: 1.1rem; }
.summary-total b { font-size: 1.5rem; }
.method-option { display: block; cursor: pointer; position: relative; }
.method-option input { position: absolute; opacity: 0; }
.method-option .box { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--border-strong); background: var(--surface); transition: border-color .2s, background .2s; }
.method-option .mi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.method-option input:checked + .box { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.method-option input:disabled + .box { opacity: .5; cursor: not-allowed; }
.method-option input:focus-visible + .box { box-shadow: 0 0 0 4px var(--primary-soft); }

/* ---------- Pago manual ---------- */
.pay-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.pay-amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: 18px; padding: 26px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; display: grid; gap: 8px; justify-items: center; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone { position: relative; }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone img { max-height: 200px; border-radius: 12px; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: .9rem; }
.table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 720px) {
  .table.responsive { min-width: 0; }
  .table.responsive thead { display: none; }
  .table.responsive tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .table.responsive td { border: 0; padding: 0; }
  .table.responsive td[data-label]::before { content: attr(data-label); display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
  .table.responsive td.full { grid-column: 1 / -1; }
}

/* ---------- Paginación ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); font-weight: 700; }
.pagination .active { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Vacíos ---------- */
.empty { text-align: center; padding: 48px 20px; display: grid; justify-items: center; gap: 10px; }
.empty .emoji { font-size: 3.4rem; }
.empty p { color: var(--muted); max-width: 380px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 36px 0 26px; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); }
.socials a:hover { background: var(--grad); color: #fff; border-color: transparent; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pay-logos span { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border); font-size: .74rem; font-weight: 800; color: var(--text-2); background: var(--surface); }
.wa-float { position: fixed; right: 16px; bottom: 96px; z-index: 55; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px #25d366; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
@media (min-width: 900px) { .wa-float { bottom: 24px; } }

/* ---------- Instalar app ---------- */
.install-banner {
  position: fixed; left: 12px; right: 12px; bottom: 90px; z-index: 70; max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  animation: toast-in .4s;
}
@media (min-width: 900px) { .install-banner { bottom: 24px; left: 24px; right: auto; } }
.install-banner .brand-logo { width: 44px; height: 44px; }

/* ---------- Layout de cuenta / admin ---------- */
.panel-layout { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); padding: 22px 0 40px; }
@media (min-width: 980px) { .panel-layout { grid-template-columns: 250px 1fr; align-items: start; } }
.side-nav { display: grid; gap: 4px; }
@media (min-width: 980px) { .side-nav { position: sticky; top: calc(var(--header-h) + 16px); } }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--text-2); font-weight: 700; font-size: .93rem; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.active { background: var(--primary-soft); color: var(--text); }
.side-nav a.active .ic { color: var(--primary); }
.side-nav .pill { margin-left: auto; }
@media (max-width: 979px) {
  .side-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { padding: 9px 13px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; }
  .side-nav .user-mini { display: none; }
}
.user-mini { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; border-radius: 22px; font-size: 1.6rem; }
.wallet-card {
  position: relative; overflow: hidden; border-radius: 24px; padding: 24px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 80%, transparent), transparent 60%), var(--grad);
  box-shadow: 0 20px 50px -20px var(--primary);
}
.wallet-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(255,255,255,.1); right: -70px; bottom: -110px; }
.wallet-card .amount { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.wallet-card .btn { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); color: #fff; }
.wallet-card .btn:hover { background: rgba(255,255,255,.28); }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 4px; position: relative; overflow: hidden; }
.stat .label { padding-right: 44px; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.stat .value { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.stat .ic-wrap { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.stat.accent .ic-wrap { background: var(--accent-soft); color: var(--accent); }
.stat.warn .ic-wrap { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.stat.ok .ic-wrap { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
@media (max-width: 520px) { .list-item { flex-wrap: wrap; } }
.delivery-box {
  position: relative; padding: 14px 16px; padding-right: 54px; border-radius: 14px; white-space: pre-wrap; word-break: break-word;
  background: var(--bg-2); border: 1px dashed var(--border-strong); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem;
}
.delivery-box .copy-btn { position: absolute; top: 8px; right: 8px; }
.delivery-box.blurred { filter: blur(6px); user-select: none; cursor: pointer; }
.timeline { display: grid; gap: 0; }
.timeline .step { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; position: relative; }
.timeline .step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.timeline .step:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); flex: none; }
.timeline .step.done .dot { background: var(--grad); color: #fff; border-color: transparent; }
.chat { display: grid; gap: 10px; }
.bubble { max-width: 85%; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); white-space: pre-wrap; word-break: break-word; }
.bubble.me { justify-self: end; background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.bubble .meta { display: block; font-size: .72rem; color: var(--muted); margin-top: 6px; }

/* Admin */
.admin-body { --header-h: 62px; }
.admin-shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
@media (min-width: 1100px) { .admin-shell { grid-template-columns: 264px minmax(0, 1fr); } }
.admin-side {
  position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 90; transform: translateX(-102%); transition: transform .3s;
  background: var(--surface-solid); border-right: 1px solid var(--border); padding: 18px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
}
.admin-side.open { transform: none; box-shadow: var(--shadow); }
@media (min-width: 1100px) { .admin-side { position: sticky; top: 0; height: 100vh; transform: none; width: auto; background: color-mix(in srgb, var(--bg-2) 70%, transparent); } }
.admin-side .group { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 12px 4px; }
.admin-side a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; color: var(--text-2); font-weight: 700; font-size: .9rem; }
.admin-side a:hover { background: var(--surface-2); color: var(--text); }
.admin-side a.active { background: var(--primary-soft); color: var(--text); }
.admin-side a.active .ic { color: var(--primary); }
.admin-side .pill { margin-left: auto; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.admin-top { position: sticky; top: 0; z-index: 40; height: var(--header-h); display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 75%, transparent); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.admin-main { padding: 22px 18px 60px; max-width: 1280px; width: 100%; margin: 0 auto; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0; }
.bars { display: flex; align-items: end; gap: 6px; height: 180px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.bars .bar .col { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bars .bar i { display: block; width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: var(--grad); min-height: 3px; transition: height .6s cubic-bezier(.2,.8,.2,1); position: relative; }
.bars .bar i:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--surface-solid); border: 1px solid var(--border-strong); padding: 4px 8px; border-radius: 8px; font-size: .72rem; font-style: normal; white-space: nowrap; }
.bars .bar span { font-size: .66rem; color: var(--muted); }
.variant-row { display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.variant-row .more { grid-column: 1 / -1; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
@media (max-width: 720px) { .variant-row { grid-template-columns: 1fr 1fr; } .variant-row > :first-child { grid-column: 1 / -1; } }
.field-row { display: grid; gap: 10px; grid-template-columns: 1.3fr 1fr .9fr 1.3fr auto auto; align-items: end; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
@media (max-width: 820px) { .field-row { grid-template-columns: 1fr 1fr; } }
.img-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.img-grid label { position: relative; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; }
.img-grid img { width: 100%; height: 100%; object-fit: cover; }
.img-grid input { position: absolute; top: 6px; left: 6px; z-index: 2; }
.img-grid input:checked + img { opacity: .3; }
.offer-row { display: grid; grid-template-columns: auto 1.6fr .8fr 1fr 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); }
@media (max-width: 720px) { .offer-row { grid-template-columns: auto 1fr 1fr; } .offer-row .hide-sm { display: none; } }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-family: ui-monospace, monospace; font-size: .82rem; }
.kbd { padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: .78rem; font-family: ui-monospace, monospace; }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 720px; }
.auth-card .brand { justify-content: center; margin-bottom: 22px; font-size: 1.3rem; }
.auth-card .card { padding: 28px; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 6px 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.check-list { display: grid; gap: 8px; }
.check-list div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: .88rem; }

/* Animaciones de entrada */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
