/* =========================================================
   ÓNIX ATELIER — estilos
   ========================================================= */
:root {
  --accent: #c2a06b;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
  --bg: #0e0d0c; --bg2: #141311; --panel: #1a1917; --panel2: #201f1c;
  --text: #ece6dc; --muted: #9b958b; --faint: #6d6860;
  --line: rgba(236, 230, 220, .08); --line2: rgba(236, 230, 220, .14);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-ink: #12100d;
  --ok: #5fae8b; --warn: #d6a54a; --bad: #cf6a5f; --info: #8d93b8;
  --r: 14px; --r-sm: 9px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
}
[data-mode="imperial"] {
  --bg: #050505; --bg2: #0a0a0a; --panel: #111110; --panel2: #191817;
  --text: #f4f1ea; --muted: #a09a8e; --faint: #6b665d;
  --line: rgba(255, 244, 214, .09); --line2: rgba(255, 244, 214, .16);
  --accent-ink: #0a0803;
}
[data-mode="light"] {
  --bg: #f5f1ea; --bg2: #efe9df; --panel: #fffdf9; --panel2: #f8f4ed;
  --text: #1c1a17; --muted: #6f685e; --faint: #a39b8f;
  --line: rgba(28, 26, 23, .08); --line2: rgba(28, 26, 23, .15);
  --accent-ink: #fffdf9;
  --shadow: 0 20px 50px -24px rgba(60, 45, 20, .3);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
.display em, em { font-style: italic; color: var(--accent); }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.accent-txt { color: var(--accent); } .warn-txt { color: var(--warn); font-style: normal; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 11.5px; font-weight: 600; color: var(--accent); margin: 0 0 10px; }
.eyebrow.sm { font-size: 10.5px; letter-spacing: .18em; margin: 18px 0 8px; }
.container { width: min(1200px, 100% - 48px); margin: 0 auto; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ic.sm { width: 15px; height: 15px; }
code { font-size: 12px; background: var(--panel2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; color: var(--accent); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .01em; transition: .2s; white-space: nowrap; border: 1px solid transparent; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-ghost { border-color: var(--line2); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost.danger:hover { border-color: var(--bad); color: var(--bad); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13px; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 12px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--muted); transition: .2s; flex: none; }
.icon-btn:hover { background: var(--panel2); color: var(--text); }
.icon-btn.ok { color: var(--ok); }
.link-accent { color: var(--accent); font-weight: 600; font-size: 14px; }
.link-accent:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Avatares, pills, tags ---------- */
.av { --c: var(--accent); width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); vertical-align: middle; }
.av.sm { width: 26px; height: 26px; font-size: 10px; }
.av.lg { width: 52px; height: 52px; font-size: 16px; }
.av.xl { width: 84px; height: 84px; font-size: 26px; }
.av.any { color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pendiente { --s: var(--warn); } .st-confirmada { --s: var(--ok); } .st-atendida { --s: var(--info); } .st-no_asistio { --s: var(--bad); } .st-cancelada { --s: var(--faint); } .st-bloqueo { --s: var(--faint); }
.pill { color: var(--s); background: color-mix(in srgb, var(--s) 13%, transparent); }
.st-dot { display: inline-flex; align-items: center; gap: 7px; }
.st-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--s, var(--muted)); }
.st-dot.pendiente { --s: var(--warn); } .st-dot.confirmada { --s: var(--ok); } .st-dot.atendida { --s: var(--info); } .st-dot.no_asistio { --s: var(--bad); } .st-dot.cancelada { --s: var(--faint); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 6px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.tag.gold { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; }

/* =========================================================
   SITIO PÚBLICO
   ========================================================= */
.pub-nav { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(16px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mono { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); border-radius: 50%; font-size: 24px; line-height: 1; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-size: 22px; font-weight: 600; }
.brand-txt small { font-size: 10px; text-transform: uppercase; letter-spacing: .24em; color: var(--muted); margin-top: 3px; }
.brand.sm .brand-mono { width: 36px; height: 36px; font-size: 20px; } .brand.sm .brand-txt b { font-size: 19px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }

.hero { position: relative; overflow: hidden; min-height: calc(100vh - 74px); display: flex; align-items: center; padding: 80px 0 60px; }
.hero-mono { position: absolute; right: -4vw; top: 50%; transform: translateY(-52%); font-size: min(62vw, 820px); line-height: .8; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 28%, transparent); pointer-events: none; user-select: none; }
.hero-mono.crown { color: color-mix(in srgb, var(--accent) 30%, transparent); -webkit-text-stroke: 0; width: min(58vw, 760px); right: -6vw; }
.hero-mono.crown svg { width: 100%; height: auto; display: block; }
.login-art .hero-mono.crown { width: 80vh; right: -25%; }
.brand-mono .ic { width: 22px; height: 22px; }
.hero-lines { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(ellipse 60% 50% at 75% 40%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
  repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 25%); opacity: .9; mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.hero-inner { position: relative; }
.hero-title { font-size: clamp(52px, 8.2vw, 116px); line-height: .98; margin: 0 0 26px; max-width: 900px; font-weight: 400; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 36px; line-height: 1.65; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 620px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 42px; line-height: 1; color: var(--text); }
.hero-stats span { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-top: 8px; }
.rv { opacity: 0; transform: translateY(18px); animation: rv .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .22s; } .d3 { animation-delay: .34s; } .d4 { animation-delay: .46s; }
@keyframes rv { to { opacity: 1; transform: none; } }

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.band-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.band-inner > div { padding: 34px 28px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; border-left: 1px solid var(--line); }
.band-inner > div:first-child { border-left: 0; }
.band-inner .ic { grid-row: span 2; width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.band-inner b { font-weight: 600; } .band-inner span { color: var(--muted); font-size: 14px; }

.section { padding: 120px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(40px, 5vw, 64px); margin: 0 0 8px; line-height: 1.05; }
.menu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 44px; }
.menu-col-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--accent); }
.menu-col-head .ic { color: var(--accent); width: 22px; height: 22px; }
.menu-col-head h3 { margin: 0; font-size: 30px; }
.menu-item { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); transition: .25s; }
.menu-item:hover { padding-left: 8px; }
.mi-row { display: flex; align-items: baseline; gap: 10px; }
.mi-name { font-weight: 600; font-size: 15.5px; }
.mi-dots { flex: 1; border-bottom: 1px dotted var(--line2); transform: translateY(-4px); min-width: 20px; }
.mi-price { font-family: var(--font-display); font-size: 22px; color: var(--accent); white-space: nowrap; }
.mi-desc { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.mi-book { color: var(--accent); font-weight: 600; opacity: 0; margin-left: 6px; transition: .25s; }
.menu-item:hover .mi-book { opacity: 1; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.team-card { padding: 34px 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); text-align: center; transition: .3s; }
.team-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: var(--shadow); }
.team-av { --c: var(--accent); width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 6%, transparent)); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); }
.team-av::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--line); }
.team-av span { font-size: 34px; color: var(--c); }
.team-card h3 { margin: 0 0 4px; font-size: 25px; }
.team-card .eyebrow { margin-bottom: 12px; }
.team-card p.muted { font-size: 13.5px; min-height: 42px; margin: 0 0 16px; }
.quote { padding: 110px 0; text-align: center; }
.quote p { font-size: clamp(30px, 4vw, 50px); max-width: 900px; margin: 0 auto 20px; line-height: 1.2; font-weight: 400; }
.visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.visit h2 { font-size: clamp(34px, 4vw, 52px); margin: 0 0 4px; line-height: 1.1; }
.visit-actions { display: flex; gap: 12px; margin: 28px 0 22px; flex-wrap: wrap; }
.hours-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; }
.hours-card h3 { margin: 0 0 14px; font-size: 28px; }
.hr-row { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; font-size: 14px; }
.hr-row.today { color: var(--accent); font-weight: 600; }
.foot { border-top: 1px solid var(--line); padding: 34px 0 90px; }
.foot-inner { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.demo-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 9px 9px 9px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 13px; white-space: nowrap; }
.demo-pill b { color: var(--accent); letter-spacing: .14em; font-size: 11px; }
.demo-pill a { background: var(--accent); color: var(--accent-ink); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
.demo-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- Reserva ---------- */
.book-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 48px 0 120px; align-items: start; }
.book-main { min-width: 0; }
.stepper { display: flex; gap: 6px; margin-bottom: 36px; }
.stepper button { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 0 14px; border-bottom: 2px solid var(--line); color: var(--faint); font-size: 13px; font-weight: 600; text-align: left; cursor: default; }
.stepper button[data-act] { cursor: pointer; }
.stepper i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-style: normal; font-size: 12px; flex: none; }
.stepper .on { color: var(--text); border-color: var(--accent); } .stepper .on i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stepper .done { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.book-body h2 { font-size: 44px; margin: 0 0 4px; font-weight: 400; }
.book-body > p.muted { margin: 0 0 28px; }
.bk-cat { margin-bottom: 26px; }
.bk-cat h4 { display: flex; align-items: center; gap: 8px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.opt { position: relative; text-align: left; padding: 18px 20px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--panel); display: flex; flex-direction: column; gap: 3px; transition: .2s; }
.opt:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-2px); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.opt-t { font-weight: 600; } .opt-s { font-size: 12.5px; color: var(--muted); }
.opt-p { font-family: var(--font-display); font-size: 24px; color: var(--accent); margin-top: 6px; }
.opt.staff { align-items: center; text-align: center; padding: 26px 18px; gap: 6px; }
.opt.staff .av { margin-bottom: 8px; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; }
.day { flex: none; width: 66px; padding: 10px 0; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); display: flex; flex-direction: column; align-items: center; gap: 2px; transition: .2s; }
.day small { font-size: 11px; text-transform: capitalize; color: var(--muted); }
.day b { font-family: var(--font-display); font-size: 26px; line-height: 1.1; font-weight: 500; }
.day:hover:not([disabled]) { border-color: var(--accent); }
.day.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .day.on small { color: var(--accent-ink); opacity: .75; }
.day[disabled] { opacity: .3; cursor: not-allowed; }
.bk-date { font-size: 26px; margin: 18px 0 6px; }
.slot-group { margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slot { padding: 11px 0; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); font-weight: 600; font-size: 13.5px; transition: .15s; }
.slot:hover { border-color: var(--accent); color: var(--accent); }
.slot.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.book-foot { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.book-sum { position: sticky; top: 100px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sum-row span { color: var(--muted); } .sum-row b { font-weight: 600; text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0 14px; }
.sum-total b { font-size: 34px; color: var(--accent); }
.empty { color: var(--muted); padding: 30px; text-align: center; font-size: 14px; }
.empty .ic { color: var(--ok); }

.form { display: grid; gap: 16px; max-width: 560px; }
.form.two { grid-template-columns: 1fr 1fr; max-width: none; }
.form.three { grid-template-columns: repeat(3, 1fr); max-width: none; }
.span2 { grid-column: span 2; } .span3 { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fld input, .fld select, .fld textarea, .search input, .date-mini, .ag-right select, .rem-edit input, .rem-edit select, .he-row input {
  background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 11px 13px; outline: none; transition: .2s; width: 100%; min-width: 0; }
.fld textarea { resize: vertical; line-height: 1.5; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld input[type=color] { padding: 4px; height: 44px; cursor: pointer; }
.ph-in { display: flex; align-items: stretch; }
.ph-in em { font-style: normal; color: var(--muted); padding: 11px 12px; background: var(--panel); border: 1px solid var(--line2); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.ph-in input { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.chk input { accent-color: var(--accent); width: 17px; height: 17px; margin-top: 2px; }
select option { background: var(--panel); color: var(--text); }

.done-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 60px; padding: 70px 0 120px; align-items: center; }
.done-check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); margin-bottom: 24px; animation: pop .6s cubic-bezier(.2, 1.4, .4, 1); }
.done-check .ic { width: 34px; height: 34px; stroke-width: 2; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done-main h2 { font-size: 60px; margin: 0 0 14px; font-weight: 400; line-height: 1; }
.done-main .lead b { color: var(--text); font-weight: 600; }
.done-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 16px; }

/* ---------- Teléfono simulado ---------- */
.phone { width: 320px; max-width: 100%; height: 600px; margin: 0 auto; border-radius: 44px; padding: 12px; background: #0a0a0a; border: 1px solid #2b2b2b; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 2px #1d1d1d; display: flex; flex-direction: column; position: relative; color: #e9edef; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; background: #000; border-radius: 20px; z-index: 2; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 46px 14px 12px; background: #1f2c33; border-radius: 32px 32px 0 0; }
.phone-head b { display: block; font-size: 14px; } .phone-head small { font-size: 11px; color: #8696a0; }
.phone-body { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; background: #0b141a; background-image: radial-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 16px 16px; scrollbar-width: none; }
.phone-input { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 12px 18px 16px; background: #0b141a; color: #8696a0; font-size: 13px; border-radius: 0 0 32px 32px; border-top: 1px solid #1f2c33; }
.bub { max-width: 86%; padding: 8px 10px 6px; border-radius: 10px; font-size: 13px; line-height: 1.42; word-wrap: break-word; animation: rv .4s forwards; }
.bub small { display: block; text-align: right; font-size: 10px; color: rgba(233, 237, 239, .55); margin-top: 3px; }
.bub.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 3px; }
.bub.in { align-self: flex-start; background: #202c33; border-top-left-radius: 3px; }
.phone-empty { color: #8696a0; text-align: center; margin: auto; font-size: 13px; padding: 20px; }
.phone-empty .ic { width: 34px; height: 34px; color: #25d366; margin-bottom: 8px; }

/* ---------- Ticket cliente ---------- */
.center-box { max-width: 560px; padding: 60px 0 120px; }
.ticket { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); position: relative; }
.ticket::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, transparent, var(--accent), transparent); border-radius: 20px 20px 0 0; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; }
.ticket h2 { font-size: 44px; margin: 6px 0 24px; font-weight: 400; }
.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.ticket-grid span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 3px; }
.ticket-grid b { font-weight: 600; }
.ticket-sep { border-top: 1px dashed var(--line2); margin: 26px -36px 16px; }
.ticket-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.ticket-actions .btn { width: 100%; }
.ok-note { color: var(--ok); font-weight: 600; text-align: center; margin: 0 0 6px; display: flex; gap: 8px; justify-content: center; }

/* =========================================================
   LOGIN
   ========================================================= */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: var(--bg2); border-right: 1px solid var(--line); }
.login-art .hero-mono { font-size: 70vh; right: -10%; }
.login-copy { position: relative; max-width: 440px; }
.login-copy h2 { font-size: 64px; margin: 0 0 14px; line-height: 1; font-weight: 400; }
.demo-hint { display: inline-flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 16px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); font-size: 13.5px; }
.demo-hint b { color: var(--accent); }
.login-panel { padding: 64px; display: flex; flex-direction: column; justify-content: center; max-width: 640px; width: 100%; margin: 0 auto; }
.login-panel h3 { font-size: 40px; margin: 0 0 28px; font-weight: 400; }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.who { padding: 20px 8px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--panel); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: .2s; }
.who:hover { border-color: var(--accent); transform: translateY(-2px); }
.who b { font-size: 14px; } .who small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.25; }
.who.owner { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.back { align-self: flex-start; margin-bottom: 20px; }
.pin-who { text-align: center; } .pin-who h3 { margin: 14px 0 0; font-size: 34px; } .pin-who p { margin: 2px 0 0; }
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 30px 0; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line2); transition: .15s; }
.pin-dots i.on { background: var(--accent); border-color: var(--accent); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pin-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; justify-content: center; }
.pin-pad button { height: 76px; border-radius: 50%; border: 1px solid var(--line2); font-size: 26px; font-family: var(--font-display); transition: .15s; }
.pin-pad button:hover { border-color: var(--accent); color: var(--accent); }
.pin-pad button:active { background: var(--accent); color: var(--accent-ink); }

/* =========================================================
   APP
   ========================================================= */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px; background: var(--bg2); border-right: 1px solid var(--line); }
.side .brand { padding: 0 8px 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; transition: .15s; }
.side-nav a:hover { color: var(--text); background: var(--panel); }
.side-nav a.on { color: var(--text); background: var(--panel); box-shadow: inset 2px 0 0 var(--accent); }
.side-nav a.on .ic { color: var(--accent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.side-pub { font-size: 13px; color: var(--muted); padding: 0 12px; display: flex; gap: 8px; align-items: center; }
.side-pub:hover { color: var(--accent); }
.me { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.me div { flex: 1; min-width: 0; line-height: 1.2; } .me b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .me small { font-size: 11px; color: var(--muted); }
.main { padding: 30px 38px 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 46px; margin: 0; line-height: 1; font-weight: 400; }
.page-head p { margin: 6px 0 0; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; align-items: center; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; font-weight: 500; color: var(--muted); transition: .15s; display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.custom-range { display: inline-flex; gap: 8px; align-items: center; }
.custom-range input { background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; color-scheme: dark; }
[data-mode="light"] .custom-range input, [data-mode="light"] input[type=date], [data-mode="light"] input[type=time] { color-scheme: light; }
input[type=date], input[type=time] { color-scheme: dark; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 18px; min-width: 0; }
.card h3 { margin: 0 0 14px; font-size: 24px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2 > .card { margin: 0; }
.grid-2 .span2 { grid-column: 1 / -1; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.kpi b { font-size: 32px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi small { font-size: 12px; color: var(--muted); } .kpi small a { color: var(--accent); }
.kpi.lead-kpi { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, var(--panel)), var(--panel) 70%); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.kpi.lead-kpi b { color: var(--accent); }
.kpi.pos b { color: var(--ok); } .kpi.neg b { color: var(--bad); }
.alert { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); background: color-mix(in srgb, #25d366 9%, var(--panel)); border: 1px solid color-mix(in srgb, #25d366 30%, transparent); margin-bottom: 18px; font-size: 14px; }
.alert .ic { color: #25d366; width: 22px; height: 22px; } .alert span { flex: 1; } .alert > b { color: #25d366; }

/* Gráficos */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 220px; padding-top: 10px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; position: relative; min-width: 0; }
.bar i { width: 100%; max-width: 38px; border-radius: 5px 5px 2px 2px; background: linear-gradient(to top, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent)); transition: .3s; min-height: 0; }
.bar.hl i { background: var(--text); }
.bar span { font-size: 10.5px; color: var(--muted); white-space: nowrap; text-transform: capitalize; }
.bar:hover i { filter: brightness(1.2); }
.bar:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% - 4px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 6px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; z-index: 5; font-weight: 600; pointer-events: none; }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hb { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.hb-l { display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.hb-l .ic { color: var(--accent); }
.hb-t { height: 8px; border-radius: 4px; background: var(--panel2); overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.hb b { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: var(--panel2); overflow: hidden; vertical-align: middle; margin-right: 4px; }
.meter i { display: block; height: 100%; background: var(--accent); }

/* Tablas */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; padding: 10px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--line2); }
.tbl .r { text-align: right; } .nowrap { white-space: nowrap; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--panel2); }
.tbl small { display: block; font-size: 11.5px; }
.who-cell { display: inline-flex; align-items: center; gap: 10px; } .who-cell span { line-height: 1.2; }
.tbl.edit input { width: 100%; min-width: 70px; background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 7px 8px; outline: none; }
.tbl.edit input:hover { border-color: var(--line2); } .tbl.edit input:focus { border-color: var(--accent); background: var(--panel2); }
.tbl.edit td.r input { text-align: right; max-width: 120px; }

/* Agenda */
.ag-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ag-nav { display: flex; align-items: center; gap: 6px; }
.ag-nav h2 { font-size: 28px; margin: 0 12px 0 10px; font-weight: 500; }
.ag-nav.month { margin-bottom: 18px; } .ag-nav.month h2 { min-width: 220px; text-align: center; }
.date-mini { width: auto !important; padding: 7px 10px !important; font-size: 13px; }
.ag-right { display: flex; gap: 10px; align-items: center; } .ag-right select { width: auto; padding: 8px 12px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); }
.seg button { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.seg.wide { display: flex; margin-bottom: 14px; } .seg.wide button { flex: 1; }
.ag-stats { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); margin-bottom: 14px; }
.ag-stats b { color: var(--text); margin-right: 3px; } .ag-stats .accent-txt b { color: var(--accent); }
.ag-wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.ag-head, .ag-grid { display: grid; grid-template-columns: 64px repeat(var(--n), minmax(150px, 1fr)); min-width: calc(64px + var(--n) * 150px); }
.ag-wrap { overflow-x: auto; }
.ag-head { border-bottom: 1px solid var(--line2); background: var(--panel2); position: relative; z-index: 3; }
.ag-corner { display: grid; place-items: center; border-right: 1px solid var(--line); }
.ag-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-right: 1px solid var(--line); min-width: 0; }
.ag-h b { display: block; font-size: 13.5px; } .ag-h small { color: var(--muted); font-size: 11.5px; }
.ag-h.day { flex-direction: column; gap: 0; cursor: pointer; } .ag-h.day small { text-transform: capitalize; } .ag-h.day b { font-size: 24px; line-height: 1.1; }
.ag-h.day.today b { color: var(--accent); }
.ag-scroll { max-height: calc(100vh - 330px); min-height: 420px; overflow-y: auto; }
.ag-time { border-right: 1px solid var(--line); }
.tc { position: relative; } .tc span { position: absolute; top: -8px; right: 8px; font-size: 11px; color: var(--faint); white-space: nowrap; }
.tc:first-child span { top: 4px; }
.ag-col { position: relative; border-right: 1px solid var(--line); cursor: copy; }
.gl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); pointer-events: none; } .gl.half { border-top-style: dashed; opacity: .6; }
.off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); pointer-events: none; display: grid; place-items: center; }
.off span { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .14em; background: var(--panel); padding: 2px 8px; border-radius: 6px; }
.ev { --c: var(--accent); position: absolute; left: 4px; right: 4px; padding: 6px 9px; border-radius: 8px; cursor: pointer; overflow: hidden; z-index: 2; transition: transform .15s, box-shadow .15s;
  background: color-mix(in srgb, var(--c) 17%, var(--panel)); border-left: 3px solid var(--c); font-size: 12px; line-height: 1.3; }
.ev:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); z-index: 3; }
.ev-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-c { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-p { color: var(--c); font-weight: 600; margin-top: 2px; }
.ev.compact { padding: 3px 8px; display: flex; gap: 6px; } .ev.compact .ev-c { display: none; }
.ev.st-pendiente::after { content: ''; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 25%, transparent); }
.ev.st-confirmada::after { content: ''; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ev.st-atendida { opacity: .62; } .ev.st-atendida .ev-t::before { content: '✓ '; color: var(--info); }
.ev.st-no_asistio { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--bad) 12%, var(--panel)) 0 8px, var(--panel) 8px 14px); border-left-color: var(--bad); opacity: .75; }
.ev-block { position: absolute; left: 4px; right: 4px; border-radius: 8px; z-index: 2; cursor: pointer; background: repeating-linear-gradient(135deg, var(--panel2) 0 8px, var(--panel) 8px 14px); border: 1px dashed var(--line2); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.now-line { position: absolute; left: 0; right: 0; border-top: 2px solid var(--bad); z-index: 4; pointer-events: none; }
.now-line i { position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--muted); align-items: center; }
.legend .muted { margin-left: auto; }
.appt-list { display: flex; flex-direction: column; gap: 8px; }
.appt-row { display: grid; grid-template-columns: 90px 1fr 130px 110px auto; gap: 16px; align-items: center; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; border-left: 3px solid var(--s); transition: .15s; }
.appt-row:hover { border-color: var(--line2); border-left-color: var(--s); transform: translateX(2px); }
.ar-time b { display: block; font-size: 15px; } .ar-time small, .ar-main span { color: var(--muted); font-size: 12.5px; }
.ar-main b { display: block; } .ar-staff { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.ar-quick { display: flex; gap: 6px; justify-content: flex-end; }

/* Modal */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 4, .6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.modal-bg.in { opacity: 1; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; box-shadow: var(--shadow); transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.2, .9, .3, 1); }
.modal-bg.in .modal { transform: none; }
.modal.sm { width: min(480px, 100%); } .modal.md { width: min(640px, 100%); } .modal.lg { width: min(860px, 100%); }
.m-head { display: flex; justify-content: space-between; gap: 16px; padding: 24px 26px 6px; position: sticky; top: 0; background: var(--panel); z-index: 2; }
.m-head h3 { margin: 0; font-size: 30px; font-weight: 500; display: flex; align-items: center; gap: 10px; line-height: 1.1; }
.m-head p { margin: 4px 0 0; font-size: 13.5px; text-transform: none; }
.m-body { padding: 16px 26px 8px; }
.m-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px 24px; border-top: 1px solid var(--line); margin-top: 14px; position: sticky; bottom: 0; background: var(--panel); }
.m-foot.wrap { flex-wrap: wrap; }
.m-status { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.info-grid span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.info-grid b { display: flex; align-items: center; gap: 6px; font-weight: 600; } .info-grid small { color: var(--muted); font-size: 12px; }
.note { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }
.note .ic { color: var(--accent); margin-top: 3px; }
.wa-quick .chips { margin-bottom: 4px; } .wa-quick .chip:hover { border-color: #25d366; color: #25d366; }
.wa-quick .eyebrow .ic { color: #25d366; }
.hist { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.hist summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.hist-row { padding: 10px 0; border-bottom: 1px solid var(--line); } .hist-row:last-child { border: 0; }
.hist-row p { margin: 4px 0 0; color: var(--text); } .hist-row.in p { color: var(--ok); }
.co-prev { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.co-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; } .co-row span { color: var(--muted); }
.co-row.tot { border-top: 1px solid var(--line2); margin-top: 6px; padding-top: 12px; font-size: 15px; }

/* Cuentas */
.staff-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.staff-tabs button { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.staff-tabs button.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.earn-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; margin-bottom: 18px; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--panel); }
.eh-main { padding: 30px 32px; } .eh-main .big { font-size: 62px; line-height: 1; color: var(--accent); display: block; margin-bottom: 10px; } .eh-main p { margin: 0; font-size: 14px; }
.eh-side { display: grid; border-left: 1px solid var(--line); }
.eh-side div { padding: 18px 26px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); } .eh-side div:last-child { border: 0; }
.eh-side span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; } .eh-side b { font-size: 30px; line-height: 1.2; } .eh-side small { color: var(--muted); font-size: 12px; }
.goal { display: flex; align-items: center; gap: 16px; margin: 6px 0 10px; } .goal b { font-size: 30px; color: var(--accent); }
.goal-bar { flex: 1; height: 12px; border-radius: 6px; background: var(--panel2); overflow: hidden; border: 1px solid var(--line); }
.goal-bar i { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 50%, transparent), var(--accent)); border-radius: 6px; }
.mini-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.mini-kpis div { padding: 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); text-align: center; }
.mini-kpis b { display: block; font-size: 17px; } .mini-kpis span { font-size: 11px; color: var(--muted); }
.mini-list { display: flex; flex-direction: column; } .mini-list.scroll { max-height: 260px; overflow-y: auto; }
.mini { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; border-radius: 6px; }
.mini:hover { background: var(--panel2); } .mini:last-child { border: 0; }
.mini span { min-width: 0; } .mini small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search { margin-bottom: 16px; } .search input { max-width: 420px; }

/* WhatsApp center */
.mode-card { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); margin-bottom: 18px; }
.mode-card.auto { border-color: color-mix(in srgb, #25d366 35%, transparent); background: color-mix(in srgb, #25d366 6%, var(--panel)); }
.mode-card p { margin: 3px 0 0; max-width: 760px; }
.mode-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, #25d366 14%, transparent); color: #25d366; flex: none; }
.mode-card .switch { margin-left: auto; }
.wa-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.wa-phone { position: sticky; top: 20px; }
.rem-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 340px); min-height: 300px; overflow-y: auto; padding-right: 4px; }
.rem { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: .15s; }
.rem:hover { border-color: var(--line2); } .rem.sel { border-color: #25d366; box-shadow: inset 0 0 0 1px #25d366; }
.rem-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--panel2); color: var(--muted); }
.rem-ic.cliente { color: var(--accent); background: var(--accent-soft); } .rem-ic.empleado { color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); }
.rem-ic.in { color: #25d366; background: color-mix(in srgb, #25d366 14%, transparent); }
.rem-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.rem-main b { font-size: 14px; font-weight: 600; } .rem-main span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rem-main small { font-size: 11.5px; }
.rem-act { display: flex; gap: 6px; }
.rem-act .btn-accent { background: #25d366; color: #062b16; } .rem-act .btn-accent:hover { box-shadow: 0 8px 20px -8px #25d366; }

/* Switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 600; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { width: 44px; height: 24px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line2); position: relative; transition: .2s; flex: none; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.switch input:checked + i::after { left: 23px; background: var(--accent-ink); }
.switch.sm i { width: 36px; height: 20px; } .switch.sm i::after { width: 12px; height: 12px; } .switch.sm input:checked + i::after { left: 19px; }
.mode-card .switch input:checked + i { background: #25d366; border-color: #25d366; }
.tog { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.tog > span:first-child { display: flex; flex-direction: column; } .tog b { font-weight: 600; font-size: 14px; } .tog small { font-size: 12.5px; }

/* Configuración */
.cfg { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.cfg-nav { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.cfg-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 13.5px; color: var(--muted); text-align: left; }
.cfg-nav button:hover { color: var(--text); background: var(--panel2); }
.cfg-nav button.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.cfg-body { min-width: 0; } .cfg-body .card .form { margin-bottom: 4px; }
.hours-edit { display: flex; flex-direction: column; }
.he-row { display: grid; grid-template-columns: 120px 50px 140px 20px 140px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.he-row.closed b { color: var(--faint); } .he-row input { padding: 8px 10px; }
.cat-edit { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); }
.cat-chip .ic { color: var(--accent); } .cat-chip input { background: none; border: 0; outline: none; width: 130px; font-weight: 600; }
.cat-chip select { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 4px; font-size: 12px; }
.staff-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.staff-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; transition: .15s; }
.staff-card:hover { border-color: var(--accent); } .staff-card.off { opacity: .5; }
.staff-card div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; } .staff-card small { color: var(--muted); }
.staff-card > .ic { color: var(--muted); }
.svc-pick { margin-bottom: 10px; } .svc-pick .chips { margin: 6px 0 0; }
.rem-edit { display: grid; grid-template-columns: auto 80px auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.rem-edit input, .rem-edit select { padding: 8px 10px; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rc { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 12px; border: 1px solid var(--line2); cursor: pointer; }
.rc input { position: absolute; opacity: 0; } .rc .ic { color: #25d366; width: 24px; height: 24px; margin-bottom: 6px; } .rc small { color: var(--muted); }
.rc.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tpl { display: grid; grid-template-columns: 1fr 300px; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tpl textarea { width: 100%; background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 11px 13px; outline: none; resize: vertical; font-size: 13px; line-height: 1.5; }
.tpl textarea:focus { border-color: var(--accent); }
.tpl-prev { background: #0b141a; border-radius: 12px; padding: 14px; display: flex; color: #e9edef; margin-top: 26px; }
.tpl-prev .bub { max-width: 100%; animation: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sw i { width: 46px; height: 46px; border-radius: 50%; background: var(--c); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--line2); transition: .15s; }
.sw.on i { box-shadow: 0 0 0 2px var(--c); } .sw.on { color: var(--text); font-weight: 600; }
.sw.custom input { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line2); padding: 0; cursor: pointer; background: none; }
.theme-prev { margin-top: 18px; padding: 30px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.theme-prev h2 { font-size: 46px; margin: 0 0 16px; font-weight: 400; line-height: 1; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Toasts */
#toasts { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); transform: translateX(30px); opacity: 0; transition: .35s cubic-bezier(.2, .9, .3, 1); max-width: 380px; }
.toast.in { transform: none; opacity: 1; } .toast.err { background: var(--bad); color: #fff; }
.saved-ind { position: fixed; bottom: 20px; right: 24px; z-index: 150; padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); color: var(--ok); font-size: 12.5px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: .25s; pointer-events: none; }
.saved-ind.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .menu-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .wa-layout { grid-template-columns: 1fr; } .wa-phone { position: static; }
  .cfg { grid-template-columns: 1fr; } .cfg-nav { position: static; flex-direction: row; overflow-x: auto; } .cfg-nav button { white-space: nowrap; }
  .tpl { grid-template-columns: 1fr; } .tpl-prev { margin-top: 0; }
}
@media (max-width: 860px) {
  .container { width: calc(100% - 32px); }
  .nav-links { display: none; } .nav-cta { margin-left: auto; }
  .hero { min-height: auto; padding: 60px 0 50px; } .hero-stats { gap: 26px; margin-top: 46px; } .hero-stats b { font-size: 32px; }
  .band-inner { grid-template-columns: 1fr; } .band-inner > div { border-left: 0; border-top: 1px solid var(--line); padding: 22px 4px; } .band-inner > div:first-child { border-top: 0; }
  .section { padding: 80px 0; } .menu-cols { grid-template-columns: 1fr; } .visit { grid-template-columns: 1fr; gap: 30px; }
  .book-wrap { grid-template-columns: 1fr; padding-top: 24px; } .book-sum { position: static; order: -1; padding: 18px 20px; }
  .book-sum .sum-row:nth-of-type(n+3) { display: none; }
  .stepper span { display: none; } .book-body h2 { font-size: 34px; }
  .done-wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; } .done-main h2 { font-size: 44px; }
  .login { grid-template-columns: 1fr; } .login-art { padding: 28px 24px; gap: 26px; } .login-copy h2 { font-size: 42px; } .login-panel { padding: 32px 22px 60px; }
  .who-grid { grid-template-columns: repeat(3, 1fr); }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; z-index: 50; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line2); }
  .side .brand, .side-pub, .me div, .me .av { display: none; }
  .side-nav { flex-direction: row; flex: 1; overflow-x: auto; gap: 0; }
  .side-nav a { flex-direction: column; gap: 3px; font-size: 10.5px; padding: 7px 10px; flex: 1; min-width: 64px; position: relative; text-align: center; }
  .side-nav a.on { box-shadow: inset 0 2px 0 var(--accent); }
  .side-nav .badge { position: absolute; top: 2px; right: 8px; margin: 0; height: 16px; min-width: 16px; font-size: 10px; }
  .side-foot { margin: 0; } .me { padding: 0; background: none; border: 0; }
  .main { padding: 20px 16px 110px; } .page-head h1 { font-size: 34px; }
  .grid-2 { grid-template-columns: 1fr; } .earn-hero { grid-template-columns: 1fr; } .eh-side { border-left: 0; border-top: 1px solid var(--line); } .eh-main .big { font-size: 46px; }
  .form.two, .form.three { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .appt-row { grid-template-columns: 70px 1fr auto; } .ar-staff, .ar-quick { display: none; }
  .ag-scroll { max-height: calc(100vh - 300px); }
  .ag-head, .ag-grid { grid-template-columns: 52px repeat(var(--n), minmax(130px, 1fr)); min-width: calc(52px + var(--n) * 130px); }
  .he-row { grid-template-columns: 1fr auto; } .he-row input { grid-column: span 1; } .he-row > span:not(.muted) { display: none; }
  .rem-edit { grid-template-columns: auto 70px 1fr auto; } .rem-edit > span:nth-of-type(2) { display: none; }
  .mini-kpis { grid-template-columns: 1fr 1fr; } .radio-cards { grid-template-columns: 1fr; }
  .legend .muted { margin-left: 0; width: 100%; }
  .hide-sm { display: none; }
  .modal-bg { padding: 0; align-items: end; } .modal { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .saved-ind { bottom: 84px; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi b { font-size: 24px; } .kpi { padding: 14px; }
  .nav-cta .btn-ghost { display: none; }
  .hero-title { font-size: 50px; } .lead { font-size: 16px; }
  .brand-txt small { display: none; }
  .pin-pad { grid-template-columns: repeat(3, 68px); } .pin-pad button { height: 68px; }
  .ticket { padding: 26px 22px; } .ticket-sep { margin-left: -22px; margin-right: -22px; }
}

/* =========================================================
   IDENTIDAD IMPERIAL (negro + oro, sans fuerte + script)
   ========================================================= */
.logo-mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 45%, transparent)); }
.brand.imp { gap: 10px; }
.brand.imp .brand-txt { line-height: .9; }
.brand.imp .imp-word { font-family: 'Anton', 'Oswald', sans-serif; font-weight: 400; font-size: 25px; letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
.brand.imp .imp-script { font-family: 'Yellowtail', cursive; font-size: 19px; letter-spacing: 0; text-transform: none; color: var(--accent); margin: -3px 0 0 26px; transform: rotate(-4deg); display: block; }
.brand.imp.sm .logo-mark { width: 38px; height: 38px; } .brand.imp.sm .imp-word { font-size: 21px; } .brand.imp.sm .imp-script { font-size: 16px; }
.brand.imp.lg .logo-mark { width: clamp(54px, 5vw, 96px); height: clamp(54px, 5vw, 96px); } .brand.imp.lg .imp-word { font-size: clamp(30px, 3vw, 58px); } .brand.imp.lg .imp-script { font-size: clamp(22px, 2.1vw, 40px); }

[data-mode="imperial"] .display { font-weight: 600; letter-spacing: .005em; }
[data-mode="imperial"] .display em, [data-mode="imperial"] .hero-title em { font-family: 'Yellowtail', cursive; font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; padding: 0 .08em;
  background: linear-gradient(120deg, #f6dc8c, var(--accent) 45%, #a47a1e); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-mode="imperial"] .hero-title { font-family: 'Anton', 'Oswald', sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(50px, 7.4vw, 112px); line-height: 1; letter-spacing: .01em; max-width: 820px; }
[data-mode="imperial"] .hero-title em { font-size: 1.12em; display: inline-block; transform: rotate(-3deg); }
[data-mode="imperial"] .section-head h2, [data-mode="imperial"] .page-head h1, [data-mode="imperial"] .visit h2 { text-transform: uppercase; }
[data-mode="imperial"] .page-head h1 { font-size: 38px; }
[data-mode="imperial"] .btn-accent { background: linear-gradient(135deg, #f3d57f, var(--accent) 50%, #a87d1f); }
[data-mode="imperial"] .kpi b { font-size: 28px; } [data-mode="imperial"] .eh-main .big { font-size: 54px; }
[data-mode="imperial"] .mi-price, [data-mode="imperial"] .opt-p { font-size: 19px; font-weight: 500; }
[data-mode="imperial"] .menu-col-head h3 { font-size: 24px; text-transform: uppercase; }
[data-mode="imperial"] .team-card h3 { font-size: 21px; text-transform: uppercase; }
[data-mode="imperial"] .book-body h2, [data-mode="imperial"] .login-panel h3 { font-size: 34px; text-transform: uppercase; }
[data-mode="imperial"] .done-main h2, [data-mode="imperial"] .login-copy h2 { font-size: 50px; text-transform: uppercase; }
[data-mode="imperial"] .quote p { font-family: 'Anton', sans-serif; text-transform: uppercase; font-weight: 400; }
[data-mode="imperial"] .m-head h3 { font-size: 25px; } [data-mode="imperial"] .card h3 { font-size: 19px; text-transform: uppercase; letter-spacing: .03em; }
[data-mode="imperial"] .ag-nav h2 { font-size: 22px; } [data-mode="imperial"] .ticket h2 { font-size: 34px; text-transform: uppercase; }
[data-mode="imperial"] .hero-lines { background: radial-gradient(ellipse 55% 55% at 78% 45%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 25%); }

.hero-logo { position: absolute; right: 4vw; top: 50%; transform: translateY(-52%); width: min(40vw, 520px); aspect-ratio: 1; display: grid; place-items: center; pointer-events: none; }
.hero-logo .logo-mark { width: 62%; height: 62%; animation: floaty 7s ease-in-out infinite; filter: drop-shadow(0 0 60px color-mix(in srgb, var(--accent) 55%, transparent)); }
.hero-logo i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); animation: spin 40s linear infinite; }
.hero-logo i::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.hero-logo i:nth-child(2) { inset: 12%; border-style: dashed; opacity: .6; animation-duration: 60s; animation-direction: reverse; }
.login-art .hero-logo { right: -12%; width: 70vh; opacity: .55; }
@keyframes floaty { 50% { transform: translateY(-14px) scale(1.03); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .hero-logo { opacity: .22; right: -20vw; width: 90vw; } }

/* =========================================================
   PANTALLA TV
   ========================================================= */
body[data-area="tv"] { overflow: hidden; }
.tv { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; background: #030303; color: var(--text); font-size: clamp(12px, 1.05vw, 22px); overflow: hidden; }
.tv-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tv-bg i { position: absolute; width: 55vw; height: 55vw; border-radius: 50%; filter: blur(90px); opacity: .22; background: radial-gradient(circle, var(--accent), transparent 65%); animation: drift 26s ease-in-out infinite alternate; }
.tv-bg i:nth-child(1) { left: -15vw; top: -25vw; }
.tv-bg i:nth-child(2) { right: -20vw; bottom: -30vw; animation-duration: 34s; animation-delay: -8s; opacity: .16; }
.tv-bg i:nth-child(3) { left: 35vw; top: 30vh; width: 30vw; height: 30vw; opacity: .08; animation-duration: 20s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate(12vw, 8vh) scale(1.25); } }
.tv-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 3vw; padding: 1.6vw 2.4vw 1.2vw; border-bottom: 1px solid var(--line); }
.tv-tag span { font-size: 2.2vw; text-transform: uppercase; font-family: 'Anton', 'Oswald', sans-serif; font-weight: 400; letter-spacing: .02em; white-space: nowrap; }
.tv-tag em { font-size: 1.15em; }
.tv-clock { text-align: right; line-height: 1; }
.tv-clock b { font-size: 4.6vw; font-weight: 600; font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; }
.tv-clock b i { font-style: normal; color: var(--accent); animation: blink 1s steps(2) infinite; margin: 0 .04em; }
.tv-clock b small { font-size: .28em; color: var(--accent); margin-left: .5em; letter-spacing: .1em; font-family: var(--font-body); font-weight: 700; }
.tv-clock > small { display: block; margin-top: .5vw; font-size: 1.15vw; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
@keyframes blink { 50% { opacity: .15; } }
.tv-board { position: relative; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 2vw; padding: 1.4vw 2.4vw; min-height: 0; }
.tv-left, .tv-right { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.tv-h { display: flex; justify-content: space-between; align-items: baseline; gap: 2vw; margin-bottom: 1vw; }
.tv-h h2 { margin: 0; font-size: 2vw; text-transform: uppercase; letter-spacing: .03em; }
.tv-stats { display: flex; gap: 1.6vw; color: var(--muted); font-size: 1vw; white-space: nowrap; }
.tv-stats b { color: var(--text); font-size: 1.35em; margin-right: .2em; } .tv-stats .ok b { color: var(--ok); }
.tv-cards { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 1vw; min-height: 0; }
.tvc { --c: var(--accent); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .6vw; padding: 1.1vw 1.2vw; border-radius: 1.1vw; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 13%, #0e0e0d), #0c0c0b 65%); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); min-height: 0; }
.tv-board.first .tvc { animation: tvIn .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 80ms); }
.tv-board.first .tvu { animation: tvInR .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 90ms + 300ms); }
@keyframes tvIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes tvInR { from { opacity: 0; transform: translateX(40px); } }
.tvc::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: .35vw; background: var(--c); }
.tvc.busy::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--c) 14%, transparent) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); pointer-events: none; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.tvc.off { opacity: .42; filter: saturate(.4); }
.tvc-head { display: flex; align-items: center; gap: .8vw; }
.tvc-head .av { width: 3.2vw; height: 3.2vw; font-size: 1.05vw; min-width: 34px; min-height: 34px; }
.tvc-head b { display: block; font-size: 1.5vw; font-family: var(--font-display); text-transform: uppercase; line-height: 1.05; font-weight: 600; }
.tvc-head small { color: var(--muted); font-size: .85vw; }
.tvc-now { display: flex; flex-direction: column; margin-top: auto; line-height: 1.2; }
.tvc-now small { color: var(--c); font-size: .78vw; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.tvc-now b { font-size: 1.45vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tvc-now span { color: var(--muted); font-size: .95vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvc-prog { height: .45vw; min-height: 4px; border-radius: 1vw; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tvc-prog i { display: block; height: 100%; border-radius: 1vw; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 50%, transparent), var(--c)); transition: width 1.2s ease; position: relative; }
.tvc-prog i::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 1.2vw; background: #fff; filter: blur(6px); opacity: .7; animation: blink 1.6s ease-in-out infinite; }
.tvc-left { font-size: .82vw; color: var(--muted); }
.tvc-state { margin: auto 0; font-size: 1.25vw; color: var(--muted); display: flex; align-items: center; gap: .7vw; }
.tvc-state.ok { color: var(--ok); font-weight: 700; font-size: 1.5vw; }
.pulse { width: .9vw; height: .9vw; min-width: 9px; min-height: 9px; border-radius: 50%; background: var(--ok); animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 70%, transparent); } 100% { box-shadow: 0 0 0 1.2vw transparent; } }
.tvc-next { padding-top: .6vw; border-top: 1px solid var(--line); font-size: .85vw; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvc-next b { color: var(--text); }
.tv-up { flex: 1; display: flex; flex-direction: column; gap: .7vw; min-height: 0; overflow: hidden; }
.tvu { --c: var(--accent); display: grid; grid-template-columns: 6.2vw minmax(0, 1fr) auto; gap: 1vw; align-items: center; padding: .85vw 1.1vw; border-radius: .9vw; background: #0e0e0d; border: 1px solid var(--line); border-left: .3vw solid var(--c); }
.tvu.soon { border-color: color-mix(in srgb, var(--accent) 60%, transparent); border-left-color: var(--c); background: color-mix(in srgb, var(--accent) 9%, #0e0e0d); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 2vw -0.4vw var(--accent); } }
.tvu-t { display: flex; align-items: baseline; gap: .35vw; } .tvu-t b { font-size: 1.9vw; font-weight: 600; line-height: 1; } .tvu-t small { font-size: .75vw; color: var(--accent); font-weight: 700; }
.tvu-m { min-width: 0; line-height: 1.25; } .tvu-m b { display: block; font-size: 1.2vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tvu-m span { font-size: .85vw; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tvu-s { display: flex; flex-direction: column; align-items: flex-end; gap: .2vw; font-size: .78vw; color: var(--muted); white-space: nowrap; }
.tvu-s em { font-family: var(--font-body) !important; font-size: .95vw !important; font-weight: 700; color: var(--accent) !important; -webkit-text-fill-color: var(--accent); transform: none !important; background: none !important; padding: 0 !important; }
.tv-empty { color: var(--muted); margin: auto; font-size: 1.2vw; }
.tv-foot { position: relative; border-top: 1px solid var(--line); background: linear-gradient(90deg, #a87d1f, var(--accent), #f3d57f, var(--accent), #a87d1f); color: #0a0803; }
.tv-ticker { overflow: hidden; white-space: nowrap; padding: .7vw 0; }
.tv-ticker-in { display: inline-block; animation: ticker 70s linear infinite; font-weight: 700; font-size: 1.15vw; text-transform: uppercase; letter-spacing: .08em; }
.tv-ticker-in span i { font-style: normal; margin: 0 1.6vw; opacity: .6; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tv-ctl { position: absolute; right: 1vw; bottom: 3.6vw; display: flex; gap: 6px; opacity: 0; transition: opacity .3s; z-index: 30; }
.tv:hover .tv-ctl { opacity: 1; }
.tv-ctl button, .tv-ctl a { padding: 8px 14px; border-radius: 999px; background: rgba(20, 20, 20, .92); border: 1px solid var(--line2); font-size: 12px; font-weight: 600; color: var(--text); backdrop-filter: blur(8px); }
.tv-ctl button:hover, .tv-ctl a:hover { border-color: var(--accent); color: var(--accent); }
/* Avisos */
.tva { --k: var(--accent); position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(0, 0, 0, .78); backdrop-filter: blur(10px); animation: fadeIn .35s ease both; }
.tva.cancel { --k: var(--bad); } .tva.confirm { --k: var(--ok); }
.tva.out { animation: fadeOut .55s ease forwards; } .tva.out .tva-card { animation: cardOut .55s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
.tva-burst { position: absolute; width: 70vw; height: 70vw; border-radius: 50%; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--k) 35%, transparent), transparent 25%, color-mix(in srgb, var(--k) 25%, transparent) 50%, transparent 75%); filter: blur(40px); animation: spin 9s linear infinite; opacity: .75; }
.tva-card { position: relative; min-width: 42vw; max-width: 70vw; padding: 3vw 4.5vw 3.4vw; border-radius: 2vw; text-align: center; background: linear-gradient(170deg, #161513, #0a0a09); border: 2px solid var(--k); box-shadow: 0 0 8vw -1vw var(--k), inset 0 0 4vw -2vw var(--k); overflow: hidden; animation: cardIn .7s cubic-bezier(.2, 1.5, .35, 1) both; }
@keyframes cardIn { from { transform: scale(.5) rotate(-4deg); opacity: 0; } } @keyframes cardOut { to { transform: scale(1.15); opacity: 0; } }
.tva-ic { width: 6vw; height: 6vw; margin: 0 auto 1.2vw; border-radius: 50%; display: grid; place-items: center; background: var(--k); color: #080808; animation: bounce 1s cubic-bezier(.3, 1.6, .5, 1) .25s both; box-shadow: 0 0 0 0 var(--k); }
.tva-ic .ic { width: 3.2vw; height: 3.2vw; stroke-width: 2.2; }
@keyframes bounce { from { transform: scale(0); } }
.tva-k { margin: 0; font-size: 1.5vw; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--k); }
.tva-card h3 { margin: .4vw 0 .2vw; font-size: 5.6vw; line-height: 1.05; text-transform: uppercase; font-family: 'Anton', 'Oswald', sans-serif; font-weight: 400; animation: tvIn .6s ease .25s both; }
.tva.cancel h3 { text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: .25vw; opacity: .9; }
.tva-s { margin: 0 0 1.6vw; font-size: 2vw; color: var(--muted); animation: tvIn .6s ease .35s both; }
.tva-meta { display: flex; justify-content: center; gap: 1vw; flex-wrap: wrap; animation: tvIn .6s ease .45s both; }
.tva-meta > span { display: inline-flex; align-items: center; gap: .6vw; padding: .7vw 1.4vw; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); font-size: 1.5vw; font-weight: 600; }
.tva-meta .ic { width: 1.5vw; height: 1.5vw; color: var(--k); } .tva-meta .av { width: 2.2vw; height: 2.2vw; font-size: .8vw; }
.tva-bar { position: absolute; left: 0; bottom: 0; height: .4vw; width: 100%; background: var(--k); transform-origin: left; animation: shrink 6s linear forwards; }
@keyframes shrink { to { transform: scaleX(0); } }
@media (max-width: 900px) {
  .tv { font-size: 12px; overflow-y: auto; position: absolute; min-height: 100vh; } body[data-area="tv"] { overflow: auto; }
  .tv-tag { display: none; } .tv-clock b { font-size: 34px; } .tv-clock > small { font-size: 11px; }
  .tv-board { grid-template-columns: minmax(0, 1fr); } .tv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tv-h h2 { font-size: 22px; } .tv-stats { display: none; }
  .tvc { padding: 12px; border-radius: 12px; gap: 6px; } .tvc-head b { font-size: 17px; } .tvc-head small, .tvc-left, .tvc-next { font-size: 11px; } .tvc-now b { font-size: 15px; } .tvc-now span, .tvc-now small { font-size: 11px; } .tvc-state, .tvc-state.ok { font-size: 14px; }
  .tvu { grid-template-columns: 74px 1fr auto; padding: 10px 12px; border-radius: 10px; gap: 10px; } .tvu-t b { font-size: 22px; } .tvu-t small, .tvu-s { font-size: 10px; } .tvu-m b { font-size: 14px; } .tvu-m span { font-size: 11px; } .tvu-s em { font-size: 11px !important; }
  .tv-ticker-in { font-size: 12px; } .tv-ctl { position: static; opacity: 1; flex-wrap: wrap; padding: 10px; justify-content: center; }
  .tva-card { min-width: 84vw; padding: 26px 18px; border-radius: 20px; } .tva-ic { width: 64px; height: 64px; } .tva-ic .ic { width: 32px; height: 32px; } .tva-k { font-size: 13px; } .tva-card h3 { font-size: 40px; } .tva-s { font-size: 16px; } .tva-meta > span { font-size: 13px; padding: 6px 12px; } .tva-meta .ic { width: 14px; height: 14px; } .tva-meta .av { width: 22px; height: 22px; font-size: 9px; }
}
