/* =========================================================
   Impulsa PYME — sistema visual
   Oscuro, premium y minimalista. Acento verde lima.
   ========================================================= */

:root {
  /* Marca: negro, verde lima y verde esmeralda (primera propuesta) */
  --ink: #0c1104;
  --lime: #c5f25a;
  --jade: #3ddc97;
  --jade-rgb: 61, 220, 151;
  --wine-rgb: 61, 220, 151;
  --gold-rgb: 197, 242, 90;

  /* Superficies */
  --bg: #020503;
  --bg-2: #050605;
  --surface: #080a09;
  --surface-2: #0c0f0d;
  --surface-3: #111512;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.11);

  /* Texto */
  --text: #f2f5f1;
  --muted: #a0aaa3;
  --dim: #6f7a72;

  /* Acento: verde lima */
  --accent: #c5f25a;
  --accent-rgb: 197, 242, 90;
  --accent-soft: rgba(var(--accent-rgb), 0.12);
  --accent-line: rgba(var(--accent-rgb), 0.34);
  --accent-glow: 0 0 24px rgba(var(--accent-rgb), 0.35);
  --accent-ink: #0c1104;

  /* Estados (reservados para estado, nunca decorativos) */
  --ok: #3ddc97;
  --warn: #f5b544;
  --danger: #f2716b;
  --info: #7cc4fa;

  /* Forma */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Degradado de fondo en movimiento: dos capas de luz verde que se desplazan lento, sin cuadrícula */
body::before, body::after {
  content: ""; position: fixed; inset: -30%; pointer-events: none;
  will-change: transform;
}
body::before {
  z-index: -2;
  background:
    radial-gradient(28% 24% at 30% 22%, rgba(var(--accent-rgb), 0.10), transparent 70%),
    radial-gradient(30% 26% at 72% 35%, rgba(var(--jade-rgb), 0.09), transparent 70%),
    radial-gradient(26% 24% at 40% 78%, rgba(var(--jade-rgb), 0.07), transparent 70%);
  animation: bg-drift-a 26s ease-in-out infinite alternate;
}
body::after {
  z-index: -1;
  background:
    radial-gradient(24% 22% at 68% 70%, rgba(var(--accent-rgb), 0.07), transparent 70%),
    radial-gradient(22% 20% at 22% 55%, rgba(var(--accent-rgb), 0.05), transparent 70%);
  animation: bg-drift-b 34s ease-in-out infinite alternate;
}
@keyframes bg-drift-a {
  0%   { transform: translate3d(-6%, -4%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(4%, 3%, 0) rotate(6deg) scale(1.08); }
  100% { transform: translate3d(7%, -3%, 0) rotate(-4deg) scale(1.02); }
}
@keyframes bg-drift-b {
  0%   { transform: translate3d(5%, 4%, 0) rotate(0deg); }
  50%  { transform: translate3d(-5%, -2%, 0) rotate(-7deg) scale(1.1); }
  100% { transform: translate3d(-8%, 5%, 0) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) { body::before, body::after { animation: none; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0; }
/* Palabras destacadas: cursiva elegante y legible (Playfair Display), en verde lima */
em, .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(95deg, #c5f25a 0%, #c5f25a 55%, #dff79a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* margen para que la inclinación de la cursiva no se recorte */
  padding: 0 0.08em 0.04em 0.02em;
  margin-right: -0.04em;
}
h1 em, h2 em { font-weight: 500; font-size: 1.04em; line-height: 1; }
h3 em, p em, span em { font-weight: 500; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.65; max-width: 600px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Eyebrow / pill ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.05);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.eyebrow b { color: var(--text); font-weight: 500; }

/* ---------- Botones ---------- */
.btn {
  --h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, #d8fb80, var(--lime) 55%, #addc42);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 0 0 1px rgba(var(--accent-rgb), 0.5), 0 12px 36px -8px rgba(var(--accent-rgb), 0.75);
}
.btn-primary:hover { background: linear-gradient(180deg, #e2fd97, #cff66c 55%, #b6e44c); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 16px 40px -10px rgba(var(--accent-rgb), 0.8); }
.btn-light { background: var(--text); color: #020302; }
.btn-light:hover { background: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.btn-text { color: var(--muted); padding: 0 6px; }
.btn-text:hover { color: var(--text); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.icon-btn {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .badge-dot {
  position: absolute; top: 7px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--bg);
}

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 600; letter-spacing: -0.02em; font-size: 15.5px; }
.brand-logo { display: block; height: 32px; width: auto; }

/* ---------- Navegación pública ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 10px 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 6, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.3s, border-color 0.3s;
}
.nav-wrap.scrolled .nav { background: rgba(5, 7, 6, 0.86); border-color: var(--line-2); }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 14px; white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; }

.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 60;
  background: rgba(2, 3, 2, 0.96);
  backdrop-filter: blur(20px);
  padding: 20px var(--gutter);
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu .mm-head { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 24px; }
.mobile-menu nav a { padding: 16px 4px; font-size: 22px; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
.mobile-menu .mm-cta { margin-top: auto; display: grid; gap: 10px; }

@media (max-width: 1060px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; }
}
@media (max-width: 900px) {
  .nav-links, .nav-actions .hide-m { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav { padding: 0 8px 0 16px; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section-sm { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); display: grid; justify-items: center; gap: 18px; }
.section-head.left { text-align: left; justify-items: start; margin-left: 0; }
.section-head .lead { margin: 0 auto; }
.section-head.left .lead { margin: 0; }

/* Glows */
.glow-top {
  position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(197, 242, 90, 0.16), transparent 70%),
    radial-gradient(35% 40% at 20% 10%, rgba(61, 220, 151, 0.09), transparent 70%),
    radial-gradient(35% 40% at 85% 15%, rgba(197, 242, 90, 0.06), transparent 70%);
}
.beams {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.beams::before, .beams::after {
  content: ""; position: absolute; top: -20%; width: 32%; height: 120%;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.10), transparent 70%);
  filter: blur(40px);
  transform: rotate(18deg);
  left: 12%;
}
.beams::after { left: auto; right: 10%; transform: rotate(-18deg); background: linear-gradient(180deg, rgba(var(--jade-rgb), 0.14), transparent 70%); }


/* Horizonte (arco luminoso) */
.horizon { position: relative; height: 160px; overflow: hidden; pointer-events: none; }
.horizon::before {
  content: ""; position: absolute; left: 50%; top: 40px; transform: translateX(-50%);
  width: 160%; aspect-ratio: 1; border-radius: 50%;
  border-top: 1.5px solid rgba(var(--accent-rgb), 0.85);
  box-shadow: 0 -14px 70px -6px rgba(var(--accent-rgb), 0.45), inset 0 30px 80px -40px rgba(var(--jade-rgb), 0.5);
  background: radial-gradient(50% 50% at 50% 0%, rgba(var(--accent-rgb), 0.08), transparent 40%);
}

/* ---------- Tarjetas ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-pad { padding: clamp(20px, 2.6vw, 28px); }
.card-glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 0%, rgba(var(--accent-rgb), 0.08), transparent 70%);
}
.card-hover { transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s; }
.card-hover:hover { border-color: rgba(var(--accent-rgb), 0.38); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(var(--jade-rgb), 0.2), 0 24px 60px -24px rgba(var(--accent-rgb), 0.3); }
.card h3 + p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.inset {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* ---------- Chips / tags / estados ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted); font-size: 13px;
  transition: all 0.2s;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.chip.active, .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 6px 20px -8px rgba(var(--accent-rgb), 0.7); }
.chip svg { width: 14px; height: 14px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 500; line-height: 1.6;
  background: rgba(255, 255, 255, 0.06); color: var(--muted);
  white-space: nowrap;
}
.tag svg { width: 12px; height: 12px; }
.tag-accent { background: var(--accent-soft); color: var(--accent); }
.tag-ok { background: rgba(52, 211, 153, 0.12); color: var(--ok); }
.tag-warn { background: rgba(245, 181, 68, 0.12); color: var(--warn); }
.tag-danger { background: rgba(242, 113, 107, 0.12); color: var(--danger); }
.tag-info { background: rgba(124, 196, 250, 0.12); color: var(--info); }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.status.s-nuevo { color: var(--info); }
.status.s-confirmado { color: var(--accent); }
.status.s-preparando { color: var(--warn); }
.status.s-enviado { color: #b9a3ff; }
.status.s-entregado { color: var(--ok); }
.status span { color: var(--text); }

.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 12px; font-weight: 500; }
.verified svg { width: 14px; height: 14px; }
/* Insignia de verificación en 3 niveles (sellerBadge en app.js) */
.vb { display: inline-flex; align-items: center; gap: 5px; margin-left: 5px; font-size: 12px; font-weight: 500; vertical-align: middle; white-space: nowrap; }
.vb svg { width: 16px; height: 16px; flex: none; overflow: visible; }
.vb .tick { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vb-manual { color: #4cb4ff; }
.vb-manual .seal { fill: #1d9bf0; filter: drop-shadow(0 0 4px rgba(29, 155, 240, .45)); }
.vb-manual .tick { stroke: #fff; }
.vb-manual svg { animation: vbShine 3.2s ease-in-out infinite; }
.vb-sunat { color: var(--accent); }
.vb-sunat .seal { fill: var(--accent); }
.vb-sunat .tick { stroke: var(--accent-ink); }
.vb-none { color: var(--dim); }
.vb-none .seal { fill: transparent; stroke: rgba(255, 255, 255, .35); stroke-width: 1.2; }
.vb-none .tick { stroke: rgba(255, 255, 255, .35); }
@keyframes vbShine { 0%, 82%, 100% { transform: scale(1); } 88% { transform: scale(1.15); } 94% { transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { .vb-manual svg { animation: none; } }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); }
.input {
  width: 100%; height: 46px; padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--dim); }
.input:hover { border-color: rgba(255, 255, 255, 0.2); }
.input:focus { outline: none; border-color: var(--accent-line); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 4px var(--accent-soft); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; z-index: 1; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--dim); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a3aca5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
select.input option { background: #111; }

.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; padding: 5px 0; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); display: grid; place-items: center; flex: none; margin: 0; transition: all 0.15s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check:hover { color: var(--text); }

/* Interruptor (encendido/apagado) */
.switch { position: relative; display: inline-block; vertical-align: middle; width: 44px; height: 26px; flex: none; }
.switch input { appearance: none; -webkit-appearance: none; position: absolute; inset: 0; margin: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); cursor: pointer; transition: background .25s, border-color .25s, box-shadow .25s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #d9ddd9; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); transition: transform .3s var(--ease), background .25s; }
.switch input:hover { border-color: rgba(var(--accent-rgb), .45); }
.switch input:checked { background: linear-gradient(90deg, #8fd14f, var(--accent)); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14), 0 4px 14px -4px rgba(var(--accent-rgb), .6); }
.switch input:checked::after { transform: translateX(18px); background: #0a0f0b; }
.switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled { opacity: .35; cursor: not-allowed; }

/* Segmented */
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); gap: 2px; }
.segmented button { height: 34px; padding: 0 16px; border-radius: 999px; color: var(--muted); font-size: 13.5px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.segmented button[aria-pressed="true"], .segmented button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px -8px rgba(var(--accent-rgb), 0.7); }
.segmented button:hover:not([aria-pressed="true"]):not([aria-selected="true"]) { color: var(--text); }
.segmented .tag { height: 18px; padding: 0 6px; font-size: 10.5px; }

/* ---------- Avatares ---------- */
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0;
  color: #020302;
  background: linear-gradient(140deg, #e7f9b8, #a9dc4a);
  box-shadow: 0 0 0 2px var(--bg);
}
.avatar.a2 { background: linear-gradient(140deg, #c9f3e1, #3ddc97); }
.avatar.a3 { background: linear-gradient(140deg, #f7e2bd, #f0b357); }
.avatar.a4 { background: linear-gradient(140deg, #d7e6fb, #7cb2f0); }
.avatar.a5 { background: linear-gradient(140deg, #ecdcfb, #b496f0); }
.avatar.a6 { background: linear-gradient(140deg, #f9d6d3, #ee8c84); }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 52px; height: 52px; font-size: 16px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar + .avatar { margin-left: -10px; }

/* ---------- Producto (miniatura ilustrada) ---------- */
.p-thumb {
  --h1: 90; --h2: 140;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(70% 70% at 30% 20%, hsla(var(--h1), 70%, 60%, 0.22), transparent 70%),
    radial-gradient(60% 60% at 80% 90%, hsla(var(--h2), 70%, 55%, 0.16), transparent 70%),
    linear-gradient(160deg, #0e120f, #060807);
  display: grid; place-items: center;
  isolation: isolate;
}
.p-thumb::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
}
.p-thumb svg.p-icon {
  width: 46%; height: 46%;
  color: hsla(var(--h1), 80%, 82%, 0.95);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
  transition: transform 0.6s var(--ease);
}
.p-thumb .p-floor { position: absolute; left: 22%; right: 22%; bottom: 16%; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); filter: blur(8px); z-index: -1; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font-size: 13px; color: var(--text); font-weight: 500; letter-spacing: 0; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--dim); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Toast ---------- */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(13, 16, 14, 0.94); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  font-size: 14px;
  animation: toast-in 0.4s var(--ease);
}
.toast svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

/* ---------- Detalles / FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.02); transition: border-color 0.2s, background 0.2s; }
.faq details[open] { border-color: var(--line-2); background: rgba(255, 255, 255, 0.035); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform 0.3s var(--ease), background 0.2s; }
.faq summary .plus svg { width: 14px; height: 14px; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq details p { padding: 0 22px 20px; color: var(--muted); max-width: 680px; }

/* ---------- Utilidades ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: grid; gap: 12px; }
.wrap { flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.hide { display: none !important; }
.ico { width: 18px; height: 18px; flex: none; }
.ico-sm { width: 15px; height: 15px; flex: none; }
.accent { color: var(--accent); }
.center { text-align: center; }

.scroll-x { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.scroll-x::-webkit-scrollbar { display: none; }

/* Scrollbar sutil */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.12) transparent; }

/* =========================================================
   Componentes de comercio
   ========================================================= */

/* Contador del carrito */
.cart-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--lime); color: var(--ink);
  font-size: 10.5px; font-weight: 600; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}

/* Tarjeta de producto */
.p-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.006));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px;
  min-width: 0;
}
.p-card-media { position: relative; display: block; }
.p-card-media .p-thumb { border-radius: 16px; }
.p-card:hover .p-icon { transform: scale(1.06) rotate(-3deg); }
.p-flags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.p-flags .tag { background-color: rgba(5, 7, 6, 0.78); }
.p-flags .tag-accent { color: var(--accent); }
.p-flags .tag-warn { color: var(--warn); }
.p-flags .tag-danger { color: var(--danger); }
.p-card-body { padding: 14px 8px 6px; display: grid; gap: 6px; flex: 1; }
.p-name { font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-name:hover { color: var(--accent); }
.p-seller { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.p-prices { display: grid; gap: 6px; margin-top: 6px; }
.p-price { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.p-whole {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 10px;
  border: 1px dashed var(--line-2);
  font-size: 12.5px; color: var(--muted);
}
.p-whole.open { border-style: solid; border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.p-whole.open .num { font-weight: 600; font-size: 14px; }
.p-whole.open .dim { color: rgba(var(--accent-rgb), .65); margin-left: auto; }
.p-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; font-size: 13px; }
.star { color: var(--accent); fill: var(--accent); stroke: none; }
.p-add {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--text); color: #020302;
  transition: transform .2s var(--ease), background .2s;
}
.p-add svg { width: 16px; height: 16px; }
.p-add:hover { background: var(--lime); color: var(--ink); transform: rotate(90deg); }
.p-add:disabled { opacity: .25; cursor: not-allowed; transform: none; background: var(--text); }

/* Cantidad */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; height: 44px; }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; color: var(--muted); }
.qty button:hover { color: var(--text); }
.qty button svg { width: 15px; height: 15px; }
.qty span, .qty input { min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; background: none; border: 0; width: 44px; }
.qty input:focus { outline: none; }
.qty-sm { height: 30px; }
.qty-sm button { width: 28px; }
.qty-sm span { min-width: 22px; font-size: 13px; }

/* Panel lateral (drawer) */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  background: var(--bg-2); border-left: 1px solid var(--line-2);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer-foot:empty { display: none; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item .p-thumb { border-radius: 12px; }
.ci-info { display: grid; min-width: 0; }
.ci-name { font-size: 14px; font-weight: 500; line-height: 1.35; }
.ci-price { display: grid; text-align: right; font-weight: 600; font-size: 14px; gap: 2px; }
.empty { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 64px 12px; color: var(--muted); }
.empty > svg { width: 40px; height: 40px; color: var(--dim); }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]:checked::after { width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--accent-ink); transform: none; }

/* =========================================================
   Brillo que cruza al pasar el cursor
   ========================================================= */
.btn, .chip, .p-card, .card-hover, .kpi, .stat, .tile, .shine,
.plan, .plan-mini, .pl, .lesson, .order, .lead-card, .sup, .biz, .access, .camp,
.int, .prov, .code-card, .seller-card, .who-row, .shop, .todo-card, .method, .area, .pillar, .pulse-tile {
  position: relative;
  overflow: hidden;
}
.btn::after, .chip::after, .p-card::after, .card-hover::after, .kpi::after, .stat::after, .tile::after, .shine::after,
.plan::after, .plan-mini::after, .pl::after, .lesson::after, .order::after, .lead-card::after, .sup::after, .biz::after,
.access::after, .camp::after, .int::after, .prov::after, .code-card::after, .seller-card::after, .who-row::after,
.shop::after, .todo-card::after, .method::after, .area::after, .pillar::after, .pulse-tile::after {
  content: "";
  position: absolute; top: -10%; bottom: -10%; left: -75%;
  width: 55%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.26) 50%, rgba(255, 255, 255, 0.05) 70%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}
.btn:hover::after, .chip:hover::after, .p-card:hover::after, .card-hover:hover::after, .kpi:hover::after, .stat:hover::after,
.tile:hover::after, .shine:hover::after, .plan:hover::after, .plan-mini:hover::after, .pl:hover::after, .lesson:hover::after,
.order:hover::after, .lead-card:hover::after, .sup:hover::after, .biz:hover::after, .access:hover::after, .camp:hover::after,
.int:hover::after, .prov:hover::after, .code-card:hover::after, .seller-card:hover::after, .who-row:hover::after, .shop:hover::after,
.todo-card:hover::after, .method:hover::after, .area:hover::after, .pillar:hover::after, .pulse-tile:hover::after,
.btn:focus-visible::after {
  animation: shine 0.95s var(--ease);
}
@keyframes shine {
  0% { left: -75%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 135%; opacity: 0; }
}
/* Bordes que se encienden en los bloques importantes */
.kpi, .stat, .p-card, .plan, .plan-mini, .pl, .order, .lead-card, .sup, .biz, .access, .int, .prov, .code-card, .seller-card, .method, .area, .tile {
  transition: border-color 0.3s, box-shadow 0.4s, transform 0.4s var(--ease);
}
.kpi:hover, .p-card:hover, .plan:hover, .plan-mini:hover, .pl:hover, .order:hover, .lead-card:hover, .sup:hover, .biz:hover,
.access:hover, .int:hover, .prov:hover, .code-card:hover, .seller-card:hover, .method:hover, .area:hover, .tile:hover {
  border-color: rgba(var(--accent-rgb), 0.38);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.1), 0 22px 50px -26px rgba(var(--accent-rgb), 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .btn::after, .chip::after, .p-card::after, .card-hover::after, .kpi::after, .stat::after, .tile::after, .shine::after { display: none; }
}

/* Texto con degradado de marca (para cifras destacadas) */
.grad-text {
  background: linear-gradient(95deg, #c5f25a 0%, #c5f25a 55%, #dff79a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* =========================================================
   Verde lima en lo importante
   ========================================================= */
/* Cifras clave con resplandor verde */
.glow-num, .stats strong, .kpi .value.accent, .chart-head .big, .p-whole.open .num, .wb-price, .save-card .big, .price-main .big.accent {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(var(--accent-rgb), 0.35);
}
/* Bloques destacados: borde verde con brillo superior */
.feat, .card-glow, .assistant, .ai-box {
  border-color: var(--accent-line) !important;
  box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), 0.25), 0 30px 70px -40px rgba(var(--accent-rgb), 0.45);
}
/* Íconos de las secciones en verde */
.b-ico, .bi, .ic, .pillar-ico { color: var(--accent); }
/* Pestaña o enlace activo con línea verde que brilla */
.nav-links a[aria-current="page"] { color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }
.tabbar [aria-selected="true"], .tabbar [aria-current="page"] { box-shadow: 0 8px 16px -12px rgba(var(--accent-rgb), 0.9); }

/* Visor de imágenes */
.viewer { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; padding: 24px; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(6px); }
.viewer.open { display: grid; }
.viewer img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 14px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9); }
.viewer-x { position: absolute; top: 18px; right: 18px; }

/* Fotos reales de productos y enlace a la tienda */
.p-thumb.has-photo { background: #fff; }
.p-thumb.has-photo::before { display: none; }
.p-thumb.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.p-seller-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Selector de pago: Yape/Plin por número o QR, transferencia en soles o dólares */
.pm { display: grid; gap: 12px; }
.pm-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-tab { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 6px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); color: var(--muted); font-size: 14px; transition: border-color .2s, background .2s, transform .2s; }
.pm-tab:hover { color: var(--text); transform: translateY(-1px); }
.pm-tab.on { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.pm-logo { position: relative; overflow: hidden; width: 38px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11.5px; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px -8px rgba(0, 0, 0, .7); transition: transform .3s var(--ease); }
.pm-logo i { font-style: normal; letter-spacing: -.03em; }
.pm-logo svg { width: 17px; height: 17px; }
.pm-logo-yape { background: linear-gradient(140deg, #9b3ab0, #5f1b70); }
.pm-logo-plin { background: linear-gradient(140deg, #13d0c4, #0084b8); }
.pm-logo-bank { background: linear-gradient(140deg, #1f6fd1, #0b3f86); }
.pm-logo-cod { background: linear-gradient(140deg, #3a8f5c, #1f4d33); }
.pm-logo::after { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg) translateX(0); opacity: 0; }
.pm-tab:hover .pm-logo { transform: scale(1.06) rotate(-3deg); }
.pm-tab.on .pm-logo { animation: pmPop .5s var(--ease); }
.pm-tab.on .pm-logo::after { animation: pmShine 2.6s ease-in-out .3s infinite; }
.pm-tab.on { box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 197, 242, 90), .08); }
@keyframes pmPop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes pmShine { 0% { opacity: 0; transform: skewX(-20deg) translateX(0); } 10% { opacity: 1; } 40%, 100% { opacity: 0; transform: skewX(-20deg) translateX(330%); } }
.pm-copy.done { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); animation: pmPop .4s var(--ease); }
.pm-sub { justify-self: start; }
.pm-sub svg { width: 14px; height: 14px; }
.pm-panel { display: grid; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.28); animation: pmIn .35s var(--ease) both; }
@keyframes pmIn { from { opacity: 0; transform: translateY(6px); } }
.pm-lines { display: grid; gap: 8px; }
.pm-line { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 30px; }
.pm-line span { color: var(--muted); min-width: 92px; font-size: 13px; }
.pm-line b { font-weight: 500; overflow-wrap: anywhere; }
.pm-copy { width: 30px; height: 30px; border-radius: 9px; margin-left: auto; flex: none; }
.pm-copy svg { width: 14px; height: 14px; }
.pm-qr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.pm-qr img { width: 168px; height: 168px; object-fit: contain; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); }
/* Línea de escaneo sobre el QR */
.pm-qr { position: relative; }
.pm-qr::before { content: ""; position: absolute; left: 8px; top: 8px; width: 152px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 12px var(--accent); animation: pmScan 2.4s ease-in-out infinite; pointer-events: none; z-index: 1; }
@keyframes pmScan { 0%, 100% { transform: translateY(0); opacity: .2; } 50% { transform: translateY(150px); opacity: 1; } }
@media (max-width: 520px) { .pm-qr::before { left: 50%; margin-left: -76px; } }
.pm-qr b { font-weight: 500; }
@media (max-width: 520px) { .pm-qr { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.pm-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.pm-amount > span:first-child { color: var(--muted); font-size: 13px; flex-basis: 100%; }
.pm-amount b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.pm-amount .pm-copy { margin-left: auto; align-self: center; }

/* Compra exitosa */
.thanks { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(2, 3, 2, .72); backdrop-filter: blur(8px); animation: thIn .3s ease both; }
@keyframes thIn { from { opacity: 0; } }
.thanks-card { position: relative; width: min(440px, 100%); padding: 32px 24px 24px; border-radius: 24px; border: 1px solid var(--accent-line); background: linear-gradient(180deg, #121a0d, #070907); text-align: center; display: grid; gap: 14px; justify-items: center; overflow: hidden; animation: thPop .55s cubic-bezier(.2, 1.4, .4, 1) both; box-shadow: 0 30px 90px -30px rgba(var(--accent-rgb), .45); }
@keyframes thPop { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.thanks-card h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); letter-spacing: -.03em; }
.thanks-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.thanks-check { width: 92px; height: 92px; }
.thanks-check circle { fill: none; stroke: var(--accent); stroke-width: 4; stroke-dasharray: 260; stroke-dashoffset: 260; animation: thDraw .7s .15s ease forwards; }
.thanks-check path { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: thDraw .45s .7s ease forwards; }
@keyframes thDraw { to { stroke-dashoffset: 0; } }
.thanks-list { width: 100%; display: grid; gap: 6px; text-align: left; font-size: 13.5px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.thanks-list div { display: flex; justify-content: space-between; gap: 10px; }
.thanks-list span { color: var(--muted); }
.thanks-acts { display: grid; gap: 8px; width: 100%; }
.confetti { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: .9; animation: fall linear forwards; pointer-events: none; }
@keyframes fall { to { transform: translateY(560px) rotate(720deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .thanks, .thanks-card, .pm-panel { animation: none; } .thanks-check circle, .thanks-check path { animation: none; stroke-dashoffset: 0; } .confetti { display: none; } }
.thanks-card > *:not(.confetti) { position: relative; z-index: 1; }
.confetti { z-index: 0; }
@media (prefers-reduced-motion: reduce) { .pm-qr::before, .pm-tab.on .pm-logo, .pm-tab.on .pm-logo::after, .pm-copy.done { animation: none; } }
/* Instalar como app */
.app-band { margin-top: 40px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--accent-line); background: linear-gradient(120deg, var(--accent-soft), rgba(255, 255, 255, .02)); }
.app-band b { color: var(--text); font-weight: 600; display: block; font-size: 15.5px; }
.app-band span { font-size: 13.5px; }
.app-ic img { width: 44px; height: 44px; border-radius: 12px; display: block; animation: appFloat 3s ease-in-out infinite; }
@keyframes appFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 620px) { .app-band { grid-template-columns: auto minmax(0, 1fr); } .app-band .btn { grid-column: 1 / -1; } }
.install-help { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .65); backdrop-filter: blur(6px); animation: pmIn .25s var(--ease) both; }
.ih-card { width: min(420px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; padding: 26px 22px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9); }
.ih-card img { border-radius: 14px; }
.ih-card h2 { font-size: 20px; letter-spacing: -.02em; }
.ih-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; text-align: left; }
.ih-card li { display: grid; grid-template-columns: 26px 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); font-size: 14px; color: var(--muted); }
.ih-card li .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 13px; }
.ih-card li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 4px; }
.ih-card li p { margin: 0; }
.ih-card li b { color: var(--text); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .app-ic img { animation: none; } }

/* ---------- Barras deslizantes (presupuesto, editor de fotos…) ---------- */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--fill), rgba(255,255,255,.1) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .12), 0 4px 12px rgba(0,0,0,.5); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .12); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), .3); }

/* ---------- Editor de fotos ---------- */
.ie { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.72); backdrop-filter: blur(8px); animation: pmIn .2s ease both; }
.ie.out { opacity: 0; transition: opacity .18s; }
.ie-card { width: min(860px, 100%); max-height: calc(100dvh - 32px); display: grid; grid-template-rows: auto 1fr auto; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: ieUp .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ieUp { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.ie-head, .ie-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ie-foot { border-bottom: 0; border-top: 1px solid var(--line); justify-content: flex-end; }
.ie-x { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.ie-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; padding: 18px; overflow: auto; }
.ie-stage { position: relative; align-self: start; border-radius: 16px; overflow: hidden; background: repeating-conic-gradient(#1a1d1b 0 25%, #121413 0 50%) 0 0 / 20px 20px; border: 1px solid var(--line-2); }
.ie-stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.ie-warn { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.7); color: var(--warn, #ffb547); font-size: 12px; }
.ie-warn .ico { width: 14px; height: 14px; }
.ie-tools { display: grid; gap: 14px; align-content: start; }
.ie-l { font-size: 12.5px; color: var(--dim); }
.ie-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line); margin-top: -8px; }
.ie-seg button { padding: 9px 6px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; transition: background .2s, color .2s; }
.ie-seg button[aria-pressed="true"] { background: var(--accent); color: #0a0a0a; font-weight: 600; }
.ie-auto { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; border: 1px dashed rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .06); color: var(--accent); font: inherit; font-weight: 500; cursor: pointer; transition: background .2s, transform .2s; }
.ie-auto:hover { transform: translateY(-1px); }
.ie-auto.on { background: var(--accent); color: #0a0a0a; border-style: solid; }
.ie-auto .ico { width: 16px; height: 16px; }
.ie-rng { display: grid; grid-template-columns: 74px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.ie-rng b { font-family: var(--mono); font-weight: 500; font-size: 12px; text-align: right; color: var(--text); }
.ie-rng input { --fill: 50%; }
@media (max-width: 700px) { .ie-body { grid-template-columns: 1fr; } .ie-card { border-radius: 18px; } }

/* ---------- Para mí / Para mi negocio ---------- */
.buy-mode { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 99px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); isolation: isolate; }
.buy-mode button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 16px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; transition: color .25s; white-space: nowrap; }
.buy-mode button[aria-pressed="true"] { color: #0a0a0a; font-weight: 600; }
.buy-mode i { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: var(--accent); box-shadow: 0 6px 18px rgba(var(--accent-rgb), .3); transition: transform .35s var(--ease); }
.buy-mode button[data-buymode="mayor"][aria-pressed="true"] ~ i { transform: translateX(100%); }
.buy-mode.bm-wide { display: grid; width: 100%; }
.whole-hint { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-2); background: transparent; color: var(--muted); font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.whole-hint:hover { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }
.whole-hint .ico { color: var(--accent); }

/* ---------- Mapas ---------- */
.mp-card { width: min(720px, 100%); }
.mp-body { display: grid; gap: 12px; padding: 16px 18px; overflow: auto; position: relative; }
.mp-search { display: flex; gap: 8px; align-items: center; position: relative; }
.mp-search .input { flex: 1; padding-left: 40px; }
.mp-ico { position: absolute; left: 14px; color: var(--dim); display: grid; }
.mp-ico svg { width: 16px; height: 16px; }
.mp-res { display: grid; gap: 2px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-3); max-height: 180px; overflow: auto; animation: pmIn .2s ease both; }
.mp-res button { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.mp-res button:hover { background: rgba(255,255,255,.05); }
.mp-res .ico { color: var(--accent); flex: none; margin-top: 2px; }
.mp-map { height: min(340px, 45vh); border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0d100e; }
.mp-info { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.mp-info b { display: block; font-weight: 500; font-size: 13.5px; }
.mp-dot { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.mp-dot svg { width: 16px; height: 16px; }
/* (el mapa base ya es oscuro) */
.maplibregl-map { font: 12px var(--font, system-ui); background: #0d100e; }
.maplibregl-ctrl-attrib { background: rgba(0,0,0,.6) !important; color: #9a9a9a !important; }
.maplibregl-ctrl-attrib a { color: #c5f25a !important; }
.maplibregl-ctrl-group { background: #161a17 !important; border: 1px solid #2a2f2b; }
.maplibregl-ctrl-group button + button { border-top-color: #2a2f2b !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
.mk-pin { position: relative; width: 30px; height: 40px; cursor: grab; }
.mk-pin:active { cursor: grabbing; }
.mk-pin span { position: absolute; left: 3px; top: 0; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); box-shadow: 0 6px 16px rgba(0,0,0,.5), 0 0 0 4px rgba(var(--accent-rgb), .25); animation: pinDrop .5s cubic-bezier(.2,1.4,.4,1) both; }
.mk-pin span::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #0a0a0a; }
@keyframes pinDrop { from { transform: translateY(-18px) rotate(-45deg); opacity: 0; } }
.mp-mini { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); }
.mp-mini-map { height: 170px; background: #0d100e; }
.mp-go { position: absolute; right: 10px; bottom: 26px; z-index: 500; display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 99px; background: var(--accent); color: #0a0a0a; font-size: 12.5px; font-weight: 600; box-shadow: 0 6px 16px rgba(0,0,0,.45); }

/* =========================================================
   Toques de movimiento (todo se apaga con "reducir movimiento")
   ========================================================= */
/* Textura fina sobre el fondo: le quita lo "plano" sin cuadrícula */
html::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Viñeta suave en los bordes */
html::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0, 0, 0, .55) 100%); }

/* Aparecer al entrar en pantalla */
.rv { opacity: 0; transform: translateY(14px); }
.rv.rv-in { opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .4s var(--ease); }
.rv.rd1 { transition-delay: 25ms; } .rv.rd2 { transition-delay: 50ms; } .rv.rd3 { transition-delay: 75ms; } .rv.rd4 { transition-delay: 100ms; } .rv.rd5 { transition-delay: 120ms; } .rv.rd6 { transition-delay: 140ms; } .rv.rd7 { transition-delay: 160ms; } .rv.rd8 { transition-delay: 180ms; }

/* Luz que sigue al cursor en las tarjetas */
.card { --mx: 50%; --my: 50%; }
.card.spot:hover { background-image: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--accent-rgb), .06), transparent 45%); }

/* Botones: se hunden un poco al presionar */
.btn:active { transform: scale(.97); }
.btn-primary { background-size: 200% 100%; }

/* Íconos de los títulos de las cajas: pequeño pulso al pasar */
.box-head h2 svg, .box-head h2 [data-i] { transition: transform .35s var(--ease); }
.box:hover .box-head h2 svg { transform: rotate(-8deg) scale(1.12); }

/* Etiquetas que "laten" cuando algo necesita atención */
.sb-link .count { animation: countPulse 2.6s ease-in-out infinite; }
@keyframes countPulse { 50% { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); } }

/* Portada generada para tiendas sin foto: colores de la marca, luz que cruza, textura y monograma */
.gen-cover { position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 140% at 0% 0%, hsla(var(--ch1), 60%, 40%, .20), transparent 70%),
    radial-gradient(80% 130% at 100% 100%, hsla(var(--ch2), 60%, 40%, .14), transparent 70%),
    linear-gradient(135deg, #0f1311, #070908) !important; }
.gen-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.gen-cover::after { content: attr(data-mono); position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font-size: clamp(90px, 16vw, 210px); font-weight: 700; letter-spacing: -.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .09); pointer-events: none; }
.st-cover.gen-cover { animation: coverShift 18s ease-in-out infinite alternate; background-size: 140% 140%, 140% 140%, 100% 100% !important; }
@keyframes coverShift { from { background-position: 0% 0%, 100% 100%, 0 0; } to { background-position: 30% 20%, 70% 60%, 0 0; } }
.st-cover .gc-tag { position: absolute; top: 14px; right: 16px; z-index: 2; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); padding: 5px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .25); backdrop-filter: blur(6px); }
.st-cover:not(.gen-cover) .gc-tag { display: none; }
.st-cover .gc-sweep, .gen-cover .gc-sweep { display: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .sb-link .count, .st-cover.gen-cover { animation: none; }
}

/* ---------- Instalar la app (por sistema) ---------- */
.ih-card.ih-wide { width: min(500px, 100%); position: relative; max-height: calc(100dvh - 32px); overflow: auto; animation: ieUp .35s var(--ease) both; }
.ih-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.ih-icon { animation: ihFloat 3.2s ease-in-out infinite; box-shadow: 0 14px 30px -10px rgba(var(--accent-rgb), .5); }
@keyframes ihFloat { 50% { transform: translateY(-5px); } }
.ih-sub { margin: -6px 0 0; font-size: 13.5px; color: var(--muted); max-width: 380px; }
.ih-or { font-size: 12px; color: var(--dim); margin: -4px 0; }
.ih-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.ih-tabs button { position: relative; display: grid; gap: 1px; padding: 9px 4px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; transition: background .2s, color .2s; }
.ih-tabs button i { font-style: normal; font-size: 10px; color: var(--accent); }
.ih-tabs button[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.ih-card li { animation: pmIn .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.ih-foot { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 12.5px; color: var(--dim); }
.ih-foot .ico { color: var(--accent); }
@media (max-width: 420px) { .ih-tabs { grid-template-columns: repeat(2, 1fr); } }
.mp-res[hidden] { display: none; }

/* ---------- Elegir talla y color ---------- */
.vsel { display: grid; gap: 8px; }
.vsel-l { font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.vsel-l b { color: var(--text); font-weight: 500; }
.vsel-o { display: flex; flex-wrap: wrap; gap: 6px; }
.vsel-o button { min-width: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: border-color .2s, background .2s, transform .15s; }
.vsel-o button:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.vsel-o button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.vsel-o .vcolor i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); flex: none; }
.vsel.shake { animation: vShake .45s; }
.vsel.shake .vsel-l b { color: var(--warn, #ffb547); }
@keyframes vShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.subcats { margin-top: 8px; } .subcats .chip { font-size: 12.5px; padding: 6px 12px; opacity: .9; } .subcats[hidden] { display: none; }

/* ---------- Volver atrás y menú de la cuenta ---------- */
.back-btn { display: none; }
@media (max-width: 860px) { .back-btn { display: grid; } }
html.standalone .back-btn { display: grid; }
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; transition: border-color .2s, background .2s; }
.acct-btn:hover { border-color: var(--accent-line); }
.acct-btn .avatar { width: 30px; height: 30px; font-size: 12px; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; width: 250px; display: grid; gap: 2px; padding: 8px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.acct.open .acct-menu { opacity: 1; transform: none; pointer-events: auto; }
.acct-head { display: grid; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-head b { font-weight: 500; }
.acct-head span { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.acct-menu .ico { width: 16px; height: 16px; color: var(--accent); }
.acct-menu button:last-child .ico { color: var(--danger, #f2716b); }
.mm-acct { display: grid; gap: 8px; padding: 0 20px 20px; }

/* Celulares: sin fondos animados ni textura (ahorra batería y se siente más rápido) */
@media (max-width: 760px), (pointer: coarse) {
  body::before, body::after { animation: none; will-change: auto; }
  html::before { display: none; }
  .st-cover.gen-cover { animation: none; }
}

/* Código de seguimiento Impulsa */
.trk { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 11.5px; white-space: nowrap; transition: background .2s; }
.trk:hover { background: rgba(var(--accent-rgb), .2); }
.trk .ico { width: 13px; height: 13px; }
.trk-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border: 1px dashed var(--accent-line); border-radius: 14px; background: rgba(var(--accent-rgb), .04); }
.trk-box > div:first-child { display: grid; gap: 2px; min-width: 0; }
.trk-box b { font-size: 15px; color: var(--accent); }
.acct-sq { padding: 0; border: 0; background: transparent; } .acct-sq .avatar { width: 34px; height: 34px; } .topbar .acct-menu { top: calc(100% + 8px); }
.p-thumb.has-photo { background: #fff; } .p-thumb.has-photo img { object-fit: contain; }
.mp-info { flex-wrap: wrap; } .mp-info .grow { display: grid; gap: 4px; min-width: 220px; } .mp-info .mp-label { height: 40px; font-size: 13.5px; } .mp-btns { display: grid; gap: 4px; justify-items: end; }
@media (max-width: 760px), (pointer: coarse) {
  .sb, .topbar, .p-flags .tag { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ---------- Escena de envío (camión de Impulsa PYME) ---------- */
.tscene { position: relative; height: 150px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #0b1830 0%, #15304b 42%, #23495a 72%, #1c3d36 100%); --tw: 128px; }
.tscene.compact { height: 118px; --tw: 104px; }
.ts-sky { position: absolute; inset: 0 0 46px; overflow: hidden; }
.ts-city { position: absolute; left: 0; bottom: 0; width: 200%; height: 46px; opacity: .5;
  background: repeating-linear-gradient(90deg, #13241b 0 22px, transparent 22px 30px, #102019 30px 46px, transparent 46px 58px, #16291f 58px 70px, transparent 70px 86px);
  -webkit-mask: linear-gradient(0deg, #000 0 60%, transparent 60%) bottom/100% 100% no-repeat, repeating-linear-gradient(90deg, #000 0 18px, transparent 18px 22px); }
.ts-city.far { height: 70px; opacity: .25; background: repeating-linear-gradient(90deg, #1b3326 0 34px, transparent 34px 44px, #142a1f 44px 60px, transparent 60px 80px); }
.tscene.moving .ts-city { animation: tsCity 9s linear infinite; }
.tscene.moving .ts-city.far { animation-duration: 18s; }
@keyframes tsCity { to { transform: translateX(-50%); } }
.ts-road { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: #0d110f; border-top: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.ts-dash { position: absolute; left: 0; right: -60px; top: 50%; height: 3px; margin-top: -1.5px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 22px, transparent 22px 44px); }
.tscene.moving .ts-dash { animation: tsDash .6s linear infinite; }
@keyframes tsDash { to { transform: translateX(-44px); } }
.ts-fill { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p) * 1%); background: linear-gradient(90deg, rgba(197,242,90,.2), var(--accent)); animation: tsFill 1.4s var(--ease) both; }
@keyframes tsFill { from { width: 0; } }
.ts-end { position: absolute; bottom: 52px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--accent); z-index: 1; }
.ts-end svg { width: 18px; height: 18px; }
.ts-store { left: 12px; } .ts-home { right: 12px; }
.tscene.done .ts-home { background: var(--accent); color: #0a0a0a; border-color: var(--accent); animation: tsPop .5s var(--ease) 1.3s both; }
@keyframes tsPop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.ts-rider { position: absolute; bottom: 30px; z-index: 2; width: var(--tw); left: calc(12px + (100% - var(--tw) - 24px) * var(--p) / 100); animation: tsDrive 1.4s var(--ease) both; }
.tscene.done .ts-rider { left: calc(100% - var(--tw) - 58px); }
@keyframes tsDrive { from { left: 12px; } }
.ts-truck { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.tscene.moving .ts-truck { animation: tsBump .5s ease-in-out infinite; }
@keyframes tsBump { 50% { transform: translateY(-1.5px); } }
.tscene.moving .ts-wheel { animation: tsSpin .5s linear infinite; }
@keyframes tsSpin { to { transform: rotate(360deg); } }
.ts-label { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--accent); color: #0a0a0a; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.ts-label::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: var(--accent); transform: rotate(45deg); }
.ts-puff { position: absolute; left: -8px; bottom: 12px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); animation: tsPuff 1.1s ease-out infinite; }
.ts-puff.p2 { animation-delay: .55s; }
@keyframes tsPuff { from { transform: translate(0, 0) scale(.6); opacity: .8; } to { transform: translate(-26px, -10px) scale(1.8); opacity: 0; } }
@media (max-width: 480px) { .tscene { --tw: 96px; height: 128px; } }
@media (prefers-reduced-motion: reduce) { .tscene * { animation: none !important; } }

/* Yape / Plin: QR + número + titular en una sola tarjeta */
.pm-wallet { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.pm-w-yape { border-color: rgba(116, 34, 132, .55); background: linear-gradient(135deg, rgba(116, 34, 132, .16), rgba(0, 0, 0, .28) 60%); }
.pm-w-plin { border-color: rgba(0, 166, 184, .5); background: linear-gradient(135deg, rgba(0, 166, 184, .14), rgba(0, 0, 0, .28) 60%); }
.pmw-qr { display: grid; justify-items: center; gap: 6px; }
.pmw-qr img { width: 168px; height: 168px; object-fit: contain; border-radius: 16px; background: #fff; padding: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.pmw-qr span { font-size: 11.5px; color: var(--dim); }
.pmw-info { display: grid; gap: 8px; min-width: 0; }
.pmw-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pmw-brand b { font-weight: 600; }
.pmw-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); min-width: 0; }
.pmw-row span { font-size: 12px; color: var(--dim); width: 74px; flex: none; }
.pmw-row b { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.pmw-row .pm-copy { flex: none; }
.pmw-amt b { color: var(--accent); font-size: 18px; }
@media (max-width: 560px) { .pm-wallet { grid-template-columns: 1fr; } .pmw-qr img { width: 190px; height: 190px; } }

/* =========================================================
   Detalles con movimiento (solo transform/opacity: rápidos en cualquier equipo)
   ========================================================= */
/* Carrito: el número salta al agregar */
.cart-count.bump { animation: cartBump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cartBump { 40% { transform: scale(1.45); } }
/* Productos: la foto se acerca un poco y el botón + gira al pasar el mouse */
.p-card .p-thumb.has-photo img { transition: transform .5s var(--ease); }
.p-card:hover .p-thumb.has-photo img { transform: scale(1.05); }
.p-add { transition: transform .25s var(--ease), background .2s, color .2s; }
.p-card:hover .p-add { transform: rotate(90deg); background: var(--accent); color: #0a0a0a; }
.p-add:active { transform: rotate(90deg) scale(.9); }
/* Avisos: entran deslizándose */
.toast { animation: toastIn .35s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes toastIn { from { transform: translateY(14px) scale(.96); opacity: 0; } }
/* Pestañas: el contenido aparece con suavidad */
[data-panel]:not(.hide), #tabBody > * { animation: pmIn .3s var(--ease) both; }
/* Enlaces del menú: pequeño desplazamiento al pasar */
.sb-link { transition: background .2s, color .2s, transform .2s; }
.sb-link:hover { transform: translateX(2px); }
/* Insignia de verificado: brillo suave al pasar */
.vb { transition: filter .2s; } .vb:hover { filter: brightness(1.25); }
@media (prefers-reduced-motion: reduce) { .cart-count.bump, .toast, [data-panel]:not(.hide), #tabBody > * { animation: none; } .p-card:hover .p-add, .sb-link:hover { transform: none; } }
/* Pago con tarjeta (Mercado Pago) */
.pm-logo-mp { background: linear-gradient(135deg, #00b1ea, #009ee3); }
.pm-logo-mp svg { width: 18px; height: 18px; }
.pm-card { display: grid; gap: 12px; border-color: rgba(0, 158, 227, .45); background: linear-gradient(135deg, rgba(0, 158, 227, .12), rgba(0, 0, 0, .28) 60%); }
.pm-trust { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pm-trust .ico { color: var(--accent); }

/* ---------- Catálogo en PDF: ventana de avance y compartir ---------- */
.pdf-sheet { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.pdf-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.pdf-card { position: relative; width: min(420px, 100%); padding: 28px 24px 22px; display: grid; justify-items: center; gap: 10px; text-align: center; transform: translateY(14px) scale(.98); opacity: 0; transition: transform .3s var(--ease), opacity .25s; }
.pdf-sheet.open { pointer-events: auto; }
.pdf-sheet.open .pdf-scrim { opacity: 1; }
.pdf-sheet.open .pdf-card { transform: none; opacity: 1; }
.pdf-x { position: absolute; top: 10px; right: 10px; }
.pdf-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb), .1); border: 1px solid var(--accent-line); }
.pdf-ico svg { width: 24px; height: 24px; }
.pdf-card h3 { font-size: 1.15rem; font-weight: 500; }
.pdf-bar { width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pdf-bar i { display: block; height: 100%; width: 4%; background: var(--accent); border-radius: 6px; transition: width .25s; box-shadow: 0 0 12px rgba(var(--accent-rgb), .6); }
.pdf-acts { display: grid; gap: 8px; width: 100%; margin-top: 6px; }
.pdf-acts:empty { display: none; }
.pdf-acts .btn { width: 100%; justify-content: center; }

/* ---------- Ofertas con tiempo ---------- */
.tag.tag-sale, .p-flags .tag.tag-sale { background: #e5484d; color: #fff; border-color: transparent; font-weight: 600; }
.p-was { margin-left: 6px; font-size: 12px; color: var(--dim); }
.sale-clock { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(229, 72, 77, .12); border: 1px solid rgba(229, 72, 77, .35); color: #ff8a8d; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.sale-clock svg { width: 13px; height: 13px; }
/* Disponibilidad y entrega */
.lead-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.lead-line svg { width: 14px; height: 14px; color: var(--accent); }
.lead-line.order svg { color: var(--warn); }

/* Paisaje del camión */
.ts-l { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; background-position: 0 100%; }
.ts-stars { top: 0; bottom: auto; height: 70px; background-size: 180px 70px; background-position: 0 0; opacity: .8; }
.ts-mtn { height: 62px; background-size: 420px 62px; --bw: -420px; }
.ts-bld { height: 50px; background-size: 234px 50px; --bw: -234px; opacity: .95; }
.ts-trees { height: 34px; background-size: 178px 34px; --bw: -178px; }
.ts-moon { position: absolute; top: 12px; left: 32%; width: 16px; height: 16px; border-radius: 50%; background: #f4f1d0; box-shadow: 0 0 18px 5px rgba(244, 241, 208, .3); }
.tscene.moving .ts-mtn { animation: tsBg 60s linear infinite; }
.tscene.moving .ts-bld { animation: tsBg 22s linear infinite; }
.tscene.moving .ts-trees { animation: tsBg 9s linear infinite; }
@keyframes tsBg { to { background-position-x: var(--bw); } }
.tscene.compact .ts-mtn { height: 50px; background-size: 340px 50px; --bw: -340px; }
.tscene.compact .ts-bld { height: 40px; background-size: 187px 40px; --bw: -187px; }
.tscene.compact .ts-trees { height: 28px; background-size: 147px 28px; --bw: -147px; }
.ts-end { background: rgba(8, 16, 12, .78); backdrop-filter: blur(4px); }

/* La pantalla de pago se acomoda al espacio (vista previa angosta del panel, celular) */
.pm { container-type: inline-size; }
@container (max-width: 470px) {
  .pm-wallet { grid-template-columns: 1fr; gap: 14px; }
  .pmw-qr img { width: 150px; height: 150px; }
  .pmw-row span { width: 64px; }
}

/* =========================================================
   Tarjeta de producto más fina: proporcionada aunque haya un solo producto
   ========================================================= */
.grid-products { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)) !important; gap: 18px 14px !important; }
.p-card { padding: 6px; border-radius: 18px; border-color: rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .018); transition: border-color .25s, transform .3s var(--ease), background .25s; }
.p-card:hover { border-color: rgba(var(--accent-rgb), .3); background: rgba(255, 255, 255, .03); }
.p-card-media .p-thumb { border-radius: 13px; }
.p-card-body { padding: 10px 6px 4px; gap: 3px; }
.p-name { font-size: 13.5px; line-height: 1.35; font-weight: 500; text-transform: none; }
.p-seller { font-size: 11.5px; gap: 3px; flex-wrap: nowrap; min-width: 0; }
.p-seller-link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.p-seller .dim { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-prices { margin-top: 4px; gap: 4px; }
.p-price { font-size: 16px; }
.p-whole { padding: 4px 8px; font-size: 11.5px; border-radius: 8px; }
.p-meta { font-size: 12px; padding-top: 6px; }
.p-add { width: 30px; height: 30px; }
.p-add svg { width: 14px; height: 14px; }
.p-flags { top: 8px; left: 8px; gap: 4px; }
.p-flags .tag { font-size: 10.5px; padding: 2px 7px; }
@media (max-width: 520px) { .grid-products { grid-template-columns: 1fr 1fr !important; gap: 12px 10px !important; } }

/* Descripción del producto: lectura cómoda */
.rich-desc { display: grid; gap: 14px; max-width: 680px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.rich-desc p { margin: 0; }
.rd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rd-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 14.5px; line-height: 1.6; }
.rd-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 14px; line-height: 1; }
.rd-ic.rd-check { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.rd-ic svg { width: 14px; height: 14px; }

/* =========================================================
   Filtros (catálogo y tienda): secciones plegables, ordenadas
   ========================================================= */
.facets { display: grid; }
.fc-sec { border-bottom: 1px solid var(--line); }
.fc-sec > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 2px; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.fc-sec > summary::-webkit-details-marker { display: none; }
.fc-sel { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #0a0a0a; font-size: 10.5px; display: inline-grid; place-items: center; letter-spacing: 0; }
.fc-chev { width: 15px; height: 15px; margin-left: auto; color: var(--dim); transition: transform .25s var(--ease); }
.fc-sec[open] .fc-chev { transform: rotate(180deg); }
.fc-body { display: grid; gap: 2px; padding: 0 0 14px; }
.fc-opt { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.fc-opt:hover { background: rgba(255, 255, 255, .03); color: var(--text); }
.fc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fc-box { width: 16px; height: 16px; flex: none; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.fc-opt input[type="radio"] + .fc-box { border-radius: 50%; }
.fc-opt input:checked + .fc-box { background: var(--accent); border-color: var(--accent); }
.fc-opt input:checked + .fc-box::after { content: ""; width: 7px; height: 4px; border: 2px solid #0a0a0a; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.fc-opt input[type="radio"]:checked + .fc-box::after { width: 6px; height: 6px; border: 0; border-radius: 50%; background: #0a0a0a; transform: none; }
.fc-opt input:focus-visible + .fc-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.fc-opt input:checked ~ .fc-l { color: var(--text); }
.fc-l { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.fc-l small { display: block; font-size: 11px; color: var(--dim); }
.fc-n { font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.fc-opt.off { opacity: .4; cursor: default; }
.fc-opt.off:hover { background: none; color: var(--muted); }
.fc-range { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.fc-range .input { height: 38px; padding: 0 10px; font-size: 13px; }
.fc-range span { color: var(--dim); }
.fc-find { margin-bottom: 6px; }
.fc-find .input { height: 36px; font-size: 13px; }
.fc-more { justify-self: start; margin-top: 4px; font-size: 12.5px; color: var(--accent); }
.fc-stars { display: inline-flex; align-items: center; gap: 5px; }
.fc-stars svg { width: 13px; height: 13px; color: #ffc23d; fill: #ffc23d; }
.fc-av { width: 24px; height: 24px; font-size: 9.5px; flex: none; box-shadow: none; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-chips:empty { display: none; }
.fc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 11px; border-radius: 99px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--text); font-size: 12.5px; cursor: pointer; animation: pgIn .25s var(--ease) both; }
.fc-chip svg { width: 12px; height: 12px; color: var(--muted); }
.fc-chip:hover svg { color: var(--text); }
.fc-clear { font-size: 12.5px; color: var(--dim); padding: 5px 8px; text-decoration: underline; text-underline-offset: 3px; }
.fc-clear:hover { color: var(--text); }
@keyframes pgIn { from { opacity: 0; transform: translateY(6px); } }

/* En vivo: chiquito y en una esquina */
.buzz { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; justify-items: start; max-width: min(330px, calc(100vw - 32px)); pointer-events: none; }
.buzz > * { pointer-events: auto; }
.buzz-online { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(8, 12, 10, .88); border: 1px solid var(--line-2); backdrop-filter: blur(10px); font-size: 12px; color: var(--muted); animation: pgIn .35s var(--ease) both; }
.buzz-online i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: buzzPing 2s infinite; }
@keyframes buzzPing { 70% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.buzz-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 30px 8px 8px; border-radius: 16px; background: rgba(8, 12, 10, .92); border: 1px solid var(--line-2); backdrop-filter: blur(10px); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .7); cursor: pointer; animation: buzzIn .45s var(--ease) both; transition: opacity .4s, transform .4s var(--ease); }
.buzz-card.out { opacity: 0; transform: translateY(8px); pointer-events: none; }
@keyframes buzzIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.buzz-th { width: 42px !important; height: 42px; flex: none; border-radius: 10px !important; }
.buzz-ic { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.buzz-ic svg { width: 18px; height: 18px; }
.buzz-card b { display: block; font-size: 12px; font-weight: 500; color: var(--text); }
.buzz-card span { display: block; font-size: 12.5px; color: var(--muted); max-width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buzz-card small { font-size: 11px; color: var(--dim); }
.buzz-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--dim); }
.buzz-x:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.buzz-x svg { width: 12px; height: 12px; }
@media (max-width: 560px) { .buzz { bottom: 76px; left: 10px; } }
@media (prefers-reduced-motion: reduce) { .buzz-card, .buzz-online, .buzz-online i { animation: none; } }

/* Logos de marca */
.brand-ic { width: 1em; height: 1em; display: block; }
.bb { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 17px; }
.bb .brand-ic { width: 17px; height: 17px; }
.bb b { font-size: 11px; font-weight: 800; letter-spacing: -.02em; }
.bb-whatsapp { background: #25D366; } .bb-facebook { background: #0866FF; } .bb-messenger { background: #0099FF; }
.bb-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.bb-tiktok { background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); } .bb-x { background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.bb-telegram { background: #26A5E4; } .bb-linkedin { background: #0A66C2; } .bb-gmail { background: #fff; color: #EA4335; } .bb-youtube { background: #FF0000; } .bb-meta { background: #0467DF; }
.bb-yape { background: #742284; } .bb-yape b { font-size: 11.5px; letter-spacing: -.04em; }
.bb-plin { background: linear-gradient(135deg, #00C4CC, #0077C8); }
.bb-bcp { background: #002A8D; } .bb-bcp b { color: #FF7800; font-size: 10.5px; }
/* Yape y Plin al pagar: con su color de marca */
.pm-logo-yape { background: #742284 !important; }
.pm-logo-plin { background: linear-gradient(135deg, #00C4CC, #0077C8) !important; }
/* Todas las grillas de productos son grillas (también en el catálogo privado) */
.grid-products { display: grid; }

/* Descripción natural (sin cajas alrededor de los emojis) */
.rd-list { gap: 8px; }
.rd-list li { gap: 10px; font-size: 14.5px; color: var(--muted); }
.rd-list li b { color: var(--text); font-weight: 500; }
.rd-ic { width: auto; height: auto; background: none !important; border: 0 !important; border-radius: 0; font-size: 15px; line-height: 1.6; display: inline-block; }
.rd-ic.rd-check { color: var(--accent); }
.rd-ic svg { width: 15px; height: 15px; margin-top: 4px; }
.rd-kv { padding-left: 2px; }
.rd-kv::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--dim); margin: 10px 4px 0 0; flex: none; }
.rich-desc p b { color: var(--text); font-weight: 500; }

/* Íconos en recuadro con color suave (más vivos y ordenados en todas las secciones) */
.b-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--accent); background: radial-gradient(120% 120% at 20% 0%, rgba(var(--accent-rgb), .26), rgba(var(--accent-rgb), .05)); border: 1px solid var(--accent-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.b-ico svg { width: 19px; height: 19px; }

/* Logos oficiales de Yape y Plin */
.bb-img, .pm-logo-yape, .pm-logo-plin { background: none !important; box-shadow: none; padding: 0; overflow: hidden; }
.bb-img img, .pm-logo-yape img, .pm-logo-plin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-yape, .pm-logo-yape { border-radius: 10px; }
.bb-plin img, .pm-logo-plin img { object-fit: contain; }
.pm-logo-yape::after, .pm-logo-plin::after { display: none; }
.pm-logo-yape, .pm-logo-plin { width: 34px; }
.pm-logo-mp { background: linear-gradient(140deg, #00b1ea, #0a74c9); }

/* Aviso "se unió": verde Impulsa */
.buzz-card.join { padding: 9px 34px 9px 9px; background: linear-gradient(120deg, rgba(var(--accent-rgb), .16), rgba(8, 14, 10, .94) 70%); border-color: var(--accent-line); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .06), 0 18px 44px -16px rgba(var(--accent-rgb), .45); }
.buzz-card.join b { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.buzz-card.join b em { font-style: normal; color: var(--text); font-weight: 600; }
.buzz-card.join small { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.buzz-av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: radial-gradient(120% 120% at 30% 20%, #e4ff9a, var(--accent)); color: #0a0a0a; font-weight: 700; font-size: 15px; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18), 0 0 18px rgba(var(--accent-rgb), .45); }
.buzz-av img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.buzz-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); display: inline-block; animation: buzzDot 1.6s ease-in-out infinite; }
@keyframes buzzDot { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .buzz-dot { animation: none; } }

/* =========================================================
   Movimiento de marca (assets/motion.js)
   ========================================================= */
/* Entrada con el logo */
html.ii-lock { overflow: hidden; }
#ipIntro { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: #010302; cursor: pointer; overflow: hidden; }
#ipIntro .ii-glow { position: absolute; width: min(70vw, 620px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .13), rgba(var(--jade-rgb), .05) 50%, transparent 72%); opacity: 0; pointer-events: none; }
#ipIntro .ii-stage { position: relative; display: flex; align-items: center; }
#ipIntro .ii-logo { width: clamp(64px, 11vw, 88px); height: auto; border-radius: 26%; flex: none; opacity: 0; }
#ipIntro .ii-word { width: 0; overflow: hidden; white-space: nowrap; }
#ipIntro .ii-word span { display: inline-block; font-family: var(--font); font-weight: 700; font-size: clamp(30px, 6.4vw, 52px); letter-spacing: -.02em; line-height: 1; color: #f4f7f1; opacity: 0; }

/* Títulos letra por letra (los estilos de movimiento los pone el resorte en motion.js) */
.tx-w { display: inline-block; white-space: nowrap; }
.tx-l { display: inline-block; will-change: opacity, filter; }
.tx-gh { background: none !important; color: inherit; -webkit-text-fill-color: initial; }
.tx-l.tx-g { background: linear-gradient(95deg, #c5f25a 0%, #c5f25a 55%, #dff79a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .07em; margin: 0 -.07em; }

/* Fondo: figuras grandes con borde luminoso, luces y degradados verdes que giran muy lento */
#bgStrokes { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; opacity: .55; }
#bgStrokes .bs { position: absolute; overflow: visible; will-change: transform; }
#bgStrokes .bs-a { width: 78vmax; height: 78vmax; left: -34vmax; top: -18vmax; animation: bsSpin 200s linear infinite; }
#bgStrokes .bs-b { width: 70vmax; height: 70vmax; right: -36vmax; top: -30vmax; opacity: .8; animation: bsSpinRev 240s linear infinite; }
#bgStrokes .bs-c { width: 62vmax; height: 62vmax; left: 30vw; bottom: -46vmax; opacity: .7; animation: bsSpin 280s linear infinite; }
#bgStrokes .bs-light { position: absolute; border-radius: 50%; will-change: transform; }
#bgStrokes .bs-l1 { width: 60vmax; height: 60vmax; left: -14vmax; top: -16vmax; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .05), rgba(var(--jade-rgb), .02) 55%, transparent); animation: bsFloat 40s ease-in-out infinite alternate; }
#bgStrokes .bs-l2 { width: 56vmax; height: 56vmax; right: -16vmax; top: 18vh; background: radial-gradient(closest-side, rgba(var(--jade-rgb), .04), rgba(20, 90, 60, .02) 60%, transparent); animation: bsFloat 52s ease-in-out infinite alternate-reverse; }
@keyframes bsSpin { to { rotate: 360deg; } }
@keyframes bsSpinRev { to { rotate: -360deg; } }
@keyframes bsFloat { from { translate: 0 0; } to { translate: 4vmax 3vmax; } }
/* En el panel de trabajo, más tenue para no distraer */
body[data-role] #bgStrokes { opacity: .3; }
@media (max-width: 760px) { #bgStrokes .bs-a { width: 120vmax; height: 120vmax; left: -70vmax; } #bgStrokes .bs-c { display: none; } }
@media (prefers-reduced-motion: reduce) { #bgStrokes .bs, #bgStrokes .bs-light { animation: none !important; } }
@media print { #bgStrokes, #ipIntro { display: none !important; } }
.buzz-card .buzz-av { display: grid; place-items: center; max-width: none; font-size: 15px; color: #0a0a0a; line-height: 1; white-space: normal; }
.buzz-card.join b em { font-family: var(--font); font-style: normal; background: none; -webkit-text-fill-color: currentColor; color: var(--text); padding: 0; margin: 0; letter-spacing: 0; }

/* Logo oficial de BCP */
.pm-logo-bcp { background: none !important; box-shadow: none; padding: 0; width: 34px; border-radius: 10px; }
.pm-logo-bcp img, .bb-bcp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-logo-bcp::after { display: none; }

/* Insignia "Sin verificar" con texto: gris suave, sin verse rota */
.vb-none { color: var(--dim); }
.vb-none .seal { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .8; }
.vb-none .tick { stroke: currentColor; opacity: .8; }

/* Fondo verde oscuro: base casi negra con un velo verde profundo; las luces y figuras se mueven encima, muy suaves */
body { background: radial-gradient(120% 80% at 50% -10%, #06140b 0%, #030a05 45%, #020503 100%) fixed; }
body::before { opacity: .7; }
body::after { opacity: .6; }
#bgStrokes { opacity: .4; }
body[data-role] #bgStrokes { opacity: .22; }

/* Aviso "se unió": un poco más grande y limpio */
.buzz-card.join { padding: 11px 38px 11px 11px; gap: 12px; border-radius: 18px; }
.buzz-card .buzz-av { width: 42px; height: 42px; font-size: 16px; box-shadow: none; }
.buzz-card.join b { font-size: 14px; }

/* Fondo aún más oscuro: casi negro con un verde muy profundo, y el movimiento suave encima */
body { background: radial-gradient(120% 80% at 50% -10%, #04110a 0%, #020704 42%, #010201 100%) fixed; }
body::before { opacity: .55; }
body::after { opacity: .45; }
#bgStrokes { opacity: .3; }
body[data-role] #bgStrokes { opacity: .16; }

/* Detalles de movimiento (pequeños): botones que responden al toque, pestañas que aparecen suave, íconos vivos */
@media (prefers-reduced-motion: no-preference) {
  .btn, .icon-btn, .chip, .tier { transition: transform .18s var(--ease), background-color .2s, border-color .2s, box-shadow .25s, color .2s; }
  .btn:active, .icon-btn:active, .chip:active, .tier:active { transform: scale(.97); }
  [data-panel]:not(.hide) { animation: panelIn .35s var(--ease) both; }
  @keyframes panelIn { from { opacity: 0; transform: translateY(6px); } }
  .card:hover .b-ico, .lp-facts > div:hover i, .pc-box:hover header i, .sk:hover > i, .st-perks > div:hover span { transform: translateY(-1px) rotate(-5deg); }
  .b-ico, .lp-facts i, .pc-box header i, .sk > i, .st-perks span { transition: transform .35s var(--ease); }
}

/* Sección ya visitada: todo aparece de inmediato */
html.ip-seen .page > *, html.ip-seen .kpis > *, html.ip-seen .stats > *, html.ip-seen .tbl tbody tr, html.ip-seen .howto .hs, html.ip-seen .bar > i,
html.ip-seen .st-card .st-logo, html.ip-seen .st-card .st-id, html.ip-seen .rv-card, html.ip-seen [data-panel]:not(.hide) { animation: none !important; }
html.ip-seen .rv { opacity: 1 !important; transform: none !important; }
