/* ClienteClub — estilos
   Paleta: azul marca + rojo del punto del logo, sobre superficies frías.
   Tipos: Sora (títulos y marca) + Manrope (texto). */

:root {
  --ink: #0D1B3E;
  --muted: #56627F;
  --blue: #1F4FBF;
  --blue-d: #173A8C;
  --blue-t: #1F4FBF;          /* azul para texto/enlaces */
  --red: #E23B4B;
  --red-d: #C62536;           /* rojo con texto blanco encima */
  --sky: #E8F0FF;
  --bg: #F6F8FD;
  --surface: #FFFFFF;
  --surface-2: #F0F4FC;
  --line: #DEE5F2;
  --ok: #12804A;
  --ok-bg: #E2F4EA;
  --warn-bg: #FDEBE3;
  --warn: #A3360F;
  --wa: #14823F;
  --shadow: 0 12px 32px rgba(13, 27, 62, .14);
  --display: 'Sora', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EAF0FF; --muted: #9DABC9; --blue: #2F63E0; --blue-d: #1F4FBF; --blue-t: #8AB0FF;
    --red: #FF5A6A; --red-d: #D6303F; --sky: #18264A; --bg: #091227; --surface: #101B35;
    --surface-2: #15223F; --line: #233256; --ok: #5BD08F; --ok-bg: #12321F; --warn-bg: #3A1D14; --warn: #FFB59A;
    --shadow: 0 12px 32px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-t); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue-t); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.boot { min-height: 100vh; display: grid; place-items: center; background: var(--blue); }
.boot img { border-radius: 24px; }

/* ---------- Botones y campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 16px; border: 0; background: var(--blue); color: #fff; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.red { background: var(--red-d); }
.btn.wa { background: var(--wa); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.soft { background: var(--sky); color: var(--blue-t); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.dark { background: #fff; color: #0D1B3E; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 0; background: transparent; color: inherit;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-btn.solid { background: var(--surface); box-shadow: 0 4px 14px rgba(13, 27, 62, .18); color: var(--ink); }
.link { border: 0; background: none; color: var(--blue-t); font-weight: 700; padding: 8px 4px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 14px; font-weight: 600; color: var(--muted); }
.input, .field input, .field textarea, .field select {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  padding: 12px 16px; font-size: 16px; color: var(--ink); transition: border-color .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { outline: none; border-color: var(--blue); }
.field .hint { font-size: 13px; color: var(--muted); }
.pw { position: relative; }
.pw input { padding-right: 56px; }
.pw .icon-btn { position: absolute; right: 4px; top: 4px; color: var(--muted); }
.err { color: var(--red-d); font-weight: 600; font-size: 14px; }
@media (prefers-color-scheme: dark) { .err { color: var(--red); } }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }

.chip {
  flex-shrink: 0; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--sky); color: var(--blue-t); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.grey { background: var(--surface-2); color: var(--muted); }
.scroll-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ---------- Estructura de la app ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }
.main { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding-inline: 16px; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: calc(var(--safe-t) + 10px) 12px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 20px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around;
  padding: 8px 6px calc(var(--safe-b) + 8px); background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none;
  color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 0; position: relative;
}
.tabbar a .pill { width: 56px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.tabbar a[aria-current="page"] { color: var(--blue-t); font-weight: 800; }
.tabbar a[aria-current="page"] .pill { background: var(--sky); }
.tabbar .badge { position: absolute; top: 0; left: calc(50% + 10px); background: var(--red-d); color: #fff; font-size: 10px; font-weight: 800; border-radius: 9px; padding: 1px 6px; }

/* Computadora y tableta: menú arriba, como una página web (en celular queda la barra de abajo) */
@media (min-width: 760px) {
  .shell.has-rail .tabbar {
    position: sticky; top: 0; bottom: auto; height: 68px; flex-direction: row; justify-content: flex-start; align-items: center; gap: 2px;
    padding: 0 max(24px, calc((100% - 1180px) / 2)); border-top: 0; border-bottom: 1px solid var(--line); background: var(--surface);
  }
  .shell.has-rail .tabbar .rail-brand { display: flex; padding: 0; margin-right: auto; }
  .shell.has-rail .tabbar a { flex: 0 0 auto; max-width: none; flex-direction: row; gap: 7px; font-size: 15px; padding: 9px 13px; border-radius: 12px; }
  .shell.has-rail .tabbar a .pill { width: auto; height: auto; background: none !important; }
  .shell.has-rail .tabbar a .pill svg { width: 19px; height: 19px; }
  .shell.has-rail .tabbar a:hover { background: color-mix(in srgb, var(--sky) 60%, transparent); }
  .shell.has-rail .tabbar a[aria-current="page"] { background: var(--sky); }
  .shell.has-rail .tabbar .badge { position: static; margin-left: 2px; }
  .shell.has-rail .main { padding-bottom: 40px; }
  .shell.has-rail .hero .t { display: none; }
  .shell.has-rail .topbar { top: 68px; padding-inline: max(20px, calc((100% - 760px) / 2)); }
  .wrap { padding-inline: 28px; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .shell.has-rail .tabbar a .pill { display: none; }
  .shell.has-rail .tabbar a { padding: 9px 10px; font-size: 14px; }
}
.rail-brand { display: none; align-items: center; gap: 10px; padding: 4px 8px 20px; }

/* ---------- Marca ---------- */
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.wordmark .a { color: var(--blue-d); }
.wordmark .b { color: var(--red); }
@media (prefers-color-scheme: dark) { .wordmark .a { color: #fff; } }
.on-dark .wordmark .a { color: #fff; }
.on-dark .wordmark .b { color: #FF6B79; }

/* ---------- Intro ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100; background: var(--blue); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; cursor: pointer; overflow: hidden;
}
.splash::before {
  content: ""; position: absolute; width: 140vmax; height: 140vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), rgba(255,255,255,0) 45%); animation: breathe 3s ease-in-out infinite;
}
.splash .logo { width: 128px; height: 128px; animation: logoIn .8s cubic-bezier(.3,1.5,.5,1) both; position: relative; }
.splash .logo .arc { stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .9s .35s ease-out forwards; }
.splash .logo .dot { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .5s 1.05s cubic-bezier(.3,1.8,.5,1) forwards; }
.splash .wordmark { font-size: 44px; opacity: 0; animation: rise .6s 1.2s ease-out forwards; position: relative; }
.splash .tagline { opacity: 0; animation: rise .6s 1.45s ease-out forwards; font-size: 16px; position: relative; color: rgba(255,255,255,.85); }
.splash .bar { position: absolute; bottom: calc(var(--safe-b) + 60px); width: 120px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.splash .bar i { display: block; height: 100%; width: 0; background: #fff; animation: load 2.5s .2s ease-in-out forwards; }
.splash.out { animation: fadeOut .35s ease forwards; }
@keyframes logoIn { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes load { to { width: 100%; } }
@keyframes breathe { 0%,100% { transform: scale(.9); } 50% { transform: scale(1.04); } }
@keyframes fadeOut { to { opacity: 0; transform: scale(1.04); } }

/* ---------- Entrada (elegir tipo de cuenta) ---------- */
.landing { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--bg); }
.landing .art { position: relative; height: clamp(260px, 42vh, 420px); overflow: hidden; }
.landing .art svg { width: 100%; height: 100%; display: block; }
.landing .art .brand { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 64px); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.landing .art .brand .wordmark { font-size: clamp(40px, 11vw, 64px); }
.landing .art .brand p { font-weight: 700; color: #0D1B3E; }
.landing .langs { position: absolute; top: calc(var(--safe-t) + 12px); right: 12px; }
.choices { width: 100%; max-width: 560px; margin: -48px auto 0; padding: 0 16px 32px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.choice {
  display: grid; grid-template-columns: 56px 1fr 24px; gap: 14px; align-items: center; padding: 18px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); text-align: left;
}
.choice .ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; }
.choice b { font-family: var(--display); font-size: 19px; display: block; }
.choice span { color: var(--muted); font-size: 14px; }
.choice.biz { background: #0D1B3E; color: #fff; border-color: #0D1B3E; }
.choice.biz span { color: #B8C4E0; }
.install-hint { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--sky); color: var(--ink); border: 0; text-align: left; width: 100%; }

.langsw { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(13,27,62,.15); }
.langsw button { border: 0; background: transparent; min-width: 44px; min-height: 34px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #56627F; }
.langsw button[aria-pressed="true"] { background: #1F4FBF; color: #fff; }

/* ---------- Inicio de sesión ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.auth-top { padding: calc(var(--safe-t) + 14px) 16px 84px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-align: center; position: relative; }
.auth-top.tourist { background: var(--blue); }
.auth-top.business { background: #0D1B3E; }
.auth-top .row { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.auth-top .wordmark { font-size: 34px; }
.auth-top .portal { font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.14); }
.auth-card { position: relative; z-index: 1; width: calc(100% - 32px); max-width: 460px; margin: -60px auto 0; background: var(--surface); border-radius: 26px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); }
.auth-card h2 { font-size: 24px; }
.auth-foot { text-align: center; padding: 20px 16px 40px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.demo-note { font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }

/* ---------- Explorar ---------- */
.hero { position: relative; height: 300px; }
.hero svg { width: 100%; height: 100%; display: block; }
.hero .t { position: absolute; left: 20px; top: calc(var(--safe-t) + 34px); }
.hero .t .wordmark { font-size: 46px; }
.hero .langs { position: absolute; top: calc(var(--safe-t) + 12px); right: 12px; }
.search {
  position: relative; z-index: 2; margin: -34px auto 0; max-width: 728px; width: calc(100% - 32px); height: 64px; border-radius: 32px;
  background: var(--surface); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; padding: 0 8px 0 22px; border: 1px solid var(--line);
}
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 18px; font-weight: 600; color: var(--ink); }
.search input::placeholder { color: var(--muted); font-weight: 500; }
.search .go { width: 48px; height: 48px; border-radius: 24px; border: 0; background: var(--red-d); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.sec-h h2 { font-size: 21px; }

.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.cat { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; border-radius: 16px; color: var(--ink); }
.cat .ico { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; transition: transform .15s; }
.cat:hover .ico { transform: translateY(-2px); }
.cat span:last-child { font-size: 13px; font-weight: 700; text-align: center; line-height: 1.2; }

.banners { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 18px; }
.banners::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; scroll-snap-align: center; min-height: 184px; border-radius: 26px; border: 0; padding: 0; position: relative; overflow: hidden; text-align: left; color: #fff; text-decoration: none; display: block; }
@media (min-width: 720px) { .banner { flex-basis: calc(50% - 6px); } }
.banner .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner .txt { position: relative; padding: 18px; width: 62%; display: flex; flex-direction: column; gap: 4px; min-height: 184px; }
.banner .kick { align-self: flex-start; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.2); padding: 3px 9px; border-radius: 8px; }
.banner .h { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.08; }
.banner .sub { font-size: 13px; line-height: 1.35; opacity: .95; }
.banner .cta { margin-top: auto; align-self: flex-start; background: #fff; color: #0D1B3E; font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 12px; }
.banner .ad { position: absolute; right: 12px; top: 12px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.3); padding: 2px 8px; border-radius: 8px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 4px; border: 0; background: var(--line); transition: width .2s; }
.dots button[aria-current="true"] { width: 22px; background: var(--blue); }

.minis { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.minis::-webkit-scrollbar { display: none; }
.mini { flex-shrink: 0; width: 188px; min-height: 132px; border-radius: 22px; border: 0; padding: 16px; display: flex; flex-direction: column; gap: 3px; text-align: left; color: #fff; }
.mini b { font-family: var(--display); font-size: 28px; line-height: 1; }
.mini .s { font-size: 13px; opacity: .92; }
.mini .cta { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 800; background: #fff; color: #0D1B3E; padding: 6px 12px; border-radius: 10px; }

.biz-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .biz-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bcard { display: block; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: left; padding: 0; width: 100%; }
.bcard .cover { height: 124px; position: relative; display: flex; align-items: flex-end; justify-content: space-between; padding: 12px; background-size: cover; background-position: center; }
.bcard .cover .tag { background: rgba(255,255,255,.94); color: #0D1B3E; }
.bcard .row { display: flex; gap: 12px; align-items: center; padding: 14px; }
.logo-chip { width: 46px; height: 46px; border-radius: 15px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 19px; overflow: hidden; background-size: cover; background-position: center; }
.bcard b { font-size: 17px; display: block; }
.bcard .d { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.news { display: flex; flex-direction: column; gap: 10px; }
.nitem { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: left; color: var(--ink); width: 100%; }
.nitem .pic { width: 78px; height: 78px; border-radius: 14px; display: grid; place-items: center; }
.nitem b { font-size: 15px; line-height: 1.3; display: block; margin: 4px 0 2px; }
.nitem .d { font-size: 13px; color: var(--muted); }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.phones div { padding: 14px; border-radius: 18px; background: var(--surface-2); }
.phones b { font-family: var(--display); font-size: 24px; color: var(--blue-t); display: block; }

/* ---------- Negocio ---------- */
.biz-hero { position: relative; height: 220px; background-size: cover; background-position: center; }
.biz-hero svg { width: 100%; height: 100%; display: block; }
.biz-hero .back { position: absolute; top: calc(var(--safe-t) + 12px); left: 12px; }
.biz-hero .fav { position: absolute; top: calc(var(--safe-t) + 12px); right: 12px; }
.biz-head { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
.biz-head h1 { font-size: 30px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.item { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.thumb { width: 68px; height: 68px; border-radius: 14px; display: grid; place-items: center; background-size: cover; background-position: center; }
.item b { display: block; font-size: 16px; }
.item .d { font-size: 13px; color: var(--muted); }
.item .p { font-weight: 800; color: var(--blue-t); font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; background: var(--sky); border-radius: 14px; }
.stepper button { width: 40px; height: 44px; border: 0; background: none; color: var(--blue-t); display: grid; place-items: center; }
.stepper b { min-width: 20px; text-align: center; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(var(--safe-b) + 12px); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.cartbar .btn { max-width: 728px; margin: 0 auto; display: flex; }
.info-box { padding: 16px; border-radius: 20px; background: var(--sky); display: flex; flex-direction: column; gap: 8px; }

/* Cupón tipo boleto */
.ticket { display: grid; grid-template-columns: 104px 1fr auto; width: 100%; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-align: left; padding: 0; color: var(--ink); }
.ticket .l { color: #fff; display: grid; place-items: center; text-align: center; padding: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.1; position: relative; }
.ticket .l::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--bg); }
.ticket .m { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ticket .m b { font-size: 15px; }
.ticket .m .bz { font-size: 13px; color: var(--blue-t); font-weight: 700; }
.ticket .m .v { font-size: 12px; color: var(--muted); }
.ticket .r { display: grid; place-items: center; padding-right: 14px; color: var(--blue-t); }
.ticket.used { opacity: .5; }

.qrbox { align-self: center; padding: 14px; background: #fff; border-radius: 22px; border: 1px solid var(--line); }
.qrbox svg, .qrbox img { width: 230px; height: 230px; display: block; }
.code { align-self: center; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: .18em; }

/* ---------- Hojas (bottom sheets) ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(9, 18, 39, .55); animation: fade .18s ease; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92vh; overflow-y: auto; background: var(--bg);
  border-radius: 28px 28px 0 0; padding: 10px 20px calc(var(--safe-b) + 24px); display: flex; flex-direction: column; gap: 14px;
  animation: up .26s cubic-bezier(.2,.9,.3,1);
}
@media (min-width: 720px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; transform: translate(-50%, -50%); border-radius: 28px; animation: pop2 .2s ease; max-height: 88vh; padding-bottom: 24px; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; }
.sheet h3 { font-size: 22px; }
.sheet .x { position: absolute; top: 10px; right: 10px; }
.sheet.full { top: 0; max-height: none; border-radius: 0; padding: 0; }
@media (min-width: 720px) { .sheet.full { top: 50%; height: min(760px, 92vh); border-radius: 28px; overflow: hidden; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes pop2 { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.line { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; border-top: 1px solid var(--line); padding-top: 12px; font-variant-numeric: tabular-nums; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 20px); transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow); animation: up .2s ease; }

/* ---------- Bruce ---------- */
.bruce-fab {
  position: fixed; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 28; width: 86px; border: 0; border-radius: 24px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow); padding: 8px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; line-height: 1.15;
}
.bruce-fab .av { width: 58px; height: 58px; border-radius: 29px; background: var(--sky); position: relative; }
.bruce-fab .av svg { position: absolute; width: 62px; height: 70px; left: -2px; bottom: 4px; }
@media (min-width: 960px) { .bruce-fab { bottom: 24px; right: 24px; } }
.shk { overflow: visible; }
.shk .whole { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 2.6s ease-in-out infinite; }
.shk .arm { transform-box: fill-box; transform-origin: 0% 60%; animation: wave 3.2s ease-in-out infinite; }
.shk .tail { transform-box: fill-box; transform-origin: 50% 0%; animation: tailw 1.6s ease-in-out infinite; }
.shk .shades { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.shk .mouth { transform-box: fill-box; transform-origin: 50% 0%; }
.bruce-fab:hover .shk .shades, .peek .shk .shades { transform: translateY(9px); }
.talk .shk .mouth { animation: talk .28s ease-in-out infinite; }
.think .shk .whole { animation: think 1.1s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px) rotate(-2deg); } }
@keyframes wave { 0%,55%,100% { transform: rotate(0); } 65% { transform: rotate(-28deg); } 75% { transform: rotate(10deg); } 85% { transform: rotate(-24deg); } }
@keyframes tailw { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(6deg); } }
@keyframes talk { 50% { transform: scaleY(.55); } }
@keyframes think { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.chat { display: flex; flex-direction: column; height: 100%; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 720px) { .chat { min-height: 0; } }
.chat header { display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 10px 10px; background: var(--blue); color: #fff; }
.chat header .av { width: 46px; height: 46px; border-radius: 23px; background: #fff; position: relative; flex-shrink: 0; }
.chat header .av svg { position: absolute; width: 48px; height: 54px; left: -1px; bottom: 0; }
.chat header b { font-family: var(--display); font-size: 18px; display: block; }
.chat header small { font-size: 12px; opacity: .9; }
.log { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-top-right-radius: 6px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 4px; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.quick { padding: 8px 12px; background: var(--bg); border-top: 1px solid var(--line); }
.chat form { display: flex; gap: 8px; padding: 8px 12px calc(var(--safe-b) + 12px); background: var(--bg); }
.chat form input { flex: 1; min-width: 0; height: 50px; border-radius: 25px; border: 1.5px solid var(--line); padding: 0 18px; background: var(--surface); font-size: 16px; }
.chat form button { width: 50px; height: 50px; border-radius: 25px; border: 0; background: var(--red-d); color: #fff; display: grid; place-items: center; }
.plan { align-self: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; }
.stop { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 10px 0; }
.stop .hr { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--blue-t); background: var(--sky); border-radius: 10px; height: 32px; display: grid; place-items: center; }
.stop .t { font-size: 14px; color: var(--muted); }

/* ---------- Portal de negocios ---------- */
.portal .tabbar { background: #0D1B3E; border-color: #1C2B50; }
.portal .tabbar a { color: #9FB0D6; }
.portal .tabbar a[aria-current="page"] { color: #fff; }
.portal .tabbar a[aria-current="page"] .pill { background: #1F4FBF; }
@media (min-width: 760px) {
  .portal.has-rail .tabbar { background: #0D1B3E; border-bottom: 0; }
  .portal.has-rail .tabbar a:hover { background: #16264A; }
  .portal.has-rail .tabbar a[aria-current="page"] { background: #1C2B50; }
  .portal.has-rail .tabbar a[aria-current="page"] .pill { background: transparent; }
}
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.stat b { font-family: var(--display); font-size: 30px; display: block; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.panel { padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.panel h3 { font-size: 18px; }
.rows { display: flex; flex-direction: column; }
.rowi { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rowi:last-child { border-bottom: 0; }
.rowi .grow { flex: 1; min-width: 0; }
.rowi .grow b { display: block; }
.rowi .grow span { font-size: 13px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span { grid-column: 1 / -1; } }
.upload { position: relative; border-radius: 18px; border: 2px dashed var(--line); background: var(--surface-2); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; overflow: hidden; background-size: cover; background-position: center; cursor: pointer; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload.has { border-style: solid; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.pk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pk button { border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.pk button[aria-pressed="true"] { border: 2px solid var(--blue); background: var(--sky); }
.pk .q { font-family: var(--display); font-weight: 800; font-size: 24px; }
.scanner { position: relative; border-radius: 24px; overflow: hidden; background: #0D1B3E; aspect-ratio: 1; max-width: 420px; width: 100%; align-self: center; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 18%; border: 3px solid #fff; border-radius: 22px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.scanner .msg-c { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; padding: 24px; }
.result { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 8px 0; }
.result .circle { width: 76px; height: 76px; border-radius: 38px; display: grid; place-items: center; }
.result .big { font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--red); }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty svg { opacity: .55; }

/* Hoja de cupones para imprimir (solo visible al imprimir) */
.print-sheet { display: none; }
@media print {
  @page { margin: 10mm; }
  body.printing > *:not(.print-sheet) { display: none !important; }
  body.printing { background: #fff; }
  .print-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; color: #0D1B3E; font-family: var(--body); }
  .pc { border: 1px dashed #9aa3b8; break-inside: avoid; display: flex; flex-direction: column; }
  .pc .top { color: #fff; padding: 8px 10px; display: flex; gap: 8px; align-items: baseline; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pc .top b { font-family: var(--display); font-size: 20px; }
  .pc .top span { font-size: 11px; font-weight: 700; }
  .pc .body { display: flex; gap: 8px; padding: 8px 10px; align-items: center; }
  .pc .qr svg { width: 84px; height: 84px; display: block; }
  .pc .body > div:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 10px; min-width: 0; }
  .pc .body b { font-size: 12px; }
  .pc .code { font-family: var(--display); font-weight: 800; letter-spacing: .1em; font-size: 13px; }
  .pc .foot { padding: 0 10px 6px; font-size: 11px; }
}

/* Estrellas y opiniones */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars svg { fill: var(--line); }
.stars svg.on { fill: #F5A623; }
.stars svg.half { fill: #F5A623; opacity: .5; }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.rating b { font-size: 14px; display: inline; }
.bcard .rating { margin: 2px 0 4px; }
.reviews { display: flex; flex-direction: column; gap: 10px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.review .rh { display: flex; gap: 10px; align-items: center; }
.review .rh > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.review .av { width: 38px; height: 38px; border-radius: 13px; background: var(--sky); color: var(--blue-t); display: grid; place-items: center; font-weight: 800; flex: none; }
.review p { line-height: 1.55; margin: 0; }
.star-pick { display: flex; justify-content: center; gap: 6px; }
.star-pick button { border: 0; background: none; padding: 4px; border-radius: 12px; }
.star-pick svg { fill: var(--line); transition: transform .12s; }
.star-pick button.on svg { fill: #F5A623; }
.star-pick button:active svg { transform: scale(.88); }
.plan .stop .why { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 2px; }

/* Impresiones (pago por escaneo) */
.meter { height: 10px; border-radius: 5px; background: var(--sky); overflow: hidden; width: 100%; }
.meter i { display: block; height: 100%; border-radius: 5px; transition: width .3s; }
.imp-card { gap: 12px; }
.imp-big { display: flex; align-items: baseline; gap: 8px; }
.imp-big b { font-family: var(--display); font-size: 44px; line-height: 1.05; color: var(--blue-t); }
.imp-big b.low { color: var(--red-d); }
.imp-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.imp-row b { color: var(--ink); }
.imp-coupon { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.rowi .grow .meter { margin-top: 6px; height: 7px; }

.check.optin { align-items: flex-start; line-height: 1.45; font-size: 14px; }
.check.optin input { margin-top: 2px; flex: none; }
.check.optin .muted { display: block; font-size: 13px; }

/* Mensualidad */
.sub-card { gap: 8px; }
.sub-card .sub-h { display: flex; gap: 10px; align-items: center; font-size: 17px; }
.sub-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.sub-card.trial { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.sub-card.trial .sub-h { color: var(--blue-t); }
.sub-card.ok .sub-h { color: var(--ok); }
.sub-card.warn .sub-h { color: var(--warn); }
.sub-card.due { border: 2px solid var(--red); }
.sub-card.due .sub-h { color: var(--red-d); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Panel de administración */
.adminp .tabbar { background: #0D1B3E; }
.admin-badge { background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; margin-left: 8px; letter-spacing: .02em; }
.adminp .tabbar a.mob-only { display: flex; }
@media (max-width: 759px) { .adminp .tabbar a.rail-only { display: none; } }
@media (min-width: 760px) {
  .adminp .tabbar a.mob-only { display: none; }
  .adminp.has-rail .tabbar { overflow-x: auto; scrollbar-width: none; }
  .adminp .tabbar .rail-brand { flex: none; margin-right: 18px; }
  .adminp .tabbar a { flex: none; }
}
@media (min-width: 760px) and (max-width: 1299px) { .adminp .tabbar a .pill { display: none; } .adminp .tabbar a { padding: 9px 9px; font-size: 14px; } }
.wrap.wide { max-width: 1120px; }
.shell.adminp .topbar { padding-inline: max(16px, calc((100% - 1120px) / 2 + 16px)); }
@media (min-width: 760px) { .shell.has-rail.adminp .topbar { padding-inline: max(28px, calc((100% - 1120px) / 2 + 28px)); } }
.kgroup h3 { font-size: 15px; color: var(--muted); margin: 0 0 8px; font-weight: 700; }
.stats.kpis { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.stat small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.stat.hl { background: var(--blue); border-color: var(--blue); color: #fff; }
.stat.hl span, .stat.hl small { color: rgba(255,255,255,.85); }
.stat.hl b { color: #fff; }
.stat.ok b { color: var(--ok); }
.stat.warn { border-color: var(--red); }
.stat.warn b { color: var(--red-d); }
.wchart { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 150px; padding-top: 8px; }
.wc { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.wc i { display: block; width: 100%; max-width: 44px; background: var(--blue); border-radius: 8px 8px 3px 3px; }
.wc .v { font-size: 12px; font-weight: 700; }
.wc .l { font-size: 11px; color: var(--muted); }
.av-u { width: 40px; height: 40px; border-radius: 13px; background: var(--sky); color: var(--blue-t); display: grid; place-items: center; font-weight: 800; flex: none; }
.pay-st { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--sky); }
.pay-st > span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pay-st b { font-size: 16px; }
.pay-st.ok { background: var(--ok-bg); color: var(--ok); }
.pay-st.test { background: var(--warn-bg); color: var(--warn); }
.pay-st.bad { background: #FDE3E5; color: var(--red-d); }
.pay-st.demo { color: var(--blue-t); }
.pay-st > span > span { color: var(--ink); }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.steps li { line-height: 1.5; }
.steps li b { display: block; }
.steps li span { font-size: 14px; color: var(--muted); }
.admin-link { align-self: center; margin-top: 18px; font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }

/* ---------- Mapa (lista + pines, estilo directorio) ---------- */
.wrap.split { max-width: 1320px; }
.res-grid { display: flex; flex-direction: column; gap: 14px; }
.res-map { display: none; }
.res-grid.map-open .res-map { display: block; order: -1; }
.res-grid.map-open .mapslot { height: 62vh; }
.mapslot { position: relative; height: 100%; min-height: 260px; border-radius: 20px; overflow: hidden; background: #E6EDF5; border: 1px solid var(--line); isolation: isolate; }
.mapslot.mini { height: 230px; min-height: 0; }
.mapslot.pick { height: 300px; }
.leafmap { width: 100%; height: 100%; font-family: var(--body); }
.leafmap.picking { cursor: crosshair; }
.leafmap.no-tiles { background: repeating-linear-gradient(45deg, #E6EDF5 0 14px, #DDE6F1 14px 28px); }
.leafmap.no-tiles::after { content: "Mapa base no disponible en esta vista · los pines sí son correctos"; position: absolute; left: 10px; bottom: 26px; z-index: 500; background: #fff; color: #56627F; font-size: 12px; padding: 4px 8px; border-radius: 8px; }
.map-note { font-size: 12.5px; color: var(--muted); margin: 6px 2px 0; display: flex; gap: 6px; align-items: center; }
.pin { display: grid; place-items: center; width: 32px; height: 32px; margin: 2px 0 0 1px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--red); border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(13, 27, 62, .35); transition: transform .15s, background .15s; }
.pin b { transform: rotate(45deg); color: #fff; font: 800 13px/1 var(--body); }
.pin.approx { background: #EE7A85; }
.pin.on { background: #0D1B3E; transform: rotate(-45deg) scale(1.18); }
.leaflet-container a.leaflet-popup-close-button { display: none; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 12px 14px; }
.mpop { display: flex; flex-direction: column; gap: 3px; font: 500 13.5px/1.35 var(--body); color: #0D1B3E; min-width: 160px; }
.mpop b { font-size: 15px; }
.mpop .ap { color: #9A3412; font-size: 12px; }
.mpop a { color: #1F4FBF; font-weight: 800; margin-top: 4px; text-decoration: none; }
.num-pin { position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 15px; background: var(--red); color: #fff; font: 800 14px/30px var(--body); text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.bcard .cover { position: relative; }
.map-toggle { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 84px); z-index: 28; display: inline-flex; gap: 8px; align-items: center;
  border: 0; border-radius: 999px; padding: 12px 20px; background: #0D1B3E; color: #fff; font: 800 15px var(--body); box-shadow: 0 8px 22px rgba(13,27,62,.35); }
.map-cta { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px; border-radius: 22px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.map-cta .mc-art { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 70% 30%, var(--red) 0 22%, transparent 23%), linear-gradient(135deg, #1F4FBF, #173A8C); }
.map-cta > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.map-cta > span:nth-child(2) span { color: var(--muted); font-size: 14px; }
@media (min-width: 1000px) {
  .res-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 24px; }
  .res-map, .res-grid.map-open .res-map { display: block; order: 0; position: sticky; top: 84px; height: calc(100vh - 104px); }
  .res-grid .mapslot, .res-grid.map-open .mapslot { height: calc(100% - 26px); }
  .res-list .biz-list { grid-template-columns: 1fr; }
  .map-toggle { display: none; }
}

/* ---------- Proyectos (contratar a un profesional) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.svc { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; line-height: 1.25; }
.svc:hover { border-color: var(--red); }
.svc-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #FDE3E5; color: var(--red-d); flex: none; }
.svc-ic.more { background: var(--sky); color: var(--blue-t); }
.svc-ic.sm { width: 40px; height: 40px; border-radius: 12px; }
.proj-hero { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 20px; border-radius: 24px;
  background: linear-gradient(135deg, #0D1B3E, #1F4FBF); color: #fff; }
.proj-hero h2 { font-size: 24px; color: #fff; margin: 0 0 6px; }
.proj-hero p { margin: 0; color: rgba(255,255,255,.85); max-width: 46ch; line-height: 1.5; }
.flabel { font-size: 14px; font-weight: 600; color: var(--muted); }
.hint.ok { color: var(--ok); font-weight: 700; }
.chip svg { vertical-align: -3px; }
.tabbar a .lg-only { display: none; }
@media (min-width: 760px) {
  .tabbar a .lg-only { display: inline; } .tabbar a .sm-only { display: none; }
  .shell.has-rail:not(.portal) .tabbar a.proj-tab { background: var(--red-d); color: #fff; margin-left: 8px; }
  .shell.has-rail:not(.portal) .tabbar a.proj-tab[aria-current="page"] { background: var(--red); }
}

/* Foto principal de Peñasco (la sube el admin) */
.hero.photo, .landing .art.photo { background-size: cover; background-position: center 42%; background-color: #3E73B8; }
.hero.photo::before, .landing .art.photo::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,27,62,.55) 0%, rgba(13,27,62,.15) 45%, rgba(13,27,62,.35) 100%); }
.hero.photo .t .wordmark .a, .landing .art.photo .wordmark .a { color: #fff; }
.landing .art.photo .brand p { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.hero.photo .t, .hero.photo .langs, .landing .art.photo .brand, .landing .art.photo .langs { z-index: 1; }
@media (min-width: 760px) { .hero { height: 380px; } }

/* Elegir cómo entrar + registro */
.choices .ask { font-size: 20px; text-align: center; margin: 6px 0 2px; color: var(--ink); background: var(--surface); align-self: center; padding: 8px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(13,27,62,.12); }
.auth-foot .reg-btn { max-width: 420px; margin-top: 8px; font-size: 17px; }
.splash.calm * { animation: none !important; }

.choice b { color: var(--ink); font-size: 21px; }
.choice.biz b { color: #fff; }

.auth-logo svg { width: 68px; height: 68px; display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.splash .logo { border-radius: 24px; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 14px 36px rgba(5,15,45,.4); }

/* Entrada principal centrada y sencilla */
.entry { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--safe-t) + 64px) 16px calc(var(--safe-b) + 32px);
  background: radial-gradient(120% 70% at 50% 0%, #E3ECFF 0%, var(--bg) 60%); }
.entry-langs { position: absolute; top: calc(var(--safe-t) + 14px); right: 14px; }
.entry-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.entry-logo svg { width: 92px; height: 92px; display: block; filter: drop-shadow(0 10px 22px rgba(31,79,191,.30)); }
.entry .wordmark { font-size: 48px; }
.entry-ask { font-size: 19px; margin: 18px 0 4px; color: var(--ink); }
.entry-choices { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.entry-choices .choice { text-align: left; }
.entry .install-hint { width: 100%; margin-top: 6px; text-align: left; }

/* Tarjeta ClienteClub (PVC con NFC) */
.nfc-card { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1.586; align-self: center; border-radius: 18px; padding: 18px 20px; box-sizing: border-box;
  background: #0D1B3E; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; box-shadow: 0 14px 30px rgba(13,27,62,.3); }
.nfc-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: #1F4FBF; }
.nfc-card .wm { position: relative; z-index: 1; } .nfc-card .wm .a { color: #fff; } .nfc-card .wm .b { color: #FF6B78; }
.nfc-card .num { position: relative; z-index: 1; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .12em; }
.nfc-card .who { position: relative; z-index: 1; font-weight: 700; color: #C9D6F5; }
.nfc-card .nfc-ic { position: absolute; right: 18px; top: 16px; z-index: 1; }

/* Logotipo oficial (imagen) */
.wordmark { display: inline-flex; align-items: center; line-height: 1; }
.wordmark img { height: .82em; width: auto; display: block; }
.wordmark .wm-d { display: none; }
.on-dark .wordmark .wm-l, .splash .wordmark .wm-l, .nfc-card .wordmark .wm-l, .hero.photo .wordmark .wm-l, .landing .art.photo .wordmark .wm-l { display: none; }
.on-dark .wordmark .wm-d, .splash .wordmark .wm-d, .nfc-card .wordmark .wm-d, .hero.photo .wordmark .wm-d, .landing .art.photo .wordmark .wm-d { display: block; }
@media (prefers-color-scheme: dark) { .wordmark .wm-l { display: none; } .wordmark .wm-d { display: block; } }
.logo { display: grid; place-items: center; background: #fff; border-radius: 24%; }
.logo img { width: 86%; height: auto; display: block; }
.splash .logo { width: 128px; height: 128px; }
.entry-logo .logo { width: 92px; height: 92px; box-shadow: 0 10px 22px rgba(31,79,191,.22); }
.auth-logo .logo { width: 68px; height: 68px; box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.wordmark .wm-m { display: none; }
/* Sobre el azul de marca, logotipo todo en blanco para que "Club" no se pierda */
.splash .wordmark img, .auth-top:not(.business) .wordmark img { display: none !important; }
.splash .wordmark .wm-m, .auth-top:not(.business) .wordmark .wm-m { display: block !important; }

/* Entrada con ilustración (tarjeta en la terminal) */
.entry { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: calc(var(--safe-t) + 12px) 12px calc(var(--safe-b) + 28px); background: var(--bg); }
.entry-hero { position: relative; width: 100%; max-width: 560px; height: min(50vh, 420px); min-height: 300px; border-radius: 28px; overflow: hidden; background: #D3E1FB; box-shadow: 0 18px 40px rgba(13,27,62,.16); }
.entry-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.entry-hero .entry-langs { position: absolute; top: 52px; right: 12px; }
.entry-toast { position: absolute; left: 14px; top: 58px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 18px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 28px rgba(13,27,62,.18); text-align: left;
  animation: toastIn .6s 1.1s cubic-bezier(.3,1.4,.5,1) both; }
.entry-toast .tick { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #1F4FBF; color: #fff; flex: none; }
.entry-toast b { display: block; font-family: var(--display); font-size: 15px; color: #0D1B3E; line-height: 1.2; }
.entry-toast small { display: block; font-size: 13px; font-weight: 700; color: #4A5A80; }
.entry-art .waves path { animation: nfcWave 1.6s ease-out infinite; opacity: 0; }
.entry-art .waves path:nth-child(2) { animation-delay: .2s; } .entry-art .waves path:nth-child(3) { animation-delay: .4s; }
.entry-art .ok { transform-box: fill-box; transform-origin: center; animation: pop .5s 1s cubic-bezier(.3,1.8,.5,1) both; }
@keyframes nfcWave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
.entry-box { margin-top: -40px; position: relative; gap: 12px; }
.entry-logo .logo { width: 80px; height: 80px; box-shadow: 0 10px 26px rgba(13,27,62,.22); border: 4px solid var(--bg); box-sizing: content-box; }
.entry .wordmark { font-size: 40px; }
.entry-ask { margin: 10px 0 2px; }
@media (min-width: 900px) {
  .entry { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); align-items: center; gap: 56px; padding: 20px 56px 20px 20px; }
  .entry-hero { max-width: none; height: calc(100vh - 40px); height: calc(100dvh - 40px); min-height: 560px; border-radius: 32px; }
  .entry-box { margin: 0 auto; max-width: 420px; }
  .entry-logo .logo { width: 96px; height: 96px; border: 0; }
  .entry .wordmark { font-size: 48px; }
  .entry-toast { left: auto; right: 28px; top: 150px; padding: 14px 22px 14px 14px; }
  .entry-toast .tick { width: 42px; height: 42px; } .entry-toast b { font-size: 18px; } .entry-toast small { font-size: 15px; }
  .entry-hero .entry-langs { top: 66px; right: auto; left: 18px; }
}
@media (prefers-color-scheme: dark) { .entry-logo .logo { border-color: var(--bg); } }
@media (max-width: 899px) and (max-height: 720px) {
  .entry-hero { height: 40vh; min-height: 230px; }
  .entry-toast { top: auto; bottom: 46px; left: 10px; padding: 7px 12px 7px 7px; }
  .entry-toast .tick { width: 28px; height: 28px; }
  .entry-logo .logo { width: 64px; height: 64px; }
  .entry-box { margin-top: -34px; gap: 8px; }
  .entry .wordmark { font-size: 34px; }
  .entry-ask { margin: 4px 0 0; font-size: 17px; }
  .entry-choices .choice { padding-top: 12px; padding-bottom: 12px; }
}

/* Cambiar entre visitante y negocio con la misma cuenta */
.tabbar a.mode-tab .pill { background: #FDE4E7; color: #C62536; }
.portal .tabbar a.mode-tab .pill { background: rgba(255,255,255,.14); color: #fff; }
@media (min-width: 760px) {
  .shell.has-rail .tabbar a.mode-tab { border: 2px solid #E23B4B; color: #C62536; margin-left: 6px; }
  .shell.has-rail .tabbar a.mode-tab .pill { background: none; color: inherit; }
  .shell.has-rail.portal .tabbar a.mode-tab { border-color: rgba(255,255,255,.5); color: #fff; }
}

/* Tarjetas de lealtad (sellos) */
.stamps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stamp { display: inline-grid; place-items: center; border-radius: 50%; border: 2px dashed var(--line, #C9D6F5); color: var(--muted); font-weight: 800; font-size: 13px; box-sizing: border-box; flex: none; }
.stamp.on { border: 0; color: #fff; box-shadow: 0 4px 10px rgba(13,27,62,.18); }
.stamp.prize { border: 2px solid #E9C46A; background: #FFF6DD; color: #B8860B; }
.stamp.prize.ready { border: 0; color: #fff; animation: pop .5s cubic-bezier(.3,1.8,.5,1) both; }
.loyal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; color: #fff; }
.loyal-head small { display: block; font-size: 13px; font-weight: 700; opacity: .85; }
.loyal-head b { display: block; font-family: var(--display); font-size: 20px; line-height: 1.15; }
.loy-row { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line, #E3EAF7); border-radius: 18px; }
.loy-msg { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; }
.loy-msg.ok { background: var(--ok-bg); color: var(--ok); } .loy-msg.warn { background: var(--warn-bg); color: var(--warn); }
.loy-msg b { display: block; color: var(--ink); } .loy-msg small { display: block; color: var(--muted); font-weight: 600; }
.member-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--sky); color: var(--blue-t); }
.member-head b { display: block; font-size: 20px; color: var(--ink); } .member-head small { display: block; font-weight: 700; }

/* Notificaciones */
.icon-btn.bell { position: relative; }
.bell-n { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-sizing: border-box; line-height: 1; }
.nav-bell { display: none; }
@media (min-width: 760px) { .shell.has-rail .tabbar .nav-bell { display: flex; order: 99; margin-left: 4px; } }
.tabbar a .badge.red { background: var(--red); }
@media (min-width: 760px) { .tabbar a .sm-only-b { display: none; } }
.topbar .icon-btn.bell { margin-left: auto; }
.topbar .icon-btn.bell + .icon-btn, .topbar .icon-btn.bell + .btn { margin-left: 0; }
.push-prompt { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 20px; background: linear-gradient(135deg, #EAF0FF, #FDEBED); border: 1px solid #D5DEF3; }
.push-prompt .pp-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.push-prompt b { display: block; } .push-prompt .grow > span { display: block; font-size: 14px; color: var(--muted); }
.push-prompt .grow { flex: 1 1 200px; min-width: 0; } .push-prompt .pp-act { display: flex; gap: 6px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line, #E3EAF7); cursor: pointer; }
.switch-row:first-of-type { border-top: 0; }
.switch-row span { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.switch-row span svg { color: var(--blue-t); flex: none; }
.switch-row input { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 14px; background: #C9D3E6; position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch-row input:checked { background: var(--blue); } .switch-row input:checked::after { transform: translateX(20px); }
.switch-row input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.rowi.notif .n-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--sky); color: var(--blue-t); display: grid; place-items: center; flex: none; }
.rowi.notif small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.rowi.notif.unread b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 7px; vertical-align: 2px; }
.ok-line { display: flex; gap: 8px; align-items: center; color: var(--ok); font-weight: 700; margin: 0; }
/* Panel de admin: muchas secciones, el menú de arriba se compacta y se desliza si no cabe */
@media (min-width: 760px) {
  .shell.has-rail.adminp .tabbar { overflow-x: auto; scrollbar-width: none; }
  .shell.has-rail.adminp .tabbar::-webkit-scrollbar { display: none; }
  .shell.has-rail.adminp .tabbar a { padding: 9px 9px; font-size: 14px; gap: 5px; }
}
@media (min-width: 760px) and (max-width: 1500px) { .shell.has-rail.adminp .tabbar a .pill { display: none; } }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--blue-t); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }

/* Ciudades */
.citychip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font: inherit; font-weight: 800; font-size: 15px; box-shadow: 0 6px 16px rgba(13,27,62,.16); cursor: pointer; }
.citychip svg:first-child { color: var(--red); }
.hero .citychip { position: absolute; left: 20px; top: calc(var(--safe-t) + 96px); z-index: 1; }
@media (min-width: 760px) { .hero .citychip { top: 20px; } }
.topbar .citychip.sm { margin-left: auto; padding: 6px 10px; font-size: 14px; background: var(--sky); box-shadow: none; }
.cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.empty-city { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px 18px; margin-top: 18px; border-radius: 24px; background: var(--surface, #fff); border: 1px solid var(--line, #E3EAF7); }
.empty-city h2 { margin: 0; font-size: 22px; } .empty-city p { margin: 0; max-width: 42ch; }
.empty-city .btn { width: 100%; max-width: 360px; }
.ec-ic, .move-ic { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; background: #FDE4E7; color: var(--red); margin: 0 auto; }
.geo-prompt { margin-top: 18px; }
.citychip { white-space: nowrap; max-width: calc(100% - 140px); }
.citychip svg { width: 18px !important; height: 18px !important; flex: none; position: static !important; }
.print-panel .pp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .print-panel .pp-grid { grid-template-columns: 340px minmax(0, 1fr); align-items: start; } }
.pp-prev { display: flex; flex-direction: column; gap: 6px; }
.card-prev { width: 100%; max-width: 340px; height: auto; border-radius: 12px; box-shadow: 0 14px 30px rgba(13,27,62,.25); display: block; }

/* Alerta de seguridad "¿Fuiste tú?" */
.sec-alert { display: flex; flex-direction: column; gap: 10px; text-align: center; padding-top: 6px; }
.sec-alert h3 { margin: 4px 0 0; font-size: 22px; }
.sec-alert p { margin: 0; }
.sec-ic { width: 76px; height: 76px; border-radius: 26px; margin: 0 auto; display: grid; place-items: center; background: #FDE4E7; color: var(--red); animation: pop .5s cubic-bezier(.3,1.8,.5,1) both; }
.sec-ic.ok { background: var(--ok-bg); color: var(--ok); }

/* Logo sin ícono, con la firma "by Hmprint" debajo de las letras */
.brandmark { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1; gap: .12em; }
.brandmark .wm-by { font-family: var(--display); font-weight: 700; font-size: .3em; letter-spacing: .04em; color: var(--blue-d); opacity: .8; white-space: nowrap; }
.on-dark .brandmark .wm-by, .hero.photo .brandmark .wm-by, .landing .art.photo .brandmark .wm-by { color: #fff; opacity: .85; }
.splash .brandmark { opacity: 0; animation: rise .6s .2s ease-out forwards; }
.splash .brandmark .wordmark { opacity: 1; animation: none; }
@media (prefers-color-scheme: dark) { .brandmark .wm-by { color: #fff; } }
.splash .brandmark .wm-by { color: #fff; }
.entry-box { margin-top: 22px; }
.brandmark, .brandmark .wordmark { flex: none; }
.brandmark .wordmark img { width: auto !important; max-width: none !important; flex: none; }
.brandmark .wm-by { display: inline-flex; align-items: center; gap: .35em; opacity: 1; }
.brandmark .wm-by img { height: 1.55em; width: auto; }
.brandmark .wm-by img.by-l { display: block; }
.brandmark .wm-by img.by-d { display: none; }
.on-dark .brandmark .wm-by img.by-l, .splash .brandmark .wm-by img.by-l, .hero.photo .brandmark .wm-by img.by-l, .landing .art.photo .brandmark .wm-by img.by-l { display: none; }
.on-dark .brandmark .wm-by img.by-d, .splash .brandmark .wm-by img.by-d, .hero.photo .brandmark .wm-by img.by-d, .landing .art.photo .brandmark .wm-by img.by-d { display: block; }
@media (prefers-color-scheme: dark) { .brandmark .wm-by img.by-l { display: none; } .brandmark .wm-by img.by-d { display: block; } }

/* Bienvenida y pantallas de entrar: fondo tenue para que los logos luzcan con sus colores */
.splash { background: radial-gradient(120% 80% at 50% 42%, #FFFFFF 0%, #EEF3FD 55%, #DAE5FA 100%); color: #0D1B3E; }
.splash::before { background: radial-gradient(circle, rgba(31,79,191,.07), rgba(31,79,191,0) 45%); }
.splash .tagline { color: #4A5B85; }
.splash .bar { background: rgba(31,79,191,.15); }
.splash .bar i { background: var(--blue); }
.auth-top.tourist { background: linear-gradient(180deg, #F6F9FF 0%, #E2EBFC 100%); color: #0D1B3E; }
.auth-top.business { background: linear-gradient(180deg, #F5F6FA 0%, #E1E5EF 100%); color: #0D1B3E; }
.auth-top .portal { background: rgba(13,27,62,.08); color: #0D1B3E; }
.splash .wordmark img, .auth-top .wordmark img, .splash .brandmark .wm-by img, .auth-top .brandmark .wm-by img { display: none !important; }
.splash .wordmark .wm-l, .auth-top .wordmark .wm-l, .splash .brandmark .wm-by img.by-l, .auth-top .brandmark .wm-by img.by-l { display: block !important; }
.splash .brandmark .wm-by, .auth-top .brandmark .wm-by { color: #0D1B3E; }
.splash .wordmark .wm-m, .splash .wordmark .wm-d, .auth-top .wordmark .wm-m, .auth-top .wordmark .wm-d, .splash .brandmark .wm-by img.by-d, .auth-top .brandmark .wm-by img.by-d { display: none !important; }
.auth-top.tourist .wordmark .wm-m, .auth-top.tourist .wordmark .wm-d { display: none !important; }
.auth-top.tourist .wordmark .wm-l { display: block !important; }
/* Logo de Hmprint más visible */
.brandmark { gap: .16em; }
.brandmark .wm-by { font-size: .34em; gap: .4em; }
.brandmark .wm-by img { height: 2.1em; }
