/* Base compartida. Los colores llegan como variables desde la configuración de cada marca. */
:root {
  --bg: #111; --surface: #1a1a1a; --surface-2: #222; --text: #f2f2f2; --muted: #999; --line: #333;
  --accent: #d9a441; --on-accent: #111;
  --ok: #3aa76d; --warn: #d9822b; --bad: #d64545;
  --r: 14px; --r-sm: 10px; --gap: 16px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --display: var(--font);
  --dbar-h: 104px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.noscroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; font-family: var(--display); font-weight: 600; }
h2 { font-size: 1.45rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; margin-top: 1.2em; }
p { margin: 0 0 .7em; }
small { font-size: .8rem; }
code { font-family: ui-monospace, Menlo, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); } .small { font-size: .82rem; } .center { text-align: center; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.pad { padding-top: 20px; padding-bottom: 40px; }
.row { display: flex; gap: 10px; align-items: center; }
.wrap-row { flex-wrap: wrap; }
.grow { flex: 1; }
.sp { flex: 1; }
.boot { padding: 40vh 0; text-align: center; color: var(--muted); }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: .9rem; }
.hscroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; text-decoration: none; white-space: normal; text-align: center; line-height: 1.2; transition: transform .12s, background .2s, opacity .2s; border: 1px solid transparent; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* Barra de la demo */
.dbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: env(safe-area-inset-top, 0) 12px 0; }
.dbar-row { display: flex; align-items: center; gap: 8px; height: 46px; max-width: 1120px; margin: 0 auto; }
.demo-pill { background: var(--accent); color: var(--on-accent); font-size: .68rem; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; }
.dbar-t { font-size: .86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dbar-act { margin-left: auto; display: flex; gap: 2px; }
.dbar-act a, .dbar-act button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 9px; border-radius: 10px; text-decoration: none; font-size: .85rem; color: var(--text); }
.dbar-act a.on, .dbar-act a:hover, .dbar-act button:hover { background: var(--surface-2); }
.dbar-act span { display: none; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; margin: 0 auto 10px; max-width: 560px; }
.seg a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 9px; text-decoration: none; font-size: .84rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.seg a .ic { width: 16px; height: 16px; }
.seg a.on { background: var(--accent); color: var(--on-accent); }
.dmenu { position: absolute; right: 12px; top: 46px; width: min(300px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.dmenu a, .dmenu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 11px 10px; border-radius: 10px; text-decoration: none; text-align: left; }
.dmenu a:hover, .dmenu button:hover { background: var(--surface-2); }
.dmenu-n { font-size: .78rem; color: var(--muted); padding: 6px 10px 2px; margin: 0; }
@media (min-width: 760px) {
  .dbar-act span { display: inline; }
  .dbar { padding: 0 20px; }
  .dbar-row { height: 56px; }
  .seg { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: 440px; margin: 0; }
  .dmenu { top: 54px; right: 20px; }
}
@media (min-width: 760px) and (max-width: 1100px) { .dbar-t { display: none; } .dbar-act span { display: none; } }
/* Página pública */
.hero { position: relative; min-height: 76vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-in { position: relative; padding-top: 80px; padding-bottom: 28px; }
.hero h1 { font-size: clamp(2.3rem, 9vw, 4.6rem); margin-bottom: .15em; }
.hero-tag { font-size: 1.08rem; max-width: 30ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .86rem; margin: 14px 0 18px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .ok { color: #7fd6a0; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta .btn { flex: 1 1 160px; }
.my-next { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 18%, transparent); text-decoration: none; font-size: .88rem; }
.my-next b { margin-left: auto; color: var(--accent); }
.sec { padding-top: 36px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-h h2 { margin: 0; }
.sec-k { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.combos { gap: 12px; margin: 0 -16px; padding: 4px 16px 8px; }
.combo { scroll-snap-align: start; flex: 0 0 min(78vw, 300px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: relative; }
.combo.star { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 40px color-mix(in srgb, var(--accent) 18%, transparent); }
.combo p { color: var(--muted); font-size: .9rem; }
.combo ul { margin: 0 0 14px; padding-left: 18px; font-size: .88rem; }
.combo-f { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.combo-f > div { display: flex; flex-direction: column; }
.combo-f s { color: var(--muted); font-size: .82rem; }
.combo-f small { color: var(--muted); }
.price { font-size: 1.3rem; font-weight: 700; }
.badge { display: inline-block; align-self: flex-start; background: var(--accent); color: var(--on-accent); font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; letter-spacing: .02em; }
.badge.soft { background: var(--surface-2); color: var(--text); }
.promos { display: grid; gap: 10px; }
.promo { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: var(--r); padding: 14px; }
.promo h3 { margin: 0 0 2px; } .promo p { margin: 0 0 2px; font-size: .9rem; } .promo small { color: var(--muted); }
.promo .btn { grid-column: 1 / -1; }
.promo-tag { writing-mode: horizontal-tb; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-weight: 800; font-size: .8rem; padding: 10px 8px; border-radius: 10px; text-align: center; min-width: 64px; }
.svc-cat h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 18px 0 6px; font-family: var(--font); }
.svc { display: flex; width: 100%; text-align: left; gap: 12px; align-items: center; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.svc > div:first-child { flex: 1; display: flex; flex-direction: column; }
.svc small { color: var(--muted); }
.svc-r { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.svc-add { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.svc:hover .svc-add { background: var(--accent); color: var(--on-accent); }
.team { display: grid; gap: 10px; }
.pro { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); }
.pro > div { flex: 1; display: flex; flex-direction: column; } .pro small { color: var(--muted); }
.av { --c: var(--accent); width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .82rem; flex: none; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.av.lg { width: 50px; height: 50px; font-size: 1rem; } .av.sm { width: 28px; height: 28px; font-size: .7rem; }
.av .ic { width: 18px; height: 18px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.info { display: grid; gap: 20px; }
.info h3 { display: flex; gap: 8px; align-items: center; }
.hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); text-transform: capitalize; }
.hours td:last-child { text-align: right; text-transform: none; }
.hours tr.today td { font-weight: 700; color: var(--accent); }
.pub-foot { padding-top: 40px; padding-bottom: 120px; text-align: center; color: var(--muted); font-size: .88rem; }
.demo-note { font-size: .8rem; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; transform: translateY(110%); transition: transform .3s; padding: 10px 16px calc(10px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 35%); }
.sticky-cta.show { transform: none; }
@media (min-width: 760px) {
  .sticky-cta { display: none; }
  .promos { grid-template-columns: repeat(3, 1fr); }
  .promo { grid-template-columns: 1fr; }
  .promo-tag { justify-self: start; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .info { grid-template-columns: 1fr 1fr; }
  .combos { margin: 0; padding: 4px 0 8px; }
  .combo { flex-basis: calc(25% - 9px); }
  .services-cols { columns: 2; }
}

/* Hoja (modal) */
#sheet-host { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
#sheet-host.open { pointer-events: auto; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
#sheet-host.open .sheet-bg { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; background: var(--surface); color: var(--text); border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
#sheet-host.open .sheet { transform: none; }
.sheet-body { overflow-y: auto; padding: 22px 18px calc(22px + var(--safe-b)); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-x { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); z-index: 2; }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; max-height: 86vh; border-radius: 22px; transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .25s, opacity .25s; }
  .sheet.wide { width: 860px; }
  #sheet-host.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-body { padding: 28px; }
}

/* Reserva */
.bk-steps { display: flex; gap: 6px; font-size: .72rem; color: var(--muted); margin: 0 40px 14px 0; flex-wrap: wrap; }
.bk-steps span { padding: 3px 8px; border-radius: 999px; background: var(--surface-2); }
.bk-steps .on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.bk-steps .done { color: var(--text); }
.bk-combos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.chip-card { text-align: left; display: flex; flex-direction: column; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); }
.chip-card .badge { font-size: .62rem; margin-bottom: 6px; }
.chip-card.on, .opt.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.chip-card small { color: var(--muted); }
.bk-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 16px 0 8px; font-family: var(--font); }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 8px; background: var(--bg); cursor: pointer; }
.opt > span { flex: 1; display: flex; flex-direction: column; } .opt small { color: var(--muted); }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); }
.bk-foot { position: sticky; bottom: calc(-22px - var(--safe-b)); background: var(--surface); padding: 12px 0 4px; margin-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.bk-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bk-sum > div { display: flex; flex-direction: column; min-width: 0; } .bk-sum small { color: var(--muted); }
.days { gap: 8px; margin: 4px -18px 0; padding: 4px 18px 6px; }
.day { flex: 0 0 62px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.day b { font-size: 1.25rem; } .day small { color: var(--muted); font-size: .7rem; text-transform: capitalize; }
.day.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); } .day.on small { color: inherit; }
.day[disabled] { opacity: .3; }
.slot-g > small { color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.slot { padding: 10px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: .88rem; }
.slot.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.note { background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 10px; padding: 10px 12px; font-size: .88rem; display: flex; gap: 8px; align-items: flex-start; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fld > span { font-size: .84rem; font-weight: 600; } .fld i { color: var(--muted); font-weight: 400; }
.fld input, .fld select, .fld textarea, .search input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; outline: none; }
.fld textarea { min-height: 70px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; margin-bottom: 8px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; }
.err { color: var(--bad); font-size: .88rem; min-height: 1em; margin: 0; font-weight: 600; }
.bk-done { text-align: center; padding: 10px 0 4px; }
.ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.ok-ic .ic { width: 32px; height: 32px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.bk-msgs { display: grid; gap: 14px; margin: 18px 0; padding: 16px; border-radius: var(--r); background: var(--surface-2); }
.bk-msgs h3 { margin-bottom: 4px; }
.bk-next { display: grid; gap: 8px; }
@media (min-width: 760px) { .bk-msgs { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Celular simulado */
.phone { width: 100%; max-width: 270px; margin: 0 auto; border-radius: 30px; background: #0b141a; border: 6px solid #1f2428; overflow: hidden; position: relative; box-shadow: 0 14px 40px rgba(0,0,0,.3); color: #e9edef; }
.phone-notch { width: 80px; height: 18px; background: #1f2428; border-radius: 0 0 12px 12px; margin: 0 auto; }
.phone-top { display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; background: #1f2c34; font-size: .8rem; }
.phone-top small { display: block; color: #8696a0; font-size: .66rem; }
.phone-av { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.phone-chat { padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 220px; background: #0b141a radial-gradient(circle at 20% 20%, rgba(255,255,255,.03), transparent 40%); }
.bubble-when { align-self: center; font-size: .64rem; background: #182229; color: #8696a0; padding: 2px 8px; border-radius: 6px; margin-top: 4px; }
.bubble { align-self: flex-start; max-width: 92%; background: #202c33; padding: 7px 9px 16px; border-radius: 0 9px 9px 9px; font-size: .76rem; line-height: 1.38; position: relative; white-space: pre-wrap; }
.bubble-t { position: absolute; right: 7px; bottom: 2px; font-size: .58rem; color: #8696a0; }

/* Notificaciones */
.notif-stack { position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); width: min(380px, calc(100vw - 16px)); z-index: 90; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.notif { pointer-events: auto; display: flex; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(245,245,247,.92); color: #111; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 10px 40px rgba(0,0,0,.25); transform: translateY(-120%); opacity: 0; transition: transform .35s cubic-bezier(.2,1.2,.4,1), opacity .3s; cursor: pointer; }
.notif.in { transform: none; opacity: 1; }
.notif-ic { width: 34px; height: 34px; border-radius: 9px; background: #25d366; display: grid; place-items: center; font-size: 18px; flex: none; }
.notif-app .notif-ic { background: var(--accent); }
.notif-b { min-width: 0; flex: 1; }
.notif-h { display: flex; justify-content: space-between; font-size: .7rem; color: #666; text-transform: uppercase; letter-spacing: .03em; }
.notif-f { font-weight: 700; font-size: .86rem; }
.notif-t { font-size: .84rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; background: #222; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: .88rem; z-index: 95; transition: all .3s; max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.toast.in { transform: translate(-50%, 0); opacity: 1; }

/* Recorrido */
.tour { position: fixed; inset: 0; z-index: 80; }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.62); transition: all .35s cubic-bezier(.2,.8,.2,1); pointer-events: none; outline: 2px solid var(--accent); }
.tour-card { position: fixed; left: 12px; right: 12px; margin: 0 auto; max-width: 420px; background: var(--surface); color: var(--text); border-radius: 18px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.45); border: 1px solid var(--line); }
.tour-card.center { top: 50% !important; bottom: auto !important; transform: translateY(-50%); }
.tour-card h4 { font-size: 1.15rem; margin: 2px 0 6px; }
.tour-card p { color: var(--muted); font-size: .92rem; }
.tour-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.tour-actions { display: flex; gap: 8px; align-items: center; }
.tour-actions.col { flex-direction: column; align-items: stretch; }

/* Paneles */
.panel-h, .oh { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-h > div:nth-child(2) { flex: 1; } .panel-h h2, .oh h2 { margin: 0; }
.oh { justify-content: space-between; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.kpi small { color: var(--muted); font-size: .76rem; }
.kpi b { font-size: 1.32rem; font-variant-numeric: tabular-nums; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi span { font-size: .74rem; color: var(--muted); }
.kpi.hl { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.kpi.hl small, .kpi.hl span { color: inherit; opacity: .8; }
em.up { color: var(--ok); font-style: normal; font-weight: 700; } em.down { color: var(--bad); font-style: normal; font-weight: 700; }
.kpi.hl em { color: inherit; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.grid2 { display: grid; gap: 0 14px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } .kpis { grid-template-columns: repeat(3, 1fr); } .emp .kpis { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .owner .kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.daynav { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.daynav button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.daynav button:hover { background: var(--surface); }
.daynav b { min-width: 120px; text-align: center; font-size: .88rem; }
.tl { display: flex; flex-direction: column; }
.tl-row { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.tl-t { width: 80px; flex: none; white-space: nowrap; display: flex; flex-direction: column; } .tl-t small { color: var(--muted); }
.tl-b { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; } .tl-b > small { color: var(--muted); }
.tl-a { display: flex; gap: 10px; align-items: center; font-size: .8rem; flex-wrap: wrap; margin: 2px 0 4px; }
.tl-row.done { opacity: .75; } .tl-row.noshow { opacity: .55; }
.note-i { font-style: italic; }
.pill { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.pill.done { background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok); }
.pill.booked { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.pill.noshow, .pill.cancel { background: color-mix(in srgb, var(--bad) 20%, transparent); color: var(--bad); }
.pill.new { background: var(--accent); color: var(--on-accent); align-self: flex-start; }
.empty { padding: 20px 0; text-align: center; }
.mini-list > div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mini-list > div > span:first-child { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mini-list small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list .x { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.mini-appt { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mini-appt > b { width: 76px; font-size: .86rem; flex: none; }
.mini-appt > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; } .mini-appt small { color: var(--muted); }
.alert { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; }
.alert > div { flex: 1; display: flex; flex-direction: column; } .alert small { color: var(--muted); }
.alert.ok { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.todo > div { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.todo > div > span { flex: 1; }
.goal { display: flex; gap: 18px; align-items: center; }
.goal p { margin: 0 0 6px; font-size: .92rem; }
.ring { width: 120px; height: 120px; flex: none; }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 12; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; transition: stroke-dasharray .8s; }
.ring-v { fill: var(--text); font-size: 26px; font-weight: 700; } .ring-l { fill: var(--muted); font-size: 11px; }
@media (max-width: 420px) { .goal { flex-direction: column; text-align: center; } }

/* PIN */
.pin-wrap { display: grid; gap: 18px; padding: 24px 16px 60px; max-width: 900px; margin: 0 auto; }
.pin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px; text-align: center; }
.pin-ic { width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); display: grid; place-items: center; margin: 0 auto 10px; }
.pin-ic .ic { width: 24px; height: 24px; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 16px 0 8px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); transition: all .15s; }
.pin-dots i.on { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px; justify-content: center; margin-top: 8px; }
.pin-pad button { height: 72px; border-radius: 50%; background: var(--surface-2); font-size: 1.5rem; font-weight: 600; transition: background .15s, transform .1s; }
.pin-pad button:active { background: var(--accent); color: var(--on-accent); transform: scale(.95); }
.pin-pad button.ghost { visibility: hidden; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin-demo { background: var(--surface); border: 1px dashed var(--accent); border-radius: 22px; padding: 18px; }
.pin-demo > b { display: flex; gap: 8px; align-items: center; }
.pin-chip { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid var(--line); margin-top: 8px; background: var(--bg); }
.pin-chip > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .pin-chip small { color: var(--muted); }
.pin-chip code { font-size: 1rem; font-weight: 700; color: var(--accent); background: var(--surface-2); }
.pin-chip:hover { border-color: var(--accent); }
@media (min-width: 760px) { .pin-wrap { grid-template-columns: 1fr 1fr; align-items: start; padding-top: 48px; } }

/* Dueño */
.owner { display: flex; flex-direction: column; }
.otabs { position: sticky; top: var(--dbar-h); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.otabs-brand, .otabs-out { display: none; }
.otabs nav { display: flex; overflow-x: auto; scrollbar-width: none; padding: 6px 10px; gap: 4px; }
.otabs nav::-webkit-scrollbar { display: none; }
.otabs nav a { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; text-decoration: none; font-size: .86rem; color: var(--muted); font-weight: 600; position: relative; }
.otabs nav a.on { background: var(--surface-2); color: var(--text); }
.otabs nav a.on .ic { color: var(--accent); }
.badge-n { font-style: normal; background: var(--bad); color: #fff; font-size: .66rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
.omain { padding: 18px 16px 60px; min-width: 0; flex: 1; }
@media (min-width: 900px) {
  .owner { flex-direction: row; }
  .otabs { top: 56px; height: calc(100vh - 56px); width: 232px; flex: none; border-bottom: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 10px; }
  .otabs-brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 16px; }
  .otabs-brand > div { display: flex; flex-direction: column; min-width: 0; } .otabs-brand small { color: var(--muted); }
  .otabs nav { flex-direction: column; padding: 0; overflow: visible; }
  .otabs nav a { padding: 10px 12px; }
  .otabs-out { display: flex; gap: 8px; align-items: center; margin-top: auto; padding: 10px 12px; color: var(--muted); }
  .omain { padding: 24px 28px 60px; }
}

/* Agenda */
.ag-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.chips { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: nowrap; }
.chips.wrap-row { flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; white-space: nowrap; background: var(--surface); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.dot-c { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.ag { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); -webkit-overflow-scrolling: touch; }
.ag-grid { display: grid; grid-template-columns: 54px repeat(var(--cols), minmax(150px, 1fr)); min-width: min-content; }
.ag-hd { position: sticky; top: 0; z-index: 3; height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--surface); border-bottom: 1px solid var(--line); font-weight: 700; font-size: .86rem; }
.ag-times { position: sticky; left: 0; z-index: 4; background: var(--surface); border-right: 1px solid var(--line); }
.ag-times .ag-hd { z-index: 5; }
.ag-hr { font-size: .68rem; color: var(--muted); padding: 2px 6px; text-align: right; }
.ag-col { border-right: 1px solid var(--line); }
.ag-body { position: relative; }
.ag-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.ag-ev { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 4px 7px; text-align: left; overflow: hidden; display: flex; flex-direction: column; background: color-mix(in srgb, var(--c) 22%, var(--surface)); border-left: 3px solid var(--c); font-size: .74rem; line-height: 1.25; }
.ag-ev b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ag-ev small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .7rem; }
.ag-ev.done { opacity: .62; } .ag-ev.noshow { opacity: .4; text-decoration: line-through; }
.ag-ev.web { box-shadow: 0 0 0 2px var(--accent); animation: glow 1.6s ease-in-out 3; }
@keyframes glow { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 40%, transparent); } }
.ag-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--bad); z-index: 2; }
.ag-now::before { content: ''; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.lgd { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.lgd.done { opacity: .5; } .lgd.noshow { background: var(--surface-2); } .lgd.web { box-shadow: 0 0 0 2px var(--accent); }
.as .pill { margin-bottom: 8px; }
.as-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.as-grid > div { background: var(--surface-2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; min-width: 0; }
.as-grid small { color: var(--muted); font-size: .74rem; } .as-grid b { font-size: .92rem; overflow-wrap: anywhere; }
.as-grid b.acc { color: var(--accent); }
.pay-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.pay-opts .chip { padding: 10px 16px; font-weight: 600; }
.pay-opts .chip:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tag { display: inline-block; font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.tag.vip { background: var(--accent); color: var(--on-accent); }

/* Clientes */
.search { margin-bottom: 10px; }
.clist { display: flex; flex-direction: column; }
.crow { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.crow:hover { background: var(--surface); }
.crow-b { flex: 1; display: flex; flex-direction: column; min-width: 0; gap: 2px; } .crow-b small { color: var(--muted); }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.crow-v { font-size: .9rem; white-space: nowrap; }
.cs-h { display: flex; gap: 14px; align-items: center; margin-right: 40px; }
.cs-h h2 { margin: 0; }
.hist > div { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.hist > div > span:nth-child(2) { display: flex; flex-direction: column; } .hist small { color: var(--muted); }
.hist .noshow, .hist .cancel { opacity: .55; }

/* Cuentas */
.pl h3 { margin-bottom: 12px; text-transform: none; }
.pl-r { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pl-r.sum { font-weight: 700; } .pl-r.neg b { color: var(--muted); }
.pl-r.tot { border-bottom: 0; font-size: 1.2rem; font-weight: 800; padding-top: 14px; } .pl-r.tot b { color: var(--accent); }
.pl-r.tot.bad b { color: var(--bad); }

/* Gráficas */
.chart { display: block; overflow: visible; max-width: 100%; }
.chart-box { width: 100%; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .bar { fill: color-mix(in srgb, var(--accent) 45%, var(--surface-2)); transition: fill .15s; }
.chart .bar.hi, .chart g.hot .bar { fill: var(--accent); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart .area { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.chart .dot { fill: var(--accent); opacity: 0; } .chart g.hot .dot { opacity: 1; }
.chart .dot-last { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .goal { stroke: var(--text); stroke-dasharray: 5 5; opacity: .55; vector-effect: non-scaling-stroke; }
.chart .goal-t { fill: var(--text); opacity: .7; }
.chart-tip { position: fixed; z-index: 99; pointer-events: none; background: var(--text); color: var(--bg); padding: 7px 10px; border-radius: 8px; font-size: .8rem; opacity: 0; transition: opacity .15s; max-width: 260px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; margin-bottom: 4px; }
.hbar-l { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.hbar-top b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar-track { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.hbar-fill { height: 100%; background: var(--accent); border-radius: 6px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.hbar.hot .hbar-fill { filter: brightness(1.12); }
.hbar-sub { font-size: .74rem; color: var(--muted); margin-top: 3px; }
.heat { display: grid; gap: 3px; font-size: .66rem; color: var(--muted); }
.heat-h { text-align: center; } .heat-r { text-transform: capitalize; align-self: center; }
.heat-c { aspect-ratio: 1.3; border-radius: 4px; background: color-mix(in srgb, var(--accent) calc(var(--a) * 100%), var(--surface-2)); min-height: 14px; }
.heat-c.hot { outline: 2px solid var(--text); }
.prog { margin-bottom: 12px; } .prog-t { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; margin-bottom: 4px; } .prog-t span { display: inline-flex; gap: 7px; align-items: center; }

/* Equipo */
.team-o { display: grid; gap: 14px; }
@media (min-width: 900px) { .team-o { grid-template-columns: 1fr 1fr; } }
.tm-h { display: flex; gap: 12px; align-items: center; } .tm-h > div { display: flex; flex-direction: column; } .tm-h small { color: var(--muted); }
.tm .as-grid { grid-template-columns: repeat(3, 1fr); }
.tm-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .88rem; }
.tm-f input { width: 64px; min-height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); padding: 0 8px; text-align: center; }

/* Ajustes */
.sw-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.sw-row > span { flex: 1; display: flex; flex-direction: column; } .sw-row small { color: var(--muted); }
.sw { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--surface-2); position: relative; transition: background .2s; flex: none; cursor: pointer; border: 1px solid var(--line); }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sw:checked { background: var(--accent); border-color: var(--accent); } .sw:checked::after { transform: translateX(18px); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.color { width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.color.on { box-shadow: 0 0 0 2px var(--text); }
.color.pick { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; }
.color.pick input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.se-row { display: grid; grid-template-columns: 30px 1fr 120px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.se-row > span { display: flex; flex-direction: column; } .se-row small { color: var(--muted); }
.se-row input[inputmode] { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 10px; text-align: right; font-size: 16px; width: 100%; }
.sw-mini input { width: 20px; height: 20px; accent-color: var(--accent); }
.form .fld:last-of-type { margin-bottom: 8px; }

/* Planes */
.plans-h { text-align: center; max-width: 640px; margin: 10px auto 26px; }
.plans-h h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 6px 0 10px; }
.plan-grid { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 900px) { .plan-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; }
.plan.rec { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px color-mix(in srgb, var(--accent) 16%, transparent); }
.plan.soon { opacity: .9; }
.plan h2 { margin-bottom: 4px; }
.plan-price { font-size: 1.3rem; font-weight: 800; margin: 6px 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 9px; font-size: .92rem; } .plan li .ic { color: var(--accent); margin-top: 2px; }
.cmp-t { overflow-x: auto; }
.cmp table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 480px; }
.cmp th, .cmp td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp .yes { color: var(--accent); } .cmp .no { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { color: var(--muted); margin: 8px 0 0; }
.inst ol { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.inst.me { border-color: var(--accent); }
.inst h2 { display: flex; gap: 8px; align-items: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
