/* ═══════════════════════════════════════════════════════════════════════════
   NEGOCIOMAP · PIEL — sistema Prova v3 (aprobado por Ariel el 2026-09-12)
   Fuente de verdad: OneOcean-OPS/.../app-producto/app/skin.css
   ═══════════════════════════════════════════════════════════════════════════
   · Tipografía Outfit 300–600, títulos grandes y ligeros, cuerpo 16px.
   · Paletas en <html data-pal="papel|carbon|noche|arena"> (public/js/piel.js).
     Por defecto PAPEL: NegocioMap se usa en la calle con sol (decisión de
     Ariel, 2026-09-13). Las otras tres las elige cada persona.
   · Un solo acento, --acc. Lo da la categoría del negocio donde aplica.
   · Tarjetas crema con su propia tinta, radios amplios, botones píldora,
     hojas inferiores, toast oscuro abajo al centro.
   · Ningún texto por debajo de 12px. Objetivos táctiles de 44px.

   Esta hoja se carga ÚLTIMA en todas las páginas. Mantiene vivas las hojas
   viejas (styles.css, waze.css) conectando sus variables a las de la piel:
   así toda la app sigue a la paleta sin reescribir cada componente.

   Diferencia deliberada con skin.css: los grises de texto (--muted,
   --card-muted) están un poco más oscuros para llegar a 4.5:1 (AA) sobre su
   fondo; en Prova rondaban 3.5:1 y acá hay mucho texto secundario.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Paletas ──────────────────────────────────────────────────────────────
   :root:root gana a los :root y [data-theme] de las hojas viejas. */
:root:root {
  --acc: #F0733A; --acc-ink: #FFFFFF;
  /* papel (por defecto) */
  --bg: #F1EEE8; --surf: #FFFFFF; --surf2: #F4F1EB; --field: #F4F1EB;
  --ink: #1F1D1A; --muted: #6B675F; --muted2: #A19C94;
  --card: #FFFFFF; --card2: #F1EEE8; --card-ink: #1F1D1A; --card-muted: #726E67;
  --line: rgba(31,29,26,.08); --cline: rgba(31,29,26,.08);
  --csh: 0 10px 30px rgba(31,29,26,.08); --tsh: 0 10px 30px rgba(31,29,26,.14);

  --warn: #C8781E; --warn-bg: rgba(200,120,30,.14);
  --danger: #C9442E; --danger-bg: rgba(201,68,46,.12);
  --ok: #1E9A5E; --ok-bg: rgba(30,154,94,.14);
  --oro: #F2C230;
  --r: 26px; --r-sm: 18px;
}
:root:root[data-pal="carbon"] {
  --bg: #2A2724; --surf: #3A3632; --surf2: #443F3A; --field: #2F2C29;
  --ink: #F5F2ED; --muted: #A39E97; --muted2: #7E7972;
  --card: #F4F2EE; --card2: #E8E5DE; --card-ink: #1F1D1A; --card-muted: #6E6A63;
  --line: rgba(255,255,255,.08); --cline: rgba(31,29,26,.08);
  --csh: 0 10px 30px rgba(0,0,0,.18); --tsh: 0 10px 30px rgba(0,0,0,.28);
}
:root:root[data-pal="noche"] {
  --bg: #121214; --surf: #1D1D21; --surf2: #26262B; --field: #19191C;
  --ink: #F2EFE9; --muted: #9C99A2; --muted2: #6F6C75;
  --card: #ECEBE8; --card2: #DEDCD7; --card-ink: #15141A; --card-muted: #66636C;
  --line: rgba(255,255,255,.08); --cline: rgba(21,20,26,.08);
  --csh: 0 10px 30px rgba(0,0,0,.3); --tsh: 0 10px 30px rgba(0,0,0,.45);
}
:root:root[data-pal="arena"] {
  --bg: #DCD3C4; --surf: #EBE4D7; --surf2: #F3EDE2; --field: #F3EDE2;
  --ink: #2A2521; --muted: #5F574E; --muted2: #A39A8E;
  --card: #F9F5EE; --card2: #EFE8DC; --card-ink: #2A2521; --card-muted: #6B6258;
  --line: rgba(42,37,33,.08); --cline: rgba(42,37,33,.08);
  --csh: 0 10px 30px rgba(42,37,33,.08); --tsh: 0 10px 30px rgba(42,37,33,.14);
}

/* ── Tarjetas: superficie crema con su propia tinta ───────────────────────
   Dentro de una tarjeta, "tinta", "gris" y "campo" pasan a ser los de la
   tarjeta. En papel no cambia nada; en carbón/noche es lo que permite
   tarjetas claras sobre fondo oscuro sin tocar cada componente. */
.card, .login-card, .modal, .chart-box, .chart-container, .stat-card,
.metric-card, .table-container, .product-card, .map-legend, .campaign-preview,
.ob-step-panel, .tarjeta, .rol-tarjeta, .inf-card, .w-card, .w-vale, .w-trofeo,
.w-sheet, .w-cat-card, .w-menu, #notif-panel, .maplibregl-popup-content,
.leaflet-popup-content-wrapper, .tour-tooltip, #tour-tooltip {
  --bg: var(--card2); --surf: var(--card); --surf2: var(--card2); --field: var(--card2);
  --ink: var(--card-ink); --muted: var(--card-muted); --line: var(--cline);
}

/* ── Puente: variables de las hojas viejas → variables de la piel ─────────
   Se declara en <html>, en cada tarjeta y en todo elemento que traiga su
   propio --acc (pines, detalle del desafío), para que se resuelva con los
   valores locales. */
:root:root,
.card, .login-card, .modal, .chart-box, .chart-container, .stat-card,
.metric-card, .table-container, .product-card, .map-legend, .campaign-preview,
.ob-step-panel, .tarjeta, .rol-tarjeta, .inf-card, .w-card, .w-vale, .w-trofeo,
.w-sheet, .w-cat-card, .w-menu, #notif-panel, .maplibregl-popup-content,
.leaflet-popup-content-wrapper, .tour-tooltip, #tour-tooltip,
[style*="--acc"] {
  --acc-soft: color-mix(in srgb, var(--acc) 14%, transparent);
  --acc-glow: color-mix(in srgb, var(--acc) 38%, transparent);

  /* styles.css (paneles) */
  --bg-primary: var(--bg); --bg-secondary: var(--surf); --bg-card: var(--surf);
  --bg-glass: var(--surf2); --bg-glass-hover: color-mix(in srgb, var(--ink) 7%, var(--surf2));
  --text-primary: var(--ink); --text-secondary: var(--muted); --text-muted: var(--muted);
  --accent-purple: var(--acc); --accent-purple-glow: var(--acc-glow);
  --accent-cyan: var(--acc); --accent-cyan-glow: var(--acc-soft);
  --accent-green: var(--ok); --accent-green-glow: var(--ok-bg);
  --accent-red: var(--danger); --accent-orange: var(--acc);
  --accent-yellow: var(--warn); --accent-pink: var(--acc);
  --gradient-main: linear-gradient(var(--acc), var(--acc));
  --gradient-hot: linear-gradient(var(--danger), var(--danger));
  --gradient-success: linear-gradient(var(--ok), var(--ok));
  --gradient-gold: linear-gradient(var(--warn), var(--warn));
  --border-color: var(--line); --border-active: var(--acc);
  --shadow-sm: var(--csh); --shadow-md: var(--csh); --shadow-lg: var(--tsh);
  --shadow-glow-purple: 0 12px 26px var(--acc-glow); --shadow-glow-cyan: var(--csh);
  --navbar-bg: var(--bg); --sidebar-bg: var(--bg); --modal-overlay: rgba(0,0,0,.45);
  --radius-sm: 12px; --radius-md: var(--r-sm); --radius-lg: var(--r); --radius-xl: var(--r);

  /* waze.css (portada y páginas del vecino) */
  --w-crema: var(--bg); --w-crema-2: color-mix(in srgb, var(--ink) 12%, transparent);
  --w-marfil: var(--surf); --w-gris: var(--surf2);
  --w-tinta: var(--ink); --w-tinta-2: var(--muted);
  --w-naranja: var(--acc); --w-naranja-2: var(--acc-soft);
  --w-turquesa-2: color-mix(in srgb, #2896AE 16%, transparent);
  --w-verde: var(--ok); --w-verde-2: var(--ok-bg);
  --w-amarillo: var(--oro); --w-coral: var(--danger); --w-rojo: var(--danger);
  --w-sombra: var(--csh); --w-sombra-lg: var(--tsh);
  --w-r: var(--r); --w-r-sm: var(--r-sm);
  --w-display: "Outfit", -apple-system, system-ui, sans-serif;
  --w-sans: "Outfit", -apple-system, system-ui, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
html { background: var(--bg); }
body, body.waze {
  font-family: "Outfit", -apple-system, system-ui, sans-serif;
  font-weight: 400; font-size: 16px; line-height: 1.45;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body::before { display: none !important; }
b, strong { font-weight: 500; }
a { color: var(--acc); }
::placeholder { color: var(--muted2); font-weight: 300; opacity: 1; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 22%, transparent); }
.theme-toggle { display: none !important; }

/* Títulos grandes y ligeros; nada en negrita pesada. */
h1, h2, h3, h4 { font-family: "Outfit", -apple-system, system-ui, sans-serif; letter-spacing: -.015em; }
body h1, body.waze h1 { font-weight: 300; }
body h2, body.waze h2, body h3, body.waze h3, body h4, body.waze h4 { font-weight: 400; }
.dashboard-header h1 { font-size: 30px; line-height: 1.1; }
.dashboard-header p, .login-subtitle { color: var(--muted); font-weight: 300; font-size: 16px; }

/* ── Cabecera y barra lateral (paneles) ───────────────────────────────── */
.navbar {
  background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.navbar-brand {
  background: none; -webkit-text-fill-color: currentColor;
  color: var(--ink); font-weight: 400; letter-spacing: -.01em;
}
.sidebar {
  background: var(--bg); border-right: 1px solid var(--line);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.sidebar-nav a {
  border-radius: 999px; border-left: none; color: var(--muted);
  font-weight: 400; min-height: 44px; display: flex; align-items: center;
}
.sidebar-nav a:hover:not(.active) { background: var(--surf); color: var(--ink); }
.sidebar-nav a.active {
  background: var(--acc); color: var(--acc-ink); border-left: none;
  box-shadow: 0 6px 14px var(--acc-glow);
}
/* Bloque "Modo" al pie del menú del panel: las mismas tres filas que el
   cajón de la portada, con el check de trazo en el modo activo. */
.sidebar-modos { margin: 18px 12px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.sidebar-modos .grupo { font-size: 12px; color: var(--muted); letter-spacing: .04em; padding: 0 16px 6px; }
.sidebar-modos .modo {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.sidebar-modos .modo .trazo { width: 20px; height: 20px; color: var(--muted); }
.sidebar-modos .modo:hover { background: var(--surf); color: var(--ink); }
.sidebar-modos .modo.activo { background: var(--surf); color: var(--ink); }
.sidebar-modos .modo.activo .trazo { color: var(--ink); }
.sidebar-modos .modo .check { margin-left: auto; color: var(--acc); width: 18px; height: 18px; }
/* En el teléfono el menú lateral se vuelve una tira horizontal de píldoras
   bajo la barra (antes quedaba oculto y el panel no tenía cómo cambiar de
   sección); el bloque de modo va en la misma tira. */
@media (max-width: 768px) {
  .dashboard-layout { flex-direction: column; }
  .sidebar {
    display: flex; position: static; width: auto; min-width: 0; border-right: 0; border-bottom: 1px solid var(--line);
    padding: 8px 0 0; overflow-x: auto; scrollbar-width: none; align-items: center; gap: 4px;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar-nav { display: flex; gap: 6px; padding: 0 0 10px 12px; }
  .sidebar-nav li { margin: 0; flex: none; }
  .sidebar-nav a { white-space: nowrap; padding: 0 14px; min-height: 40px; font-size: 14px; gap: 8px; }
  .sidebar-nav .nav-icon { display: none; }
  .sidebar-modos { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 12px 10px 6px; border-top: 0; border-left: 1px solid var(--line); flex: none; }
  .sidebar-modos .grupo { padding: 0 6px 0 8px; white-space: nowrap; }
  .sidebar-modos .modo { width: auto; min-height: 40px; padding: 0 12px; font-size: 14px; gap: 8px; white-space: nowrap; background: var(--surf); }
  .sidebar-modos .modo.activo { background: var(--ink); color: var(--surf); }
  .sidebar-modos .modo.activo .trazo, .sidebar-modos .modo.activo .check { color: var(--surf); }
  .sidebar-modos .modo .check { margin-left: 0; }
}

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  border: none; border-radius: 999px; font-family: inherit;
  font-weight: 500; min-height: 44px; letter-spacing: 0;
}
.btn-lg { min-height: 54px; font-size: 16px; }
.btn-sm { min-height: 36px; font-size: 13px; padding: 0 14px; }
.btn-primary, body.waze .btn.btn-primary {
  background: var(--acc); color: var(--acc-ink); border: none;
  box-shadow: 0 12px 26px var(--acc-glow);
}
.btn-primary:hover { transform: none; filter: brightness(1.05); box-shadow: 0 12px 26px var(--acc-glow); }
.btn-secondary, body.waze .btn.btn-secondary {
  background: var(--surf2); color: var(--ink); border: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.btn-secondary:hover { background: var(--bg-glass-hover); border-color: transparent; }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-ghost:hover { color: var(--ink); background: var(--surf2); }
.btn-success { background: var(--ok); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn:disabled, .w-btn:disabled { opacity: .45; box-shadow: none; cursor: default; }

.w-btn {
  font-weight: 500; font-size: 15px; min-height: 48px;
  background: var(--acc); color: var(--acc-ink);
  box-shadow: 0 10px 22px var(--acc-glow);
}
.w-btn.gris { background: var(--surf2); color: var(--ink); box-shadow: none; }
.w-btn.verde { background: var(--ok); color: #fff; box-shadow: none; }
.w-btn.coral { background: var(--danger); color: #fff; box-shadow: none; }
.w-fab { background: var(--acc); color: var(--acc-ink); box-shadow: 0 12px 26px var(--acc-glow); }
.w-fab small { font-size: 12px; font-weight: 500; }
.w-chip { font-weight: 400; font-size: 13px; border-color: var(--line); }
.w-chip.on { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); box-shadow: 0 6px 14px var(--acc-glow); }

/* Facebook conserva su azul: es lo único que la gente reconoce. */
.btn-facebook { border-radius: 999px; min-height: 40px; font-weight: 500; font-size: 15px; }

/* ── Campos ───────────────────────────────────────────────────────────── */
.form-input, .form-select, .form-textarea, .campo input, .caja input {
  background-color: var(--field); color: var(--ink);
  border: none; border-radius: var(--r-sm);
  font-family: inherit; font-size: 16px; font-weight: 400;
  box-shadow: none;
}
.form-input, .form-select, .campo input, .caja input { min-height: 52px; padding: 0 18px; }
.form-textarea { padding: 14px 18px; }
.form-input:focus, .form-select:focus, .form-textarea:focus,
.campo input:focus, .caja input:focus {
  outline: none; border-color: transparent; box-shadow: 0 0 0 3px var(--acc-soft);
}
.form-select, select.form-select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 42px;
}
.form-select option { background: var(--surf); color: var(--ink); }
.form-label, .campo label {
  font-size: 13px; font-weight: 400; color: var(--muted);
  text-transform: none; letter-spacing: 0;
}
.w-busca { border-radius: 999px; min-height: 52px; background: var(--surf2); }
.w-busca input { font-weight: 400; font-size: 16px; }

/* ── Tarjetas ─────────────────────────────────────────────────────────── */
.card, .login-card, .modal, .chart-box, .chart-container, .stat-card,
.metric-card, .table-container, .product-card, .map-legend, .campaign-preview,
.ob-step-panel.active, .tarjeta, .rol-tarjeta, .inf-card, .w-card, .w-vale,
.w-trofeo, .w-cat-card, .w-menu {
  background: var(--card); color: var(--card-ink);
  border: none; border-radius: var(--r); box-shadow: var(--csh);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.card:hover, .metric-card:hover, .product-card:hover { transform: none; box-shadow: var(--csh); border-color: transparent; }
.card-glow::before, .login-card::before, .stat-card::before, .metric-card::before { display: none; }
.card h3, .chart-container h3, .chart-box h3, .tarjeta h2 { font-weight: 400; }
.w-trofeo, .w-cat-card { border-radius: var(--r-sm); }

/* Cifras grandes y ligeras */
.stat-card .stat-value, .metric-val { font-weight: 300; font-size: 40px; letter-spacing: -.03em; line-height: 1.05; }
.stat-card .stat-label, .metric-label { font-size: 13px; font-weight: 300; color: var(--muted); text-transform: none; letter-spacing: 0; }

/* ── Login ────────────────────────────────────────────────────────────── */
.login-page { background: var(--bg); }
.login-card { padding: 34px 26px 30px; }
.login-title {
  background: none; -webkit-text-fill-color: currentColor;
  color: var(--ink); font-weight: 300; font-size: 34px; letter-spacing: -.02em;
}
.login-tabs { background: var(--surf2); border: none; border-radius: 999px; padding: 4px; }
.login-tab { border-radius: 999px; color: var(--muted); font-weight: 400; min-height: 44px; }
.login-tab.active { background: var(--acc); color: var(--acc-ink); box-shadow: 0 6px 14px var(--acc-glow); }
.role-option {
  background: var(--surf2); color: var(--ink); border: 2px solid transparent;
  border-radius: var(--r-sm); font-weight: 400;
}
.role-option:hover { border-color: var(--acc-glow); }
.role-option.selected { background: var(--acc-soft); border-color: var(--acc); color: var(--ink); }

/* ── Pestañas en píldora (dashboard y admin) ──────────────────────────── */
.tab-bar, .tabs { background: var(--surf); border: none; border-radius: 999px; padding: 4px; }
.tab-btn, .tab { border-radius: 999px; font-weight: 400; color: var(--muted); }
.tab-btn.active, .tab.active { background: var(--acc); color: var(--acc-ink); box-shadow: 0 6px 14px var(--acc-glow); }

/* ── Tablas ───────────────────────────────────────────────────────────── */
.data-table th, .table-container th {
  background: transparent; color: var(--muted); font-size: 13px;
  font-weight: 400; text-transform: none; letter-spacing: 0;
  border-bottom: 1px solid var(--line);
}
.data-table td, .table-container td { border-bottom: 1px solid var(--line); }
.data-table tr:hover td { background: var(--surf2); }

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge { font-size: 12px; font-weight: 500; border-radius: 999px; box-shadow: none; animation: none; }
.badge-discount { background: var(--acc); color: var(--acc-ink); }
.badge-free { background: var(--ok-bg); color: var(--ink); }
.badge-exhausted { background: var(--surf2); color: var(--muted); }
.badge-stock { background: var(--acc-soft); color: var(--ink); }
.badge-category { background: var(--surf2); color: var(--ink); }
.py-badge { font-size: 12px; font-weight: 500; }
.py-badge.amarillo { background: var(--oro); color: #1F1D1A; }
.py-badge.verde { background: var(--ok-bg); color: var(--ink); }
.py-badge.pro { background: var(--acc); color: var(--acc-ink); }
.w-pill-cupo { background: var(--ok-bg); color: var(--ink); font-size: 12px; font-weight: 500; }
.distance-badge, body.waze .distance-badge { background: var(--surf2); color: var(--ink); font-size: 12px; font-weight: 500; }

/* ── Vales y trofeos ──────────────────────────────────────────────────── */
.w-vale .banda { background: var(--oro); color: #1F1D1A; font-weight: 500; }
.w-vale.confirmado .banda { background: var(--ok); color: #fff; }
.w-vale.vencido .banda { background: var(--surf2); color: var(--muted); }
.w-vale h5 { font-weight: 400; font-size: 22px; }
.w-vale .codigo { background: var(--surf2); border-color: var(--muted); border-radius: var(--r-sm); }
.w-vale .pie { background: var(--surf2); color: var(--muted); font-size: 12px; font-weight: 400; }
.w-trofeo .m { background: var(--ok-bg); }
.w-trofeo.rev .m { background: color-mix(in srgb, var(--oro) 30%, transparent); }
.w-trofeo b { font-weight: 500; }
.w-trofeo small { font-size: 12px; font-weight: 400; }
.w-trofeo .g { color: var(--ok); font-weight: 500; }

/* ── Portada: mapa, pines, hoja, barra y cajón ────────────────────────── */
.w-redondo { background: var(--surf); color: var(--ink); box-shadow: var(--csh); }
.w-redondo .w-punto { background: var(--danger); color: #fff; font-size: 12px; font-weight: 500; }

/* Pin: aro con el acento de la categoría; relleno si tiene un reto vivo. */
.w-burbuja { background: var(--surf); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 2px var(--acc), var(--csh); }
.w-burbuja.reto { background: var(--acc); color: var(--acc-ink); box-shadow: 0 8px 18px var(--acc-glow); }
.w-burbuja.pro { border-color: var(--oro); box-shadow: 0 0 0 3px color-mix(in srgb, var(--oro) 45%, transparent), var(--tsh); }
.w-burbuja.pro::before { font-size: 12px; }
.w-burbuja .cupito { background: var(--surf); color: var(--ink); font-size: 12px; }

.w-sheet { border-radius: 32px 32px 0 0; box-shadow: 0 -20px 50px rgba(0,0,0,.2); }
.w-sheet .asa { background: var(--cline); }

.w-tabbar { background: var(--bg); border-top: 1px solid var(--line); }
.w-tabbar button { font-size: 12px; font-weight: 400; color: var(--muted); }
.w-tabbar button.on { color: var(--ink); font-weight: 500; }
.w-tabbar button.on::after { background: var(--acc); }
/* Íconos de trazo fino en lugar de los PNG de emoji (2026-10-13): la pestaña
   activa se marca con el acento en el ícono, sin la rayita de abajo. */
.w-tabbar button svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.w-tabbar button.on svg { stroke: var(--acc); }
.w-tabbar button:has(svg).on::after { display: none; }

.w-drawer { background: var(--bg); box-shadow: var(--tsh); }
.w-drawer .cabecera { border-bottom: 1px solid var(--line); }
.w-drawer .cabecera b { font-weight: 400; font-size: 18px; }
.w-drawer .cabecera small { font-weight: 300; font-size: 13px; }
.w-drawer .grupo { font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: .04em; }
.w-drawer a, .w-drawer button.item, .w-drawer .modo { font-weight: 400; font-size: 16px; min-height: 48px; }
.w-drawer a:active, .w-drawer button.item:active { background: var(--surf); }
.w-drawer .modo.activo { background: var(--surf); }
.w-drawer .modo .check { color: var(--acc); }
.w-drawer .separador, .w-menu .separador { background: var(--line); height: 1px; }
.w-drawer-backdrop { background: rgba(0,0,0,.45); }

.w-buscar-panel { background: var(--bg); }
.w-buscar-panel .w-busca { background: var(--surf); box-shadow: var(--csh); }
.w-buscar-panel h2 { font-size: 22px; font-weight: 300; }
.w-cat-card { font-weight: 400; font-size: 13px; }
.w-cat-card.on { outline: 2px solid var(--acc); }

.py-card { border-bottom: 1px solid var(--line); }
.py-card .logo { background: var(--surf2); border-radius: 16px; }
.py-card .titulo { font-weight: 500; font-size: 16px; }
.py-card .negocio, .py-card .datos { font-weight: 400; font-size: 13px; color: var(--muted); }
/* Reto nacido de la tienda: precio del reto y precio de lista tachado */
.py-card .datos .precio { color: var(--ink); font-weight: 500; }
.py-card .datos .precio s, .det-premio .precio s { color: var(--muted); font-weight: 300; margin-left: 5px; }
.det-premio .precio { font-size: 18px; font-weight: 500; }
.det-premio .cg-cod { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--surf2); color: var(--ink); }
.py-estrella { font-weight: 500; }
.py-estrella small { font-size: 12px; font-weight: 400; }
.py-estado { font-weight: 500; }
.py-estado.abierto { color: var(--ok); }
.py-estado.cerrado { color: var(--danger); }

.prod-tile .foto { background: var(--surf2); border-radius: var(--r-sm); }
.prod-tile .nombre { font-weight: 400; font-size: 13px; }
.prod-tile .precio { font-weight: 500; }
.prod-tile .antes, .prod-tile .mini-est { font-size: 12px; font-weight: 400; }
.estrellas-voto button { color: color-mix(in srgb, var(--ink) 20%, transparent); min-width: 44px; min-height: 44px; }

body.waze .offer-card-business, body.waze .stock-display, body.waze .stock-bar-container { font-size: 12px; }
body.waze .offer-card-title { font-weight: 500; }
body.waze .offer-timer, .w-oferta .reloj { color: var(--acc); font-weight: 500; }
.w-avatar { border-color: var(--bg); }

/* Mapa: claro en papel/arena, oscuro en carbón/noche (sin claves de API).
   Leaflet: filtro sobre las imágenes de teselas (seguro).
   MapLibre: NO se filtra el <canvas> WebGL (se componía en negro); app.js
   cambia a un estilo vectorial oscuro al cambiar de paleta. */
:root[data-pal="carbon"] .leaflet-tile-pane, :root[data-pal="noche"] .leaflet-tile-pane {
  filter: invert(.9) hue-rotate(180deg) saturate(.5) brightness(.95) contrast(.92);
}
:root[data-pal="arena"] .leaflet-tile-pane {
  filter: sepia(.28) saturate(.85) brightness(.97);
}
.maplibregl-ctrl-group { background: var(--surf); box-shadow: var(--csh); }
:root[data-pal="carbon"] .maplibregl-ctrl-group .maplibregl-ctrl-icon,
:root[data-pal="noche"] .maplibregl-ctrl-group .maplibregl-ctrl-icon { filter: invert(1); }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--surf); color: var(--ink); border-color: var(--line); }
.maplibregl-ctrl-attrib, .leaflet-control-attribution {
  font-size: 12px; color: var(--muted);
  background: color-mix(in srgb, var(--surf) 82%, transparent) !important;
}
.maplibregl-ctrl-attrib a, .leaflet-control-attribution a { color: var(--muted); }
.maplibregl-popup-content, .leaflet-popup-content-wrapper { border-radius: var(--r-sm); box-shadow: var(--tsh); }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--card); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--card); }
.leaflet-popup-tip { background: var(--card); }

/* ── Detalle del desafío y modales ────────────────────────────────────── */
.modal-overlay, body.waze .modal-overlay {
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.modal-header h2 { font-weight: 300; font-size: 26px; }
.modal-close {
  min-width: 44px; min-height: 44px; border-radius: 999px;
  background: var(--surf2); color: var(--ink);
}
.challenge-detail .challenge-title { font-weight: 300; font-size: 28px; letter-spacing: -.015em; }
.challenge-detail .challenge-business { color: var(--muted); font-weight: 300; }
.challenge-detail .challenge-text { background: var(--surf2); border: none; border-radius: var(--r-sm); color: var(--ink); }
.challenge-detail .meta-item { background: var(--surf2); border: none; border-radius: var(--r-sm); }
.challenge-detail .meta-value { font-weight: 300; font-size: 22px; }
.challenge-detail .meta-label { font-size: 12px; color: var(--muted); }

/* En el teléfono los diálogos son hojas inferiores, como en Prova. */
@media (max-width: 640px) {
  .modal-overlay, body.waze .modal-overlay { align-items: flex-end; padding: 0; }
  .modal, body.waze .modal {
    width: 100%; max-width: none; margin: 0;
    border-radius: 32px 32px 0 0; max-height: 92vh; max-height: 92dvh;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Paneles: sugerencias IA, placeholders ────────────────────────────── */
.ai-suggestion { background: var(--surf2); border: none; border-radius: var(--r-sm); }
.ai-suggestion:hover { background: var(--surf2); outline: 2px solid var(--acc); transform: none; }
.offer-card-image-placeholder, .product-card-img-placeholder { background: var(--surf2); }

/* ── Toast: oscuro, abajo al centro ───────────────────────────────────── */
.toast-container {
  top: auto; right: auto; left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); align-items: center;
  width: max-content; max-width: 90vw;
}
body.waze-mapa .toast-container { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.toast, body.waze .toast {
  background: #1F1D1A; color: #F5F2ED;
  border: none; border-radius: 999px;
  padding: 12px 18px; min-width: 0; max-width: 90vw;
  font-family: inherit; font-size: 15px; font-weight: 400;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  animation: pielToast .2s ease-out, fadeOut .3s ease 3s forwards;
}
.toast.error { background: #8E2F1F; }
.toast.success, .toast.info, .toast.warning, .toast.error { border-left: none; }
@keyframes pielToast { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Tour de bienvenida ───────────────────────────────────────────────── */
#tour-title { color: var(--card-ink); font-weight: 400; font-size: 18px; }
#tour-text { color: var(--card-muted); font-size: 15px; font-weight: 300; }
.tour-dot { background: var(--cline); }
.tour-dot.active { background: var(--acc); }
#tour-skip { color: var(--card-muted); font-size: 14px; min-height: 44px; }
#tour-skip:hover { color: var(--card-ink); }
#tour-next {
  background: var(--acc); color: var(--acc-ink); border-radius: 999px;
  min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 500;
  box-shadow: 0 10px 22px var(--acc-glow);
}

/* ── Selector de paletas (miniaturas, igual que Prova) ────────────────── */
.pals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.palc {
  border: none; border-radius: 18px; padding: 6px 6px 8px;
  background: var(--surf2); color: var(--muted);
  font-family: inherit; font-size: 13px; font-weight: 400;
  text-align: center; cursor: pointer; min-height: 44px;
}
.palc .mini {
  display: block; height: 78px; border-radius: 13px; margin-bottom: 6px;
  background: var(--pb); position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.palc .mini::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 10px;
  height: 26px; border-radius: 8px; background: var(--pc);
}
.palc .mini::after {
  content: ""; position: absolute; left: 8px; right: 30px; bottom: 10px;
  height: 14px; border-radius: 7px; background: var(--acc);
}
.palc.on { outline: 2px solid var(--acc); color: var(--ink); font-weight: 500; }

/* ── Páginas con estilos propios ──────────────────────────────────────────
   Sus <style> cargan antes que esta hoja: acá se ajustan a la piel sin
   tocar cada archivo. */

/* Tour */
#tour-tooltip {
  background: var(--card); color: var(--card-ink);
  border: none; border-radius: var(--r); box-shadow: var(--tsh);
}
#tour-spotlight { border-radius: var(--r-sm); }

/* Onboarding */
:root:root { --step-active: var(--acc); --step-done: var(--ok); }
.ob-step-dot { background: var(--surf); color: var(--muted); border-color: var(--line); font-weight: 500; }
.ob-step-dot.active { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.ob-step-dot.done { background: var(--ok); color: #fff; border-color: var(--ok); }
.ob-step-line { background: var(--line); }
.ob-step-line.done { background: var(--ok); }
.ob-step-label { font-size: 12px; color: var(--muted); }
.ob-title { font-weight: 300; font-size: 28px; letter-spacing: -.015em; }
.ob-subtitle { font-weight: 300; font-size: 15px; }
.ob-notice { background: var(--acc-soft); border: none; color: var(--ink); border-radius: var(--r-sm); font-size: 14px; }
.product-item { background: var(--surf2); border-radius: var(--r-sm); }
.product-counter span { color: var(--acc); font-weight: 300; }

/* Bienvenida */
.marca .logo { font-weight: 400; }
.marca .logo em, .marca em { color: var(--acc); }
.pregunta h1 { font-weight: 300; font-size: 30px; }
.pregunta p { font-weight: 300; font-size: 16px; color: var(--muted); }
.rol-tarjeta { min-height: 80px; }
.rol-tarjeta .ico { border-radius: 999px; }
.rol-tarjeta.vecino .ico { background: color-mix(in srgb, #2896AE 16%, transparent); }
.rol-tarjeta.negocio .ico { background: var(--acc-soft); }
.rol-tarjeta.promotor .ico { background: color-mix(in srgb, var(--danger) 14%, transparent); }
.rol-tarjeta .tx b { font-weight: 500; font-size: 17px; }
.rol-tarjeta .tx small { font-weight: 300; font-size: 13px; }
.luego { font-weight: 400; font-size: 14px; }
.luego a { color: var(--ink); }

/* Ajustes, muro de influencers, perfil, restablecer, legales */
.cab h1 { font-weight: 300; font-size: 28px; }
.tarjeta h2 { font-weight: 400; font-size: 17px; }
.tarjeta h1 { font-weight: 300; font-size: 24px; }
.tarjeta p { font-weight: 300; font-size: 15px; color: var(--muted); }
.nota-paleta { margin: 0 0 12px; }
.perfil-cab small { font-weight: 300; font-size: 13px; color: var(--muted); }
.modo-fila {
  background: var(--surf2); border: 2px solid transparent; color: var(--ink);
  border-radius: var(--r-sm); font-weight: 400; font-size: 16px; min-height: 60px;
}
.modo-fila small { font-weight: 300; font-size: 13px; color: var(--muted); }
.modo-fila.activo { background: var(--acc-soft); border-color: var(--acc); }
.modo-fila .check { color: var(--acc); }
.sub, .cab .sub { font-weight: 300; font-size: 14px; color: var(--muted); }
.seccion-tit { font-weight: 400; font-size: 20px; }
.inf-cab b { font-weight: 500; }
.inf-cab .rank { font-weight: 400; color: var(--muted); }
.inf-dato { background: var(--surf2); font-weight: 500; font-size: 13px; }
.inf-bio { font-weight: 300; font-size: 15px; }
.inf-social a { color: var(--acc); }
.marca { font-weight: 300; }
.volver { font-weight: 400; color: var(--muted); }
.legal h1 { font-weight: 300; font-size: 34px; }
.legal h2 { font-weight: 400; }
.legal p, .legal li { font-weight: 300; }
.legal a { color: var(--acc); }
.legal .caja { background: var(--surf); border-radius: var(--r-sm); }
.w-tabs span { font-weight: 400; font-size: 13px; }
.w-tabs span.on { background: var(--acc); color: var(--acc-ink); }

/* Admin */
.metric-val { font-weight: 300; font-size: 40px; }
.mod-badge { background: var(--danger); font-size: 12px; font-weight: 500; }
.mod-item { background: var(--surf); border: none; border-radius: var(--r-sm); box-shadow: var(--csh); }
.mod-item.rechazado { border-left: 4px solid var(--danger); }
.mod-item.revisar { border-left: 4px solid var(--warn); }
.mod-item.pendiente { border-left: 4px solid var(--muted); }
.mod-chip { font-size: 12px; font-weight: 500; }
.mod-chip.rechazado { background: var(--danger-bg); color: var(--danger); }
.mod-chip.revisar { background: var(--warn-bg); color: var(--warn); }
.mod-chip.pendiente { background: var(--surf2); color: var(--muted); }
.mod-chip.aprobado { background: var(--ok-bg); color: var(--ok); }
.mod-contenido { background: var(--surf2); color: var(--ink); border-radius: var(--r-sm); }
.mod-cats span { font-size: 12px; background: var(--surf2); color: var(--muted); }
.email-chip { background: var(--acc-soft); color: var(--ink); font-size: 12px; font-weight: 500; }
.seg-filters { background: var(--surf); border: none; border-radius: var(--r-sm); }
.seg-filters label { font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.legend-item { font-weight: 400; }

/* ── Objetivos táctiles en el teléfono ────────────────────────────────── */
@media (pointer: coarse) {
  .btn, .btn-sm, .w-chip, .tab-btn, .tab, .login-tab, .modal-close,
  .notif-boton, .sidebar-nav a, .role-option, .palc { min-height: 44px; }
}

/* ── Movimiento reducido ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ── Selector de idioma (I18N.pintarSelector) ─────────────────────────── */
.idiomas { display: inline-flex; background: var(--surf); border-radius: 999px; padding: 4px; box-shadow: var(--csh); }
.idioma { font: inherit; font-size: 13px; border: 0; background: none; color: var(--muted); min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; }
.idioma.on { background: var(--ink); color: var(--surf); font-weight: 500; }
.tarjeta .idiomas, .card .idiomas { background: var(--surf2); box-shadow: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   AJUSTE DE OCTUBRE (mockups/mejoras-octubre.html, aprobado el 2026-10-13)
   · Un solo acento en toda la app; lo demás es tinta y grises.
   · Sin emoji: monogramas para los negocios e íconos de trazo fino.
   · Portada: minutos a pie, filtros de un toque, detalle con botón fijo.
   ═══════════════════════════════════════════════════════════════════════ */
.trazo { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.w-redondo .trazo { width: 22px; height: 22px; }
.w-drawer a .trazo, .w-drawer button .trazo { margin-right: 2px; color: var(--muted); }
.w-busca .trazo { color: var(--muted); margin-right: 4px; }

.mono {
  width: 100%; height: 100%; display: grid; place-items: center; border-radius: inherit;
  font-size: 15px; font-weight: 500; letter-spacing: .04em; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
}

.pildora {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 13px; border-radius: 999px;
  font: inherit; font-size: 13px; border: 0; white-space: nowrap;
  background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink);
}
button.pildora { cursor: pointer; min-height: 36px; }
.pildora.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.pildora.acc { background: color-mix(in srgb, var(--acc) 13%, transparent); color: color-mix(in srgb, var(--acc) 70%, var(--ink)); }
.pildora.on, .pildora.tinta { background: var(--ink); color: var(--surf); font-weight: 500; }
.pildora .trazo { width: 16px; height: 16px; }

/* Etiquetas: tinta en vez de verde y amarillo */
.py-badge.tinta, .badge-free, .badge-discount { background: var(--ink); color: var(--surf); }
.py-badge.gris { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); }
.py-badge.contorno { background: none; color: var(--muted); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); }
.py-estrella::before { color: var(--ink); }
.py-estado.abierto, .py-estado.cerrado { color: var(--muted); font-weight: 400; }
.py-estado.abierto::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 5px; vertical-align: middle; }

/* Lista de la portada */
.w-filtros { display: flex; gap: 8px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.w-filtros::-webkit-scrollbar { display: none; }
.py-card .logo { border-radius: 16px; overflow: hidden; }
.py-card .titulo { font-weight: 500; font-size: 16px; }
.py-card .negocio { font-weight: 400; font-size: 13px; }
.py-card .datos { font-weight: 400; font-size: 13px; gap: 4px 14px; }
.py-card .datos .camina { color: color-mix(in srgb, var(--acc) 70%, var(--ink)); font-weight: 500; }
body.waze .py-card .datos .offer-timer { color: var(--muted); font-weight: 400; }
body.waze .py-card .datos .offer-timer.hoy { color: var(--ink); font-weight: 500; }

/* Pines: monograma en claro; con reto vivo, tinta; el más cercano, acento */
.w-burbuja { background: var(--surf); color: var(--ink); box-shadow: var(--csh); font-weight: 500; font-size: 12px; letter-spacing: .03em; min-width: 36px; justify-content: center; }
.w-burbuja.reto { background: var(--ink); color: var(--surf); box-shadow: var(--tsh); font-size: 13px; letter-spacing: 0; padding: 7px 8px 7px 12px; }
.w-burbuja.reto .cupito { background: color-mix(in srgb, var(--surf) 22%, transparent); color: var(--surf); padding: 1px 8px; border-radius: 999px; }
.w-burbuja.reto.cerca { background: var(--acc); color: var(--acc-ink); box-shadow: 0 8px 18px var(--acc-glow); }
.w-burbuja.reto.cerca .cupito { background: rgba(255,255,255,.24); color: #fff; }

/* Detalle del reto */
.modal-header.det-cierre { justify-content: flex-end; border: 0; padding-bottom: 0; margin-bottom: -34px; position: relative; z-index: 2; }
#challenge-detail-content { text-align: left; padding-bottom: 0; }
.det-cab { display: flex; align-items: center; gap: 12px; padding-right: 48px; }
.det-cab .logo { width: 48px; height: 48px; flex: none; border-radius: 50%; overflow: hidden; }
.det-cab .logo img { width: 100%; height: 100%; object-fit: cover; }
.det-cab .quien { min-width: 0; }
.det-cab b { display: block; font-weight: 500; }
.det-cab small { display: block; font-size: 13px; color: var(--muted); }
.det-cab small::first-letter { text-transform: uppercase; }
.det-datos { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.det-titulo { font-weight: 300; font-size: 28px; letter-spacing: -.015em; line-height: 1.15; }
.det-premio { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 10px 0 16px; }
.det-premio s { color: var(--muted); }
.det-pasos { background: var(--surf2); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.det-pasos small { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.det-pasos > div { display: flex; align-items: flex-start; gap: 12px; }
.det-pasos .num { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 500; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.det-cupo { margin: 16px 0 4px; }
.det-cupo .fila { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.det-cupo .fila span:first-child { color: var(--ink); font-weight: 500; }
body.waze .det-cupo .offer-timer { color: var(--muted); font-weight: 400; background: none; padding: 0; }
.det-cupo .barra { height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.det-cupo .barra i { display: block; height: 100%; border-radius: 8px; background: var(--acc); }
/* El pie queda pegado abajo y tapa el relleno inferior del modal (sea cual sea). */
.det-pie { position: sticky; bottom: -40px; display: flex; gap: 10px; padding: 14px 0 40px; margin: 12px 0 -40px; background: var(--card); border-top: 1px solid var(--cline); z-index: 3; }
.det-pie .btn { flex: 1; }
.det-pie .redondo { width: 54px; height: 54px; flex: none; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }

/* ── Modo actual (vecino / negocio / influencer) ───────────────────────── */
/* Píldora junto al botón de la cuenta en la portada: abre el menú. */
.modo-rotulo { min-height: 36px; background: var(--surf); color: var(--ink); font-weight: 500; font-size: 13px; box-shadow: var(--csh); cursor: pointer; }
/* Píldora bajo el nombre en el menú. */
.modo-chip { margin-top: 6px; min-height: 26px; font-size: 12px; font-weight: 500; padding: 0 10px; }
/* Hoja "¿Y ahora?" tras cambiar de modo. */
.modo-hoja h2 { font-weight: 300; font-size: 26px; letter-spacing: -.015em; line-height: 1.15; margin: 0 0 4px; }
.modo-hoja p { color: var(--muted); font-size: 15px; line-height: 1.45; margin: 0 0 14px; }
.modo-hoja .lista { display: grid; gap: 6px; }
.modo-hoja .lista a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: var(--r-sm); background: var(--surf2); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.modo-hoja .lista a .trazo { color: var(--muted); }
.modo-hoja .despues { margin-top: 12px; width: 100%; min-height: 46px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; }

/* ── Mis vales y Mostrador ─────────────────────────────────────────────── */
/* --fondo-pagina guarda el fondo real de la página: dentro de una tarjeta --bg ya es otro. */
.pf-contenedor { --fondo-pagina: var(--bg); max-width: 480px; margin: 0 auto; padding: 18px 16px 48px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.pf-cab { display: flex; align-items: center; gap: 10px; }
.pf-cab .quien { flex: 1; min-width: 0; }
.pf-cab h1 { font-size: 26px; line-height: 1.1; margin: 0; }
.pf-cab .sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-cab .w-redondo { text-decoration: none; }
.pf-tit { font-size: 13px; color: var(--muted); margin: 8px 2px 0; }
.pf-vacio { text-align: center; padding: 30px 20px; }
.pf-vacio h3 { font-weight: 400; font-size: 20px; margin-bottom: 6px; }
.pf-vacio p { color: var(--muted); font-size: 15px; }
.pf-vacio .w-btn { margin-top: 16px; text-decoration: none; }
.pf-vacio.chico { padding: 18px; }
.pf-promo { padding: 24px 20px; text-align: center; }
.pf-promo h3 { font-weight: 400; font-size: 20px; margin-bottom: 8px; }
.pf-promo p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
#panel-vales, #panel-trofeos, #panel-mas { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.w-tabs span.on { background: var(--ink); color: var(--surf); }

.pf-boleto { padding: 0; overflow: hidden; margin-bottom: 14px; }
.pf-boleto:last-child { margin-bottom: 0; }
.pf-boleto .arriba { display: flex; align-items: center; gap: 12px; padding: 16px; }
.pf-boleto .logo { width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; }
.pf-boleto .logo img { width: 100%; height: 100%; object-fit: cover; }
.pf-boleto .quien { min-width: 0; }
.pf-boleto b { display: block; font-weight: 500; }
.pf-boleto small { display: block; font-size: 13px; color: var(--muted); }
.pf-boleto .corte { border-top: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent); position: relative; }
.pf-boleto .corte::before, .pf-boleto .corte::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--fondo-pagina); }
.pf-boleto .corte::before { left: -10px; } .pf-boleto .corte::after { right: -10px; }
.pf-boleto .abajo { display: flex; align-items: center; gap: 16px; padding: 16px; }
.pf-boleto .qr { width: 104px; height: 104px; flex: none; background: #fff; border-radius: 12px; padding: 8px; }
.pf-boleto .qr:empty { display: none; }
.pf-boleto .qr svg { width: 100%; height: 100%; display: block; }
.pf-boleto .codigo { font-size: 26px; font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pf-boleto.vencido { opacity: .6; }

.pf-racha { padding: 16px; border-radius: var(--r-sm); }
.pf-racha .tope { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pf-racha .tope b { font-weight: 500; }
.pf-racha .tope span, .pf-racha p { font-size: 13px; color: var(--muted); }
.pf-racha .semanas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 8px; }
.pf-racha .semanas span { display: grid; gap: 5px; text-align: center; font-size: 12px; color: var(--muted); }
.pf-racha .semanas i { height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.pf-racha .semanas i.hecha { background: var(--acc); }
.pf-racha .semanas i.actual { background: repeating-linear-gradient(90deg, var(--acc) 0 6px, transparent 6px 10px); }

.pf-cerca { background: color-mix(in srgb, var(--acc) 13%, var(--surf)); border-radius: var(--r-sm); padding: 16px; }
.pf-cerca b { font-weight: 500; display: block; }
.pf-cerca p { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
.pf-cerca .w-btn { text-decoration: none; min-height: 44px; }
#aviso-cerca:empty, #racha:empty { display: none; }

.w-trofeo .m { overflow: hidden; background: none; }
.w-trofeo .m .mono { font-size: 13px; }
.w-trofeo .g { color: var(--ink); font-weight: 500; font-size: 13px; text-align: right; }

.w-btn.bloque { width: 100%; }
.ms-visor { height: 0; overflow: hidden; border-radius: var(--r); background: #1A1917; position: relative; display: grid; place-items: center; transition: height .2s; }
.ms-visor.activo { height: 240px; }
.ms-visor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-visor .marco { width: 160px; height: 160px; position: relative; }
.ms-visor .marco::before, .ms-visor .marco::after, .ms-visor .marco i::before, .ms-visor .marco i::after { content: ""; position: absolute; width: 30px; height: 30px; border: 3px solid #fff; }
.ms-visor .marco::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.ms-visor .marco::after { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.ms-visor .marco i::before { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.ms-visor .marco i::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.ms-visor .linea { display: none; position: absolute; left: 24%; right: 24%; top: 50%; height: 2px; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.ms-visor.leyendo .linea { display: block; }
.ms-visor p { position: absolute; bottom: 12px; left: 12px; right: 12px; text-align: center; color: #F5F2ED; font-size: 13px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.ms-codigo { display: flex; gap: 8px; }
.ms-codigo input { flex: 1; min-width: 0; min-height: 52px; border-radius: 999px; border: 0; background: var(--surf); color: var(--ink); font: inherit; font-size: 16px; padding: 0 20px; letter-spacing: .06em; text-transform: uppercase; }
.ms-codigo input:focus { outline: none; box-shadow: 0 0 0 3px var(--acc-soft); }
.ms-cola { padding: 16px; }
.ms-cola .tope { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ms-cola .tope b { font-weight: 500; }
.ms-cola .tope span, .ms-cola .vacio { font-size: 13px; color: var(--muted); }
.ms-cola .vacio { padding-top: 10px; }
.ms-cola .item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ms-cola .item:first-child { border-top: 0; }
.ms-cola .avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 500; font-size: 14px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.ms-cola .quien { flex: 1; min-width: 0; }
.ms-cola .quien b { display: block; font-weight: 500; }
.ms-cola .quien small { display: block; font-size: 13px; color: var(--muted); }
.ms-cola .w-btn { min-height: 44px; font-size: 14px; padding: 0 16px; }

/* Los íconos que eran emoji quedaron vacíos: no ocupan lugar. */
.logo-icon:empty, .nav-icon:empty, .stat-icon:empty, .empty-icon:empty, .upload-icon:empty,
.metric-icon:empty, .role-icon:empty, .ob-emoji:empty, .login-logo:empty { display: none; }
.btn .trazo { width: 18px; height: 18px; }

/* Texto de ayuda bajo un campo de formulario (p. ej. la moneda del negocio). */
.form-help { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }
