/* =========================================================================
   Directorio de la ciudad · estilos
   Colores en variables: modo claro, modo oscuro automático y manual.
   ========================================================================= */
:root {
  --bg: #F6F4FB;
  --bg-2: #ECE8F6;
  --surface: #FFFFFF;
  --surface-2: #F2EFF9;
  --ink: #18132B;
  --ink-2: #4A4462;
  --muted: #7B7593;
  --line: #E5E0EF;
  --brand: #6C2BD9;
  --brand-2: #8B5CF6;
  --brand-ink: #FFFFFF;
  --brand-soft: #EFE7FD;
  --pink: #E0389A;
  --taxi: #F5B700;
  --taxi-soft: #FFF4CC;
  --moto: #FF6B2C;
  --moto-soft: #FFE9DE;
  --ok: #12A150;
  --ok-2: #19C267;
  --ok-soft: #DCF6E7;
  --warn: #D97B00;
  --warn-soft: #FFF0D4;
  --bad: #E0393E;
  --bad-soft: #FDE5E5;
  --off: #9590AA;
  --wa: #1DAA57;
  --shadow-1: 0 1px 2px rgba(24, 19, 43, .05), 0 3px 10px rgba(24, 19, 43, .05);
  --shadow-2: 0 6px 16px rgba(24, 19, 43, .08), 0 16px 36px rgba(24, 19, 43, .08);
  --map-filter: none;
  --tabbar-h: 66px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0C1A;
    --bg-2: #161127;
    --surface: #1A1529;
    --surface-2: #241D38;
    --ink: #F3F0FA;
    --ink-2: #CBC4DD;
    --muted: #958FAD;
    --line: #2F2745;
    --brand: #A27BFF;
    --brand-2: #BB9BFF;
    --brand-ink: #160B30;
    --brand-soft: #2B2049;
    --taxi-soft: #3A2F0B;
    --moto-soft: #3C2315;
    --ok: #33D17E;
    --ok-2: #4BE38F;
    --ok-soft: #13311F;
    --warn: #FFB547;
    --warn-soft: #3B2A10;
    --bad: #FF6A6F;
    --bad-soft: #3D1A1E;
    --off: #6F6987;
    --wa: #25C266;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 3px 10px rgba(0, 0, 0, .25);
    --shadow-2: 0 8px 20px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .3);
    --map-filter: invert(.92) hue-rotate(180deg) brightness(.9) contrast(.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0C1A;
  --bg-2: #161127;
  --surface: #1A1529;
  --surface-2: #241D38;
  --ink: #F3F0FA;
  --ink-2: #CBC4DD;
  --muted: #958FAD;
  --line: #2F2745;
  --brand: #A27BFF;
  --brand-2: #BB9BFF;
  --brand-ink: #160B30;
  --brand-soft: #2B2049;
  --taxi-soft: #3A2F0B;
  --moto-soft: #3C2315;
  --ok: #33D17E;
  --ok-2: #4BE38F;
  --ok-soft: #13311F;
  --warn: #FFB547;
  --warn-soft: #3B2A10;
  --bad: #FF6A6F;
  --bad-soft: #3D1A1E;
  --off: #6F6987;
  --wa: #25C266;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 3px 10px rgba(0, 0, 0, .25);
  --shadow-2: 0 8px 20px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .3);
  --map-filter: invert(.92) hue-rotate(180deg) brightness(.9) contrast(.9);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
body.has-sheet { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.hide { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.ok { color: var(--ok); }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 15px; letter-spacing: .02em; }
.view { display: block; max-width: 1180px; margin: 0 auto; min-height: 60vh; outline: none; }
.page { padding: 16px; max-width: 780px; margin: 0 auto; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.i.fill { fill: currentColor; stroke: none; }

/* ---------- Bienvenida ---------- */
#splash {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; color: #fff;
  background:
    radial-gradient(120% 90% at 0% 0%, #8B5CF6 0%, transparent 60%),
    radial-gradient(90% 80% at 100% 10%, #E0389A 0%, transparent 55%),
    radial-gradient(80% 90% at 70% 100%, #FF8A3D 0%, transparent 60%),
    #5B21B6;
  transition: opacity .6s ease, visibility .6s;
}
.no-splash #splash { display: none; }
.ready #splash { opacity: 0; visibility: hidden; }
.splash-in { text-align: center; padding: 0 24px; }
.splash-logo { margin: 0 auto; border-radius: 26px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .28)); animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.splash-hi { font-size: 22px; font-weight: 700; margin-top: 24px; animation: rise .6s .25s both; }
.splash-q { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; animation: rise .6s .45s both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }

/* ---------- Barra de arriba ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.tb-in { max-width: 1180px; margin: 0 auto; height: 58px; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand .logo { border-radius: 10px; }
.brand.sm { font-size: 16px; }
.tb-nav { display: none; }
.tb-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 999px; border: 0; background: var(--brand); color: var(--brand-ink); font-weight: 750; font-size: 13px; cursor: pointer; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 35%, transparent); }
.pill-btn .i { width: 16px; height: 16px; }
@media (max-width: 899px) { .topbar.immersive { display: none; } }

/* ---------- Menú de abajo ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tb-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); }
.tb-ic { width: 52px; height: 30px; border-radius: 999px; display: grid; place-items: center; transition: background .2s, color .2s; }
.tb-ic .i { width: 22px; height: 22px; }
.tb-item.on { color: var(--brand); }
.tb-item.on .tb-ic { background: var(--brand-soft); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 750; font-size: 14.5px; white-space: nowrap; user-select: none;
  transition: transform .1s ease, filter .15s, background .15s, box-shadow .15s;
  text-align: center; line-height: 1.1;
}
.btn:active { transform: scale(.98); }
.btn:hover { filter: brightness(1.04); }
.btn .i { width: 18px; height: 18px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
.btn.sm .i { width: 16px; height: 16px; }
.btn.lg { height: 52px; font-size: 16px; border-radius: 16px; }
.btn.xl { height: 60px; font-size: 17px; border-radius: 18px; }
.btn.xl .i { width: 22px; height: 22px; }
.btn.block { display: flex; width: 100%; }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn.go { background: linear-gradient(180deg, var(--ok-2), var(--ok)); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--ok) 32%, transparent); }
.btn.wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--wa) 28%, transparent); }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.danger-ghost { background: var(--bad-soft); color: var(--bad); }
.btn:disabled { opacity: .65; cursor: default; }
.loading { position: relative; pointer-events: none; opacity: .75; }
.loading::after { content: ''; width: 16px; height: 16px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; margin-left: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.btn-row > .btn { flex: 1; }
.btn-row.wrap { flex-wrap: wrap; }
.btn-row.wrap > .btn { flex: 0 0 auto; }
.btn-col { display: flex; flex-direction: column; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; background: transparent; border: 0; color: var(--ink); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .i { width: 22px; height: 22px; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 10px; }
.icon-btn.sm .i { width: 17px; height: 17px; }
.link-btn, a.link { background: none; border: 0; color: var(--brand); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; cursor: pointer; }
.link-btn .i { width: 16px; height: 16px; }
.attention { animation: wiggle .5s ease 3; }
@keyframes wiggle { 25% { transform: rotate(-4deg) scale(1.05); } 75% { transform: rotate(4deg) scale(1.05); } }

/* ---------- Estados en vivo ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes pulse-white { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status.on { color: var(--ok); background: var(--ok-soft); }
.status.on i { background: var(--ok); animation: pulse 1.8s infinite; }
.status.pending { color: var(--warn); background: var(--warn-soft); }
.status.pending i { background: var(--warn); }
.status.off { color: var(--off); background: var(--surface-2); }
.status.off i { background: var(--off); }
.status.tiny { padding: 0; background: none; }
.sline { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 750; }
.sline i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.sline.on { color: var(--ok); }
.sline.on i { animation: pulse 1.8s infinite; }
.sline.pending { color: var(--warn); }
.sline.off { color: var(--off); font-weight: 650; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); display: inline-block; animation: pulse 1.8s infinite; flex: none; }
.pulse-dot.sm { width: 8px; height: 8px; }
.pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- Avatares ---------- */
.avatar {
  width: var(--sz); height: var(--sz); border-radius: 50%; flex: none; position: relative;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
  color: #fff; font-weight: 800; font-size: calc(var(--sz) * .36); letter-spacing: .02em;
  box-shadow: 0 0 0 2px var(--surface);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar.st-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px var(--ok); }
.avatar.st-pending { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px var(--warn); }
.avatar.st-off { filter: grayscale(.4); }
.avatar.st-on::after, .avatar.st-pending::after { content: ''; position: absolute; right: 2%; bottom: 2%; width: 26%; height: 26%; min-width: 9px; min-height: 9px; border-radius: 50%; border: 2px solid var(--surface); background: var(--ok); }
.avatar.st-pending::after { background: var(--warn); }
.stack { display: flex; align-items: center; min-height: 28px; }
.stack .avatar + .avatar { margin-left: -8px; }
.stack-more { font-size: 12px; font-weight: 750; margin-left: 6px; color: var(--muted); }

/* ---------- Inicio ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 20px 18px 78px; border-radius: 0 0 32px 32px;
  background:
    radial-gradient(120% 90% at 0% 0%, #8B5CF6 0%, transparent 60%),
    radial-gradient(90% 80% at 100% 10%, #E0389A 0%, transparent 55%),
    radial-gradient(80% 90% at 70% 100%, #FF8A3D 0%, transparent 60%),
    #5B21B6;
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.hero::before { width: 260px; height: 260px; right: -80px; top: -90px; }
.hero::after { width: 180px; height: 180px; left: -60px; bottom: -70px; }
.hero-in { position: relative; z-index: 1; max-width: 760px; }
.hero-hi { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 650; }
.hero h1 { font-size: clamp(31px, 8.6vw, 54px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 14px 0 18px; text-wrap: balance; }
.searchbox { display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 0 8px 0 16px; height: 58px; box-shadow: 0 12px 32px rgba(30, 10, 60, .28); }
.searchbox > .i { color: var(--muted); width: 22px; height: 22px; }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 600 16.5px var(--font); outline: none; height: 100%; padding: 0; }
.searchbox input::placeholder { color: var(--muted); font-weight: 500; }
.searchbox input::-webkit-search-cancel-button { display: none; }
.sb-clear { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--surface-2); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.sb-clear .i { width: 18px; height: 18px; }
.quick { display: flex; gap: 8px; overflow-x: auto; margin: 14px -18px 0; padding: 0 18px 2px; scrollbar-width: none; }
.quick::-webkit-scrollbar, .scroller::-webkit-scrollbar, .chips-row::-webkit-scrollbar, .tabs-scroll::-webkit-scrollbar, .lp-tabs::-webkit-scrollbar { display: none; }
.qchip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); color: #fff; white-space: nowrap; font-weight: 650; font-size: 13.5px; }

.live-cards { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: -54px 16px 0; }
.live-card { background: var(--surface); border-radius: 22px; padding: 14px; box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 2px; transition: transform .15s; }
.live-card:active { transform: scale(.98); }
.lc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.lc-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 23px; background: var(--taxi-soft); }
.live-card.moto .lc-ico { background: var(--moto-soft); }
.live-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--ok); background: var(--ok-soft); padding: 4px 8px; border-radius: 999px; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }
.lc-num { font-size: 42px; font-weight: 800; line-height: 1; margin-top: 10px; letter-spacing: -.03em; }
.lc-label { font-size: 13px; color: var(--ink-2); font-weight: 650; line-height: 1.2; }
.live-card .stack { margin-top: 8px; }
.night-note { margin: 12px 16px 0; padding: 10px 14px; background: var(--surface-2); border-radius: 14px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.page .night-note { margin: 0 0 14px; }

#home-body .sec { margin: 28px 16px 0; }
.page .sec { margin: 16px 0 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-h h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.sec-note { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sec-note .i { width: 15px; height: 15px; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.cat-ico { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; background: color-mix(in srgb, var(--c) 15%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent); transition: transform .15s; }
.cat:active .cat-ico, .cat:hover .cat-ico { transform: translateY(-2px) scale(1.03); }
.cat-name { font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--ink-2); }

.scroller { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
.scroller > * { scroll-snap-align: start; flex: 0 0 auto; }
.cards-row > .card.biz { width: 270px; }

.promo { width: 272px; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.promo-media { position: relative; aspect-ratio: 16 / 8; }
.promo-tag { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(0, 0, 0, .55); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 999px; }
.promo-tag .i { width: 13px; height: 13px; }
.promo-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.promo-body h3 { font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.promo-body p { font-size: 13px; color: var(--ink-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 650; }

.cta-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #2B1166, #6C2BD9 55%, #E0389A); box-shadow: var(--shadow-2); }
.cta-e { font-size: 34px; }
.cta-card h3 { font-size: 16px; font-weight: 800; line-height: 1.25; }
.cta-card p { font-size: 13.5px; opacity: .9; margin-top: 3px; }
.cta-card > .i { margin-left: auto; }

.foot { text-align: center; padding: 34px 16px 22px; font-size: 13px; color: var(--ink-2); }
.foot p + p { margin-top: 6px; }
.foot a { color: var(--brand); font-weight: 700; }

/* ---------- Portadas ---------- */
.cover { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--surface-2); container-type: inline-size; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.art { background: radial-gradient(130% 120% at 15% 0%, color-mix(in srgb, var(--c) 45%, #fff) 0%, var(--c) 52%, color-mix(in srgb, var(--c) 62%, #000) 100%); }
.art-e { position: absolute; font-size: calc(var(--s) * 1cqw); transform: translate(-50%, -50%) rotate(var(--r)); opacity: .5; line-height: 1; }
.art-main { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 30cqw; line-height: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28)); }
.cover.sm .art-e { display: none; }
.cover.sm .art-main { font-size: 56cqw; }
.cover.tall .art-main { font-size: 22cqw; top: 40%; }

/* ---------- Tarjetas ---------- */
.card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-1); padding: 16px; }
.card > h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card.biz { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card.biz:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card-media { position: relative; aspect-ratio: 16 / 9; }
.card-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #18132B; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.badge .i { width: 13px; height: 13px; }
.badge.open { color: #0A7A3B; }
.badge.closed { color: #B42318; }
.badge.feat { background: linear-gradient(135deg, #FFD84D, #FFB020); color: #3A2800; }
.card-body { padding: 12px 14px 14px; }
.card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-title h3 { font-size: 16.5px; font-weight: 800; line-height: 1.25; }
.card-sub { font-size: 13px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta .i { width: 14px; height: 14px; }
.card-meta .ok { color: var(--ok); }
.mini-drv { width: 152px; padding: 16px 10px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mini-drv h3 { font-size: 14px; font-weight: 800; line-height: 1.2; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.near-wrap { position: relative; }
.dist { position: absolute; top: 10px; right: 10px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }

.rating { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.rating .i { width: 14px; height: 14px; color: var(--taxi); }
.rating span { color: var(--muted); font-weight: 600; }
.rating.new { font-size: 11px; color: var(--brand); background: var(--brand-soft); padding: 3px 8px; border-radius: 999px; }

.list { display: flex; flex-direction: column; gap: 10px; }
.list.dim > * { opacity: .8; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-1); }
.row-thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; }
.row-info { flex: 1; min-width: 0; }
.row-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-title h3 { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.row-sub .ok { font-weight: 700; }
.row-snip { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--brand); font-weight: 650; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-snip .i { width: 13px; height: 13px; }
.row-snip.plain { color: var(--ink-2); font-weight: 500; }
.row-chev { color: var(--muted); }

.driver { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 20px; padding: 12px; box-shadow: var(--shadow-1); border: 1.5px solid transparent; }
.driver.st-on { border-color: color-mix(in srgb, var(--ok) 32%, transparent); }
.driver.st-pending { border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.driver-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.driver-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.driver-info h3 { font-size: 15.5px; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 1.2; }
.eco { font-size: 11.5px; font-weight: 800; background: var(--taxi); color: #2A2000; padding: 2px 8px; border-radius: 7px; letter-spacing: .02em; white-space: nowrap; }
.eco.big { font-size: 14px; padding: 4px 12px; border-radius: 9px; }
.eco.moto { background: var(--moto); color: #fff; }
.driver-sub { font-size: 12.5px; color: var(--muted); }
.mini-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.mini-chips span { font-size: 11px; padding: 3px 8px; background: var(--surface-2); border-radius: 999px; color: var(--ink-2); font-weight: 650; }
.driver-actions { display: flex; gap: 8px; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .12); transition: transform .1s; }
.round-btn:active { transform: scale(.94); }
.round-btn.call { background: var(--ok); }
.round-btn.wa { background: var(--wa); }

.base-card { display: block; background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-1); transition: transform .15s; }
.base-card:active { transform: scale(.99); }
.base-top { display: flex; align-items: center; gap: 12px; }
.base-ico { width: 50px; height: 50px; border-radius: 15px; background: var(--taxi-soft); display: grid; place-items: center; font-size: 25px; flex: none; }
.base-ico.xl { width: 76px; height: 76px; border-radius: 24px; font-size: 38px; margin: 0 auto; }
.base-info { flex: 1; min-width: 0; }
.base-info h3 { font-size: 16px; font-weight: 800; }
.base-info p { font-size: 12.5px; color: var(--muted); display: flex; gap: 4px; align-items: center; margin-top: 2px; }
.base-info p .i { width: 14px; height: 14px; }
.base-count { text-align: center; min-width: 66px; padding: 6px 8px; border-radius: 14px; background: var(--surface-2); }
.base-count b { display: block; font-size: 24px; font-weight: 800; line-height: 1.05; color: var(--off); }
.base-count span { font-size: 10.5px; font-weight: 750; color: var(--muted); }
.base-count.has { background: var(--ok-soft); }
.base-count.has b, .base-count.has span { color: var(--ok); }
.base-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.base-link { font-size: 13px; font-weight: 750; color: var(--brand); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.base-link .i { width: 16px; height: 16px; }

/* ---------- Encabezados, filtros ---------- */
.page-h { margin: 4px 0 14px; }
.page-h h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.page-h p { color: var(--muted); margin-top: 4px; font-size: 14px; }
.cat-h { display: flex; align-items: center; gap: 14px; }
.cat-big { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 32px; background: color-mix(in srgb, var(--c) 15%, var(--surface)); flex: none; }
.seg { display: flex; background: var(--surface-2); border-radius: 15px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.seg > a, .seg > button { flex: 1; text-align: center; padding: 10px 8px; border-radius: 12px; font-weight: 750; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.seg .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg b { background: var(--ok); color: #fff; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px; scrollbar-width: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 650; color: var(--ink-2); cursor: pointer; }
.chip .i { width: 15px; height: 15px; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.big { padding: 10px 16px; font-size: 14.5px; font-weight: 750; background: color-mix(in srgb, var(--c, var(--brand)) 13%, var(--surface)); border-color: transparent; color: var(--ink); }
.results { padding-top: 18px; }
.res-count { font-size: 13px; color: var(--muted); font-weight: 650; margin-bottom: 10px; }
.res-h { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; margin: 18px 0 10px; }
.list-h { font-size: 16px; font-weight: 800; margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
.muted-h { color: var(--muted); }
.empty { text-align: center; padding: 36px 18px; }
.empty-e { font-size: 50px; line-height: 1.1; }
.empty h3 { font-size: 18px; font-weight: 800; margin-top: 8px; }
.empty p { color: var(--muted); margin: 6px auto 14px; max-width: 340px; font-size: 14px; }

/* ---------- Perfil de negocio ---------- */
.lp { max-width: 820px; margin: 0 auto; padding-bottom: 20px; }
.gallery { position: relative; aspect-ratio: 16 / 10; max-height: 54vh; width: 100%; background: var(--surface-2); overflow: hidden; }
.gal-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gal-dots { position: absolute; bottom: 46px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.gal-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .6); transition: width .2s; }
.gal-dots i.on { width: 18px; background: #fff; }
.fab { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .92); color: #18132B; box-shadow: 0 4px 14px rgba(0, 0, 0, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gallery .fab { position: absolute; top: calc(12px + env(safe-area-inset-top)); z-index: 2; }
.fab-l { left: 12px; }
.fab-r { right: 12px; }
.lp-head { position: relative; z-index: 1; margin: -36px 16px 0; background: var(--surface); border-radius: 24px; padding: 48px 18px 18px; text-align: center; box-shadow: var(--shadow-2); }
.lp-logo { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); }
.lp-logo .avatar { box-shadow: 0 0 0 4px var(--surface), var(--shadow-2); }
.lp-emoji { width: 78px; height: 78px; border-radius: 24px; display: grid; place-items: center; font-size: 40px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); box-shadow: 0 0 0 4px var(--surface), var(--shadow-2); }
.lp-head h1 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.lp-cat { margin-top: 7px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.lp-tag { color: var(--muted); margin-top: 6px; font-size: 14px; }
.open-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 750; }
.open-chip .i { width: 15px; height: 15px; }
.open-chip.open { background: var(--ok-soft); color: var(--ok); }
.open-chip.soon { background: var(--warn-soft); color: var(--warn); }
.open-chip.closed { background: var(--bad-soft); color: var(--bad); }
.actions4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); gap: 8px; margin: 16px 16px 0; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: none; border: 0; cursor: pointer; padding: 0; }
.act > span { width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-1); transition: transform .1s; }
.act:active > span { transform: scale(.94); }
.act .i { width: 24px; height: 24px; }
.act.call > span { background: var(--ok); color: #fff; }
.act.wa > span { background: var(--wa); color: #fff; }
.act.dir > span { color: #1C7ED6; }
.act.share > span { color: var(--brand); }
.social { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 16px 16px 0; }
.soc { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 750; color: #fff; }
.soc .i { width: 17px; height: 17px; }
.soc.facebook { background: #1877F2; }
.soc.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); }
.soc.tiktok { background: #111; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.soc.web { background: var(--ink-2); color: var(--surface); }
.soc.booking { background: #FF385C; }
.lp-promos { margin: 16px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.promo-inline { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 13%, var(--surface)), color-mix(in srgb, var(--brand) 13%, var(--surface))); }
.promo-inline > .i { color: var(--pink); margin-top: 1px; }
.promo-inline b { font-size: 14.5px; }
.promo-inline p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.lp-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; margin-top: 14px; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); scrollbar-width: none; }
.lp-sec { margin: 14px 16px 0; background: var(--surface); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-1); scroll-margin-top: 70px; }
.lp-sec > h2, .lp-sec .sec-h h2 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.lp-sec .sec-h { margin-bottom: 4px; }
.about { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; white-space: pre-line; margin-bottom: 4px; }
.feat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.feat-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 700; }
.feat-chips .i { width: 14px; height: 14px; }
.info-rows { list-style: none; padding: 0; }
.info-rows li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.info-rows li:last-child { border-bottom: 0; }
.info-rows > li > .i { color: var(--brand); margin-top: 2px; }
.info-rows b { display: block; font-size: 11.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.info-rows span, .info-rows a { font-size: 14.5px; font-weight: 600; }
.info-rows a { color: var(--brand); }
.sub-h { font-size: 15px; font-weight: 800; margin: 16px 0 8px; }
.hours { list-style: none; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.hours li span:first-child { color: var(--ink-2); font-weight: 600; }
.hours li span:last-child { font-weight: 700; text-align: right; }
.hours li.today { background: var(--brand-soft); }
.hours li.today span { color: var(--brand); font-weight: 800; }
.hours-24 { display: flex; align-items: center; gap: 8px; font-weight: 750; color: var(--ok); }
.map { margin-top: 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.map iframe { width: 100%; height: 210px; border: 0; display: block; filter: var(--map-filter); }
.map.sm iframe { height: 150px; }
.map-open { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; font-weight: 750; font-size: 14px; color: var(--brand); background: var(--surface); }
.menu-sec + .menu-sec { margin-top: 18px; }
.menu-sec h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); font-weight: 800; margin-bottom: 4px; }
.menu-sec ul { list-style: none; padding: 0; }
.menu-sec li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.menu-sec li:last-child { border-bottom: 0; }
.mi-text b { font-size: 15px; font-weight: 700; }
.mi-text p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.price { font-weight: 800; font-size: 15px; white-space: nowrap; }
.price small { font-weight: 600; color: var(--muted); }

/* ---------- Reseñas ---------- */
.rsum { display: flex; gap: 18px; align-items: center; padding: 6px 0 12px; }
.rsum-big { text-align: center; min-width: 98px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rsum-big b { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.rsum-big > span { font-size: 12.5px; color: var(--muted); }
.rsum-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 750; }
.bar { flex: 1; height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--taxi); border-radius: inherit; }
.stars { position: relative; display: inline-flex; }
.stars .i { width: 16px; height: 16px; flex: none; }
.stars.sm .i { width: 13px; height: 13px; }
.stars-bg { display: flex; color: var(--line); }
.stars-fg { position: absolute; inset: 0 auto 0 0; display: flex; overflow: hidden; color: var(--taxi); white-space: nowrap; }
.reviews { list-style: none; padding: 0; margin-top: 6px; }
.review { padding: 14px 0; border-top: 1px solid var(--line); }
.card .reviews .review:first-child, .lp-sec .reviews .review:first-child { border-top: 0; }
.review-head { display: flex; gap: 10px; align-items: center; }
.review-who { min-width: 0; }
.review-who b { font-size: 14.5px; }
.review-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.review-meta a { color: var(--brand); font-weight: 700; }
.review-text { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.reply { margin: 10px 0 0 46px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; }
.reply b { font-size: 12px; color: var(--brand); }
.review.is-hidden { opacity: .55; }
.review-admin { display: flex; gap: 8px; margin-top: 10px; }
.star-pick { display: flex; justify-content: center; gap: 4px; }
.star-btn { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--line); transition: transform .12s, color .12s; }
.star-btn .i { width: 42px; height: 42px; }
.star-btn.on { color: var(--taxi); transform: scale(1.06); }
.star-label { text-align: center; font-weight: 750; color: var(--ink-2); min-height: 22px; }

/* ---------- Perfil de taxista / repartidor ---------- */
.dp { max-width: 720px; margin: 0 auto; padding-bottom: 20px; }
.dp-hero { padding: calc(12px + env(safe-area-inset-top)) 16px 22px; text-align: center; border-radius: 0 0 32px 32px; background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.dp-hero.st-on { background: linear-gradient(180deg, var(--ok-soft), var(--bg)); }
.dp-hero.st-pending { background: linear-gradient(180deg, var(--warn-soft), var(--bg)); }
.dp-bar { display: flex; justify-content: space-between; margin-bottom: 4px; }
.dp-hero .avatar { margin: 0 auto; }
.dp-hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 14px; line-height: 1.15; }
.dp-sub { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 8px 0 14px; }
.sbig { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-1); max-width: 470px; margin: 0 auto; }
.sbig b { display: block; font-size: 16px; font-weight: 800; }
.sbig span { font-size: 13px; color: var(--ink-2); }
.sbig .pulse { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.sbig.on .pulse { background: var(--ok); animation: pulse 1.8s infinite; }
.sbig.on b { color: var(--ok); }
.sbig.pending .pulse { background: var(--warn); }
.sbig.pending b { color: var(--warn); }
.sbig.off .pulse { background: var(--off); }
.sbig.off b { color: var(--off); }
.actions2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 16px 0; }
.loc-btn { margin: 10px 16px 0; width: calc(100% - 32px) !important; }
.base-hero { text-align: center; padding: 6px 0 16px; }
.base-hero h1 { font-size: 26px; font-weight: 800; margin-top: 12px; letter-spacing: -.02em; }
.base-hero p { color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 6px; font-size: 14px; }
.base-hero p .i { width: 15px; height: 15px; }
.base-hero .btn-row { max-width: 440px; margin: 14px auto 0; }

/* ---------- Anúnciate ---------- */
.join-hero { text-align: center; padding: 26px 18px; border-radius: 26px; color: #fff; margin-bottom: 16px; background: linear-gradient(135deg, #2B1166, #6C2BD9 55%, #E0389A); }
.join-e { font-size: 46px; }
.join-hero h1 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0; }
.join-hero p { opacity: .92; }
.price-tag { display: inline-flex; flex-direction: column; margin-top: 16px; background: rgba(255, 255, 255, .14); border-radius: 18px; padding: 10px 22px; }
.price-tag b { font-size: 34px; font-weight: 800; line-height: 1.1; }
.price-tag span { font-size: 12.5px; opacity: .92; }
.benefits { list-style: none; padding: 0; margin-bottom: 16px; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 12px; padding: 14px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-1); }
.benefits li > span { font-size: 26px; }
.benefits b { font-size: 15px; }
.benefits p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.join-form h2 { font-size: 20px; font-weight: 800; }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 750; color: var(--ink-2); }
.field small { font-size: 12px; color: var(--muted); }
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 13px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 16px var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
}
:where(input, select, textarea):focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.searchbox input:focus { box-shadow: none; }
textarea { resize: vertical; min-height: 86px; line-height: 1.45; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237B7593' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input[type=color] { padding: 4px; height: 46px; cursor: pointer; }
.emoji-in { font-size: 24px !important; text-align: center; }
.pw { position: relative; }
.pw input { padding-right: 48px !important; }
.pw .icon-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fine { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.45; }
.label-sm { font-size: 13px; font-weight: 750; color: var(--ink-2); margin-top: 4px; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .2s; display: inline-block; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.on, input:checked + .switch { background: var(--ok); }
.switch.on::after, input:checked + .switch::after { transform: translateX(18px); }
.toggle-line { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; font-weight: 650; font-size: 14.5px; position: relative; }
.toggle-line input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-line input:focus-visible + .switch { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

/* ---------- Hojas (ventanas desde abajo) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 6, 20, .52); opacity: 0; transition: opacity .25s; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 28px 28px 0 0; padding: 6px 18px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 -10px 40px rgba(0, 0, 0, .22);
}
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-grip { width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: 6px auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sheet-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.sheet-text { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; margin-bottom: 12px; }
.demo-note { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.demo-e { font-size: 44px; }
.cred-box { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--surface-2); margin: 4px 0 14px; }
.cred-box span { font-size: 13px; color: var(--muted); font-weight: 750; }
.cred-box b { font-size: 18px; }

/* ---------- Avisos ---------- */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 16px; font-weight: 650; font-size: 14.5px; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; max-width: 480px; text-align: center; }
.toast.show { opacity: 1; transform: none; }
.toast.error { background: var(--bad); color: #fff; }

/* ---------- Esqueleto de carga ---------- */
.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--bg-2) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 16px; margin-bottom: 12px; }
.sk-hero { height: 190px; }
.sk-line { height: 16px; border-radius: 8px; }
.sk-card { height: 92px; }
.w60 { width: 60%; }
.w40 { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Panel de socios ---------- */
.auth { min-height: calc(100vh - 160px); display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 410px; background: var(--surface); border-radius: 26px; padding: 26px 22px; box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 14px; }
.auth-ico { width: 62px; height: 62px; border-radius: 20px; background: linear-gradient(135deg, var(--brand), var(--pink)); color: #fff; display: grid; place-items: center; margin: 0 auto; }
.auth-ico .i { width: 28px; height: 28px; }
.auth-card h1 { text-align: center; font-size: 24px; font-weight: 800; }
.auth-card > p { text-align: center; color: var(--muted); font-size: 14px; }
.sp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sp-who { flex: 1; min-width: 0; }
.sp-who h1 { font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.sp-who .small { margin-top: 4px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.socio > .btn.block { margin-bottom: 12px; }
.tabs-scroll { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px 8px; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; font-weight: 750; font-size: 14px; color: var(--ink-2); background: var(--surface); box-shadow: var(--shadow-1); white-space: nowrap; }
.tab .i { width: 17px; height: 17px; }
.tab.on { background: var(--brand); color: var(--brand-ink); }

.shift { border-radius: 26px; padding: 20px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-2); }
.shift::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -90px; background: rgba(255, 255, 255, .1); pointer-events: none; }
.shift.off { background: linear-gradient(160deg, #3D3656, #1C1730); }
.shift.on { background: radial-gradient(130% 120% at 100% 0%, #3BE38A 0%, #12A150 46%, #0A6A35 100%); }
.shift.pending { background: radial-gradient(130% 120% at 100% 0%, #FFC861 0%, #F08C00 50%, #A85400 100%); }
.shift-state { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; background: rgba(255, 255, 255, .17); padding: 6px 12px; border-radius: 999px; position: relative; z-index: 1; }
.shift .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.shift.on .dot, .shift.pending .dot { animation: pulse-white 1.8s infinite; }
.shift.off .dot { background: #A39EB8; }
.shift .tag { display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .2); border-radius: 999px; padding: 2px 8px; margin-left: 4px; letter-spacing: 0; }
.shift .tag .i { width: 13px; height: 13px; }
.shift h2 { font-size: 27px; font-weight: 800; margin: 14px 0 4px; letter-spacing: -.02em; position: relative; z-index: 1; }
.shift p { opacity: .93; font-size: 14.5px; line-height: 1.45; position: relative; z-index: 1; }
.shift .shift-last { margin-top: 8px; font-size: 13px; opacity: .75; }
.shift .btn { margin-top: 16px; position: relative; z-index: 1; }
.shift.on .btn-row .btn { margin-top: 0; }
.shift .btn.go { background: #fff; color: #0A6A35; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.shift.off .btn.go { background: linear-gradient(180deg, #2FD27A, #12A150); color: #fff; }
.shift.pending .btn.go { background: #fff; color: #A85400; }
.shift .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); margin-top: 10px; }
.shift .btn.soft { background: rgba(255, 255, 255, .2); color: #fff; }
.shift .btn.danger-ghost { background: rgba(0, 0, 0, .2); color: #fff; }
.progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .26); overflow: hidden; margin: 16px 0 8px; position: relative; z-index: 1; }
.progress i { display: block; height: 100%; background: #fff; border-radius: inherit; transition: width .6s; }
.shift-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 750; flex-wrap: wrap; position: relative; z-index: 1; }
.shift-meta span { display: inline-flex; align-items: center; gap: 5px; }
.shift-meta .i { width: 15px; height: 15px; }
.timeline { --pad: 0px; list-style: none; padding: 4px var(--pad); margin: 18px 0 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: calc(var(--pad) + 93px); top: 18px; bottom: 18px; width: 2px; background: currentColor; opacity: .25; }
.timeline li { display: grid; grid-template-columns: 78px 18px 1fr; align-items: center; gap: 8px; padding: 7px 0; }
.tl-time { font-weight: 800; font-size: 13.5px; text-align: right; white-space: nowrap; }
.tl-dot { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid currentColor; justify-self: center; position: relative; z-index: 1; background: var(--tl-bg, transparent); }
.timeline li.done .tl-dot { background: currentColor; }
.tl-label { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.shift .timeline { --pad: 12px; color: #fff; background: rgba(0, 0, 0, .14); border-radius: 18px; position: relative; z-index: 1; }
.plan-box { background: var(--surface-2); border-radius: 18px; padding: 14px; margin-bottom: 14px; }
.plan-t { font-weight: 800; font-size: 14px; }
.plan-box .timeline { margin-top: 8px; color: var(--ink); }
.plan-box .tl-start .tl-dot { border-color: var(--ok); background: var(--ok); }
.plan-box .tl-r1 .tl-dot, .plan-box .tl-r2 .tl-dot { border-color: var(--warn); }
.plan-box .tl-off .tl-dot { border-color: var(--bad); }
.hours-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.hpick { display: flex; flex-direction: column; align-items: center; padding: 14px 6px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); transition: border-color .15s, background .15s; }
.hpick b { font-size: 28px; font-weight: 800; line-height: 1; }
.hpick span { font-size: 12px; color: var(--muted); font-weight: 750; margin-top: 2px; }
.hpick.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.hpick.on span { color: var(--brand); }
.toggle-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 0; color: var(--ink); cursor: pointer; margin-bottom: 14px; }
.toggle-row b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.toggle-row b .i { width: 16px; height: 16px; color: var(--warn); }
.toggle-row small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.notif-card { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.nc { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); }
.nc > .i { width: 26px; height: 26px; color: var(--brand); }
.nc > div { flex: 1; min-width: 0; }
.nc b { font-size: 14.5px; }
.nc p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.nc.ok > .i { color: var(--ok); }
.nc.warn > .i { color: var(--warn); }
.nc.bad > .i { color: var(--bad); }
.sec-t { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.help h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.help h3 .i { color: var(--brand); }
.steps { padding-left: 20px; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.steps.big { font-size: 15px; gap: 10px; margin-bottom: 16px; }

.stats-hero { padding: 18px; border-radius: 22px; color: #fff; margin-bottom: 12px; background: linear-gradient(135deg, var(--brand), var(--pink)); }
.stats-hero p { opacity: .92; font-size: 13.5px; }
.stats-hero h2 { font-size: 21px; font-weight: 800; margin: 4px 0; line-height: 1.2; }
.stats-hero h2 b { font-size: 36px; letter-spacing: -.03em; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.kpi { background: var(--surface); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 2px; color: var(--ink); min-width: 0; }
.kpi-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.kpi-ic .i { width: 18px; height: 18px; }
.kpi b { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.kpi > span:not(.kpi-ic) { font-size: 13px; font-weight: 750; color: var(--ink-2); }
.kpi small { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.kpi small.up { color: var(--ok); }
.kpi small.down { color: var(--bad); }
.kpi.live .kpi-ic { background: var(--ok-soft); color: var(--ok); }
.kpi.bad .kpi-ic { background: var(--bad-soft); color: var(--bad); }
.kpi.warn .kpi-ic { background: var(--warn-soft); color: var(--warn); }
.chart-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.chart-note { font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.bcol { flex: 1; height: 100%; position: relative; }
.bcol .bv { position: absolute; bottom: 0; left: 0; right: 0; background: color-mix(in srgb, var(--brand) 28%, var(--surface-2)); border-radius: 4px 4px 2px 2px; min-height: 2px; }
.bcol .bc { position: absolute; bottom: 0; left: 22%; right: 22%; background: var(--brand); border-radius: 3px 3px 1px 1px; }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; font-weight: 650; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lv { background: color-mix(in srgb, var(--brand) 28%, var(--surface-2)); }
.lc { background: var(--brand); }
.promo-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-1); }
.promo-row > img, .promo-e { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--surface-2); font-size: 26px; }
.promo-row > div { flex: 1; min-width: 0; }
.promo-row b { font-size: 14.5px; }
.promo-row p { font-size: 13px; color: var(--ink-2); }
.promo-row small { font-size: 12px; color: var(--muted); }
.promo-row.dim { opacity: .55; }
.promo-prev { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; display: inline-block; }
.info-card { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.info-card > .i { color: var(--pink); width: 26px; height: 26px; }
.info-card p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.sec .btn.block + .list, .sec .info-card + .btn { margin-top: 12px; }
.member-card { border-left: 5px solid var(--ok); }
.member-card.warn { border-left-color: var(--warn); }
.member-card.bad { border-left-color: var(--bad); }
.member-card h2 { font-size: 22px; font-weight: 800; margin: 2px 0; }
.member-fee { font-size: 24px; font-weight: 800; margin: 12px 0; }
.member-fee span { font-size: 13px; color: var(--muted); font-weight: 600; }
.socio .sec > * + *, .admin > * + * { margin-top: 12px; }

/* ---------- Editor ---------- */
.editor { display: flex; flex-direction: column; gap: 14px; }
.ed-sec { background: var(--surface); border-radius: 22px; padding: 16px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 12px; }
.ed-sec h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.ed-sec h3 .i { color: var(--brand); }
.admin-only { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent); }
.ed-save { position: sticky; bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom)); z-index: 5; }
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chips .chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip.check { cursor: pointer; }
.chip.check input { margin: 0; width: 16px; height: 16px; accent-color: var(--brand); }
.chip-add { display: inline-flex; align-items: center; gap: 4px; border: 1.5px dashed var(--line); border-radius: 999px; padding: 2px 4px 2px 12px; }
.chip-add input { border: 0 !important; min-height: 32px !important; padding: 0 !important; width: 120px !important; font-size: 14px !important; background: transparent !important; box-shadow: none !important; }
.logo-row { display: flex; gap: 14px; align-items: center; }
.logo-row b { font-size: 14.5px; }
.logo-row .btn-row { margin-top: 8px; }
.logo-row .btn-row .btn { flex: 0 0 auto; }
.logo-box { width: 78px; height: 78px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--muted); }
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-box .i { width: 30px; height: 30px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--line); color: var(--muted); font-size: 12.5px; font-weight: 750; cursor: pointer; background: transparent; }
.ph-badge { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; font-weight: 800; background: var(--brand); color: #fff; padding: 3px 7px; border-radius: 999px; }
.ph-btn { position: absolute; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ph-btn.l { left: 6px; }
.ph-btn.r { right: 6px; }
.ph-btn .i { width: 15px; height: 15px; }
.hours-ed { display: flex; flex-direction: column; }
.hrow { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hrow:last-child { border-bottom: 0; }
.hday { display: flex; align-items: center; gap: 7px; width: 78px; flex: none; background: none; border: 0; font-weight: 750; font-size: 14px; color: var(--ink); cursor: pointer; padding: 9px 0; }
.hday .switch { width: 34px; height: 20px; }
.hday .switch::after { width: 14px; height: 14px; }
.hday .switch.on::after { transform: translateX(14px); }
.hrow.closed .hday { color: var(--muted); }
.hranges { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; min-width: 0; }
.hranges > .muted { padding-top: 6px; }
.hrange { display: flex; align-items: center; gap: 6px; }
.hrange input { min-height: 38px !important; padding: 6px 4px !important; font-size: 14px !important; flex: 1; min-width: 0; text-align: center; }
.hrange input::-webkit-calendar-picker-indicator { display: none; }
.hrange > span { font-size: 13px; color: var(--muted); }
.hday .d-l { display: none; }
@media (max-width: 479px) {
  .hday .d-s { display: none; }
  .hday .d-l { display: inline; }
  .hrow:not(.closed) { flex-direction: column; align-items: stretch; gap: 2px; }
  .hrow:not(.closed) .hday { width: auto; padding: 4px 0; }
  .hrow:not(.closed) .hranges { padding: 0 0 4px; }
  .hrow.closed { align-items: center; }
  .hrow.closed .hday { width: 130px; }
  .hrow.closed .hranges > .muted { padding-top: 0; }
}
.cat-sec { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cat-sec-h { display: flex; align-items: flex-end; gap: 8px; }
.cat-sec-h .field { flex: 1; }
.cat-item { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: var(--surface-2); }
.cat-item-main { display: flex; gap: 8px; }
.cat-item-main > input { flex: 1; min-width: 0; }
.price-in { display: flex; align-items: center; width: 112px; flex: none; position: relative; }
.price-in > span { position: absolute; left: 12px; color: var(--muted); font-weight: 750; z-index: 1; }
.price-in input { padding-left: 26px !important; }
.cat-item-sub { display: flex; gap: 6px; align-items: center; }
.cat-item-sub input { flex: 1; min-width: 0; min-height: 38px !important; font-size: 14px !important; padding: 8px 12px !important; }

/* ---------- Administración ---------- */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.admin-nav { margin-bottom: 4px; }
.admin-tools { display: flex; gap: 10px; align-items: center; }
.admin-tools > p { flex: 1; font-size: 13.5px; }
.searchbox.sm { flex: 1; height: 46px; box-shadow: var(--shadow-1); border-radius: 14px; padding: 0 12px; gap: 8px; }
.searchbox.sm input { font: 500 15px var(--font) !important; min-height: 0 !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; background: transparent !important; }
.admin-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-1); flex-wrap: wrap; }
.admin-list li.dim { opacity: .6; }
.admin-list li[hidden] { display: none; }
.card .admin-list li { box-shadow: none; background: var(--surface-2); }
.al-main { display: flex; align-items: center; gap: 12px; flex: 1 1 210px; min-width: 0; }
.al-main > div { min-width: 0; }
.al-main > div > b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.al-main > div > span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-main .status { display: inline-flex; }
.al-e { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; flex: none; }
.card .al-e { background: var(--surface); }
.cat-dot { background: color-mix(in srgb, var(--c) 16%, var(--surface)) !important; }
.rank { list-style: none; padding: 0; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rank li:last-child { border-bottom: 0; }
.rank-n { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.rank a { font-weight: 750; flex: 1; min-width: 140px; }
.detail-head { display: flex; align-items: center; gap: 12px; }
.detail-head > div { flex: 1; min-width: 0; }
.detail-head h2 { font-size: 21px; font-weight: 800; line-height: 1.2; }
.detail-head p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; color: var(--brand); font-size: 14px; }
.back-link .i { width: 18px; height: 18px; }
.danger-zone { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bad) 35%, transparent); background: color-mix(in srgb, var(--bad) 5%, var(--surface)); }
.danger-zone h3 { display: flex; align-items: center; gap: 8px; color: var(--bad); font-size: 16px; font-weight: 800; }
.danger-zone p { margin: 4px 0 12px; }
.settings .card { display: flex; flex-direction: column; gap: 12px; }
.settings .card + .card { margin-top: 0; }
.settings h3, .admin form.card h3 { display: flex; gap: 8px; align-items: center; font-size: 16px; font-weight: 800; }
.settings h3 .i, .admin form.card h3 .i { color: var(--brand); }
.sticky-save { position: sticky; bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom)); z-index: 5; }
.kind-seg { margin-bottom: 0; }

/* ---------- Pantallas medianas y grandes ---------- */
@media (max-width: 380px) {
  .grid2 { grid-template-columns: 1fr; }
  .cats { gap: 14px 2px; }
  .cat-ico { width: 56px; height: 56px; font-size: 27px; border-radius: 18px; }
  .lc-num { font-size: 36px; }
}
@media (max-width: 330px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(5, 1fr); }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 700px) {
  .sheet-wrap { align-items: center; padding: 20px; }
  .sheet { border-radius: 28px; opacity: 0; transform: translateY(30px) scale(.98); transition: transform .25s, opacity .25s; }
  .sheet-wrap.open .sheet { opacity: 1; transform: none; }
  .sheet-grip { display: none; }
  .admin-kpis { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  #toast-root { bottom: 24px; }
  .tb-in { height: 64px; padding: 0 20px; }
  .tb-nav { display: flex; gap: 2px; margin-left: 24px; }
  .tb-nav a { padding: 8px 12px; border-radius: 10px; font-weight: 750; font-size: 14.5px; color: var(--ink-2); }
  .tb-nav a:hover { background: var(--surface-2); }
  .tb-nav a.on { color: var(--brand); background: var(--brand-soft); }
  .hero { margin: 8px 20px 0; border-radius: 34px; padding: 56px 56px 104px; }
  .hero h1 { margin: 18px 0 24px; }
  .live-cards { margin: -64px 56px 0; max-width: 760px; grid-template-columns: 1fr 1fr; }
  #home-body .sec { margin: 34px 20px 0; }
  .cats { grid-template-columns: repeat(10, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .night-note { margin: 14px 56px 0; max-width: 760px; }
  .lp-tabs { top: 64px; }
  .gallery { border-radius: 26px; margin-top: 16px; width: calc(100% - 32px); margin-left: 16px; }
  .lp .gallery .fab-l { display: none; }
  .dp-hero { border-radius: 0 0 34px 34px; }
  .ed-save, .sticky-save { bottom: 16px; }
  .scroller { margin: 0; padding: 2px 0 10px; }
  .page { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
