/* ==========================================================================
   CitaViva
   Papel marfil, tinta casi negra y un único acento terracota usado con
   moderación. Serif editorial (Instrument Serif) para títulos, Geist para todo
   lo demás. Líneas finas en lugar de sombras; esquinas contenidas.
   En la página de reservas, el color de cada negocio (--brand) sustituye al
   acento solo donde hay que elegir o confirmar.
   ========================================================================== */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f6f3ee;
  --paper-2: #efeae2;
  --surface: #fffdf9;
  --ink: #1c1917;
  --ink-2: #4f4a44;
  --ink-3: #847d74;
  --line: #e4ddd2;
  --line-2: #cfc6b8;
  --accent: #b5532f;
  --accent-ink: #8f3d20;
  --brand: var(--ink);

  /* Estados: tonos apagados, siempre con texto */
  --st-pending: #a8741a;
  --st-confirmed: #3f5470;
  --st-arrived: #2f6b55;
  --st-completed: #3d6394;
  --st-no_show: #a33a2c;
  --st-cancelled: #b3aca2;
  --bad: #a33a2c;
  --ok: #2f6b55;

  /* Paleta de la portada: colores de salón (madera, terciopelo, barro, arena) */
  --forest: #17352d;
  --forest-2: #24493f;
  --terracotta: #c35a33;
  --terracotta-2: #9e3f1f;
  --peach: #f2b089;
  --blush: #efcfc6;
  --plum: #4e2235;
  --plum-2: #6d3049;
  --sand: #ecdcc3;
  --sage: #c9d3c0;
  --ochre: #d9973a;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 6px;
  --r-lg: 10px;
  --control-h: 42px;
  --bar-h: 60px;
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; font-feature-settings: "ss01", "cv11"; }
main { flex: 1; }
h1, h2, h3 { margin: 0 0 .45em; font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }
h1 { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.6rem); }
h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
em { font-style: italic; }
h1 em, h2 em { font-family: var(--serif); color: var(--accent); }
p { margin: 0 0 .9em; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--paper-2); padding: 1px 6px; border-radius: 4px; }
kbd { font: 11.5px var(--mono); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; background: var(--surface); }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.center { text-align: center; }
.text-bad { color: var(--bad); }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.trap { position: absolute; left: -5000px; }
.icon { width: 16px; height: 16px; flex: none; vertical-align: -3px; stroke-width: 1.6; }
.kicker { font-size: 12px; font-weight: 550; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }

/* ---------- Wordmark ---------- */
.wordmark { text-decoration: none; color: var(--ink); line-height: 1; }
.wm { font-family: var(--serif); font-size: 26px; letter-spacing: -.01em; }
.wm em { color: var(--accent); }

/* ---------- Buttons and fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-h); padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; font: inherit; font-weight: 520; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .2s var(--ease), border-color .2s, color .2s; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-ink, .btn-primary { background: var(--ink); color: var(--paper); }
.btn-ink:hover, .btn-primary:hover { background: #33302c; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: color-mix(in srgb, var(--brand) 86%, #000); }
.btn-ghost, .btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover, .btn-line:hover { border-color: var(--ink); }
.btn-danger-ghost { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn-danger-ghost:hover { border-color: var(--bad); }
.btn:disabled { opacity: .55; cursor: progress; }
.text-link { font-weight: 520; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.text-link:hover { border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); text-decoration-color: currentColor; }
.link-danger { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--bad); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.icon-btn:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.icon-btn:disabled { opacity: .3; cursor: default; }

input, select, textarea { font: inherit; color: var(--ink); }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea {
  width: 100%; min-height: var(--control-h); padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #a9a196; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(28 25 23 / .08); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 17px; height: 17px; margin: 0; flex: none; }
input[type="color"] { width: 64px; height: var(--control-h); padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
input[readonly] { background: var(--paper-2); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > label { font-weight: 520; font-size: 13.5px; }
.field .optional { font-weight: 400; color: var(--ink-3); }
.field-check label { display: flex; align-items: center; gap: 10px; font-weight: 450; cursor: pointer; }
.field ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.field ul label { display: flex; gap: 9px; align-items: center; font-weight: 400; cursor: pointer; }
.help { color: var(--ink-3); font-size: 13px; margin: 0; }
.error-text { color: var(--bad); font-size: 13px; margin: 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad) !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .wide, .form-grid .field-check { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
legend { font-size: 11.5px; font-weight: 550; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; padding: 0; }
.form-card fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 22px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding-top: 8px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 2px 0 20px; cursor: pointer; }
.check-line input { margin-top: 3px; }
.inline-form { display: flex; gap: 8px; margin-bottom: 14px; }
.copy-line { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.copy-line input { flex: 1; font-family: var(--mono); font-size: 13px; }

.alert { padding: 12px 14px; border-radius: var(--r); font-size: 14px; margin-bottom: 18px; border-left: 3px solid; background: var(--surface); }
.alert-error { border-color: var(--bad); color: #7d2a1f; background: #fbf1ee; }
.alert-ok { border-color: var(--ok); color: #234f40; background: #eef5f1; }

/* Status: a dot and the word. Never a candy-coloured pill. */
.pill, .st { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.pill::before, .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--ink-3)); flex: none; }
.pill-warn, .st-pending { --dot: var(--st-pending); }
.pill-info, .st-confirmed { --dot: var(--st-confirmed); }
.pill-live, .st-arrived { --dot: var(--st-arrived); }
.pill-ok, .st-completed { --dot: var(--st-completed); }
.pill-bad, .st-no_show { --dot: var(--st-no_show); }
.pill-muted, .st-cancelled { --dot: var(--st-cancelled); color: var(--ink-3); }
.st-cancelled { text-decoration: line-through; }
.tag-ia { display: inline-block; font: 600 9.5px/1 var(--mono); font-style: normal; letter-spacing: .06em; padding: 3px 4px 2px; border: 1px solid currentColor; border-radius: 3px; color: var(--ink-2); vertical-align: 1px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: calc(var(--bar-h) + 14px); right: 18px; z-index: 60; display: grid; gap: 8px; max-width: min(400px, calc(100vw - 36px)); }
.toast { margin: 0; display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: 0 18px 40px -16px rgb(28 25 23 / .45); animation: toast-in .3s var(--ease); transition: opacity .25s, transform .25s; }
.toast-error { background: #6e2318; }
.toast-close { margin-left: auto; background: none; border: 0; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; opacity: .6; }
.toast.is-gone { opacity: 0; transform: translateY(-6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Public header and footer ---------- */
.site-inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header .site-inner { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { font-size: 14px; text-decoration: none; color: var(--ink-2); }
.nav-link:hover { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; padding-top: 36px; padding-bottom: 44px; }
.footer-inner p { color: var(--ink-3); font-size: 13.5px; margin: 4px 0 0; }
.footer-inner nav { display: flex; gap: 20px; font-size: 14px; }
.footer-inner nav a { text-decoration: none; color: var(--ink-2); }

/* ---------- Landing ---------- */
.landing { padding: 0; }
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .16; mix-blend-mode: overlay; pointer-events: none; z-index: 0; border-radius: inherit; }

/* Header melts into the dark hero on the home page */
.site-header { background: color-mix(in srgb, var(--forest) 92%, transparent); color: var(--paper); }
.site-header .wordmark { color: var(--paper); }
.site-header .wm em { color: var(--peach); }
.site-header .nav-link { color: rgb(246 243 238 / .72); }
.site-header .nav-link:hover { color: var(--paper); }
.site-header .btn-ink { background: var(--paper); color: var(--ink); }
.site-header .btn-ink:hover { background: #fff; }

.btn-peach { background: var(--peach); color: #2a130a; }
.btn-peach:hover { background: #f6c3a3; }

.hero { background: radial-gradient(900px 520px at 78% 30%, var(--forest-2) 0%, transparent 70%), radial-gradient(700px 500px at 0% 100%, #102720 0%, transparent 70%), var(--forest); color: var(--paper); overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(64px, 9vw, 128px); }
.hero .kicker { color: var(--peach); opacity: .9; }
/* Two fixed lines: «Tu agenda se llena» / «mientras tú trabajas.» The size follows the column (cqi), so the
   longer second line always fits without breaking. */
.hero-copy { container-type: inline-size; }
.hero h1 { font-size: clamp(2.2rem, 11.2cqi, 6rem); line-height: .98; letter-spacing: -.025em; margin-bottom: 28px; white-space: nowrap; }
.hero h1 em { display: block; color: var(--peach); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; max-width: 520px; }
.hero .lead { color: rgb(246 243 238 / .78); }
.hero-actions { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; margin: 36px 0 44px; }
.hero .text-link { color: var(--paper); border-color: rgb(246 243 238 / .35); }
.hero .text-link:hover { border-color: var(--paper); }
.hero-points { list-style: none; display: flex; gap: 0; padding: 0; margin: 0; border-top: 1px solid rgb(246 243 238 / .16); max-width: 520px; }
.hero-points li { flex: 1; padding: 16px 16px 0 0; font-size: 13px; color: rgb(246 243 238 / .6); }
.hero-points li + li { padding-left: 18px; border-left: 1px solid rgb(246 243 238 / .16); }
.hero-points b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; color: var(--paper); margin-bottom: 4px; }
.hero-figure { position: relative; margin: 0; min-height: 500px; }

/* The arch: the shape of a salon mirror */
.arch { position: absolute; border-radius: 999px 999px 0 0; pointer-events: none; }
.arch-hero { left: 10%; right: 6%; top: -30px; bottom: -140px; background: linear-gradient(170deg, #d4693e 0%, var(--terracotta) 38%, var(--terracotta-2) 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.arch-hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: var(--grain); opacity: .22; mix-blend-mode: overlay; }
.sun { position: absolute; width: 120px; height: 120px; right: 2%; top: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd9b8, var(--peach) 55%, #e08a5c); box-shadow: 0 0 80px 10px rgb(242 176 137 / .35); }

.shot { position: absolute; background: var(--surface); color: var(--ink); border: 1px solid rgb(28 25 23 / .08); border-radius: var(--r-lg); box-shadow: 0 50px 90px -40px rgb(0 0 0 / .55), 0 2px 6px rgb(0 0 0 / .08); }
.shot-agenda { top: 40px; left: 0; right: 70px; bottom: 30px; overflow: hidden; }
.shot-bar { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.shot-title { font-family: var(--serif); font-size: 21px; }
.shot-meta { font-size: 12px; color: var(--ink-3); }
.shot-cols { position: relative; display: grid; grid-template-columns: 46px repeat(3, 1fr); height: calc(100% - 58px); }
.shot-hours { position: relative; border-right: 1px solid var(--line); padding-top: 40px; }
.shot-hours span { display: block; height: 80px; font-size: 10.5px; color: var(--ink-3); text-align: right; padding-right: 8px; font-variant-numeric: tabular-nums; }
.shot-col { position: relative; border-right: 1px solid var(--line); padding-top: 40px; }
.shot-col:last-of-type { border-right: 0; }
.shot-name { position: absolute; top: 0; left: 0; right: 0; height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 10px; margin: 0; font-size: 12.5px; font-weight: 550; border-bottom: 1px solid var(--line); }
.shot-name i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.shot-block { position: absolute; left: 5px; right: 5px; margin-top: 40px; padding: 6px 8px 6px 10px; font-size: 11.5px; line-height: 1.3; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); border-radius: 0 5px 5px 0; overflow: hidden; }
.shot-block b { font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 3px; }
.shot-block small { display: block; color: var(--ink-3); font-size: 10.5px; }
.shot-block.is-pending { background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 4px, color-mix(in srgb, var(--ochre) 18%, var(--surface)) 4px, color-mix(in srgb, var(--ochre) 18%, var(--surface)) 8px); border-left-color: var(--ochre); }
.shot-block.is-now { background: color-mix(in srgb, var(--c) 24%, var(--surface)); }
.shot-now { position: absolute; left: 46px; right: 0; margin-top: 40px; border-top: 1.5px solid var(--terracotta); }
.shot-now::before { content: ""; position: absolute; left: -4px; top: -4.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.shot-phone { right: 0; bottom: -10px; width: 236px; padding: 20px 18px 18px; border-radius: 24px; }
.shot-biz { font-family: var(--serif); font-size: 21px; margin: 0 0 2px; }
.shot-step { font-size: 11.5px; color: var(--ink-3); margin: 0 0 12px; }
.shot-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.shot-times span { text-align: center; padding: 7px 0; border: 1px solid var(--line-2); border-radius: 5px; font-size: 12px; font-variant-numeric: tabular-nums; }
.shot-times .off { color: #c9c1b5; border-style: dashed; text-decoration: line-through; }
.shot-times .on { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.shot-summary { display: flex; justify-content: space-between; font-size: 12px; margin: 14px 0 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.shot-summary span:last-child { color: var(--ink-3); }
.shot-cta { display: block; text-align: center; padding: 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 520; }
.shot-toast { position: absolute; left: -26px; top: -6px; z-index: 2; display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12.5px; font-weight: 500; box-shadow: 0 20px 40px -18px rgb(0 0 0 / .6); animation: float 6s ease-in-out infinite; }
.shot-toast span { width: 8px; height: 8px; border-radius: 50%; background: #3f9a72; box-shadow: 0 0 0 4px rgb(63 154 114 / .18); }

.marquee { background: var(--terracotta); color: #fff3ea; overflow: hidden; border-top: 1px solid rgb(0 0 0 / .1); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee p { margin: 0; padding: 20px 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); white-space: nowrap; }
.marquee span { font-style: normal; font-size: .6em; color: var(--peach); margin: 0 .9em; vertical-align: .25em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.02; letter-spacing: -.02em; margin: 0; }
.chapters { padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(48px, 7vw, 96px); }
.chapters .section-head h2 em { color: var(--terracotta); }
.chapter { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; }
.chapter.is-flipped { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.chapter.is-flipped .chapter-text { order: 2; }
.chapter-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 550; margin-bottom: 20px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.chapter:nth-of-type(2) .chapter-n { background: var(--forest); }
.chapter:nth-of-type(3) .chapter-n { background: var(--plum); }
.chapter h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.02; letter-spacing: -.015em; margin-bottom: 16px; }
.chapter-text > p { color: var(--ink-2); font-size: 15.5px; max-width: 470px; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); max-width: 470px; }
.facts li { padding: 11px 0 11px 24px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); position: relative; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 2px; background: var(--terracotta); }

.stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; padding: clamp(28px, 4vw, 56px); border-radius: 18px; overflow: hidden; }
.stage > *:not(.arch) { position: relative; z-index: 1; }
.stage-sand { background: linear-gradient(160deg, #f3e6d1, var(--sand) 60%, #e3cba9); }
.stage-forest { background: linear-gradient(160deg, var(--forest-2), var(--forest)); }
.stage-blush { background: linear-gradient(160deg, #f5ddd5, var(--blush) 55%, #e4b5aa); }
.arch-stage { left: 18%; right: 18%; top: 16%; bottom: -2px; }
.stage-sand .arch-stage { background: linear-gradient(180deg, #e7c08f, #d9a46a); opacity: .55; }
.stage-forest .arch-stage { background: linear-gradient(180deg, #3a6a5b, #2a5446); opacity: .8; }
.stage-blush .arch-stage { background: linear-gradient(180deg, #d98f7f, #c66f62); opacity: .5; }

.pricelist { width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--r-lg); padding: 26px 28px 20px; box-shadow: 0 40px 70px -36px rgb(80 50 20 / .5); }
.pricelist-head { font-family: var(--serif); font-size: 24px; margin-bottom: 4px; }
.pricelist-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin: 18px 0 4px; font-weight: 550; }
.pl-row { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 9px 10px; margin-inline: -10px; font-size: 14.5px; border-radius: 4px; }
.pl-row i { flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.pl-row span:nth-of-type(2) { color: var(--ink-3); font-size: 13px; }
.pl-row b { font-weight: 550; min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.pl-row.is-on { background: var(--terracotta); color: #fff; }
.pl-row.is-on span:nth-of-type(2) { color: rgb(255 255 255 / .75); }
.pl-row.is-on i { border-color: rgb(255 255 255 / .45); }

.ledger { width: 100%; max-width: 470px; background: var(--surface); border-radius: var(--r-lg); padding: 6px 22px; box-shadow: 0 40px 70px -36px rgb(0 0 0 / .6); }
.ledger-head { margin: 0; padding: 14px 0 12px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 19px; }
.ledger-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row b { display: block; font-size: 14.5px; font-weight: 520; color: var(--ink); }
.ledger-time { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 520; font-size: 14px; }
.ledger-row.is-muted { opacity: .55; }
.ledger.is-dark { background: transparent; box-shadow: none; padding: 0; }
.ledger.is-dark .ledger-row { border-color: rgb(246 243 238 / .12); color: rgb(246 243 238 / .55); }
.ledger.is-dark b, .ledger.is-dark .ledger-time { color: var(--paper); }
.ledger.is-dark .st { color: rgb(246 243 238 / .75); }

.transcript { width: 100%; max-width: 470px; background: var(--plum); color: #fbeef0; border-radius: var(--r-lg); padding: 26px 28px; font-size: 14.5px; line-height: 1.55; box-shadow: 0 40px 70px -36px rgb(60 20 30 / .7); }
.transcript-head { display: flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: rgb(251 238 240 / .6); margin-bottom: 18px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff8a6b; box-shadow: 0 0 0 4px rgb(255 138 107 / .2); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(255 138 107 / .05); } }
.transcript p:not(.transcript-head):not(.transcript-result) { display: grid; grid-template-columns: 78px 1fr; gap: 12px; margin: 0 0 12px; }
.transcript b { font-weight: 500; font-size: 12px; color: rgb(251 238 240 / .55); padding-top: 2px; }
.transcript-result { margin: 18px 0 0; padding: 12px 14px; border-radius: 6px; background: rgb(0 0 0 / .22); font-family: var(--mono); font-size: 12px; color: var(--peach); }

.menus { background: var(--plum); color: #fbeef0; padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; }
.menus > * { position: relative; z-index: 1; }
.menus .kicker { color: var(--peach); }
.menus h2 em { color: var(--peach); }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.menu-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 22px; border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--tone); transition: transform .3s var(--ease); overflow: hidden; }
.menu-card:hover { transform: translateY(-4px); }
.menu-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 190px; border-radius: 999px 999px 0 0; background: var(--tone-2); opacity: .55; transform: rotate(18deg); }
.menu-card > * { position: relative; }
.menu-kind { font-family: var(--serif); font-size: 28px; line-height: 1; margin: 0; }
.menu-card ul { list-style: none; padding: 0; margin: 0; }
.menu-card li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid rgb(28 25 23 / .1); }
.menu-card li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-card li i { flex: 1; border-bottom: 1px dotted rgb(28 25 23 / .25); transform: translateY(-4px); min-width: 10px; }
.menu-card li b { font-weight: 550; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-link { font-size: 13.5px; font-weight: 550; margin-top: auto; }
.tone-peluqueria { --tone: var(--peach); --tone-2: #e58e62; }
.tone-barberia { --tone: #2f5a4c; --tone-2: #44766a; color: var(--paper); }
.tone-unas { --tone: var(--blush); --tone-2: #dc9e93; }
.tone-estetica { --tone: var(--sand); --tone-2: #d9b583; }
.tone-fisio { --tone: var(--sage); --tone-2: #a5b597; }
.tone-tatuajes { --tone: #241c1a; --tone-2: #4a3630; color: var(--paper); }
.tone-barberia li, .tone-tatuajes li { border-color: rgb(246 243 238 / .14); }
.tone-barberia li i, .tone-tatuajes li i { border-color: rgb(246 243 238 / .3); }
.menus-note { margin-top: 22px; font-size: 13.5px; color: rgb(251 238 240 / .6); }

.details-band { background: var(--sand); padding: clamp(72px, 9vw, 120px) 0; }
.details-band h2 em { color: var(--terracotta-2); }
.details { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.details div { padding: 26px 28px 30px 0; border-bottom: 1px solid rgb(28 25 23 / .15); }
.details div:nth-child(3n+2), .details div:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid rgb(28 25 23 / .15); }
.details dt { font-weight: 560; margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; }
.details dt span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--terracotta-2); font-size: 18px; min-width: 22px; }
.details dd { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.demos { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(64px, 8vw, 104px); }
.demos h2 em { color: var(--terracotta); }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.demo-card { display: flex; flex-direction: column; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.demo-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgb(60 40 20 / .45); }
.demo-cover { display: grid; place-items: end center; height: 150px; background: radial-gradient(120% 90% at 30% 0%, color-mix(in srgb, var(--brand) 60%, #fff), var(--brand) 60%, color-mix(in srgb, var(--brand) 70%, #000)); overflow: hidden; }
.demo-mono { position: relative; z-index: 1; display: grid; place-items: center; width: 110px; height: 120px; margin-bottom: -2px; border-radius: 999px 999px 0 0; background: var(--surface); color: var(--brand); font-family: var(--serif); font-size: 48px; padding-top: 10px; }
.demo-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 24px 24px; text-align: center; align-items: center; }
.demo-kind { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.demo-card strong { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.demo-meta { color: var(--ink-3); font-size: 13px; }
.demo-link { margin-top: 14px; font-size: 14px; font-weight: 550; color: var(--brand); }
.demo-login { margin-top: 22px; font-size: 13.5px; color: var(--ink-3); }

.closing { background: var(--terracotta); color: #fff6ef; overflow: hidden; }
.closing > *:not(.arch) { position: relative; z-index: 1; }
.arch-closing { right: 4%; width: min(420px, 40%); top: 16%; bottom: 0; background: linear-gradient(180deg, #d97447, var(--terracotta-2)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.closing-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: clamp(72px, 10vw, 136px); padding-bottom: clamp(72px, 10vw, 136px); }
.closing h2 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; letter-spacing: -.025em; margin: 0; max-width: 900px; }
.closing h2 em { display: block; color: #2a130a; }
.closing-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.closing-actions p { margin: 0; font-size: 13.5px; color: rgb(255 246 239 / .8); }
.closing .btn-peach { background: var(--ink); color: var(--paper); }
.closing .btn-peach:hover { background: #000; }

/* ---------- Landing: motion ----------
   Always-on details (hover, marquee pause, button sheen) apply to everyone; hidden starting states only
   apply under html.motion, set by landing.js when motion is allowed. */
/* The hero cards float on their own, each at its own pace, and a light crosses the arch now and then. */
.hero.is-live .shot-agenda { animation: bob 8s ease-in-out infinite; }
.hero.is-live .shot-phone { animation: bob-deep 6s ease-in-out -2.5s infinite; }
@keyframes bob { 50% { translate: 0 -9px; } }
@keyframes bob-deep { 50% { translate: 0 -18px; } }
.arch-hero { overflow: hidden; }
.arch-hero::before { content: ""; position: absolute; left: -20%; right: -20%; height: 45%; top: -50%; background: linear-gradient(180deg, transparent, rgb(255 225 200 / .28) 50%, transparent); transform: rotate(-12deg); }
.hero.is-live .arch-hero::before { animation: sheen 7s ease-in-out 1s infinite; }
@keyframes sheen { 0% { top: -50%; } 45%, 100% { top: 120%; } }
.shot-toast { animation: none; }
.hero.is-live .shot-toast { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -7px; } }
.shot-toast.pop { animation: pop .7s cubic-bezier(.2, 1.4, .4, 1), float 6s ease-in-out .7s infinite; }
@keyframes pop { 0% { transform: scale(.82); opacity: .3; } 60% { transform: scale(1.05); opacity: 1; } 100% { transform: none; } }
.shot-now { animation: drift 24s linear infinite alternate; }
@keyframes drift { to { translate: 0 34px; } }
.shot-times span { transition: background .25s, color .25s, border-color .25s, transform .25s; }
.shot-times span.is-hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 12px -8px rgb(0 0 0 / .5); }
.shot-times span.on { animation: tap .4s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes tap { 40% { transform: scale(.9); } }
.shot-cta { transition: background .35s, transform .15s; }
.shot-cta.is-pressed { transform: scale(.96); }
.shot-cta.is-done { background: #2f6b55; }
.sun { animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 110px 22px rgb(242 176 137 / .45); } }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; background: linear-gradient(90deg, var(--peach), var(--terracotta)); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgb(0 0 0 / .55); }

/* Buttons and links */
.landing .btn, .site-header .btn { position: relative; overflow: hidden; transition: background .25s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.landing .btn::after, .site-header .btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .45), transparent); transform: skewX(-18deg); transition: left .7s cubic-bezier(.2, .8, .2, 1); }
.landing .btn:hover::after, .site-header .btn:hover::after { left: 130%; }
.landing .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgb(0 0 0 / .55); }
.text-link span, .demo-link span, .menu-link span { display: inline-block; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.text-link:hover span, .demo-card:hover .demo-link span, .menu-card:hover .menu-link span { transform: translateX(5px); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Cards: lift, arch moves, light follows the pointer */
.menu-card { transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; }
.menu-card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: 0 30px 50px -28px rgb(0 0 0 / .6); }
.menu-card::before { transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s; }
.menu-card:hover::before { transform: rotate(4deg) translate(-14px, 10px) scale(1.12); opacity: .8; }
.menu-card::after, .demo-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .28), transparent 60%); }
.menu-card:hover::after, .demo-card:hover::after { opacity: 1; }
.demo-card { position: relative; }
.demo-mono { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.demo-card:hover .demo-mono { transform: translateY(-10px); }
.demo-cover { transition: background-position .8s; background-size: 140% 140%; background-position: 0% 0%; }
.demo-card:hover .demo-cover { background-position: 100% 60%; }
.stage .pricelist, .stage .ledger, .stage .transcript { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.stage:hover .pricelist, .stage:hover .ledger, .stage:hover .transcript { transform: translateY(-6px) rotate(-.5deg); }
.pl-row { transition: background .25s, color .25s; }
.ledger-row.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: color-mix(in srgb, var(--ochre) 28%, transparent); } 100% { background: transparent; } }
.ledger .st::before { transition: background .4s; }
.details > div { transition: background .3s; }
.details > div:hover dt span { color: var(--terracotta); }
.details dt span { display: inline-block; transition: transform .4s cubic-bezier(.2, 1.4, .4, 1), color .3s; }
.details > div:hover dt span { transform: scale(1.25) rotate(-6deg); }

/* Typing in the call */
.typing { display: grid; grid-template-columns: 78px 1fr; gap: 12px; margin: 0 0 12px; }
.dots { display: inline-flex; gap: 4px; align-items: center; height: 22px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(251 238 240 / .7); animation: dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.motion .transcript .t-hidden { display: none !important; }
.motion .transcript .t-in { animation: line-in .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes line-in { from { opacity: 0; transform: translateY(8px); } }

/* Words rising behind a mask */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin: 0 -.06em -.1em 0; }
.w > span { display: inline-block; }
.motion .split .w > span { transform: translateY(108%); transition: transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--wi) * 55ms); }
.motion .split.is-in .w > span { transform: none; }
.motion .hero h1 .w > span { transition-duration: 1.2s; transition-delay: calc(var(--wi) * 70ms + .15s); }

/* Hero entrance */
.motion .hero .kicker, .motion .hero .lead, .motion .hero-actions, .motion .hero-points li { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.motion .hero .lead { transition-delay: .65s; }
.motion .hero-actions { transition-delay: .8s; }
.motion .hero-points li:nth-child(1) { transition-delay: .95s; }
.motion .hero-points li:nth-child(2) { transition-delay: 1.05s; }
.motion .hero-points li:nth-child(3) { transition-delay: 1.15s; }
.motion .hero.is-ready .kicker, .motion .hero.is-ready .lead, .motion .hero.is-ready .hero-actions, .motion .hero.is-ready .hero-points li { opacity: 1; transform: none; }
.motion .arch-hero { transform: scaleY(0); transform-origin: bottom; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) .2s; }
.motion .sun { opacity: 0; transform: translateY(80px) scale(.5); transition: opacity 1.2s ease .9s, transform 1.6s cubic-bezier(.16, 1, .3, 1) .9s; }
.motion .shot-agenda { opacity: 0; transform: translateY(50px) rotate(-1.5deg); transition: opacity 1s ease .5s, transform 1.3s cubic-bezier(.16, 1, .3, 1) .5s; }
.motion .shot-phone { opacity: 0; transform: translateY(90px) rotate(3deg); transition: opacity 1s ease .95s, transform 1.3s cubic-bezier(.16, 1, .3, 1) .95s; }
.motion .shot-toast { opacity: 0; transform: translateY(-14px) scale(.9); transition: opacity .8s ease 1.7s, transform 1s cubic-bezier(.2, 1.4, .4, 1) 1.7s; }
.motion .shot-block { opacity: 0; transform: translateX(-10px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.motion .shot-col:nth-of-type(2) .shot-block { transition-delay: 1.1s; }
.motion .shot-col:nth-of-type(3) .shot-block { transition-delay: 1.25s; }
.motion .shot-col:nth-of-type(4) .shot-block { transition-delay: 1.4s; }
.motion .shot-block + .shot-block { transition-delay: 1.5s !important; }
.motion .shot-block + .shot-block + .shot-block { transition-delay: 1.7s !important; }
.motion .hero.is-ready .arch-hero, .motion .hero.is-ready .sun, .motion .hero.is-ready .shot-agenda, .motion .hero.is-ready .shot-phone,
.motion .hero.is-ready .shot-toast, .motion .hero.is-ready .shot-block { opacity: 1; transform: none; }

/* Reveal on scroll */
.motion .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s); }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .stage.reveal { transform: translateY(50px) scale(.97); }
.motion .stage.reveal.is-in { transform: none; }
.motion .stage .arch-stage { transform: scaleY(.15); transform-origin: bottom; transition: transform 1.4s cubic-bezier(.16, 1, .3, 1) .2s; }
.motion .stage.is-in .arch-stage { transform: none; }
.motion .chapter-n.reveal { transform: scale(.4) rotate(-40deg); }
.motion .chapter-n.reveal.is-in { transform: none; transition-timing-function: cubic-bezier(.2, 1.5, .4, 1); }
.motion .menu-card.reveal { transform: translateY(60px) rotate(1.5deg); }
.motion .menu-card.reveal.is-in { transform: none; }
.motion .menu-card.reveal.is-in:hover { transform: translateY(-8px) rotate(-.4deg); transition-delay: 0s; }
.motion .demo-card.reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }
.motion .facts li.reveal { transform: translateX(-16px); }
.motion .facts li.reveal.is-in { transform: none; }
.motion .arch-closing { transform: scaleY(0); transform-origin: bottom; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) .1s; }
.motion .closing.is-in .arch-closing { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .shot-toast, .shot-now, .sun, .rec { animation: none !important; }
  .shot-agenda, .shot-phone, .arch-hero::before { animation: none !important; }
}

/* ---------- Auth ---------- */
.auth { padding: 0; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); min-height: calc(100vh - var(--bar-h)); }
.auth-form { width: 100%; max-width: 560px; justify-self: center; padding: clamp(40px, 7vw, 88px) var(--gutter); }
.auth-form h1 { margin-bottom: 10px; }
.auth-form form { margin-top: 28px; }
.auth-side { background: var(--ink); color: var(--paper); padding: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.auth-quote { font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; margin: 0; max-width: 460px; }
.auth-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 420px; border-top: 1px solid rgb(246 243 238 / .15); }
.auth-steps li { padding: 20px 0; border-bottom: 1px solid rgb(246 243 238 / .15); color: rgb(246 243 238 / .75); }
.auth-steps b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--paper); margin-bottom: 2px; }
.auth-card { max-width: 520px; margin: 40px auto; }

/* ---------- Panel shell ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { height: var(--bar-h); display: flex; align-items: center; gap: 22px; padding: 0 var(--gutter); max-width: 1920px; margin: 0 auto; }
.topbar .wm { font-size: 24px; }
.venue-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); max-width: 220px; list-style: none; padding-left: 18px; border-left: 1px solid var(--line); height: 24px; }
details.venue .venue-chip { cursor: pointer; }
.venue-chip::-webkit-details-marker { display: none; }
.venue-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.venue-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.main-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; align-self: stretch; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { display: inline-flex; align-items: center; padding: 0 12px; color: var(--ink-3); text-decoration: none; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.topbar-end { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.ghost-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.ghost-link:hover { color: var(--ink); }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 550; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 48px -20px rgb(28 25 23 / .3); padding: 6px; z-index: 40; }
.venue .menu-pop { left: 0; right: auto; }
.menu-label { font-size: 12.5px; color: var(--ink-3); padding: 8px 10px; margin: 0; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-label strong { color: var(--ink); font-weight: 550; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 4px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.menu-item:hover, .menu-item[aria-current] { background: var(--paper-2); }
.menu-item.danger { color: var(--bad); }

.page { width: 100%; max-width: 1440px; margin: 0 auto; padding: 36px var(--gutter) 80px; }
.page.wide { max-width: 1920px; }
.page.narrow { max-width: 640px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { margin: 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.page-head h1 .pill { font-family: var(--sans); }
.page-head p { margin: 6px 0 0; max-width: 620px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); text-decoration: none; margin-bottom: 8px; }
.back:hover { color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.form-card { max-width: 880px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stack { display: grid; gap: 18px; }
.empty { color: var(--ink-3); text-align: center; padding: 32px 12px; margin: 0; font-family: var(--serif); font-size: 19px; font-style: italic; }
.empty-card { text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 56px 20px; }
.head-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.segmented { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); padding: 2px; }
.segmented a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 4px; color: var(--ink-3); text-decoration: none; font-size: 13.5px; }
.segmented a:hover { color: var(--ink); }
.segmented a[aria-current] { background: var(--ink); color: var(--paper); }

/* A strip of figures, ruled like a ledger */
.stats-row { display: flex; flex-wrap: wrap; align-items: stretch; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.stat { padding: 14px 32px 14px 0; margin-right: 32px; border-right: 1px solid var(--line); min-width: 110px; }
.stat:last-of-type { border-right: 0; }
.stat span { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.stat strong { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-warn strong { color: var(--st-pending); }
.stat-bad strong { color: var(--bad); }
.staff-filter { margin-left: auto; align-self: center; }
.staff-filter select { min-width: 190px; }

.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; font-weight: 550; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 12px 18px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: var(--paper); }
.table a { color: inherit; text-decoration: none; }
.table strong { font-weight: 520; }
.table.compact td, .table.compact th { padding: 9px 10px; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.is-off { opacity: .5; }

.mini-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); text-decoration: none; }
.mini-row:last-of-type { border-bottom: 0; }
.mini-row > span:nth-child(2) { flex: 1; color: var(--ink-2); }
a.mini-row:hover > span:nth-child(2) { color: var(--ink); }
.data-list { margin: 0; }
.data-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.data-list > div:first-child { padding-top: 0; }
.data-list dt { color: var(--ink-3); font-size: 13.5px; }
.data-list dd { margin: 0; }
.note { white-space: pre-wrap; border-left: 2px solid var(--line-2); padding-left: 12px; color: var(--ink-2); }
.note-warn { border-color: var(--st-pending); }
.status-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.status-actions form { margin: 0; }

.staff-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c, var(--ink)); color: var(--c, var(--ink)); background: color-mix(in srgb, var(--c, var(--ink)) 6%, var(--surface)); font-weight: 550; font-size: 13px; flex: none; }
.staff-avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.staff-avatar.xs { width: 22px; height: 22px; font-size: 9.5px; vertical-align: middle; margin-right: 4px; }
.staff-avatar.lg { width: 64px; height: 64px; font-family: var(--serif); font-weight: 400; font-size: 26px; }

/* ---------- Agenda ---------- */
.agenda-head { align-items: center; }
.day-nav { display: flex; align-items: center; gap: 14px; }
.day-title h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.day-title a, .day-title .pill { display: inline-block; margin-top: 4px; font-size: 13px; }
.day-title a { color: var(--ink-3); }
.date-jump input { width: 150px; min-height: 36px; padding: 4px 8px; }
.agenda-scroll { overflow: auto; max-height: calc(100vh - var(--bar-h) - 230px); min-height: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.agenda { --gw: 60px; min-width: calc(var(--gw) + var(--cols) * 180px); }
.agenda-heads { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: var(--gw) repeat(var(--cols), minmax(180px, 1fr)); background: var(--surface); border-bottom: 1px solid var(--line); }
.gutter-head { position: sticky; left: 0; background: var(--surface); z-index: 2; }
.col-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-left: 1px solid var(--line); min-width: 0; }
.col-head strong { display: block; font-size: 14px; font-weight: 550; }
.col-head small { color: var(--ink-3); font-size: 12px; }
.agenda-body { position: relative; display: grid; grid-template-columns: var(--gw) repeat(var(--cols), minmax(180px, 1fr)); height: var(--h); }
.gutter { position: sticky; left: 0; z-index: 3; background: var(--surface); border-right: 1px solid var(--line); }
.gutter span { position: absolute; right: 10px; transform: translateY(-50%); font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.gutter span:first-child { transform: none; top: 5px !important; }
.col { position: relative; border-left: 1px solid var(--line); cursor: copy; }
.col:first-of-type { border-left: 0; }
.hour-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.hour-line:first-child { border-top: 0; }
.shade { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, transparent, transparent 7px, rgb(132 125 116 / .08) 7px, rgb(132 125 116 / .08) 8px); background-color: var(--paper); overflow: hidden; }
.shade span { position: absolute; top: 6px; left: 10px; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.ghost-slot { position: absolute; left: 5px; right: 5px; border: 1px dashed var(--ink); border-radius: 4px; background: rgb(28 25 23 / .03); color: var(--ink); font-size: 11px; font-weight: 550; padding: 2px 8px; pointer-events: none; z-index: 1; }
.block { position: absolute; left: 5px; right: 5px; z-index: 2; display: flex; flex-direction: column; gap: 1px; padding: 6px 9px 6px 11px; border-radius: 0 5px 5px 0; background: color-mix(in srgb, var(--c) 8%, var(--surface)); border-left: 3px solid var(--c); color: var(--ink); text-decoration: none; overflow: hidden; font-size: 12.5px; line-height: 1.3; transition: background .15s, box-shadow .15s; }
.block:hover { background: color-mix(in srgb, var(--c) 15%, var(--surface)); box-shadow: 0 8px 20px -12px rgb(28 25 23 / .35); z-index: 4; }
.block strong { font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-time { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.block-service { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block.is-short { flex-direction: row; align-items: center; gap: 6px; padding-top: 2px; padding-bottom: 2px; }
.block.is-short .block-service, .block.is-mid .block-service { display: none; }
.block.is-mid { justify-content: center; }
.block.status-pending { background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 5px, color-mix(in srgb, var(--st-pending) 8%, var(--surface)) 5px, color-mix(in srgb, var(--st-pending) 8%, var(--surface)) 10px); border-left-color: var(--st-pending); }
.block.status-arrived { background: color-mix(in srgb, var(--st-arrived) 13%, var(--surface)); border-left-color: var(--st-arrived); }
.block.status-completed { opacity: .5; }
.block.status-no_show { opacity: .5; border-left-color: var(--st-no_show); }
.block.status-no_show strong { text-decoration: line-through; }
.block .tag-ia { font-size: 8.5px; padding: 2px 3px 1px; }
.now-line { position: absolute; left: var(--gw); right: 0; border-top: 1.5px solid var(--accent); z-index: 4; pointer-events: none; }
.now-line span { position: absolute; left: -4px; top: -4.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.legend { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.key { display: inline-block; width: 3px; height: 12px; vertical-align: -2px; margin-left: 6px; }
.key-pending { background: var(--st-pending); }
.key-confirmed { background: var(--st-confirmed); }
.key-arrived { background: var(--st-arrived); }
.key-completed { background: var(--st-completed); }
.key-no_show { background: var(--st-no_show); }
.list-card { padding: 0; }
.appt-row { display: flex; align-items: center; gap: 16px; padding: 14px 22px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.appt-row:last-child { border-bottom: 0; }
.appt-row:hover { background: var(--paper); }
.appt-time { display: flex; flex-direction: column; width: 52px; font-variant-numeric: tabular-nums; }
.appt-time strong { font-weight: 550; }
.appt-time small { color: var(--ink-3); }
.appt-bar { width: 3px; align-self: stretch; background: var(--c); }
.appt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.appt-main strong { font-weight: 520; }
.appt-main small { color: var(--ink-3); }
.appt-row.status-cancelled, .appt-row.status-no_show { opacity: .55; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 13px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.team-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.team-card:hover { border-color: var(--ink-3); }
.team-card .staff-avatar { margin-bottom: 18px; }
.team-card strong { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.team-card small { color: var(--ink-3); }
.team-meta { font-size: 13px; color: var(--ink-3); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; }
.hours-editor { margin-bottom: 18px; border-top: 1px solid var(--line); }
.hours-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.day-toggle { display: flex; align-items: center; gap: 10px; width: 130px; cursor: pointer; }
.day-toggle strong { font-weight: 520; }
.periods { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.period { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.period input { width: 112px !important; min-height: 36px !important; padding: 4px 8px !important; }
.closed-label { display: none; font-family: var(--serif); font-style: italic; font-size: 17px; }
.hours-row.is-closed .period { display: none; }
.hours-row.is-closed .closed-label { display: inline; }
.hours-editor .help { padding-top: 10px; }
.own-hours { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; }
.link-card { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; border-color: var(--ink); }
.link-card .copy-line { flex: 1; min-width: 300px; max-width: 580px; }

.setup-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; max-width: 940px; }
.step-n { font-size: 12.5px; font-weight: 550; color: var(--accent); flex: none; font-variant-numeric: tabular-nums; }
.checklist { padding-left: 18px; margin: 0 0 12px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
textarea.mono { font-size: 12.5px; background: var(--paper); }
.mail summary { display: flex; gap: 14px; align-items: center; cursor: pointer; flex-wrap: wrap; list-style: none; }
.mail summary::-webkit-details-marker { display: none; }
.mail summary strong { flex: 1; font-weight: 520; }
.mail-body { white-space: pre-wrap; font: 13px/1.6 var(--mono); background: var(--paper); padding: 14px; border-radius: var(--r); margin: 14px 0 0; }
.search { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--ink); padding: 0 2px; min-width: min(360px, 100%); }
.search input { border: 0 !important; box-shadow: none !important; padding-left: 0 !important; background: transparent !important; }
.search .icon { color: var(--ink-3); }

.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 40px; gap: 14px; align-items: center; padding: 7px 0; font-size: 14px; }
.bar { height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.bar-row strong { text-align: right; font-weight: 520; font-variant-numeric: tabular-nums; }
.columns-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; height: 190px; padding-top: 6px; }
.columns-chart > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.columns-chart i { display: block; width: 100%; max-width: 26px; min-height: 2px; background: color-mix(in srgb, var(--ink) 72%, var(--paper)); border-radius: 2px 2px 0 0; }
.mini-row > strong:last-child { flex: none; margin-left: auto; color: var(--ink); font-weight: 520; font-variant-numeric: tabular-nums; }
.col-value { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.col-label { font-size: 12px; color: var(--ink-2); }

/* ---------- Booking page (public) ---------- */
.booking-page { background: var(--paper); }
.biz-header { position: relative; overflow: hidden; color: #fff8f2; background: radial-gradient(600px 320px at 85% 0%, color-mix(in srgb, var(--brand) 55%, #fff) 0%, transparent 65%), linear-gradient(160deg, color-mix(in srgb, var(--brand) 92%, #fff), var(--brand) 45%, color-mix(in srgb, var(--brand) 70%, #000)); }
.biz-header::before { content: ""; position: absolute; right: 7%; bottom: 0; width: clamp(120px, 17vw, 220px); height: 128%; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, rgb(255 255 255 / .2), rgb(255 255 255 / .06)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.biz-header::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .22; mix-blend-mode: overlay; pointer-events: none; }
.biz-inner > * { position: relative; z-index: 1; }
.biz-inner { max-width: 1320px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(24px, 4vw, 44px); display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }
.biz-mono { display: grid; place-items: center; width: clamp(58px, 8vw, 80px); height: clamp(68px, 9.5vw, 94px); border-radius: 999px 999px 6px 6px; background: #fff8f2; color: var(--brand); font-family: var(--serif); font-size: clamp(30px, 4.4vw, 42px); padding-top: 6px; flex: none; box-shadow: 0 18px 30px -16px rgb(0 0 0 / .5); }
.biz-id { flex: 1; min-width: 0; }
.biz-kind { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 248 242 / .75); font-weight: 550; margin: 0 0 6px; }
.biz-id h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; margin: 0 0 10px; letter-spacing: -.02em; }
.biz-line { margin: 0; font-size: 14px; color: rgb(255 248 242 / .85); display: flex; gap: 10px; flex-wrap: wrap; }
.biz-line span { color: rgb(255 248 242 / .4); }
.biz-line a { text-decoration: none; border-bottom: 1px solid rgb(255 248 242 / .35); }
.biz-line a:hover { border-color: #fff; }
.biz-header.is-slim .biz-inner { padding-top: 22px; padding-bottom: 22px; }
.biz-header.is-slim .biz-mono { width: 44px; height: 52px; font-size: 24px; }
.biz-name { font-family: var(--serif); font-size: 24px; margin: 0; line-height: 1.1; }
.booking-main { max-width: 1320px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--gutter) 80px; width: 100%; }
.booking-main.narrow { max-width: 640px; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.booking-form { min-width: 0; }
.progress { display: none; }
.stepped .progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; list-style: none; padding: 0; margin: 0 0 28px; gap: 4px; }
.progress li { font-size: 12px; color: var(--ink-3); padding-top: 10px; border-top: 2px solid var(--line); transition: border-color .3s, color .3s; }
.progress li.done { border-color: var(--ink-3); color: var(--ink-2); }
.progress li.now { border-color: var(--brand); color: var(--ink); font-weight: 550; }
.step { padding: 0 0 26px; }
.step + .step { border-top: 1px solid var(--line); padding-top: 24px; }
.step h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 20px; }
.step h2:focus { outline: none; }
.step .step-n { font-family: var(--sans); font-size: 12.5px; font-weight: 550; letter-spacing: .04em; color: var(--brand); min-width: 22px; font-variant-numeric: tabular-nums; }
.stepped .step.is-next { padding-bottom: 14px; }
.stepped .step.is-next h2 { margin-bottom: 0; color: var(--ink-3); }
.stepped .step.is-next .step-body, .stepped .step.is-done .step-body { display: none; }
.stepped .step.is-done { padding-bottom: 16px; }
.stepped .step.is-done h2 { font-size: 1.25rem; margin-bottom: 4px; color: var(--ink-2); }
.step-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 0 36px; font-size: 15px; font-weight: 520; }
.step-body { animation: rise .35s var(--ease); }
@keyframes rise { from { transform: translateY(6px); } }

.service-group { margin-bottom: 22px; }
.service-group legend { margin-bottom: 4px; }
.svc { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 15px 14px; margin: 0 -14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.svc:hover { background: var(--surface); }
.svc input { position: absolute; opacity: 0; pointer-events: none; }
.svc-name { font-size: 16px; font-weight: 500; }
.svc-name small { display: block; font-size: 13px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
.svc-leader { flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); min-width: 16px; }
.svc-time { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }
.svc-price { font-size: 16px; font-weight: 550; min-width: 64px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc:has(input:checked) { background: color-mix(in srgb, var(--brand) 11%, var(--surface)); box-shadow: inset 3px 0 0 var(--brand); }
.svc:has(input:checked) .svc-price { color: var(--brand); }
.svc:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: -2px; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.person { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; transition: border-color .15s; }
.person:hover { border-color: var(--ink-3); }
.person input { position: absolute; opacity: 0; pointer-events: none; }
.person:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.person:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.person-mono { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c, var(--line-2)); color: var(--c, var(--ink-3)); font-family: var(--serif); font-size: 19px; flex: none; }
.person-mono.any { font-family: var(--sans); }
.person-name { display: flex; flex-direction: column; font-weight: 520; }
.person-name small { font-weight: 400; font-size: 13px; color: var(--ink-3); }

.when-picker { display: grid; grid-template-columns: minmax(270px, 1fr) minmax(0, 1fr); gap: 32px; }
.calendar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; align-self: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; transition: opacity .15s; }
.cal-grid.loading { opacity: .4; }
.cal-dow { text-align: center; font-size: 11px; letter-spacing: .08em; color: var(--ink-3); padding: 4px 0 8px; }
.cal-day { position: relative; aspect-ratio: 1; border-radius: 50%; border: 1px solid transparent; background: none; font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--ink); }
.cal-day.free { font-weight: 550; }
.cal-day.free::after { content: ""; position: absolute; left: 50%; bottom: 13%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand); }
.cal-day.free:hover { border-color: var(--ink-3); }
.cal-day.full, .cal-day.out { color: #c6beb2; cursor: default; }
.cal-day.full { text-decoration: line-through; text-decoration-color: #d9d2c7; }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--line-2); }
.cal-day[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.cal-day[aria-pressed="true"]::after { background: #fff; }
.cal-legend { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; margin: 12px 0 0; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); display: inline-block; }
.times-title { font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
.times-group { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 8px; }
.times-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.time-btn { height: 44px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 14.5px; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s, background .15s; }
.time-btn:hover { border-color: var(--ink); }
.time-btn[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.summary-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 0 var(--r-lg) var(--r-lg) 0; background: var(--surface); margin-bottom: 24px; }
.summary-card div { display: flex; flex-direction: column; }
.summary-card strong { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.15; }
.summary-card span { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }

.biz-aside { display: grid; gap: 0; position: sticky; top: 24px; }
.biz-about { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--ink); padding: 22px 22px 24px; margin: 0 0 6px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); border-left: 3px solid var(--brand); }
.aside-block { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.aside-block h3 { font-size: 11px; font-weight: 550; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.aside-block p { margin: 0; }
.hours-list { margin: 0; display: grid; gap: 7px; }
.hours-list div { display: flex; justify-content: space-between; gap: 12px; }
.hours-list dt { color: var(--ink-2); }
.hours-list dd { margin: 0; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours-list .is-closed dd, .hours-list .is-closed dt { color: var(--ink-3); }
.powered { font-size: 12px; color: var(--ink-3); padding-top: 18px; }
.powered a { text-decoration: none; font-family: var(--serif); font-size: 15px; color: var(--ink-2); }

.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 44px); position: relative; }
.ticket-state { font-size: 13.5px; margin-bottom: 18px; }
.ticket-when { font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1; margin: 0 0 28px; letter-spacing: -.02em; }
.ticket-when span { display: block; margin-top: 8px; color: var(--brand); font-size: .62em; }
.is-cancelled .ticket-when { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.ticket-data { margin: 0 0 26px; border-top: 1px solid var(--ink); }
.ticket-data div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ticket-data dt { color: var(--ink-3); }
.ticket-data dd { margin: 0; text-align: right; }
.ticket-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.cancel-form { margin-bottom: 8px; }
.ticket-foot { display: flex; flex-direction: column; gap: 6px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.ticket-foot span { color: var(--ink-3); }
.prose { line-height: 1.7; }
.prose h1 { margin-bottom: 24px; }

/* ==========================================================================
   El resto de páginas con la línea de la portada: bosque, terracota, melocotón,
   grano, el arco como motivo y entradas suaves.
   ========================================================================== */

/* Every button gets the sheen and a small lift */
.btn { position: relative; overflow: hidden; transition: background .25s, border-color .25s, color .25s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .35), transparent); transform: skewX(-18deg); transition: left .7s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.btn:hover::after { left: 130%; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 22px -14px rgb(28 25 23 / .55); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn-ghost::after, .btn-line::after, .btn-danger-ghost::after { background: linear-gradient(100deg, transparent, rgb(195 90 51 / .12), transparent); }
:focus-visible { outline-color: var(--terracotta); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--forest); }
input:focus, select:focus, textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgb(23 53 45 / .12); }

/* ---------- Auth (entrar, crear cuenta) ---------- */
.auth-side { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(700px 500px at 80% 10%, var(--forest-2), transparent 70%), var(--forest); }
.auth-side::before { content: ""; position: absolute; z-index: -1; right: 8%; bottom: 0; width: min(380px, 62%); height: 78%; border-radius: 999px 999px 0 0; background: linear-gradient(170deg, #d4693e, var(--terracotta) 40%, var(--terracotta-2)); opacity: .92; }
.auth-side::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .18; mix-blend-mode: overlay; }
.auth-side > * { position: relative; }
.auth-sun { position: absolute !important; z-index: -1; width: 110px; height: 110px; right: 4%; top: 12%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd9b8, var(--peach) 55%, #e08a5c); box-shadow: 0 0 80px 10px rgb(242 176 137 / .35); animation: glow 5s ease-in-out infinite; }
.auth-quote em { color: var(--peach); }
.auth-side .ledger.is-dark { background: rgb(23 53 45 / .72); backdrop-filter: blur(6px); border: 1px solid rgb(246 243 238 / .12); border-radius: var(--r-lg); padding: 4px 20px; max-width: 460px; }
.auth-steps { background: rgb(23 53 45 / .72); backdrop-filter: blur(6px); border: 1px solid rgb(246 243 238 / .12); border-radius: var(--r-lg); padding: 0 22px; }
.auth-steps li:last-child { border-bottom: 0; }
.auth-steps b { color: var(--peach); }
.auth-form h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.auth-form h1 em { color: var(--terracotta); }
.auth-form .demo-login { padding: 12px 14px; border-radius: var(--r); background: var(--sand); color: var(--ink-2); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(28px, 5vw, 44px); position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--forest), var(--terracotta), var(--peach)); }

/* ---------- Booking page ---------- */
.step .step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11.5px; transform: translateY(-3px); transition: background .3s, transform .3s; }
.stepped .step.is-next .step-n { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.stepped .step.is-done .step-n { background: color-mix(in srgb, var(--brand) 22%, var(--surface)); color: var(--brand); }
.progress li { position: relative; }
.progress li.now { border-top-width: 3px; }
.svc { transition: background .2s, box-shadow .2s, padding-left .25s cubic-bezier(.2, .8, .2, 1); }
.svc:hover { padding-left: 20px; }
.person { transition: border-color .2s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.person:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -18px rgb(28 25 23 / .5); }
.person:has(input:checked) .person-mono { background: var(--c, var(--brand)); color: #fff; border-color: transparent; }
.person-mono { transition: background .25s, color .25s; }
.cal-day { transition: background .2s, color .2s, transform .2s, border-color .2s; }
.cal-day.free:hover { transform: scale(1.08); }
.cal-day[aria-pressed="true"] { animation: tap .35s cubic-bezier(.2, 1.4, .4, 1); }
.time-btn:hover { transform: translateY(-2px); }
.time-btn { transition: border-color .15s, background .15s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.time-btn[aria-selected="true"] { animation: tap .35s cubic-bezier(.2, 1.4, .4, 1); }
.calendar, .summary-card { box-shadow: 0 20px 40px -32px rgb(28 25 23 / .45); }
.summary-card { background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface) 70%); }
.aside-block h3 { color: color-mix(in srgb, var(--brand) 75%, var(--ink)); }
.booking-page .btn-brand { box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--brand) 85%, #000); }

/* Ticket: a brand band, a stamp and a check that draws itself */
.ticket { overflow: hidden; box-shadow: 0 30px 60px -40px rgb(28 25 23 / .4); }
.ticket::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #fff)); }
.ticket::after { content: ""; position: absolute; right: -40px; top: -60px; width: 190px; height: 230px; border-radius: 999px 999px 0 0; background: color-mix(in srgb, var(--brand) 8%, transparent); transform: rotate(14deg); pointer-events: none; }
.ticket > * { position: relative; z-index: 1; }
.ticket-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ticket-head .ticket-state { margin: 0; }
.ticket-check { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--brand) 80%, #000); animation: stamp .6s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
.ticket-check svg { width: 26px; height: 26px; }
.ticket-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s ease-out .55s forwards; }
@keyframes stamp { from { transform: scale(.3) rotate(-25deg); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ticket-check path { stroke-dashoffset: 0; } }
.ticket-data div { transition: background .2s; }
.ticket-data div:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }

/* ---------- Panel ---------- */
.workspace { background: linear-gradient(180deg, var(--paper-2) 0, var(--paper) 360px) no-repeat, var(--paper); }
.topbar { background: var(--forest); color: var(--paper); border-bottom: 0; isolation: isolate; box-shadow: 0 10px 30px -22px rgb(0 0 0 / .6); }
.topbar::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .14; mix-blend-mode: overlay; pointer-events: none; }
.topbar .wordmark { color: var(--paper); }
.topbar .wm em { color: var(--peach); }
.topbar .venue-chip { color: rgb(246 243 238 / .78); border-left-color: rgb(246 243 238 / .18); }
.topbar .main-nav a { color: rgb(246 243 238 / .6); }
.topbar .main-nav a:hover { color: var(--paper); }
.topbar .main-nav a[aria-current] { color: var(--paper); border-bottom-color: var(--peach); }
.topbar .ghost-link { color: rgb(246 243 238 / .75); }
.topbar .ghost-link:hover { color: var(--paper); }
.topbar .avatar { background: var(--peach); color: #2a130a; transition: transform .25s; }
.topbar details[open] .avatar, .topbar .avatar:hover { transform: scale(1.08); }
.menu-pop { animation: menu-in .2s cubic-bezier(.2, .8, .2, 1); color: var(--ink); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.workspace .page-head h1 { font-size: clamp(2.2rem, 3.6vw, 3rem); }
.workspace .btn-primary { background: var(--terracotta); color: #fff; }
.workspace .btn-primary:hover { background: var(--terracotta-2); }
.segmented a[aria-current] { background: var(--forest); }
.chip.is-on { background: var(--forest); border-color: var(--forest); }
.chip { transition: border-color .15s, background .15s, transform .2s; }
.chip:hover { transform: translateY(-1px); }

.stats-row { border-top: 2px solid var(--forest); }
.stat strong { color: var(--forest); }
.stat-warn strong { color: var(--ochre); }
.stat-bad strong { color: var(--bad); }

.card { transition: box-shadow .3s, border-color .3s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.card-title { color: var(--forest); }
.team-card:hover, a.card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgb(28 25 23 / .45); }
.team-card { overflow: hidden; position: relative; }
.team-card::before { content: ""; position: absolute; right: -30px; top: -40px; width: 120px; height: 150px; border-radius: 999px 999px 0 0; background: color-mix(in srgb, var(--c, var(--terracotta)) 10%, transparent); transform: rotate(16deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.team-card:hover::before { transform: rotate(6deg) translate(-10px, 8px) scale(1.1); }
.team-card > * { position: relative; }
.staff-avatar.lg { background: var(--c, var(--forest)); color: #fff; border-color: transparent; box-shadow: 0 12px 22px -14px var(--c, var(--forest)); }

.link-card { position: relative; overflow: hidden; isolation: isolate; border: 0; color: var(--paper); background: radial-gradient(500px 260px at 90% 0%, var(--forest-2), transparent 70%), var(--forest); }
.link-card::before { content: ""; position: absolute; z-index: -1; right: 4%; bottom: 0; width: 150px; height: 120%; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #d4693e, var(--terracotta-2)); opacity: .9; }
.link-card .card-title { color: var(--paper); }
.link-card .muted { color: rgb(246 243 238 / .7); }
.link-card input[readonly] { background: rgb(246 243 238 / .95); }
.link-card .btn-ghost { color: var(--paper); border-color: rgb(246 243 238 / .35); background: rgb(23 53 45 / .5); }
.link-card .btn-ghost:hover { border-color: var(--paper); }

.setup-steps .step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: var(--paper); font-size: 12px; }
.setup-steps > li:nth-child(2) .step-n { background: var(--terracotta); }
.setup-steps > li:nth-child(3) .step-n { background: var(--plum); }
.setup-steps > li:nth-child(4) .step-n { background: var(--ochre); }
.setup-steps > li:nth-child(5) .step-n { background: var(--forest-2); }

.bar i { background: linear-gradient(90deg, var(--forest), var(--forest-2)); }
.report-grid > section:nth-child(2) .columns-chart i { background: linear-gradient(180deg, #d4693e, var(--terracotta-2)); }
.columns-chart i { transform-origin: bottom; }
.ui-ready .columns-chart i, .ui-ready .bar i { animation: grow-bar .9s cubic-bezier(.16, 1, .3, 1) both; }
.ui-ready .bar i { transform-origin: left; animation-name: grow-bar-x; }
@keyframes grow-bar { from { transform: scaleY(0); } }
@keyframes grow-bar-x { from { transform: scaleX(0); } }

.block { transition: background .15s, box-shadow .2s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.block:hover { transform: translateX(2px); }
.appt-row { transition: background .15s, padding-left .25s cubic-bezier(.2, .8, .2, 1); }
.appt-row:hover { padding-left: 28px; }
.table tr[data-href] td { transition: background .15s; }
.now-line { box-shadow: 0 0 0 3px rgb(195 90 51 / .08); }
.now-line span { animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 6px rgb(195 90 51 / .18); } }

.empty-card { background: radial-gradient(400px 200px at 50% 0%, var(--sand), transparent 70%); }
.toast { background: var(--forest); }

/* ---------- Gentle entrance on every page (html.ui-motion is set by app.js) ---------- */
.ui-motion .rise { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--rd, 0s); }
.ui-motion.ui-ready .rise { opacity: 1; transform: none; }

/* Privacy page: long answers read better under their label */
.prose .ticket-data div { flex-direction: column; gap: 4px; }
.prose .ticket-data dd { text-align: left; color: var(--ink-2); }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.prose h1 em { color: var(--brand); }

/* ==========================================================================
   Agenda: vistas, columna de datos, panel lateral de la cita y arrastre
   ========================================================================== */
.agenda-head .head-actions { gap: 10px; }
.agenda-search { min-width: 260px; border-bottom-color: var(--line-2); }
.agenda-search:focus-within { border-bottom-color: var(--forest); }
.segmented a { font-weight: 500; }
.figures-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.figures-row .stats-row { flex: 1; margin-bottom: 0; }
.stat-meter .meter { margin-top: 6px; }
.meter { display: block; height: 5px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.meter b { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--c, var(--forest)), color-mix(in srgb, var(--c, var(--forest)) 70%, #fff)); transform-origin: left; animation: grow-bar-x .9s cubic-bezier(.16, 1, .3, 1) both; }
.agenda-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.agenda-layout.has-side { grid-template-columns: minmax(0, 1fr) 300px; }
.agenda-main { min-width: 0; }

/* Day view: dragging */
.block.is-movable { cursor: grab; touch-action: pan-y; }
.block.is-dragging { cursor: grabbing; z-index: 20; opacity: .95; box-shadow: 0 22px 40px -16px rgb(28 25 23 / .55), 0 0 0 2px var(--c); transform: scale(1.02); transition: none; }
.block.is-armed { box-shadow: 0 0 0 2px var(--c); }
.block.is-saving { opacity: .55; }
.agenda.is-dragging .col { cursor: grabbing; }
.agenda.is-dragging .col:hover { background: color-mix(in srgb, var(--forest) 3%, transparent); }
.agenda.is-dragging .ghost-slot { display: none; }
.drag-label { position: absolute; right: 6px; top: 4px; padding: 2px 7px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 550; white-space: nowrap; }

/* Week view */
.agenda.week { min-width: calc(var(--gw) + 7 * 130px); }
.agenda.week .agenda-heads, .agenda.week .agenda-body { grid-template-columns: var(--gw) repeat(7, minmax(130px, 1fr)); }
.week-head { text-decoration: none; color: var(--ink); gap: 12px; transition: background .2s; }
.week-head:hover { background: var(--paper); }
.week-num { font-family: var(--serif); font-size: 30px; line-height: 1; min-width: 34px; }
.week-head.is-today .week-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--terracotta); color: #fff; font-size: 22px; }
.week-head.is-closed { color: var(--ink-3); }
.week-col.is-closed { background: repeating-linear-gradient(-45deg, transparent, transparent 7px, rgb(132 125 116 / .07) 7px, rgb(132 125 116 / .07) 8px); }
.week-col.is-today { background: color-mix(in srgb, var(--terracotta) 4%, transparent); }
.week .block { cursor: pointer; padding-left: 8px; }
.week .block strong { font-size: 12px; }
.week .block { padding: 4px 5px 4px 7px; border-left-width: 3px; }
.week .block .block-time { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week .block strong { font-size: 11.5px; }
.week .block-service { font-size: 11px; }
.week .block:hover { z-index: 6; min-width: 150px; box-shadow: 0 14px 28px -12px rgb(28 25 23 / .45); }
.now-line.in-col { left: 0; }

/* Month view */
.month { padding: 0; overflow: hidden; }
.month-head, .month-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-head span { padding: 12px 14px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.month-day { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 128px; padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .2s, box-shadow .2s; overflow: hidden; }
.month-week .month-day:last-child { border-right: 0; }
.month-week:last-child .month-day { border-bottom: 0; }
.month-day:hover { box-shadow: inset 0 0 0 2px var(--forest); z-index: 1; }
.month-day.heat-1 { background: color-mix(in srgb, var(--forest) 4%, var(--surface)); }
.month-day.heat-2 { background: color-mix(in srgb, var(--forest) 8%, var(--surface)); }
.month-day.heat-3 { background: color-mix(in srgb, var(--forest) 13%, var(--surface)); }
.month-day.heat-4 { background: color-mix(in srgb, var(--forest) 19%, var(--surface)); }
.month-day.is-out { opacity: .42; }
.month-day.is-closed { background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 7px, rgb(132 125 116 / .07) 7px, rgb(132 125 116 / .07) 8px); }
.md-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.md-top b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1; }
.month-day.is-today .md-top b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--terracotta); color: #fff; font-size: 18px; }
.md-count { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--forest); color: var(--paper); }
.md-closed { font-size: 11px; color: var(--ink-3); }
.md-item { display: block; font-size: 11.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 7px; border-left: 2px solid var(--c); color: var(--ink-2); }
.md-item i { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.md-more { font-size: 11px; color: var(--ink-3); }
.md-foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; font-weight: 550; color: var(--forest); font-variant-numeric: tabular-nums; }
.md-pending { color: var(--ochre); font-weight: 500; }
.heat-key-1 { background: color-mix(in srgb, var(--forest) 10%, var(--surface)); width: 12px !important; border: 1px solid var(--line-2); }
.heat-key-4 { background: color-mix(in srgb, var(--forest) 30%, var(--surface)); width: 12px !important; border: 1px solid var(--line-2); }

/* Search results */
.list-title { padding: 18px 22px 6px; margin: 0; }

/* Side column */
.agenda-side { display: grid; gap: 14px; position: sticky; top: calc(var(--bar-h) + 16px); }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 16px 12px; }
.side-card h2 { font-family: var(--serif); font-size: 21px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; color: var(--forest); }
.side-count { font-family: var(--sans); font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--ochre); color: #fff; }
.side-now { background: radial-gradient(300px 160px at 100% 0%, var(--forest-2), transparent 70%), var(--forest); border: 0; color: var(--paper); }
.side-now h2 { color: var(--peach); }
.side-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgb(246 243 238 / .55); margin: 12px 0 4px; }
.side-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; margin: 0 -6px; border: 0; border-radius: 6px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.side-row:hover { background: rgb(28 25 23 / .05); }
.side-now .side-row:hover { background: rgb(246 243 238 / .08); }
.side-row b { display: block; font-weight: 550; font-size: 14px; }
.side-row small { display: block; font-size: 12px; color: var(--ink-3); }
.side-now .side-row small { color: rgb(246 243 238 / .62); }
.side-time { min-width: 44px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; border-left: 3px solid var(--c); padding-left: 8px; }
.side-dot { width: 10px; height: 10px; border-radius: 50%; background: #5fd3a2; box-shadow: 0 0 0 4px rgb(95 211 162 / .2); flex: none; animation: pulse-live 1.8s ease-in-out infinite; }
@keyframes pulse-live { 50% { box-shadow: 0 0 0 7px rgb(95 211 162 / .05); } }
.pending-row { padding: 0; gap: 4px; cursor: default; }
.pending-row:hover { background: none; }
.side-open { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 8px 6px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 6px; }
.side-open:hover { background: rgb(28 25 23 / .05); }
.pending-row form { margin: 0; }
.pending-row .btn { width: 34px; padding: 0; color: var(--ok); }
.occ-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.occ-row:last-child { border-bottom: 0; }
.occ-name { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 520; }
.occ-pct { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--c); }
.occ-row .meter { grid-column: 1 / -1; }
.occ-row small { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); }
.mini-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mini-head h2 { margin: 0; font-size: 18px; }
.mini-head .icon-btn { width: 28px; height: 28px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mini-dow { text-align: center; font-size: 10.5px; color: var(--ink-3); padding-bottom: 4px; }
.mini-day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: 12.5px; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; transition: transform .15s, background .2s; }
.mini-day:hover { transform: scale(1.12); background: var(--paper-2); }
.mini-day.heat-1 { background: color-mix(in srgb, var(--forest) 10%, transparent); }
.mini-day.heat-2 { background: color-mix(in srgb, var(--forest) 20%, transparent); }
.mini-day.heat-3 { background: color-mix(in srgb, var(--forest) 34%, transparent); }
.mini-day.heat-4 { background: color-mix(in srgb, var(--forest) 52%, transparent); color: #fff; }
.mini-day.is-out { opacity: .35; }
.mini-day.is-today { box-shadow: inset 0 0 0 1.5px var(--terracotta); font-weight: 650; }
.mini-day.is-current { background: var(--terracotta); color: #fff; }

/* Side panel (drawer) */
.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgb(23 30 27 / .32); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(480px, 100vw); background: var(--paper); box-shadow: -30px 0 60px -30px rgb(0 0 0 / .45); transform: translateX(104%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.drawer.is-open { transform: none; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.drawer.is-loading .drawer-body { opacity: .5; transition: opacity .2s; }
.drawer.is-loading::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--terracotta), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: loading 1s linear infinite; }
@keyframes loading { from { background-position: -50% 0; } to { background-position: 150% 0; } }
body.has-drawer { overflow: hidden; }

.ap-head { position: relative; overflow: hidden; isolation: isolate; padding: 22px 24px 22px; color: var(--paper); background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--c) 70%, #fff) 0%, transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--c) 85%, #000), color-mix(in srgb, var(--c) 60%, #000)); }
.ap-head::before { content: ""; position: absolute; z-index: -1; right: 18px; bottom: 0; width: 110px; height: 120%; border-radius: 999px 999px 0 0; background: rgb(255 255 255 / .12); }
.ap-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .2; mix-blend-mode: overlay; }
.ap-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ap-top .pill { color: var(--paper); padding: 4px 10px; border-radius: 99px; background: rgb(255 255 255 / .14); }
.ap-top .tag-ia { color: var(--paper); }
.ap-ref { font-size: 12px; opacity: .7; }
.ap-close { margin-left: auto; color: var(--paper); border-color: rgb(255 255 255 / .3); background: rgb(0 0 0 / .1); }
.ap-close:hover:not(:disabled) { color: #fff; border-color: #fff; }
.ap-client { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.5rem); margin: 0 0 6px; line-height: 1; }
.ap-when { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ap-when strong { font-weight: 550; font-size: 15px; }
.ap-when span { opacity: .8; font-variant-numeric: tabular-nums; }
.ap-body { padding: 18px 24px 30px; display: grid; gap: 16px; }
.ap-status { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ap-status form { margin: 0; }
.ap-facts { margin: 0; display: grid; gap: 0; }
.ap-facts div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ap-facts dt { color: var(--ink-3); }
.ap-facts dd { margin: 0; text-align: right; display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.ap-facts b { font-weight: 600; color: var(--forest); }
.ap-note { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--surface); border-left: 3px solid var(--line-2); font-size: 14px; white-space: pre-wrap; }
.ap-note b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.ap-note.is-warn { border-left-color: var(--ochre); background: color-mix(in srgb, var(--ochre) 8%, var(--surface)); }
.ap-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.ap-section h3 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 10px; }
.ap-section textarea { margin-bottom: 8px; }
.ap-contact { margin: 0 0 10px; font-size: 14.5px; }
.ap-contact a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.ap-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-buttons form { margin: 0; }
.ap-move summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.ap-move summary::-webkit-details-marker { display: none; }
.ap-move summary h3 { margin: 0; color: var(--forest); }
.ap-move[open] summary { margin-bottom: 12px; }
.ap-move[open] summary .icon { transform: rotate(180deg); }
.ap-move summary .icon { transition: transform .25s; }
.ap-form .field { margin-bottom: 10px; }
.ap-chips { margin: 2px 0 10px; font-size: 13px; color: var(--ink-3); }
.ap-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.ap-kpis div { padding: 8px; border-radius: 6px; background: var(--paper); text-align: center; }
.ap-kpis b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.1; color: var(--forest); }
.ap-kpis span { font-size: 11px; color: var(--ink-3); }
.ap-kpis .is-bad b { color: var(--bad); }
.ap-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; padding-top: 4px; }
.ap-links a, .ap-links .link-btn { color: var(--forest); font-size: 13.5px; }
.ap-page { padding: 0; overflow: hidden; max-width: 720px; }
.ap-page .ap-close { display: none; }

@media (max-width: 1180px) {
  .agenda-layout.has-side { grid-template-columns: 1fr; }
  .agenda-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
  .agenda-search { min-width: 0; width: 100%; }
  .month-day { min-height: 74px; padding: 6px; }
  .md-item, .md-foot, .md-more { display: none; }
  .md-top b { font-size: 16px; }
  .ap-kpis { grid-template-columns: repeat(2, 1fr); }
  .drawer { width: 100vw; }
}

/* ---------- Acceso y alta: encuadre y escena ---------- */
.auth-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: calc(100vh - var(--bar-h)); }
.auth-form { display: flex; align-items: center; justify-content: center; max-width: none; padding: clamp(36px, 6vw, 72px) var(--gutter); }
.auth-inner { width: min(420px, 100%); }
.auth-inner.is-wide { width: min(560px, 100%); }
.auth-inner .kicker { color: var(--terracotta); margin-bottom: 12px; }
.auth-inner h1 { margin-bottom: 10px; }
.auth-inner > .muted { margin-bottom: 0; }
.auth-fields { margin-top: 28px; }
.demo-box { margin-top: 26px; padding: 16px 18px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.demo-box > p:first-child { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.demo-box b { color: var(--ink); font-weight: 600; }
.demo-box .fine { margin: 10px 0 0; }
.demo-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-chip { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); font: inherit; font-size: 13.5px; font-weight: 520; color: var(--ink); cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.demo-chip span { display: grid; place-items: center; width: 26px; height: 30px; border-radius: 999px 999px 4px 4px; background: var(--c); color: #fff; font-family: var(--serif); font-size: 16px; padding-top: 2px; flex: none; }
.demo-chip:hover { border-color: var(--c); transform: translateY(-2px); box-shadow: 0 12px 20px -14px var(--c); }

.auth-scene { justify-content: center; align-items: center; padding: clamp(36px, 5vw, 72px); }
.scene { width: min(500px, 100%); display: flex; flex-direction: column; gap: 26px; }
.scene .auth-quote { max-width: 440px; }
.scene-stack { position: relative; display: grid; gap: 12px; }
.scene-card { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
.scene-kpis { padding: 16px 18px; width: 86%; }
.scene-title { font-family: var(--serif); font-size: 19px; margin: 0 0 10px; }
.scene-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scene-figures b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--forest); }
.scene-figures span { font-size: 11.5px; color: var(--ink-3); }
.scene-figures .meter { margin-top: 6px; }
.scene-list { padding: 2px 18px; margin-left: 12%; }
.scene-list .ledger-row { padding: 11px 0; }
.scene-toast { position: absolute; right: -10px; top: -18px; display: flex; align-items: center; gap: 9px; margin: 0; padding: 10px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12.5px; font-weight: 500; box-shadow: 0 20px 40px -18px rgb(0 0 0 / .6); animation: float 6s ease-in-out infinite; }
.scene-toast span { width: 8px; height: 8px; border-radius: 50%; background: #3f9a72; box-shadow: 0 0 0 4px rgb(63 154 114 / .18); }
.scene-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border-top: 1px solid rgb(246 243 238 / .16); padding-top: 18px; }
.scene-points li { font-size: 12.5px; color: rgb(246 243 238 / .68); line-height: 1.45; }
.scene-points b { display: block; color: var(--paper); font-weight: 550; font-size: 13.5px; margin-bottom: 3px; }
.auth-side::before { right: 6%; width: min(340px, 56%); height: 72%; }

@media (max-width: 960px) {
  .auth-grid { grid-template-columns: 1fr; min-height: 0; }
  .auth-scene { padding-top: 48px; padding-bottom: 56px; }
  .scene-points { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .demo-pick { grid-template-columns: 1fr; }
  .scene-kpis, .scene-list { width: auto; margin-left: 0; }
  .scene-toast { position: static; align-self: flex-start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ghost-link { display: none; }
  .main-nav a { padding: 0 9px; }
  .venue-chip { display: none; }
}
@media (max-width: 960px) {
  .hero-grid, .chapter, .booking-layout, .two-col, .report-grid, .auth-grid { grid-template-columns: 1fr; }
  .chapter.is-flipped .chapter-text { order: 0; }
  .hero-figure { min-height: 420px; }
  .details { grid-template-columns: 1fr 1fr; }
  .details div:nth-child(n) { padding-left: 0; border-left: 0; }
  .details div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .demo-grid { grid-template-columns: 1fr; max-width: 520px; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .stage { min-height: 380px; }
  .details div:nth-child(2n) { border-left-color: rgb(28 25 23 / .15); }
  .biz-aside { position: static; }
  .when-picker { grid-template-columns: 1fr; }
  .auth-side { min-height: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  :root { --bar-h: 56px; }
  body { font-size: 15px; }
  .site-nav { gap: 14px; }
  .site-nav .nav-link:first-child { display: none; }
  .topbar-inner { gap: 10px; }
  .topbar .wm { font-size: 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .data-list > div { grid-template-columns: 1fr; gap: 2px; }
  .stat { padding-right: 18px; margin-right: 18px; min-width: 0; }
  .stat strong { font-size: 24px; }
  .staff-filter { margin: 10px 0; width: 100%; }
  .staff-filter select { width: 100%; }
  .date-jump { display: none; }
  .agenda-scroll { max-height: none; }
  .hero-figure { min-height: 380px; }
  .shot-agenda { top: 40px; left: 0; right: 0; bottom: 90px; }
  .shot-toast { left: 0; top: 0; font-size: 11.5px; }
  .sun { width: 80px; height: 80px; }
  .menu-grid { grid-template-columns: 1fr; }
  .hero-points b { font-size: 28px; }
  .stage { padding: 22px 16px; border-radius: 14px; }
  .arch-closing { width: 80%; opacity: .5; }
  .shot-cols { grid-template-columns: 40px repeat(2, 1fr); }
  .shot-col:nth-of-type(4) { display: none; }
  .shot-phone { width: 196px; right: -6px; }
  .details { grid-template-columns: 1fr; }
  .details div:nth-child(2n) { padding-left: 0; border-left: 0; }
  .biz-line { flex-direction: column; gap: 4px; align-items: flex-start; }
  .biz-line span { display: none; }
  .svc { flex-wrap: wrap; row-gap: 2px; }
  .svc-name { flex: 1 0 100%; }
  .svc-leader { display: none; }
  .svc-price { margin-left: auto; }
  .summary-card { grid-template-columns: 1fr; }
  .ticket-actions { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr 1fr 32px; }
  .inline-form { flex-direction: column; }
  .closing-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .topbar, .site-header, .site-footer, .head-actions, .toasts { display: none; } .agenda-scroll { max-height: none; overflow: visible; } }

/* ==========================================================================
   Panel v2: una sola tipografía (la del menú), agenda a toda la pantalla en tres columnas,
   panel lateral más ancho y sombra de destino al arrastrar
   ========================================================================== */

/* Una sola tipografía en el panel: Geist, la del menú. El logotipo conserva la suya. */
.workspace { --serif: var(--sans); }
.workspace .topbar .wm { font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif; }
.workspace h1, .workspace h2 { font-weight: 640; letter-spacing: -.025em; line-height: 1.1; }
.workspace .page-head h1 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.workspace h1 em, .workspace h2 em, .workspace .empty, .workspace .closed-label { font-style: normal; }
.workspace .stat strong, .workspace .ap-kpis b, .workspace .md-top b, .workspace .week-num, .workspace .team-card strong,
.workspace .scene-figures b, .workspace .card-title, .workspace .side-card h2 { font-weight: 640; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.workspace .stat strong { font-size: 24px; }
.workspace .card-title { font-size: 18px; }
.workspace .empty { font-size: 15px; }
.workspace .staff-avatar.lg { font-size: 22px; font-weight: 600; }
.toasts { z-index: 90; }

/* ---------- La agenda ocupa justo la altura de la pantalla ---------- */
.agenda-page { max-width: none; padding: 14px clamp(12px, 1.4vw, 22px) 14px; }
.agenda-shell { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.agenda-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; flex: none; }
.agenda-head .day-nav { gap: 8px; min-width: 0; }
.agenda-head .day-title { display: flex; align-items: baseline; gap: 12px; margin-left: 6px; min-width: 0; }
.agenda-head .day-title h1 { font-size: clamp(1.35rem, 1.9vw, 1.75rem); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--terracotta); color: #fff; white-space: nowrap; }
.today-link { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.today-link:hover { color: var(--ink); }
.agenda-head .date-jump input { width: 140px; min-height: 36px; }
.agenda-head .head-actions { gap: 8px; }
.agenda-head .agenda-search { min-width: 240px; }
.col-toggle { color: var(--ink-3); }
#agenda-root.hide-left [data-toggle-col="left"], #agenda-root.hide-right [data-toggle-col="right"] { background: var(--paper-2); color: var(--ink); }

.agenda-layout { display: flex; gap: 14px; align-items: stretch; min-height: 0; }
.agenda-left { flex: 0 0 258px; }
.agenda-right { flex: 0 0 304px; }
.agenda-left, .agenda-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.agenda-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#agenda-root.hide-left .agenda-left, #agenda-root.hide-right .agenda-right { display: none; }

@media (min-width: 1000px) {
  .agenda-screen { height: 100vh; height: 100dvh; overflow: hidden; }
  .agenda-screen main.agenda-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .agenda-shell { flex: 1; }
  .agenda-layout { flex: 1; }
  .agenda-left, .agenda-right { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-right: 2px; }
  .agenda-main > .agenda-scroll { flex: 1; min-height: 0; max-height: none; }
  .agenda-main > .month { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .agenda-main > .month .month-week { flex: 1; min-height: 0; }
  .agenda-main > .month .month-day { min-height: 0; height: 100%; }
  .agenda-main > .list-card, .agenda-main > .search-results { flex: 1; min-height: 0; overflow-y: auto; }
}
@media (max-width: 1380px) {
  .agenda-left { flex-basis: 236px; }
  .agenda-right { flex-basis: 280px; }
}
@media (max-width: 999px) {
  .agenda-layout { flex-direction: column; }
  .agenda-main { order: 1; }
  .agenda-right { order: 2; }
  .agenda-left { order: 3; }
  .agenda-left, .agenda-right { flex-basis: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .agenda-main > .agenda-scroll { max-height: 72vh; }
  .col-toggle { display: none; }
  #agenda-root.hide-left .agenda-left, #agenda-root.hide-right .agenda-right { display: grid; }
}

/* ---------- Tarjetas de las columnas ---------- */
.side-card { padding: 14px 14px 10px; border-radius: 12px; }
.side-card h2 { font-size: 14.5px; color: var(--ink); margin: 0 0 8px; }
.side-card h2 .icon { width: 16px; height: 16px; color: var(--terracotta); }
.side-now h2 { color: var(--peach); }
.side-count { margin-left: auto; font-size: 11px; }
.side-count.is-calm { background: var(--paper-2); color: var(--ink-2); }
.h2-btn { width: 26px; height: 26px; margin-left: auto; }
.side-count + .h2-btn { margin-left: 4px; }
.side-card h2 .h2-btn .icon { color: var(--ink-2); width: 14px; height: 14px; }
.side-row { padding: 7px 6px; }
.side-row b { font-size: 13.5px; }
.side-row small { font-size: 11.5px; }
.side-more { display: block; font-size: 12.5px; color: var(--forest); margin-top: 6px; }
.row-btn { width: 32px; padding: 0; flex: none; color: var(--ink-3); }
.row-btn .icon { width: 16px; height: 16px; }
.row-btn.is-ok, .remind-row .row-btn:hover { color: var(--ok); }
.remind-row.is-done .side-open { opacity: .5; }
.remind-row.is-done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.gap-row .row-plus { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px dashed var(--line-2); color: var(--ink-3); transition: background .2s, color .2s, border-color .2s; flex: none; }
.gap-row .row-plus .icon { width: 14px; height: 14px; }
.gap-row:hover .row-plus { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

/* Cifras: una rejilla compacta de casillas */
.figures-card .stats-row { display: grid; grid-template-columns: 1fr 1fr; border: 0; margin: 0; gap: 1px; background: var(--line); border-radius: 8px; overflow: hidden; }
.figures-card .stat { margin: 0; padding: 9px 10px 10px; border: 0; min-width: 0; background: var(--surface); }
.figures-card .stat-wide { grid-column: 1 / -1; }
.figures-card .stat span { font-size: 10.5px; letter-spacing: .08em; }
.figures-card .stat strong { font-size: 21px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.figures-card .stat-wide strong { font-size: 18px; }

/* Equipo: filtro y carga de cada uno */
.team-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 9px; padding: 7px 8px; margin: 0 -6px; border-radius: 8px; color: var(--ink); text-decoration: none; transition: background .15s; }
.team-row:hover { background: var(--paper); }
.team-row.is-on { background: color-mix(in srgb, var(--c, var(--forest)) 10%, var(--surface)); box-shadow: inset 3px 0 0 var(--c, var(--forest)); }
.team-row .staff-avatar.xs { margin: 0; }
.team-all { display: flex; }
.team-all .staff-avatar.xs + .staff-avatar.xs { margin-left: -8px; }
.team-name { font-size: 13.5px; font-weight: 550; min-width: 0; }
.team-name small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-3); }
.team-pct { font-size: 12.5px; font-weight: 650; color: var(--c); font-variant-numeric: tabular-nums; }
.team-row .meter { grid-column: 2 / -1; height: 4px; }

/* Nota del día */
.day-note textarea { min-height: 76px; font-size: 13.5px; background: color-mix(in srgb, var(--ochre) 7%, var(--surface)); border-color: color-mix(in srgb, var(--ochre) 30%, var(--line)); resize: vertical; }
.note-status { margin: 6px 0 0; font-size: 11.5px; }

/* Leyenda */
.legend-card .legend { margin: 0 0 8px; font-size: 11.5px; gap: 4px 8px; }
.legend-hint { margin: 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
kbd { font: 600 10.5px/1 var(--mono); padding: 2px 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--ink-2); }

/* Lista de espera */
.wait-row { display: flex; flex-direction: column; gap: 1px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.wait-row:last-of-type { border-bottom: 0; }
.wait-row b { font-size: 13.5px; font-weight: 550; }
.wait-row small { font-size: 11.5px; color: var(--ink-3); }
.wait-note { font-style: italic; }
.wait-match { margin: 5px 0 1px; align-self: flex-start; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: color-mix(in srgb, var(--ok) 13%, var(--surface)); color: var(--ok); }
.wait-row.has-match { background: linear-gradient(90deg, color-mix(in srgb, var(--ok) 6%, transparent), transparent); margin: 0 -14px; padding-left: 14px; padding-right: 14px; box-shadow: inset 3px 0 0 var(--ok); }
.wait-actions { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.wait-actions form { margin: 0 0 0 auto; }
.wait-actions .btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.wait-actions .btn-sm .icon { width: 14px; height: 14px; }

/* Actividad */
.act-row { display: flex; align-items: flex-start; gap: 10px; width: calc(100% + 12px); padding: 7px 6px; margin: 0 -6px; border: 0; border-radius: 6px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.act-row:hover { background: var(--paper); }
.act-row b { display: block; font-size: 13px; font-weight: 550; }
.act-row small { display: block; font-size: 11.5px; color: var(--ink-3); }
.act-row .act-when { font-size: 10.5px; opacity: .8; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 15%, transparent); }
.act-cancelled .act-dot { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 15%, transparent); }
.act-cancelled b { text-decoration: line-through; text-decoration-color: var(--line-2); }

/* ---------- Cuerpo de la agenda ---------- */
.agenda-scroll { border-radius: 12px; }
.agenda-main .month { border-radius: 12px; }
.col-head strong { font-size: 13.5px; }
.flag { display: inline-block; font-style: normal; font-size: 9.5px; font-weight: 650; letter-spacing: .02em; padding: 1px 5px; border-radius: 99px; vertical-align: 1px; line-height: 1.5; }
.flag-new { background: color-mix(in srgb, var(--terracotta) 14%, var(--surface)); color: var(--terracotta-2); }
.flag-bad { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); color: var(--bad); }
.flag-note, .flag-ok { font-style: normal; font-size: 11px; color: var(--ink-3); }
.flag-ok { color: var(--ok); font-weight: 700; }
.block .block-time { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shade.is-block { background: repeating-linear-gradient(-45deg, transparent, transparent 6px, rgb(78 34 53 / .09) 6px, rgb(78 34 53 / .09) 7px); background-color: color-mix(in srgb, var(--plum) 5%, var(--surface)); border-top: 2px solid color-mix(in srgb, var(--plum) 45%, transparent); z-index: 1; }
.shade.is-block span { display: inline-flex; align-items: center; gap: 4px; color: var(--plum-2); font-weight: 550; }
.shade.is-block span .icon { width: 12px; height: 12px; }
.shade-x { position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--plum-2); font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.shade.is-block:hover .shade-x, .shade-x:focus-visible { opacity: 1; }
.shade-x:hover { background: var(--surface); border-color: var(--line-2); }

/* ---------- Arrastrar: la cita sigue al puntero y una sombra marca dónde quedará ---------- */
.block.is-dragging { z-index: 30; opacity: .5; pointer-events: none; transform: none; transition: none; box-shadow: 0 18px 34px -14px rgb(28 25 23 / .5); cursor: grabbing; }
.block.is-dragging:hover { transform: none; }
.drag-origin { position: absolute; left: 5px; right: 5px; z-index: 1; border: 1.5px dashed var(--line-2); border-radius: 0 5px 5px 0; background: repeating-linear-gradient(-45deg, transparent, transparent 5px, rgb(132 125 116 / .07) 5px, rgb(132 125 116 / .07) 6px); pointer-events: none; }
.drop-target { --tone: var(--ok); position: absolute; left: 5px; right: 5px; z-index: 31; display: flex; flex-direction: column; gap: 1px; padding: 5px 9px; border: 2px dashed var(--tone); border-radius: 6px; background: color-mix(in srgb, var(--tone) 14%, rgb(255 255 255 / .78)); color: var(--ink); font-size: 11.5px; line-height: 1.3; pointer-events: none; overflow: hidden; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 12%, transparent); transition: top .08s ease-out; }
.drop-target b { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.drop-target span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-target em { font-style: normal; font-weight: 650; color: var(--tone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-target.is-warn { --tone: var(--ochre); }
.drop-target.is-bad { --tone: var(--bad); }
.drop-target.is-same { --tone: var(--ink-3); }
.agenda.is-dragging .col:hover { background: transparent; }

/* ---------- Panel lateral: más ancho, dos columnas donde ayuda ---------- */
.drawer { width: min(760px, 100vw); }
.ap-head { padding: 22px 28px 20px; }
.ap-body { padding: 20px 28px 32px; }
.ap-client { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 650; letter-spacing: -.03em; }
.ap-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ap-pair > * { margin: 0; }
.ap-kpis b { font-size: 19px; }
.ap-tabs { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.ap-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid rgb(255 255 255 / .28); background: rgb(0 0 0 / .12); color: rgb(255 255 255 / .82); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ap-tabs button .icon { width: 15px; height: 15px; }
.ap-tabs button:hover { color: #fff; border-color: rgb(255 255 255 / .6); }
.ap-tabs button[aria-selected="true"] { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.ap-new .ap-head { background: radial-gradient(420px 220px at 100% 0%, #2f5a4d 0%, transparent 70%), linear-gradient(160deg, #1d4036, var(--forest)); }
.ap-new .ap-top .pill { color: var(--peach); background: rgb(255 255 255 / .1); }
.ap-tabpanel { display: grid; gap: 16px; }
.ap-tabpanel[hidden] { display: none; }
.ap-form .form-grid { gap: 0 14px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ap-section h3 { display: flex; align-items: center; gap: 6px; }
.ap-section h3 .icon { width: 14px; height: 14px; }
.ap-section .help { font-size: 12.5px; margin-bottom: 10px; }
.chips-title { margin: 2px 0 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.ap-chips { min-height: 34px; }
.ap-chips .chip { height: 32px; padding: 0 11px; }
.ap-section .check-line { margin: 12px 0 2px; font-size: 13.5px; }
.ap-submit { position: sticky; bottom: -32px; padding: 14px 0 0; margin-bottom: -6px; background: linear-gradient(transparent, var(--paper) 30%); z-index: 2; }
.ap-submit .btn { gap: 8px; }
.ap-section .field { margin-bottom: 12px; }

/* Sugerencias de clientes */
.lookup { position: relative; }
.lookup-list { position: absolute; z-index: 5; top: calc(100% - 8px); left: 0; right: -40%; min-width: 260px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 22px 44px -18px rgb(28 25 23 / .35); }
.lookup-list[hidden] { display: none; }
.lookup-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.lookup-item b { font-size: 14px; font-weight: 550; }
.lookup-item small { font-size: 12px; color: var(--ink-3); }
.lookup-item:hover, .lookup-item.is-active { background: var(--paper); }
.bad { color: var(--bad); }
.client-card { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--forest) 6%, var(--surface)); border-left: 3px solid var(--forest); font-size: 13px; }
.client-card[hidden] { display: none; }
.client-card b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--forest); }
.client-notes { color: var(--ink-2); font-style: italic; }

@media (max-width: 760px) {
  .ap-pair, .form-grid.cols-2, .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: 1fr; }
  .ap-head, .ap-body { padding-left: 18px; padding-right: 18px; }
  .lookup-list { right: 0; }
}
@media (min-width: 761px) and (max-width: 900px) { .form-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print {
  .agenda-screen { height: auto; overflow: visible; }
  .agenda-left, .agenda-right, .col-toggle { display: none !important; }
  .agenda-main > .agenda-scroll { max-height: none; overflow: visible; }
}
.drop-target .drop-line { display: flex; align-items: baseline; gap: 8px; min-width: 0; color: var(--ink); }
.drop-target .drop-line em { margin-left: auto; font-size: 11px; padding: 0 7px; border-radius: 99px; background: var(--tone); color: #fff; line-height: 1.6; }
.agenda-main .month-day { padding: 8px 10px; gap: 2px; }
.agenda-main .md-foot { white-space: nowrap; overflow: hidden; gap: 8px; }
.agenda-main .md-foot > * { overflow: hidden; text-overflow: ellipsis; }
.agenda-main .md-item { flex: none; }
.agenda-main .month-day > .md-item:nth-of-type(n+3) { display: none; }
@media (min-height: 1000px) { .agenda-main .month-day > .md-item:nth-of-type(n+3) { display: block; } }

@media (max-width: 760px) {
  .agenda-page { padding-top: 10px; }
  .agenda-head .day-nav { flex-wrap: wrap; width: 100%; }
  .agenda-head .day-title { flex: 1 1 100%; order: 3; margin: 2px 0 0; flex-wrap: wrap; }
  .agenda-head .day-title h1 { white-space: normal; }
  .agenda-head .head-actions { width: 100%; }
  .agenda-head .agenda-search { min-width: 0; width: 100%; flex: 1 1 100%; }
  .agenda-head .btn-primary { margin-left: auto; }
  .agenda-left, .agenda-right { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Clientes: cifras, filtros, tabla viva, panel lateral del cliente y modal de la cita
   ========================================================================== */
.clients-head { align-items: flex-end; margin-bottom: 22px; }
.clients-head .muted { margin: 6px 0 0; font-size: 14px; }
.head-count { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 10px; border-radius: 99px; background: var(--forest); color: var(--paper); font-size: 14px; font-weight: 600; letter-spacing: 0; vertical-align: 6px; }
.clients-search { min-width: min(380px, 100%); height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.clients-search:focus-within { border-color: var(--forest); box-shadow: 0 0 0 4px rgb(23 53 45 / .08); }
.clients-search input { border: 0 !important; box-shadow: none !important; background: transparent; padding: 0; min-height: 0; height: 100%; }

.client-figures { display: grid; grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.cf { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cf span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.cf strong { font-size: 28px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; color: var(--forest); font-variant-numeric: tabular-nums; }
.cf small { font-size: 12px; color: var(--ink-3); }
.cf .meter { margin: 4px 0 2px; }
.cf-main { color: var(--paper); border: 0; background: radial-gradient(260px 160px at 100% 0%, var(--forest-2), transparent 70%), var(--forest); }
.cf-main::after { content: ""; position: absolute; right: 14px; bottom: -6px; width: 64px; height: 84px; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #d4693e, var(--terracotta-2)); opacity: .85; }
.cf-main > * { position: relative; z-index: 1; }
.cf-main span, .cf-main small { color: rgb(246 243 238 / .7); }
.cf-main strong { color: var(--paper); font-size: 34px; }
.cf-warn strong { color: var(--ochre); }

.clients-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-filters a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 520; text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
.chip-filters a b { font-size: 11.5px; font-weight: 650; padding: 1px 7px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip-filters a:hover { border-color: var(--ink-3); color: var(--ink); }
.chip-filters a[aria-current] { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.chip-filters a[aria-current] b { background: rgb(255 255 255 / .16); color: var(--paper); }
.sort-form { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.sort-form select { min-height: 36px; padding-top: 4px; padding-bottom: 4px; width: auto; }

.clients-table { border-radius: 14px; }
.clients-table .table td { padding: 12px 18px; }
.clients-table tbody tr { cursor: pointer; transition: background .15s; }
.clients-table tbody tr:hover td, .clients-table tbody tr:focus-visible td { background: color-mix(in srgb, var(--forest) 4%, var(--surface)); }
.clients-table tbody tr:focus-visible { outline: 2px solid var(--forest); outline-offset: -2px; }
.client-cell { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.client-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); font-size: 13px; font-weight: 650; flex: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.client-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.client-name strong { font-size: 14.5px; font-weight: 600; }
.client-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.client-tags:empty { display: none; }
.flag-regular { background: color-mix(in srgb, var(--forest) 12%, var(--surface)); color: var(--forest); }
.flag-dormant { background: color-mix(in srgb, var(--ochre) 18%, var(--surface)); color: #8a5a12; }
.cell-main { display: block; font-variant-numeric: tabular-nums; }
.cell-sub { display: block; font-size: 12.5px; color: var(--ink-3); }
.text-bad { color: var(--bad) !important; }
.next-pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--st-confirmed) 11%, var(--surface)); color: var(--st-confirmed); white-space: nowrap; }
.table-foot { padding: 12px 18px; margin: 0; border-top: 1px solid var(--line); }
@media (max-width: 1180px) { .client-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hide-md { display: none; } }
@media (max-width: 640px) { .client-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cf-main { grid-column: 1 / -1; } .clients-search { min-width: 0; width: 100%; } }

/* Panel lateral del cliente */
.ap-client-panel .ap-head { background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--c) 55%, #fff) 0%, transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--c) 80%, #000), color-mix(in srgb, var(--c) 52%, #000)); }
.ap-top .pill + .pill { margin-left: -4px; }
.client-hero { display: flex; align-items: center; gap: 16px; }
.client-avatar.lg { width: 64px; height: 64px; font-size: 22px; background: rgb(255 255 255 / .92); color: var(--c); box-shadow: 0 12px 24px -12px rgb(0 0 0 / .5); }
.client-hero .ap-when a { color: inherit; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .35); }
.client-actions a, .client-actions button { text-decoration: none; }
.client-actions .is-main { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.client-actions .is-main:hover { background: #fff; color: var(--forest); }
.client-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; }
.client-kpis div { background: var(--surface); border: 1px solid var(--line); }
.client-kpis b { font-size: 17px; }
.ap-note.is-due { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
.ap-note.is-due a { color: var(--ok); font-weight: 600; }
.h3-count { margin-left: auto; font-size: 11px; font-weight: 650; padding: 1px 8px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); letter-spacing: 0; }
.visit-list { max-height: 360px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.visit-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; margin: 0 -6px; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .15s, transform .2s; }
.visit-row + .visit-row { border-top: 1px solid var(--line); border-radius: 0; }
.visit-row:hover { background: var(--paper); border-radius: 8px; }
.visit-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; background: color-mix(in srgb, var(--c) 10%, var(--surface)); box-shadow: inset 3px 0 0 var(--c); flex: none; line-height: 1.05; }
.visit-date b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.visit-date small { font-size: 10.5px; color: var(--ink-3); text-transform: lowercase; }
.visit-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.visit-main b { font-size: 14px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visit-main small { font-size: 12.5px; color: var(--ink-3); }
.visit-row.is-next .visit-date { background: var(--c); box-shadow: none; color: #fff; }
.visit-row.is-next .visit-date small { color: rgb(255 255 255 / .8); }
.visit-row.status-cancelled, .visit-row.status-no_show { opacity: .62; }
.fav-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.fav-row:last-child { border-bottom: 0; }
.fav-row b { font-weight: 650; font-variant-numeric: tabular-nums; }
.fav-staff > span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
@media (max-width: 760px) { .client-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Modal: la cita encima del panel del cliente */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgb(18 26 23 / .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s; }
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }
.modal-card { position: relative; width: min(720px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); transform: translateY(18px) scale(.97); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.modal.is-open .modal-card { transform: none; }
.modal-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.modal.is-loading .modal-body { opacity: .5; transition: opacity .2s; }
.modal.is-loading .modal-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--terracotta), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: loading 1s linear infinite; }
.modal .ap-submit { bottom: -32px; }
@media (max-width: 640px) { .modal { padding: 0; place-items: end stretch; } .modal-card { width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; } }
.ap-tabs a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid rgb(255 255 255 / .28); background: rgb(0 0 0 / .12); color: rgb(255 255 255 / .86); font-size: 13px; font-weight: 550; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.ap-tabs a .icon { width: 15px; height: 15px; }
.ap-tabs a:hover { color: #fff; border-color: rgb(255 255 255 / .6); }

/* ==========================================================================
   Página de reservas v2: cabecera con equipo y estado en vivo, ventajas, servicios en tarjetas,
   «Tu cita» en vivo y barra inferior en el móvil
   ========================================================================== */
.biz-hero .biz-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px 48px; padding-top: clamp(34px, 6vw, 70px); padding-bottom: clamp(70px, 9vw, 104px); }
.biz-hero::before { right: auto; left: 52%; width: clamp(140px, 19vw, 250px); animation: arch-breathe 9s ease-in-out infinite; }
@keyframes arch-breathe { 50% { transform: translateY(-10px) scaleY(1.03); } }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; z-index: 0; }
.orb-1 { width: 340px; height: 340px; right: -90px; top: -120px; background: radial-gradient(circle at 30% 30%, rgb(255 255 255 / .22), transparent 65%); animation: orb-float 14s ease-in-out infinite; }
.orb-2 { width: 220px; height: 220px; left: -60px; bottom: -110px; background: radial-gradient(circle at 60% 40%, rgb(0 0 0 / .22), transparent 70%); animation: orb-float 18s ease-in-out infinite reverse; }
@keyframes orb-float { 50% { transform: translate(-24px, 18px) scale(1.06); } }
.biz-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.biz-ident { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }
.biz-hero .biz-id h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.biz-hero .biz-line { gap: 8px 18px; }
.biz-hero .biz-line a { display: inline-flex; align-items: center; gap: 6px; }
.biz-hero .biz-line .icon { width: 15px; height: 15px; opacity: .8; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.live-chip, .hero-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; background: rgb(0 0 0 / .16); border: 1px solid rgb(255 255 255 / .2); font-size: 13.5px; color: rgb(255 248 242 / .92); backdrop-filter: blur(6px); }
.hero-chip b { font-weight: 650; color: #fff; }
.hero-chip .icon { width: 15px; height: 15px; color: #ffd8a8; }
.live-chip i { width: 8px; height: 8px; border-radius: 50%; background: #f0a69a; box-shadow: 0 0 0 3px rgb(240 166 154 / .25); }
.live-chip.is-open i { background: #6be0ae; box-shadow: 0 0 0 3px rgb(107 224 174 / .25); animation: pulse-live 1.8s ease-in-out infinite; }
.hero-cta { align-self: flex-start; gap: 9px; height: 48px; padding: 0 22px; border-radius: 99px; background: #fff8f2; color: var(--brand); font-weight: 650; box-shadow: 0 18px 30px -16px rgb(0 0 0 / .55); }
.hero-cta:hover { background: #fff; color: var(--brand); transform: translateY(-2px); }

.hero-team { position: relative; z-index: 1; padding: 20px 22px 18px; border-radius: 20px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -36px rgb(0 0 0 / .6); min-width: 300px; }
.hero-team-title { margin: 0 0 14px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 248 242 / .75); font-weight: 600; }
.team-arches { display: flex; gap: 10px; }
.arch-av { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 66px; animation: team-bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s); }
.arch-av b { display: grid; place-items: center; width: 62px; height: 74px; padding-top: 6px; border-radius: 999px 999px 10px 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); color: #fff; font-size: 19px; font-weight: 650; box-shadow: 0 14px 22px -14px rgb(0 0 0 / .6), inset 0 0 0 1px rgb(255 255 255 / .25); }
.arch-av small { font-size: 12px; color: rgb(255 248 242 / .9); max-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes team-bob { 50% { transform: translateY(-5px); } }
.hero-team-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .16); font-size: 13px; color: rgb(255 248 242 / .8); }

.perks { position: relative; z-index: 2; margin-top: -46px; padding: 0 var(--gutter); }
.perks-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 50px -36px rgb(28 25 23 / .45); overflow: hidden; }
.perk { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk .icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); flex: none; }
.perk p { margin: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.perk b { font-size: 14px; font-weight: 600; color: var(--ink); }

.booking-page .booking-main { padding-top: clamp(28px, 4vw, 44px); }
.booking-page .booking-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.booking-page .step h2 { font-family: var(--sans); font-weight: 650; letter-spacing: -.03em; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.booking-page .stepped .step.is-done h2 { font-size: 1.15rem; }

/* Servicios en tarjetas */
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.cat-chips button { height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 13.5px; font-weight: 550; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.cat-chips button:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); }
.cat-chips button.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.service-group[hidden] { display: none; }
.service-group legend { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: var(--ink-3); margin-bottom: 10px; }
.service-group + .service-group { margin-top: 22px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .25s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.svc-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); box-shadow: 0 18px 30px -24px rgb(28 25 23 / .45); }
.svc-card input { position: absolute; opacity: 0; pointer-events: none; }
.svc-top { display: flex; align-items: flex-start; gap: 8px; padding-right: 26px; }
.svc-title { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.svc-badge { flex: none; font-style: normal; font-size: 10.5px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand); white-space: nowrap; }
.svc-desc { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.svc-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.svc-dur { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); }
.svc-dur .icon { width: 14px; height: 14px; color: var(--ink-3); }
.svc-who { display: flex; }
.svc-who i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: 8.5px; font-weight: 650; box-shadow: 0 0 0 2px var(--surface); }
.svc-who i + i { margin-left: -5px; }
.svc-cost { margin-left: auto; font-size: 17px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.svc-check { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); color: transparent; transition: background .2s, border-color .2s, color .2s, transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.svc-check .icon { width: 13px; height: 13px; stroke-width: 3; }
.svc-card:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); box-shadow: 0 0 0 1px var(--brand), 0 18px 30px -24px color-mix(in srgb, var(--brand) 70%, #000); }
.svc-card:has(input:checked) .svc-check { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.1); }
.svc-card:has(input:checked) .svc-cost { color: var(--brand); }
.svc-card:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Profesionales */
.booking-page .staff-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.booking-page .person { border-radius: 14px; padding: 14px; }
.booking-page .person-mono { width: 48px; height: 56px; padding-top: 4px; border-radius: 999px 999px 8px 8px; border: 0; background: color-mix(in srgb, var(--c, var(--brand)) 14%, var(--surface)); color: var(--c, var(--brand)); font-family: var(--sans); font-size: 16px; font-weight: 650; }
.booking-page .person-mono.any { background: var(--paper-2); color: var(--ink-2); }
.booking-page .person-mono.any .icon { width: 20px; height: 20px; }
.booking-page .person:has(input:checked) { border-color: var(--c, var(--brand)); box-shadow: 0 0 0 1px var(--c, var(--brand)); }

/* Calendario y horas, con la letra del resto */
.booking-page .cal-title, .booking-page .times-title { font-family: var(--sans); font-weight: 650; letter-spacing: -.02em; font-size: 18px; }
.booking-page .calendar { border-radius: 14px; }
.booking-page .time-btn { border-radius: 10px; font-weight: 550; }
.booking-page .summary-card { border-radius: 14px; border-left-width: 4px; }
.booking-page .summary-card strong { font-family: var(--sans); font-weight: 650; font-size: 17px; }
.booking-page .btn-brand { gap: 8px; }

/* «Tu cita» */
.booking-page .biz-aside { top: 20px; gap: 0; }
.cart { position: relative; overflow: hidden; margin-bottom: 14px; padding: 18px 20px 16px; border-radius: 18px; color: #fff8f2; background: radial-gradient(260px 160px at 100% 0%, color-mix(in srgb, var(--brand) 55%, #fff), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--brand) 92%, #fff), color-mix(in srgb, var(--brand) 72%, #000)); box-shadow: 0 26px 46px -30px color-mix(in srgb, var(--brand) 80%, #000); }
.cart::after { content: ""; position: absolute; right: 16px; bottom: -10px; width: 70px; height: 92px; border-radius: 999px 999px 0 0; background: rgb(255 255 255 / .1); pointer-events: none; }
.cart h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: rgb(255 248 242 / .8); }
.cart-rows { margin: 0; display: grid; gap: 0; }
.cart-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgb(255 255 255 / .14); font-size: 13.5px; }
.cart-rows dt { color: rgb(255 248 242 / .7); }
.cart-rows dd { margin: 0; text-align: right; font-weight: 550; color: rgb(255 248 242 / .55); }
.cart-rows .is-set dd { color: #fff; animation: cart-in .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes cart-in { from { opacity: 0; transform: translateX(8px); } }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 0; font-size: 13.5px; color: rgb(255 248 242 / .8); }
.cart-total b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.cart-hint { position: relative; z-index: 1; margin: 10px 0 0; font-size: 12.5px; color: rgb(255 248 242 / .78); }
.booking-page .biz-about { font-family: var(--sans); font-size: 15px; line-height: 1.55; padding: 16px 18px; border-radius: 14px; margin-bottom: 4px; }
.booking-page .aside-block h3 { display: flex; align-items: center; gap: 8px; }
.booking-page .aside-block h3 .icon { width: 15px; height: 15px; }
.mini-live { margin-left: auto; font-size: 10.5px; letter-spacing: .04em; text-transform: none; font-weight: 650; padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, var(--bad) 12%, var(--surface)); color: var(--bad); }
.mini-live.is-open { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.hours-list .is-today { margin: 0 -10px; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); font-weight: 600; }
.hours-list .is-today dt small { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-left: 4px; }
.where { margin: 0 0 10px !important; color: var(--ink); }
.contact-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-btns .btn { gap: 6px; }
.contact-btns .icon { width: 15px; height: 15px; }

/* Barra inferior (móvil) */
.book-bar { display: none; }
@media (max-width: 960px) {
  .biz-hero .biz-inner { grid-template-columns: 1fr; }
  .biz-hero::before { left: auto; right: 6%; }
  .hero-team { min-width: 0; }
  .perks-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .booking-page .booking-layout { grid-template-columns: 1fr; }
  .cart { display: none; }
  .book-bar:not([hidden]) { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--ink); color: var(--paper); box-shadow: 0 20px 40px -16px rgb(0 0 0 / .55); animation: bar-in .4s cubic-bezier(.2, .8, .2, 1); }
  .book-bar p { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; font-size: 12.5px; color: rgb(246 243 238 / .7); }
  .book-bar b { font-size: 14px; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .book-bar .btn { flex: none; }
  body.has-book-bar .booking-main { padding-bottom: 110px; }
}
@keyframes bar-in { from { transform: translateY(120%); } }
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .perks-inner { grid-template-columns: 1fr; }
  .perk + .perk { border-left: 0; border-top: 1px solid var(--line); }
  .team-arches { gap: 6px; }
  .arch-av { width: 56px; }
  .arch-av b { width: 52px; height: 62px; font-size: 16px; }
  .biz-hero .biz-inner { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .arch-av, .hero-orb, .biz-hero::before { animation: none !important; } }
.booking-page .booking-layout { align-items: stretch; }
.booking-page .biz-aside { position: static; display: block; align-self: stretch; }
.booking-page .cart { position: sticky; top: 16px; z-index: 3; }
.booking-page .biz-aside > * + * { margin-top: 0; }
@media (max-width: 640px) {
  .hero-team { display: none; }
  .biz-hero::before { right: -60px; left: auto; opacity: .55; }
  .biz-hero .biz-inner { gap: 18px; padding-top: 28px; }
  .biz-ident { align-items: flex-start; }
  .hero-cta { align-self: stretch; justify-content: center; }
}
@media (max-width: 640px) {
  .perks-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perk { padding: 12px; gap: 10px; align-items: flex-start; }
  .perk + .perk { border-top: 0; }
  .perk:nth-child(2n) { border-left: 1px solid var(--line); }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .perk .icon { width: 32px; height: 32px; padding: 8px; border-radius: 10px; }
  .perk b { font-size: 12.5px; line-height: 1.25; }
  .perk span { display: none; }
}

/* ==========================================================================
   Panel v3: agenda más legible, avisos nuevos, servicios, equipo, horario e informes
   ========================================================================== */

/* ---------- Avisos (toasts) ---------- */
.toasts { top: calc(var(--bar-h) + 16px); right: 20px; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { position: relative; overflow: hidden; align-items: center; gap: 14px; padding: 14px 14px 16px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgb(28 25 23 / .45), 0 2px 6px rgb(28 25 23 / .06); font-size: 14px; font-weight: 520; line-height: 1.4; animation: toast-pop .5s cubic-bezier(.2, 1.3, .4, 1); }
.toast::before { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 17px no-repeat; box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 16%, transparent); }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--ok); transform-origin: left; animation: toast-time 4.5s linear forwards; }
.toast-error { background: var(--surface); }
.toast-error::before { background-color: var(--bad); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'><path d='M12 7v6M12 17h.01'/></svg>"); box-shadow: 0 0 0 5px color-mix(in srgb, var(--bad) 16%, transparent); }
.toast-error::after { background: var(--bad); animation-duration: 9s; }
.toast-info::before, .toast-warning::before { background-color: var(--ochre); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'><path d='M12 11v6M12 7h.01'/></svg>"); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ochre) 18%, transparent); }
.toast-info::after, .toast-warning::after { background: var(--ochre); }
.toast-close { width: 28px; height: 28px; flex: none; border-radius: 50%; color: var(--ink-3); opacity: 1; transition: background .15s, color .15s; }
.toast-close:hover { background: var(--paper-2); color: var(--ink); }
.toast.is-gone { opacity: 0; transform: translateX(30px); }
@keyframes toast-pop { from { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes toast-time { to { transform: scaleX(0); } }

/* ---------- Agenda: citas más legibles ---------- */
.col-head { position: relative; padding: 12px 12px 11px; }
.col-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.col-head small { display: block; font-size: 11.5px; }
.col-count { margin-left: auto; min-width: 26px; height: 24px; padding: 0 8px; display: grid; place-items: center; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--ink); font-size: 12px; font-weight: 650; }
.half-line { position: absolute; left: 0; right: 0; border-top: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); }
.col { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 3%, transparent), transparent 40%); }
.past-veil { position: absolute; left: var(--gw); right: 0; top: 0; z-index: 1; background: rgb(246 243 238 / .45); pointer-events: none; }
.now-line { z-index: 6; border-top: 2px solid var(--terracotta); }
.now-line b { position: absolute; left: calc(-1 * var(--gw) + 6px); top: -11px; padding: 2px 6px; border-radius: 99px; background: var(--terracotta); color: #fff; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.now-line span { left: -5px; top: -5px; width: 9px; height: 9px; }

.agenda .block { left: 4px; right: 4px; gap: 1px; padding: 5px 8px 5px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); box-shadow: 0 1px 2px rgb(28 25 23 / .06); color: var(--ink); }
.agenda .block:hover { background: color-mix(in srgb, var(--c) 20%, var(--surface)); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--c) 70%, #000); transform: none; z-index: 5; }
.block-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.agenda .block-time { font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.block-state { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 1px 6px; border-radius: 99px; background: var(--surface); color: var(--ink-2); }
.agenda .block strong { font-size: 13px; font-weight: 650; color: var(--ink); }
.agenda .block-service { font-size: 11.5px; color: var(--ink-2); }
.block-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 2px; }
.block-flags:empty { display: none; }
.agenda .block.is-short { gap: 6px; padding-top: 1px; padding-bottom: 1px; }
.agenda .block.is-short .block-top { flex: none; }
.agenda .block.is-short .block-service, .agenda .block.is-short .block-flags, .agenda .block.is-mid .block-flags { display: none; }
.agenda .block.is-short .block-state { display: none; }
/* Estados: además del color, una etiqueta con palabras */
.agenda .block.status-pending { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ochre) 9%, var(--surface)), color-mix(in srgb, var(--ochre) 9%, var(--surface)) 6px, var(--surface) 6px, var(--surface) 12px); border: 1.5px dashed var(--ochre); border-left: 4px solid var(--ochre); }
.agenda .block.status-pending .block-state { background: var(--ochre); color: #fff; }
.agenda .block.status-arrived { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 45%, transparent); border-left-color: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 14%, transparent); }
.agenda .block.status-arrived .block-state { background: var(--ok); color: #fff; }
.agenda .block.status-arrived .block-state i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse-dot 1.6s ease-in-out infinite; }
.agenda .block.status-completed { opacity: 1; filter: saturate(.25); background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.agenda .block.status-completed strong { color: var(--ink-2); }
.agenda .block.status-no_show { opacity: .75; background: color-mix(in srgb, var(--bad) 6%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 25%, transparent); border-left-color: var(--bad); }
.agenda .block.status-no_show .block-state { background: var(--bad); color: #fff; }
.legend-card .legend .key { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Clientes: historial ---------- */
.visit-when { display: flex; flex-direction: column; width: 96px; flex: none; line-height: 1.25; padding-left: 10px; border-left: 3px solid var(--c); }
.visit-when b { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.visit-when small { font-size: 11.5px; color: var(--ink-3); text-transform: capitalize; }
.visit-row.is-next .visit-when b { color: var(--c); }
.dot-c { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: 1px; }
[data-live-part] { transition: opacity .2s; }
[data-live-part].is-updating { opacity: .55; }
[data-live-part].is-fresh { animation: fade-in .3s ease; }
@keyframes fade-in { from { opacity: .4; } }

/* ---------- Servicios ---------- */
.cf-text { font-size: 19px !important; line-height: 1.25 !important; padding: 5px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-tile { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--terracotta) 12%, var(--surface)); color: var(--terracotta-2); }
.svc-tile .icon { width: 18px; height: 18px; }
.is-off .svc-tile { background: var(--paper-2); color: var(--ink-3); }
.clients-table tr.is-off td { opacity: .62; }
.use-bar { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.use-bar .meter { flex: 1; height: 6px; }
.use-bar span { display: inline-flex; align-items: baseline; gap: 6px; min-width: 44px; font-variant-numeric: tabular-nums; }
.trend { font-style: normal; font-size: 11px; font-weight: 650; }
.trend.is-up { color: var(--ok); }
.trend.is-down { color: var(--bad); }
.pick-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.pick:hover { border-color: var(--ink-3); }
.pick input { margin: 0; }
.pick:has(input:checked) { border-color: var(--forest); background: color-mix(in srgb, var(--forest) 8%, var(--surface)); }
.pick small { margin-left: 2px; }
.share-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) auto; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.share-row:last-child { border-bottom: 0; }
.share-row > span { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-row > b { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; min-width: 52px; }
.share-row .meter { height: 6px; }
.ap-entity .ap-head { background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--c) 55%, #fff) 0%, transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--c) 82%, #000), color-mix(in srgb, var(--c) 55%, #000)); }
.ap-submit { display: flex; gap: 10px; align-items: center; }
.ap-submit .btn-primary { flex: 1; }

/* ---------- Equipo ---------- */
.team-figures { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); }
.team-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.team-card { padding: 20px; gap: 0; }
.tc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; margin-bottom: 14px; }
.team-card .tc-head .staff-avatar { margin: 0; }
.tc-today { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 13px; color: var(--ink-2); }
.tc-today b { font-size: 22px; font-weight: 700; color: var(--c); line-height: 1; letter-spacing: -.02em; }
.tc-today small { color: var(--ink-3); font-size: 12px; }
.team-card > strong { font-size: 21px; font-weight: 650; }
.tc-load { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin: 16px 0 12px; font-size: 12.5px; color: var(--ink-3); }
.tc-load b { color: var(--ink); font-weight: 650; }
.tc-load .meter { grid-column: 1 / -1; height: 7px; }
.tc-load .meter b { background: var(--c); }
.tc-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border-radius: 10px; overflow: hidden; }
.tc-stats div { padding: 8px 10px; background: var(--paper); }
.tc-stats dt { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tc-stats dd { margin: 0; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tc-star { display: flex; align-items: center; gap: 6px; width: 100%; margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-star .icon { width: 14px; height: 14px; flex: none; color: var(--c); }
.tc-star b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.team-card .team-meta { display: flex; flex-direction: column; gap: 6px; }
.tc-days { display: flex; gap: 3px; }
.tc-days i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-style: normal; font-size: 10.5px; font-weight: 650; background: var(--paper-2); color: var(--ink-3); }
.tc-days i.is-on { background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: var(--ink); }
.team-add { align-items: center; justify-content: center; text-align: center; gap: 6px; border: 1.5px dashed var(--line-2); background: transparent; min-height: 260px; }
.team-add::before { display: none; }
.team-add:hover { border-color: var(--forest); background: var(--surface); }
.add-arch { display: grid; place-items: center; width: 64px; height: 76px; margin-bottom: 10px; border-radius: 999px 999px 10px 10px; background: var(--forest); color: var(--paper); }
.team-add small { max-width: 220px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .35); transition: transform .2s, box-shadow .2s; }
.swatch:hover { transform: scale(1.1); }
.swatch.is-on { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--c); }
.swatch-custom input[type="color"] { width: 40px; height: 32px; padding: 2px; border-radius: 10px; cursor: pointer; }
.staff-arch { border-radius: 999px 999px 12px 12px !important; height: 74px !important; }

/* ---------- Horario ---------- */
.week-card { margin-bottom: 22px; }
.week-card .card-title .muted { margin-left: 8px; font-weight: 400; letter-spacing: 0; }
.week-board { position: relative; padding-top: 22px; }
.wb-ticks { position: absolute; left: 110px; right: 0; top: 0; height: 100%; pointer-events: none; }
.wb-ticks span { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wb-ticks span::after { content: ""; position: absolute; left: 50%; top: 18px; height: calc(var(--rows-h, 600px)); border-left: 1px dashed var(--line); }
.wb-day { display: grid; grid-template-columns: 110px 1fr; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.wb-day.is-today { background: linear-gradient(90deg, color-mix(in srgb, var(--terracotta) 7%, transparent), transparent); }
.wb-label { display: flex; align-items: baseline; gap: 6px; padding-left: 6px; font-size: 14px; }
.wb-label b { font-weight: 600; }
.wb-label small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--terracotta); }
.wb-lanes { position: relative; display: grid; gap: 3px; overflow: hidden; }
.wb-lane { position: relative; height: 8px; }
.wb-lane i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: color-mix(in srgb, var(--c) 70%, var(--surface)); }
.wb-business { height: 24px; }
.wb-business i { background: var(--forest); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wb-business i span { color: var(--paper); font-size: 11.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wb-business em { font-style: normal; font-size: 12.5px; color: var(--ink-3); line-height: 24px; }
.hours-cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.card-title .icon { width: 18px; height: 18px; color: var(--terracotta); }
.small-count { font-size: 12px; min-width: 26px; height: 24px; vertical-align: 2px; }
.off-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.off-row:last-of-type { margin-bottom: 14px; }
.off-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; height: 54px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, var(--surface)); box-shadow: inset 0 3px 0 var(--c); line-height: 1.05; }
.off-date b { font-size: 19px; font-weight: 700; }
.off-date small { font-size: 11px; color: var(--ink-3); text-transform: lowercase; }
.off-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.off-main b { font-size: 14px; font-weight: 600; }
.off-main small { font-size: 12.5px; color: var(--ink-3); }
.off-tags { display: flex; gap: 4px; margin-top: 3px; }
.off-row form { margin: 0; }
.off-row.is-now .off-date { background: var(--c); color: #fff; box-shadow: none; }
.off-row.is-now .off-date small { color: rgb(255 255 255 / .8); }

/* ---------- Informes ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.kpi-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); }
.kpi strong { font-size: 28px; font-weight: 680; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.delta { font-style: normal; font-weight: 700; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.delta.is-good { background: color-mix(in srgb, var(--ok) 13%, var(--surface)); color: var(--ok); }
.delta.is-bad { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); color: var(--bad); }
.delta.is-flat { background: var(--paper-2); color: var(--ink-3); }
.kpi-main { color: var(--paper); border: 0; background: radial-gradient(260px 160px at 100% 0%, var(--forest-2), transparent 70%), var(--forest); }
.kpi-main .kpi-label, .kpi-main .kpi-foot { color: rgb(246 243 238 / .7); }
.kpi-main strong { color: var(--paper); }
.kpi-main .delta.is-good { background: rgb(107 224 174 / .18); color: #8ff0c3; }
.kpi-main .delta.is-bad { background: rgb(240 140 120 / .2); color: #ffb3a3; }
.report-card { margin-bottom: 18px; }
.report-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
.report-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rc-total { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.rc-total b { color: var(--ink); font-size: 16px; }
.rc-sub { margin-top: 22px; }
.timeline { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; height: 230px; padding-top: 34px; }
.tl-col { position: relative; display: flex; flex-direction: column; align-items: stretch; height: 100%; outline: none; }
.tl-bar { flex: 1; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line-2); }
.tl-bar i { display: block; width: 100%; max-width: 42px; margin: 0 auto; min-height: 2px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--forest) 72%, var(--surface)); transform-origin: bottom; animation: grow-bar .8s cubic-bezier(.16, 1, .3, 1) both; transition: background .15s; }
.tl-col:hover .tl-bar i, .tl-col:focus .tl-bar i { background: var(--forest); }
.tl-col.is-today .tl-bar i { background: var(--terracotta); }
.tl-label { display: flex; flex-direction: column; align-items: center; padding-top: 6px; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.2; }
.tl-label small { font-size: 9.5px; color: var(--ink-3); }
.tl-tip { position: absolute; left: 50%; bottom: calc(100% - 28px); transform: translate(-50%, 4px); z-index: 3; display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 11.5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.tl-tip b { font-size: 13px; }
.tl-col:hover .tl-tip, .tl-col:focus .tl-tip { opacity: 1; transform: translate(-50%, 0); }
.timeline[style*="--n: 7"] .tl-bar i, .timeline[style*="--n: 1"] .tl-bar i { max-width: 64px; }
.heatmap { display: grid; grid-template-columns: 40px repeat(var(--h), minmax(0, 1fr)); gap: 3px; }
.hm-hour { font-size: 10.5px; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.hm-day { font-size: 12px; color: var(--ink-2); align-self: center; }
.hm-cell { display: block; aspect-ratio: 1.4; border-radius: 4px; background: var(--paper-2); transition: transform .15s, box-shadow .15s; }
.heatmap .hm-cell:hover { transform: scale(1.15); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--ink-3); }
.hm-cell.lv-1 { background: color-mix(in srgb, var(--forest) 16%, var(--surface)); }
.hm-cell.lv-2 { background: color-mix(in srgb, var(--forest) 32%, var(--surface)); }
.hm-cell.lv-3 { background: color-mix(in srgb, var(--forest) 50%, var(--surface)); }
.hm-cell.lv-4 { background: color-mix(in srgb, var(--forest) 72%, var(--surface)); }
.hm-cell.lv-5 { background: var(--forest); }
.hm-scale { display: flex; align-items: center; gap: 4px; margin: 12px 0 0; font-size: 11px; color: var(--ink-3); }
.hm-scale .hm-cell { width: 16px; aspect-ratio: auto; height: 12px; }
.hm-scale span:first-child { margin-right: 4px; }
.hm-scale span:last-child { margin-left: 4px; }
.insights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.insights .card-title { grid-column: 1 / -1; margin-bottom: 4px; }
.insight { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--paper); }
.insight > span { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--forest) 10%, var(--surface)); color: var(--forest); }
.insight > span .icon { width: 16px; height: 16px; }
.insight p { margin: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.insight b { font-size: 16px; font-weight: 680; color: var(--ink); letter-spacing: -.01em; }
.rtable td, .rtable th { padding-left: 8px !important; padding-right: 8px !important; }
.rtable .use-bar { min-width: 140px; }
.stack-bar { display: flex; gap: 2px; height: 14px; margin: 4px 0 14px; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.stack-bar i { display: block; min-width: 3px; }
.stack-bar .st-pending, .key-pending { background: var(--st-pending); }
.stack-bar .st-confirmed { background: var(--st-confirmed); }
.stack-bar .st-arrived { background: var(--st-arrived); }
.stack-bar .st-completed { background: var(--st-completed); }
.stack-bar .st-no_show { background: var(--st-no_show); }
.stack-bar .st-cancelled, .key-cancelled { background: var(--st-cancelled); }
.cl-new { background: var(--terracotta); }
.cl-back { background: var(--forest); }
.report-card .mini-row .key { width: 10px; height: 10px; border-radius: 3px; margin: 0 8px 0 0; vertical-align: 0; }
.rank { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--paper-2); font-size: 11px; font-weight: 700; }
.report-card .mini-row > span:nth-child(2) { flex: 1; }
@media (max-width: 1180px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .report-row, .report-row.three, .hours-cols { grid-template-columns: 1fr; } .team-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .insights { grid-template-columns: 1fr; } .wb-day { grid-template-columns: 70px 1fr; } .wb-ticks { left: 70px; } .tl-label small { display: none; } }
.agenda .block.is-mid .block-service { display: block; }
.agenda .block.is-mid { justify-content: flex-start; padding-top: 4px; }
.clients-head .head-actions { flex-wrap: nowrap; }
.clients-head .head-actions .clients-search { min-width: 280px; }
@media (max-width: 760px) { .clients-head .head-actions { flex-wrap: wrap; width: 100%; } .clients-head .head-actions .clients-search { min-width: 0; flex: 1 1 100%; } }
.team-grid .team-card::before { top: 40px; right: auto; left: -46px; width: 110px; height: 130px; transform: rotate(-14deg); opacity: .8; }
.team-grid .team-card:hover::before { transform: rotate(-4deg) translate(8px, -6px) scale(1.08); }
.wb-lane i, .tl-bar i, .stack-bar i, .meter b { font-style: normal; }
.heatmap .hm-cell { aspect-ratio: auto; height: 24px; }

/* ==========================================================================
   v4: logotipo con el arco, stepper de reservas y pasos suaves
   ========================================================================== */
.wordmark { display: inline-flex; align-items: center; gap: .32em; }
.brand-mark { display: inline-flex; flex: none; }
.brand-mark svg { display: block; width: .95em; height: 1.08em; overflow: visible; }
.wordmark .wm { line-height: 1; }
.wordmark .brand-mark { font-size: 26px; }
.topbar .wordmark .brand-mark { font-size: 24px; }
.brand-sun { transform-box: fill-box; transform-origin: center; transition: transform .5s cubic-bezier(.2, 1.4, .4, 1); }
.wordmark:hover .brand-sun { transform: translateY(-2px) scale(1.15); }
.brand-mark path:first-child { filter: drop-shadow(0 2px 3px rgb(0 0 0 / .18)); }
@media (max-width: 640px) { .topbar .wordmark .brand-mark { font-size: 21px; } }

/* Cabecera de reservas sin la franja de ventajas */
.biz-hero .biz-inner { padding-bottom: clamp(30px, 5vw, 56px); }
.booking-page .booking-main { padding-top: clamp(26px, 4vw, 42px); }
.field input[hidden] { display: none; }

/* Stepper */
.progress { display: none !important; }
.stepper { --progress: 0; position: sticky; top: 0; z-index: 6; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; list-style: none; margin: 0 0 26px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); box-shadow: 0 18px 34px -30px rgb(28 25 23 / .5); }
.booking-form:not(.stepped) .stepper { display: none; }
.stepper::before, .stepper::after { content: ""; position: absolute; top: 31px; height: 3px; border-radius: 3px; left: calc(16px + (100% - 32px) / (var(--n, 4) * 2)); }
.stepper::before { right: calc(16px + (100% - 32px) / (var(--n, 4) * 2)); background: var(--line); }
.stepper::after { width: calc((100% - 32px) * (1 - 1 / var(--n, 4)) * var(--progress)); background: var(--brand); transition: width .6s cubic-bezier(.22, .8, .24, 1); }
.stepper:has(li:nth-child(3):last-child) { --n: 3; }
.stepper li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; min-width: 0; }
.st-dot { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink-3); font: inherit; font-size: 14px; font-weight: 650; cursor: default; transition: background .35s, border-color .35s, color .35s, transform .35s cubic-bezier(.2, 1.4, .4, 1), box-shadow .35s; }
.st-dot .icon { position: absolute; width: 17px; height: 17px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.2, 1.4, .4, 1); }
.st-dot span { transition: opacity .2s, transform .3s; }
.st-text { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.st-text b { font-size: 13px; font-weight: 650; color: var(--ink-3); transition: color .3s; }
.st-text small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.stepper li.is-now .st-dot { border-color: var(--brand); background: var(--brand); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 16%, transparent); }
.stepper li.is-now .st-text b { color: var(--ink); }
.stepper li.is-done .st-dot { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand); cursor: pointer; }
.stepper li.is-done .st-dot span { opacity: 0; transform: scale(.4); }
.stepper li.is-done .st-dot .icon { opacity: 1; transform: none; }
.stepper li.is-done .st-text b { color: var(--ink-2); }
.stepper li.is-done .st-text small { color: var(--brand); font-weight: 600; }
.stepper li.is-done { cursor: pointer; }
.stepper li.is-done:hover .st-dot { transform: scale(1.08); }

/* Pasos: sin saltos, el plegado lo hace booking.js */
.booking-page .step-body { animation: none; }
.booking-page .step { scroll-margin-top: 110px; transition: padding .4s cubic-bezier(.22, .8, .24, 1); }
.booking-page .step h2 { transition: font-size .4s cubic-bezier(.22, .8, .24, 1), color .3s, margin .4s; }
.booking-page .step-summary:not([hidden]) { animation: summary-in .45s cubic-bezier(.22, .8, .24, 1) both; }
@keyframes summary-in { from { opacity: 0; transform: translateY(-4px); } }
.booking-page .step .step-n { transition: background .35s, color .35s, box-shadow .35s, transform .35s; }

@media (max-width: 640px) {
  .stepper { padding: 12px 8px; margin-bottom: 20px; }
  .stepper::before, .stepper::after { top: 27px; left: calc(8px + (100% - 16px) / (var(--n, 4) * 2)); }
  .stepper::before { right: calc(8px + (100% - 16px) / (var(--n, 4) * 2)); }
  .stepper::after { width: calc((100% - 16px) * (1 - 1 / var(--n, 4)) * var(--progress)); }
  .st-dot { width: 30px; height: 30px; font-size: 12.5px; }
  .st-text b { font-size: 11.5px; }
  .st-text small { display: none; }
  .booking-page .step { scroll-margin-top: 90px; }
}
.stepper { top: 10px; }

/* ==========================================================================
   v5: sin franjas de color en el borde de tarjetas redondeadas.
   El color va en el fondo, en un borde fino completo, en un punto o en una pastilla.
   ========================================================================== */

/* Citas en la agenda (día y semana): tarjeta teñida con borde completo, sin franja lateral */
.agenda .block, .week .block { border: 1px solid color-mix(in srgb, var(--c) 42%, transparent); border-radius: 6px; padding-left: 8px; background: color-mix(in srgb, var(--c) 15%, var(--surface)); }
.agenda .block:hover { border-color: var(--c); }
.agenda .block .block-time { color: color-mix(in srgb, var(--c) 78%, var(--ink)); }
.agenda .block .block-time::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 2px; background: var(--c); vertical-align: 0; }
.agenda .block.status-pending { border: 1.5px dashed var(--ochre); }
.agenda .block.status-arrived { border: 1.5px solid var(--ok); }
.agenda .block.status-no_show { border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); }
.agenda .block.status-completed { border-color: var(--line-2); }
.drag-origin { border-radius: 6px; }
.shot-block { border-left: 0; border: 1px solid color-mix(in srgb, var(--c) 42%, transparent); border-radius: 5px; }
.shot-block.is-pending { border: 1.5px dashed var(--ochre); }

/* Mes: un punto en lugar de la raya */
.md-item { border-left: 0; padding-left: 0; }
.md-item::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--c); vertical-align: 1px; }

/* Columnas de la agenda: la hora es una pastilla con el color del profesional */
.side-time { border-left: 0; padding: 3px 7px; border-radius: 6px; background: color-mix(in srgb, var(--c) 16%, var(--surface)); text-align: center; }
.side-now .side-time { background: rgb(255 255 255 / .1); color: var(--paper); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 70%, #fff); }
.team-row.is-on { box-shadow: none; background: color-mix(in srgb, var(--c, var(--forest)) 11%, var(--surface)); outline: 1px solid color-mix(in srgb, var(--c, var(--forest)) 35%, transparent); outline-offset: -1px; }
.wait-row.has-match { box-shadow: none; margin: 4px -8px; padding: 10px 8px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }

/* Notas del panel: fondo teñido y etiqueta, sin franja */
.ap-note { border-left: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.ap-note.is-warn { border-color: color-mix(in srgb, var(--ochre) 40%, transparent); background: color-mix(in srgb, var(--ochre) 9%, var(--surface)); }
.ap-note.is-warn b { color: #8a5a12; }
.ap-note.is-due { border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.ap-note.is-due b { color: var(--ok); }
.client-card { border-left: 0; border: 1px solid color-mix(in srgb, var(--forest) 22%, transparent); border-radius: 10px; }
.alert { border-left: 0; border: 1px solid currentColor; }

/* Historial y ausencias */
.visit-when { border-left: 0; padding-left: 0; }
.visit-date, .off-date { box-shadow: none; }
.off-row.is-now .off-date { box-shadow: none; }

/* Página de reservas */
.svc:has(input:checked) { box-shadow: none; }
.summary-card, .booking-page .summary-card { border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.biz-about, .booking-page .biz-about { position: relative; border-left: 0; border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line)); padding-top: 34px; }
.biz-about::before { content: "“"; position: absolute; top: 2px; left: 16px; font-family: "Instrument Serif", Georgia, serif; font-size: 52px; line-height: 1; color: var(--brand); opacity: .55; }

/* ==========================================================================
   v6: pasado en gris, cierres visibles, hover que crece y encoge, cita del día en tres zonas
   ========================================================================== */

/* Tramos y días cerrados: rayado marcado y etiqueta clara */
.agenda .shade { background-color: color-mix(in srgb, var(--ink) 5%, var(--paper)); background-image: repeating-linear-gradient(-45deg, transparent 0 7px, rgb(120 112 102 / .2) 7px 8px); }
.agenda .shade > span { top: 8px; left: 10px; padding: 2px 8px; border-radius: 99px; background: var(--surface); color: var(--ink-2); font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 0 1px var(--line); }
.agenda .shade.is-block > span { text-transform: none; letter-spacing: 0; }
.week-closed { background-color: color-mix(in srgb, var(--ink) 8%, var(--paper)) !important; }
.week-closed > span { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; }
.week-col.is-closed { background: none; }
.week-head.is-closed { background: color-mix(in srgb, var(--ink) 5%, var(--paper)); }
.week-head.is-closed strong, .week-head.is-closed .week-num { color: var(--ink-3); }
.week-head.is-past .week-num, .week-head.is-past strong { color: var(--ink-3); }

/* El pasado: velo gris en la columna y citas en gris */
.past-veil.week-past { left: 0; right: 0; z-index: 1; background: rgb(120 112 102 / .07); }
.agenda .block.is-past { filter: grayscale(1); opacity: .58; transition: filter .3s, opacity .3s, min-height .4s cubic-bezier(.34, 1.4, .5, 1), min-width .4s cubic-bezier(.34, 1.4, .5, 1), box-shadow .3s, transform .3s; }
.agenda .block.is-past:hover { filter: none; opacity: 1; }

/* Hover: crece con suavidad (y vuelve a su tamaño igual de suave) */
.agenda .block { min-height: 0; min-width: 0; transition: min-height .4s cubic-bezier(.34, 1.4, .5, 1), min-width .4s cubic-bezier(.34, 1.4, .5, 1), box-shadow .3s ease, transform .3s ease, background .2s, border-color .2s, filter .3s, opacity .3s; }
.agenda .block:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--c) 65%, #000); z-index: 8; }
.week .block:hover { min-width: 170px; min-height: 74px; }
.week .block .block-service { display: block; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .25s ease; }
.week .block:hover .block-service { max-height: 18px; opacity: 1; }
.week .block.is-short:hover, .week .block.is-mid:hover { min-height: 74px; }

/* Vista día: cada cita en tres zonas (hora · cliente y servicio · estado y precio) */
.agenda .col { container-type: inline-size; }
.agenda .block.block-day { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; align-items: start; padding: 6px 10px 6px 8px; }
.block-day .b-time { display: flex; flex-direction: column; align-self: stretch; min-width: 40px; padding-right: 10px; border-right: 1px solid color-mix(in srgb, var(--c) 30%, transparent); font-variant-numeric: tabular-nums; line-height: 1.2; }
.block-day .b-time b { font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--c) 78%, var(--ink)); }
.block-day .b-time small { font-size: 11px; color: var(--ink-3); }
.block-day .b-main { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.block-day .b-main strong { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-day .block-service { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-day .block-flags { margin-top: 3px; }
.block-day .flag-note, .block-day .flag-ok { font-size: 10.5px; font-weight: 600; }
.block-day .b-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.block-day .block-state { margin-left: 0; }
.block-day .block-state.is-ok { background: color-mix(in srgb, var(--c) 10%, var(--surface)); color: var(--ink-3); }
.block-day .b-price { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Lo que no cabe en citas cortas se oculta sin cortes bruscos y aparece al pasar el cursor */
.block-day .block-service, .block-day .block-flags, .block-day .b-time small, .block-day .b-price { transition: max-height .35s ease, opacity .25s ease; }
.agenda .block-day.is-short { align-items: center; padding-top: 2px; padding-bottom: 2px; }
.agenda .block-day.is-short .b-time { flex-direction: row; align-self: center; }
.agenda .block-day.is-short .block-service, .agenda .block-day.is-short .block-flags, .agenda .block-day.is-short .b-time small,
.agenda .block-day.is-mid .block-flags { display: block; max-height: 0; opacity: 0; overflow: hidden; margin: 0; }
.agenda .block-day.is-short .b-side { flex-direction: row; align-items: center; }
.agenda .block-day.is-short .b-price { display: none; }
.agenda .block-day.is-short:hover, .agenda .block-day.is-mid:hover { min-height: 86px; align-items: start; padding-top: 6px; padding-bottom: 6px; }
.agenda .block-day.is-short:hover .b-time { flex-direction: column; align-self: stretch; }
.agenda .block-day.is-short:hover .block-service, .agenda .block-day.is-short:hover .b-time small { max-height: 18px; opacity: 1; }
.agenda .block-day.is-short:hover .block-flags, .agenda .block-day.is-mid:hover .block-flags { display: flex; max-height: 24px; opacity: 1; margin-top: 3px; }
.agenda .block-day.is-short:hover .b-side { flex-direction: column; align-items: flex-end; }
.agenda .block-day.is-short:hover .b-price { display: block; }
.agenda .block.block-day.is-dragging { min-height: 0; transform: none; }
/* Columna estrecha: se apila como antes */
@container (max-width: 250px) {
  .agenda .block.block-day { grid-template-columns: minmax(0, 1fr); }
  .block-day .b-time { flex-direction: row; gap: 6px; border-right: 0; padding-right: 0; align-self: auto; }
  .block-day .b-side { display: none; }
}
.week .block:not(.is-short):not(.is-mid) .block-service { max-height: 18px; opacity: 1; }

/* Citas cortas del día: el servicio va a la derecha del nombre */
.agenda .block-day.is-short .b-main { flex-direction: row; align-items: baseline; gap: 8px; }
.agenda .block-day.is-short .b-main strong { flex: 0 1 auto; min-width: 0; }
.agenda .block-day.is-short .block-service { display: block; flex: 1 1 0; min-width: 0; max-height: none; opacity: 1; margin: 0; color: var(--ink-3); }
.agenda .block-day.is-short .block-service::before { content: "· "; }
.agenda .block-day.is-short:hover .b-main { flex-direction: column; align-items: stretch; gap: 1px; }
.agenda .block-day.is-short:hover .block-service::before { content: none; }

/* ==========================================================================
   v7: caja, bonos, campañas, recursos, ficha técnica, alergias, acceso del equipo
   ========================================================================== */
.head-sub { font-weight: 400; color: var(--ink-3); font-size: .6em; letter-spacing: 0; margin-left: 6px; text-transform: capitalize; }
.clients-head .day-nav { align-items: center; gap: 10px; }
.clients-head .day-nav h1 { margin: 0; }
.clients-head .day-nav .muted { margin: 4px 0 0; }

/* Alergias: aviso fuerte en rojo, en la cita y en la ficha */
.ap-alert { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--bad) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); color: var(--ink); font-size: 14px; }
.ap-alert .icon { width: 20px; height: 20px; color: var(--bad); flex: none; margin-top: 1px; }
.ap-alert b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bad); margin-bottom: 2px; }

/* Cobro dentro de la cita */
.ap-pay.is-paid { background: color-mix(in srgb, var(--ok) 6%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.h3-count.is-ok { background: var(--ok); color: #fff; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pay-row small { display: block; font-size: 12px; color: var(--ink-3); }
.pay-row form { margin: 0; }
.pay-form { margin-top: 10px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pay-method { position: relative; cursor: pointer; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 550; transition: background .15s, color .15s, border-color .15s; }
.pay-method:hover span { border-color: var(--ink-3); }
.pay-method input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.pay-method input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 2px; }
.pay-voucher { display: none; }
.pay-form:has(input[value="voucher"]:checked) .pay-voucher { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pay-form .check-line { margin: 4px 0 12px; }
.b-price.is-paid { color: var(--ok); }

/* Ficha técnica */
.tech-row { position: relative; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tech-row:last-child { border-bottom: 0; }
.tech-row small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.tech-row p { margin: 2px 0 0; font-size: 13.5px; white-space: pre-wrap; }
.tech-row form { position: absolute; top: 6px; right: 0; margin: 0; opacity: 0; transition: opacity .15s; }
.tech-row:hover form { opacity: 1; }
.tech-form { display: grid; gap: 6px; margin: 4px 0 8px; }
.tech-form textarea { min-height: 54px; font-size: 13.5px; }
.tech-form .btn { justify-self: start; }
.tech-list { max-height: 260px; overflow-y: auto; }
.voucher-mini { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.voucher-mini:hover { background: var(--paper); }
.voucher-mini.is-off { opacity: .55; }

/* Pausa dentro de una cita del día */
.b-pause { position: absolute; left: 0; right: 0; z-index: 0; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: repeating-linear-gradient(45deg, rgb(255 255 255 / .72) 0 6px, rgb(255 255 255 / .4) 6px 12px); border-top: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); border-bottom: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); pointer-events: none; }
.agenda .block.block-day:has(.b-pause) { overflow: hidden; }
.agenda .block.block-day:has(.b-pause) > *:not(.b-pause) { position: relative; z-index: 1; }

/* Lista de espera avisada */
.wait-told { display: block; margin-top: 3px; color: var(--st-confirmed) !important; font-weight: 600; }

/* Caja */
.cash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cash-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 0; border-bottom: 1px solid var(--line); font: inherit; color: inherit; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; }
.cash-row:last-of-type { border-bottom: 0; }
.cash-row.as-button { cursor: pointer; border-radius: 0; }
.cash-row.as-button:hover { background: var(--paper); }
.cash-row form { margin: 0; }
.cash-time { width: 44px; flex: none; font-size: 13px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cash-main b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cash-main small { font-size: 12px; color: var(--ink-3); }
.cash-amount { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cash-amount small { font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.method-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.method-tag.m-cash { background: color-mix(in srgb, var(--ok) 13%, var(--surface)); color: var(--ok); }
.method-tag.m-card { background: color-mix(in srgb, var(--st-confirmed) 13%, var(--surface)); color: var(--st-confirmed); }
.method-tag.m-bizum { background: color-mix(in srgb, #2aa8a0 15%, var(--surface)); color: #1d7c76; }
.method-tag.m-voucher { background: color-mix(in srgb, var(--plum) 12%, var(--surface)); color: var(--plum-2); }
.closed-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--forest); color: var(--paper); font-size: 13px; font-weight: 600; }
.closed-badge .icon { width: 15px; height: 15px; }
.close-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.close-figures div { padding: 10px 12px; border-radius: 10px; background: var(--paper); }
.close-figures span { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.close-figures b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.close-figures .is-ok b { color: var(--ok); }
.close-figures .is-off b { color: var(--bad); }
.close-card.is-closed { border-color: color-mix(in srgb, var(--forest) 30%, var(--line)); }
.mini-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 120px; }
.mini-bars a { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; text-decoration: none; color: var(--ink-3); font-size: 11px; text-transform: capitalize; }
.mini-bars i { display: block; width: 100%; max-width: 30px; min-height: 2px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--forest) 55%, var(--surface)); transition: background .15s; }
.mini-bars a:hover i, .mini-bars a.is-on i { background: var(--forest); }
.mini-bars a.is-on { color: var(--ink); font-weight: 650; }

/* Bonos */
.voucher-tile { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--plum) 12%, var(--surface)); color: var(--plum-2); }
.voucher-tile.is-gift { background: color-mix(in srgb, var(--terracotta) 13%, var(--surface)); color: var(--terracotta-2); }
.voucher-tile .icon { width: 18px; height: 18px; }
.meter-left b { background: var(--plum-2); }
.voucher-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1px; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--plum) 25%, var(--line)); }
.voucher-card div { padding: 12px 14px; background: color-mix(in srgb, var(--plum) 5%, var(--surface)); }
.voucher-card.is-gift { background: color-mix(in srgb, var(--terracotta) 25%, var(--line)); }
.voucher-card.is-gift div { background: color-mix(in srgb, var(--terracotta) 5%, var(--surface)); }
.voucher-card span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.voucher-card b { font-size: 17px; font-weight: 680; }
.voucher-card b small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.sessions { display: flex; flex-wrap: wrap; gap: 6px; }
.sessions i { width: 26px; height: 30px; border-radius: 999px 999px 4px 4px; border: 1.5px solid var(--plum-2); background: var(--surface); }
.sessions i.is-used { background: var(--plum-2); }

/* Campañas */
.campaign-figures { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.auto-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.auto-row:first-of-type { border-top: 0; padding-top: 4px; }
.auto-text b { display: block; font-size: 14.5px; font-weight: 600; }
.auto-text span { font-size: 13px; color: var(--ink-3); }
.auto-sub { padding-bottom: 6px; }
.auto-sub .field { margin-bottom: 8px; }
.switch { position: relative; flex: none; width: 46px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .25s cubic-bezier(.34, 1.4, .5, 1); }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--forest); outline-offset: 2px; }
.people { max-height: 300px; overflow-y: auto; margin-bottom: 12px; }
.person-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.person-row form { margin: 0; }
.person-row .client-avatar { width: 32px; height: 32px; font-size: 11px; }
.person-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-main b { font-size: 13.5px; font-weight: 600; }
.person-main small { font-size: 12px; color: var(--ink-3); }
.campaign-send summary { list-style: none; }
.campaign-send summary::-webkit-details-marker { display: none; }
.campaign-send[open] summary { margin-bottom: 12px; }

/* Recursos */
.resource-card { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; padding: 20px; }
.resource-card > strong { font-size: 20px; font-weight: 650; }
.res-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--forest) 12%, var(--surface)); color: var(--forest); }
.res-qty { font-size: 13px; color: var(--ink-3); }
.res-qty b { font-size: 20px; color: var(--ink); }
.res-services { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pill-soft { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.paused-card { margin-top: 18px; }

/* Acceso a la app */
.access-on { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 0 0 12px; }
.access-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); margin-top: 5px; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.access-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 8px; }
.access-form .field { margin: 0; }

/* Página del cliente: confirmar asistencia */
.attend { margin: 18px 0 6px; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); }
.attend p { margin: 0 0 12px; }
.attend.is-done { background: color-mix(in srgb, var(--ok) 8%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.attend.is-done p { margin: 0; color: var(--ok); }

@media (max-width: 1100px) { .cash-grid, .campaign-grid { grid-template-columns: 1fr; } .campaign-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .access-form { grid-template-columns: 1fr; } .pay-form:has(input[value="voucher"]:checked) .pay-voucher { grid-template-columns: 1fr; } .close-figures { grid-template-columns: 1fr; } }
.cash-figures { grid-template-columns: 1.3fr repeat(6, minmax(0, 1fr)); }
@media (max-width: 1280px) { .cash-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cash-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   v8: acento recto a la izquierda, más información en la cita, hora siempre visible en la semana,
   leyenda por líneas, huecos filtrables, fotos del equipo
   ========================================================================== */

/* Acento: franja del color del profesional a la izquierda, con la esquina recta */
.agenda .block, .week .block { border-left: 4px solid var(--c); border-radius: 0 6px 6px 0; padding-left: 9px; }
.agenda .block .block-time::before { content: none; }
.agenda .block.status-pending { border-left: 4px solid var(--ochre); }
.agenda .block.status-arrived { border-left: 4px solid var(--ok); }
.agenda .block.status-no_show { border-left: 4px solid var(--bad); }
.drag-origin { border-radius: 0 6px 6px 0; }

/* Más información en la cita del día */
.block-day .block-who { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-day .block-flags { gap: 4px; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 10.5px; font-weight: 600; line-height: 1.5; padding: 0 7px; border-radius: 99px; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.tag-bad { background: color-mix(in srgb, var(--bad) 11%, var(--surface)); color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 30%, transparent); }
.tag-ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent); }
.tag-info { background: color-mix(in srgb, var(--st-confirmed) 10%, var(--surface)); color: var(--st-confirmed); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st-confirmed) 25%, transparent); }
.block-day .b-paid { font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.b-paid.is-paid { color: var(--ok); }
.block-day .b-price.is-paid { color: var(--ink); }
.agenda .block-day.is-mid .block-who { display: none; }
.agenda .block-day.is-mid:hover .block-who { display: block; }
.agenda .block-day.is-short .block-who, .agenda .block-day.is-short .b-paid { display: none; }
.agenda .block-day.is-short:hover .block-who { display: block; }
.agenda .block-day.is-short:hover .b-paid { display: inline; }
.agenda .block-day.is-short:hover, .agenda .block-day.is-mid:hover { min-height: 104px; }

/* Cita corta: el servicio a la derecha del nombre, y sigue viéndose al ampliarla */
.agenda .block-day.is-short:hover .block-service { flex: none; max-height: none; opacity: 1; display: block; }

/* Semana: la hora siempre se ve (el nombre se recorta antes que la hora) */
.week .block { padding: 3px 4px 3px 6px; gap: 0; }
.week .block .block-time { flex: none; overflow: visible; text-overflow: clip; font-size: 10.5px; font-weight: 700; letter-spacing: -.02em; color: color-mix(in srgb, var(--c) 75%, var(--ink)); }
.week .block .block-time .b-ini { font-weight: 500; color: var(--ink-3); }
.week .block strong { min-width: 0; }
.week .block.is-short { flex-direction: column; align-items: stretch; justify-content: flex-start; }

/* Leyenda: una cosa por línea, con una muestra igual que la cita */
.legend-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 7px; }
.legend-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.legend-list li b { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.legend-list li > span:last-child { min-width: 0; }
.legend-tags li { align-items: center; }
.legend-tags li .tag, .legend-tags li .b-paid { flex: none; min-width: 0; }
.lg-sample { flex: none; width: 30px; height: 22px; margin-top: 1px; border-radius: 0 4px 4px 0; border: 1px solid color-mix(in srgb, var(--forest) 35%, transparent); border-left: 4px solid var(--forest); background: color-mix(in srgb, var(--forest) 14%, var(--surface)); }
.lg-pending { border: 1.5px dashed var(--ochre); border-left: 4px solid var(--ochre); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ochre) 14%, var(--surface)) 0 4px, var(--surface) 4px 8px); }
.lg-arrived { border: 1.5px solid var(--ok); border-left: 4px solid var(--ok); background: color-mix(in srgb, var(--ok) 15%, var(--surface)); }
.lg-completed { filter: grayscale(1); opacity: .6; }
.lg-no_show { border-color: color-mix(in srgb, var(--bad) 40%, transparent); border-left-color: var(--bad); background: color-mix(in srgb, var(--bad) 7%, var(--surface)); }
.lg-pause { background: repeating-linear-gradient(45deg, var(--surface) 0 4px, color-mix(in srgb, var(--forest) 12%, var(--surface)) 4px 8px); border-style: dashed; border-left-style: solid; }

/* Huecos libres: filtro de profesional y día */
.gaps-filter { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 8px; }
.gaps-filter select, .gaps-filter input { min-height: 34px; padding-top: 4px; padding-bottom: 4px; font-size: 13px; }
.gaps-filter select[hidden] + input { grid-column: 1 / -1; }
.gaps-day { margin: 0 0 4px; font-size: 12px; color: var(--ink-3); }
.gaps-day b { color: var(--ink); }
.gaps-moved { margin: 0 0 6px; padding: 6px 9px; border-radius: 8px; background: color-mix(in srgb, var(--ochre) 12%, var(--surface)); color: #8a5a12; font-size: 12px; }
.gaps-list.is-updating { opacity: .5; transition: opacity .2s; }

/* Buscador de la agenda como el de Clientes */
.agenda-head .agenda-search.clients-search { height: 38px; min-width: 260px; border: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }

/* Panel del cliente */
.voucher-sell { margin-top: 12px; }
.fav-staff .staff-avatar { margin-right: 2px; }

/* Fotos del equipo */
.staff-avatar.has-photo, .client-avatar.has-photo, .person-mono.has-photo, .arch-av b.has-photo, .svc-who i.has-photo { overflow: hidden; padding: 0; background: var(--paper-2); }
.staff-avatar.has-photo img, .client-avatar.has-photo img, .person-mono.has-photo img, .arch-av b.has-photo img, .svc-who i.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.photo-pick .check-line { margin: 0; }
.photo-pick .help { flex: 1 1 100%; }
.photo-btn { cursor: pointer; }

/* Informes: fechas a medida */
.period-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.range-form { display: flex; align-items: center; gap: 6px; padding: 3px 3px 3px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.range-form.is-on { border-color: var(--forest); box-shadow: 0 0 0 3px rgb(23 53 45 / .08); }
.range-form label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.range-form input { min-height: 30px; padding: 2px 6px; width: 140px; font-size: 13px; }

/* Caja por semanas y meses */
.cash-time small { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.mini-bars { grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); }
.mini-bars.is-dense { gap: 2px; height: 140px; }
.mini-bars.is-dense span { font-size: 9.5px; }

/* ==========================================================================
   v9: vista Gantt, hoy en naranja en el mes, «en curso» que se mueve, avatares dibujados, iconos de servicio
   ========================================================================== */

/* «En curso»: un reloj con la aguja girando y una barra de progreso que avanza */
.live-clock { position: relative; display: inline-block; width: 11px; height: 11px; flex: none; border-radius: 50%; border: 1.6px solid currentColor; vertical-align: -1px; }
.live-clock::before, .live-clock::after { content: ""; position: absolute; left: 50%; bottom: 50%; width: 1.6px; margin-left: -.8px; border-radius: 1px; background: currentColor; transform-origin: 50% 100%; }
.live-clock::before { height: 3.6px; animation: clock-hand 2.4s linear infinite; }
.live-clock::after { height: 2.6px; animation: clock-hand 28.8s linear infinite; }
@keyframes clock-hand { to { transform: rotate(360deg); } }
.agenda .block.status-arrived .block-state.is-live { gap: 5px; }
.agenda .block.status-arrived .block-state.is-live i::before, .agenda .block.status-arrived .block-state.is-live i::after { animation-play-state: running; }
.agenda .block.status-arrived .block-state i.live-clock { width: 11px; height: 11px; background: none; border-radius: 50%; animation: none; }
.b-progress { position: absolute; left: 0; bottom: 0; height: 4px; z-index: 2; border-radius: 0 2px 2px 0; background: repeating-linear-gradient(-45deg, var(--ok) 0 6px, color-mix(in srgb, var(--ok) 60%, #fff) 6px 12px); background-size: 17px 17px; animation: progress-slide 1s linear infinite; pointer-events: none; }
@keyframes progress-slide { to { background-position: 17px 0; } }
.week .live-clock { width: 9px; height: 9px; border-width: 1.4px; color: var(--ok); }
.week .block.status-arrived .block-time { color: var(--ok); }
.svc-ico { font-style: normal; margin-right: 4px; }

/* Mes: el día de hoy, entero en naranja */
.agenda-main .month-day.is-today, .month-day.is-today { background: linear-gradient(160deg, #d86b40, var(--terracotta-2)); color: #fff; box-shadow: inset 0 0 0 2px var(--terracotta-2); }
.month-day.is-today .md-top b { background: #fff; color: var(--terracotta-2); }
.month-day.is-today .md-item, .month-day.is-today .md-item i, .month-day.is-today .md-more, .month-day.is-today .md-foot, .month-day.is-today .md-pending, .month-day.is-today .md-closed { color: #fff; }
.month-day.is-today .md-item::before { background: #fff; }
.month-day.is-today .md-count { background: #fff; color: var(--terracotta-2); }
.month-day.is-today:hover { box-shadow: inset 0 0 0 3px var(--forest); }

/* Vista Gantt: una fila por profesional, el tiempo en horizontal */
.agenda-main > .gantt-scroll { flex: 1; min-height: 0; }
.gantt-scroll { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.gantt { --who: 200px; min-width: calc(var(--who) + var(--hours) * 96px); }
.g-head { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: var(--who) 1fr; background: var(--surface); border-bottom: 1px solid var(--line); }
.g-corner { position: sticky; left: 0; z-index: 2; padding: 12px 14px; background: var(--surface); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); border-right: 1px solid var(--line); }
.g-axis { position: relative; height: 40px; }
.g-axis span { position: absolute; top: 12px; transform: translateX(-50%); font-size: 11.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-axis span:first-child { transform: none; margin-left: 4px; }
.g-now-label { position: absolute; top: 9px; transform: translateX(-50%); padding: 2px 7px; border-radius: 99px; background: var(--terracotta); color: #fff; font-size: 11px; font-weight: 700; z-index: 1; }
.g-row { display: grid; grid-template-columns: var(--who) 1fr; min-height: 76px; border-bottom: 1px solid var(--line); }
.g-row:last-child { border-bottom: 0; }
.g-who { position: sticky; left: 0; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-right: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--c); }
.g-who > div { min-width: 0; flex: 1; }
.g-who strong { display: block; font-size: 14px; font-weight: 600; }
.g-who small { display: block; font-size: 11.5px; color: var(--ink-3); }
.g-who .meter { margin-top: 5px; height: 4px; }
.g-who .meter b { background: var(--c); }
.g-track { position: relative; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 3%, transparent), transparent 30%); }
.g-line { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.g-line.is-half { border-left-style: dashed; opacity: .6; }
.g-shade { position: absolute; top: 0; bottom: 0; z-index: 1; background-color: color-mix(in srgb, var(--ink) 5%, var(--paper)); background-image: repeating-linear-gradient(-45deg, transparent 0 7px, rgb(120 112 102 / .2) 7px 8px); }
.g-shade.is-block { background-color: color-mix(in srgb, var(--plum) 6%, var(--surface)); border-left: 2px solid color-mix(in srgb, var(--plum) 45%, transparent); }
.g-shade span { position: absolute; top: 6px; left: 8px; font-size: 10.5px; font-weight: 600; color: var(--plum-2); white-space: nowrap; }
.g-past { position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; background: rgb(120 112 102 / .07); pointer-events: none; }
.g-now { position: absolute; top: 0; bottom: 0; z-index: 5; border-left: 2px solid var(--terracotta); pointer-events: none; }
.g-bar { position: absolute; top: 10px; bottom: 10px; z-index: 3; display: flex; align-items: center; gap: 6px; min-width: 6px; padding: 0 8px 0 10px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c) 42%, transparent); border-left: 4px solid var(--c); border-radius: 0 7px 7px 0; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.34, 1.4, .5, 1), box-shadow .25s, z-index 0s, min-width .35s cubic-bezier(.34, 1.4, .5, 1); }
.g-bar:hover { z-index: 8; min-width: 220px; transform: translateY(-2px); box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--c) 70%, #000); }
.g-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; position: relative; z-index: 1; }
.g-text b { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--c) 75%, var(--ink)); font-variant-numeric: tabular-nums; }
.g-text strong { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-text small { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-flag { margin-left: auto; flex: none; font-style: normal; font-size: 9.5px; font-weight: 700; text-transform: uppercase; padding: 1px 6px; border-radius: 99px; background: var(--ochre); color: #fff; position: relative; z-index: 1; }
.g-pause { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, rgb(255 255 255 / .75) 0 5px, rgb(255 255 255 / .35) 5px 10px); border-left: 1px dashed color-mix(in srgb, var(--c) 50%, transparent); border-right: 1px dashed color-mix(in srgb, var(--c) 50%, transparent); }
.g-bar.status-pending { border: 1.5px dashed var(--ochre); border-left: 4px solid var(--ochre); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ochre) 12%, var(--surface)) 0 6px, var(--surface) 6px 12px); }
.g-bar.status-arrived { border: 1.5px solid var(--ok); border-left: 4px solid var(--ok); background: color-mix(in srgb, var(--ok) 15%, var(--surface)); }
.g-bar.status-arrived .g-text b { color: var(--ok); }
.g-bar.status-no_show { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad) 7%, var(--surface)); }
.g-bar.is-past { filter: grayscale(1); opacity: .58; }
.g-bar.is-past:hover { filter: none; opacity: 1; }

/* Avatares dibujados */
.staff-avatar.has-avatar, .client-avatar.has-avatar, .person-mono.has-avatar, .arch-av b.has-avatar, .svc-who i.has-avatar { overflow: hidden; padding: 0; border: 0; background: color-mix(in srgb, var(--c) 55%, #fff); }
.staff-avatar.has-avatar svg, .client-avatar.has-avatar svg, .person-mono.has-avatar svg, .arch-av b.has-avatar svg, .svc-who i.has-avatar svg { display: block; width: 100%; height: 100%; }
.arch-av b.has-avatar { align-items: end; padding-top: 0; }
.avatar-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.avatar-opt { position: relative; display: grid; place-items: center; padding: 4px; border-radius: 14px; cursor: pointer; transition: background .15s, transform .2s; }
.avatar-opt input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-opt .staff-avatar.lg { width: 50px; height: 50px; font-size: 16px; }
.avatar-opt:hover { background: var(--paper-2); transform: translateY(-2px); }
.avatar-opt:has(input:checked) { background: color-mix(in srgb, var(--forest) 10%, var(--surface)); box-shadow: inset 0 0 0 2px var(--forest); }
.avatar-opt:has(input:focus-visible) { outline: 2px solid var(--forest); outline-offset: 2px; }
.staff-arch.has-avatar { background: color-mix(in srgb, var(--c) 55%, #fff) !important; overflow: hidden; }
.staff-arch.has-avatar svg { width: 100%; height: 100%; display: block; }

/* Iconos de servicio */
.svc-emoji { font-size: 21px; line-height: 1; background: color-mix(in srgb, var(--terracotta) 9%, var(--surface)); }
.svc-glyph { flex: none; font-size: 19px; line-height: 1.2; }
.icon-now { font-size: 15px !important; padding: 0 8px !important; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; max-height: 280px; overflow-y: auto; padding: 2px 4px 4px 2px; scrollbar-width: thin; }
.icon-group { grid-column: 1 / -1; margin: 10px 0 2px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; color: var(--ink-3); }
.icon-opt { position: relative; display: grid; place-items: center; height: 40px; border-radius: 10px; cursor: pointer; font-size: 21px; transition: background .15s, transform .2s cubic-bezier(.34, 1.4, .5, 1); }
.icon-opt input { position: absolute; opacity: 0; pointer-events: none; }
.icon-opt:hover { background: var(--paper-2); transform: scale(1.12); }
.icon-opt:has(input:checked) { background: color-mix(in srgb, var(--forest) 12%, var(--surface)); box-shadow: inset 0 0 0 2px var(--forest); }
.icon-opt:has(input:focus-visible) { outline: 2px solid var(--forest); }
.icon-auto { grid-column: span 2; font-size: 12px; font-weight: 650; color: var(--ink-2); border: 1px dashed var(--line-2); }
@media (min-width: 1000px) {
  .agenda-main > .gantt-scroll { display: flex; }
  .agenda-main > .gantt-scroll > .gantt { display: flex; flex-direction: column; flex: 1; min-height: 100%; }
  .gantt .g-row { flex: 1 1 76px; max-height: 170px; }
}
.g-bar { top: 12px; bottom: 12px; }
.gantt { min-width: calc(var(--who) + var(--hours) * 130px); }

/* ==========================================================================
   v10: «En curso» que no se confunde, iconos de línea, categorías, ausencias en la semana
   ========================================================================== */

/* En curso: bloque relleno en verde intenso con texto blanco y un halo que late.
   Confirmada sigue siendo clara, así que se distinguen a primera vista. */
.agenda .block.status-arrived, .agenda .block.block-day.status-arrived {
  background: linear-gradient(125deg, #2f7d5d, #1f5c45); color: #fff;
  border: 1px solid #1a4d3a; border-left: 4px solid #a7e8c5;
  animation: live-ring 2.4s ease-out infinite; }
@keyframes live-ring { 0% { box-shadow: 0 0 0 0 rgb(47 125 93 / .55); } 70%, 100% { box-shadow: 0 0 0 8px rgb(47 125 93 / 0); } }
.agenda .block.status-arrived:hover { background: linear-gradient(125deg, #348a67, #23664d); box-shadow: 0 12px 24px -12px #0d2e22; }
.agenda .block.status-arrived.is-past { filter: none; opacity: 1; }
.agenda .block.status-arrived strong, .agenda .block.status-arrived .b-time b, .agenda .block.status-arrived .b-price,
.agenda .block.status-arrived .block-time, .week .block.status-arrived .block-time { color: #fff; }
.agenda .block.status-arrived .block-service, .agenda .block.status-arrived .block-who, .agenda .block.status-arrived .b-time small,
.agenda .block.status-arrived .b-paid, .agenda .block-day.is-short.status-arrived .block-service { color: rgb(255 255 255 / .8); }
.agenda .block-day.status-arrived .b-time { border-right-color: rgb(255 255 255 / .28); }
.agenda .block.status-arrived .block-state { background: #fff; color: #1f5c45; }
.agenda .block.status-arrived .block-state i.live-clock, .agenda .block.status-arrived .b-live .live-clock { color: inherit; }
.agenda .block.status-arrived .tag { background: rgb(255 255 255 / .15); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .32); }
.agenda .block.status-arrived .b-pause { color: #fff; }
.week .block.status-arrived .live-clock { color: #fff; }
.b-progress { height: 5px; }
.status-arrived .b-progress { background: repeating-linear-gradient(-45deg, #d6f5e3 0 6px, #fff 6px 12px); background-size: 17px 17px; box-shadow: 0 0 8px rgb(214 245 227 / .7); }

/* Cita corta en curso: la etiqueta va junto a la hora, siempre visible */
.b-live { display: none; align-items: center; gap: 4px; flex: none; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 1px 6px 1px 4px; border-radius: 99px; background: #fff; color: #1f5c45; white-space: nowrap; }
.b-live .live-clock { width: 10px; height: 10px; border-width: 1.5px; }
.agenda .block-day.is-short .b-live { display: inline-flex; margin-left: 6px; }
.agenda .block-day.is-short:hover .b-live { display: none; }
.agenda .block-day.is-short.status-arrived:hover .block-state { display: inline-flex; }
@container (max-width: 250px) { .block-day .b-live { display: inline-flex; } }

/* Gantt y leyenda con el mismo «en curso» */
.g-bar.status-arrived { background: linear-gradient(125deg, #2f7d5d, #1f5c45); border: 1px solid #1a4d3a; border-left: 4px solid #a7e8c5; color: #fff; animation: live-ring 2.4s ease-out infinite; }
.g-bar.status-arrived .g-text b, .g-bar.status-arrived .g-text strong { color: #fff; }
.g-bar.status-arrived .g-text small { color: rgb(255 255 255 / .82); }
.g-bar.status-arrived.is-past { filter: none; opacity: 1; }
.lg-arrived { background: linear-gradient(125deg, #2f7d5d, #1f5c45); border: 1px solid #1a4d3a; border-left: 4px solid #a7e8c5; }

/* Iconos de servicio: dibujos de línea, como el resto del panel */
.svc-svg { width: 18px; height: 18px; flex: none; }
.svc-tile .svc-svg { width: 19px; height: 19px; }
.svc-ico { display: inline-flex; vertical-align: -2px; margin-right: 4px; color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.svc-ico .svc-svg { width: 13px; height: 13px; }
.status-arrived .svc-ico { color: #fff; }
.g-text small .svc-svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 2px; }
.svc-glyph { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--terracotta) 11%, var(--surface)); color: var(--terracotta-2); font-size: 0; }
.svc-glyph .svc-svg { width: 18px; height: 18px; }
.icon-now { display: inline-grid !important; place-items: center; width: 30px; height: 26px; padding: 0 !important; color: var(--terracotta-2); }
.icon-now .svc-svg { width: 17px; height: 17px; }
.icon-pick { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 4px; }
.icon-opt { height: 42px; color: var(--ink-2); font-size: 0; }
.icon-opt .svc-svg { width: 20px; height: 20px; }
.icon-opt:hover { color: var(--ink); transform: translateY(-2px); }
.icon-opt:has(input:checked) { color: var(--forest); }
.icon-auto { display: flex; gap: 6px; font-size: 12px; }
.icon-auto .svc-svg { width: 16px; height: 16px; }

/* Categoría del servicio: lista + botón «Nueva» a la vista */
.cat-row { display: flex; gap: 8px; align-items: stretch; }
.cat-row[hidden] { display: none; }
.cat-row select, .cat-row input { flex: 1; min-width: 0; }
.cat-row .btn { flex: none; white-space: nowrap; }
.cat-add .icon { width: 15px; height: 15px; }
.cat-create input { border-color: var(--forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 12%, transparent); }
.cat-field .help { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.cat-field .help[hidden] { display: none; }
.cat-new-help { color: var(--forest) !important; }

/* Horario: las ausencias en los próximos 7 días */
.wb-lane i.wb-off { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--plum) 16%, var(--surface)) 0 5px, var(--surface) 5px 9px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--plum) 40%, transparent); display: flex; align-items: center; overflow: hidden; }
.wb-lane i.wb-off span { padding: 0 6px; font-size: 10px; font-weight: 650; color: var(--plum-2); white-space: nowrap; }
.wb-member { height: 12px; }
.wb-member.is-away { height: 16px; }
.wb-business i.wb-off span { font-size: 11.5px; color: var(--plum-2); }
.wb-off-key { width: 14px !important; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--plum) 30%, var(--surface)) 0 3px, var(--surface) 3px 6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--plum) 40%, transparent); }

/* Agenda semanal: el carril de quien está de vacaciones, tachado */
.week .shade.lane-away { right: auto; z-index: 1; background-color: color-mix(in srgb, var(--plum) 6%, var(--surface)); background-image: repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in srgb, var(--plum) 22%, transparent) 6px 7px); border-left: 2px solid color-mix(in srgb, var(--c) 60%, transparent); }
.week .shade.lane-away span { writing-mode: vertical-rl; transform: rotate(180deg); position: absolute; top: 8px; left: 50%; margin-left: -7px; font-size: 10px; font-weight: 650; color: var(--plum-2); white-space: nowrap; }
.wb-label { flex-wrap: wrap; row-gap: 0; } .wb-label b { white-space: nowrap; }
.icon-auto { justify-content: center; padding: 0 10px; }

/* ==========================================================================
   v11: color propio para «Hecha», enlace a tu página, landing al día
   ========================================================================== */

/* Hecha: azul pizarra. Ni el gris de «ya pasó sin marcar» ni el color del profesional. */
.agenda .block.status-completed { --done: #3d6394; filter: none; opacity: 1; background: color-mix(in srgb, var(--done) 24%, var(--surface)); border: 1px solid color-mix(in srgb, var(--done) 40%, transparent); border-left: 4px solid var(--done); }
.agenda .block.status-completed.is-past { filter: none; opacity: .9; }
.agenda .block.status-completed:hover { background: color-mix(in srgb, var(--done) 30%, var(--surface)); opacity: 1; box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--done) 70%, #000); }
.agenda .block.status-completed strong { color: color-mix(in srgb, var(--done) 70%, var(--ink)); }
.agenda .block.status-completed .block-service, .agenda .block.status-completed .block-who { color: color-mix(in srgb, var(--done) 60%, var(--ink-2)); }
.agenda .block.status-completed .b-time b, .agenda .block.status-completed .block-time { color: var(--done); }
.agenda .block.status-completed .block-state { background: var(--done); color: #fff; }
.agenda .block-day.status-completed .b-time { border-right-color: color-mix(in srgb, var(--done) 30%, transparent); }
.agenda .block.status-completed .svc-ico { color: var(--done); }
.g-bar.status-completed { border: 1px solid color-mix(in srgb, #3d6394 40%, transparent); border-left: 4px solid #3d6394; background: color-mix(in srgb, #3d6394 24%, var(--surface)); }
.g-bar.status-completed.is-past { filter: none; opacity: .92; }
.g-bar.status-completed .g-text b { color: #3d6394; }
.lg-completed { filter: none; opacity: 1; border: 1px solid color-mix(in srgb, #3d6394 40%, transparent); border-left: 4px solid #3d6394; background: color-mix(in srgb, #3d6394 24%, var(--surface)); }

/* Ausencias: filas que se abren para cambiarlas */
.off-row.is-editable, .mini-row.is-editable { cursor: pointer; transition: background .15s; border-radius: 10px; }
.off-row.is-editable:hover, .mini-row.is-editable:hover { background: var(--paper-2); }
.off-row.is-editable:focus-visible, .mini-row.is-editable:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.off-row > .icon-btn, .off-row > form { flex: none; }
.ap-danger { margin-top: 10px; }

/* «Tu página de reservas» en la barra: una pastilla con un punto que late */
.site-link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 11px; border-radius: 99px; border: 1px solid rgb(246 243 238 / .2); background: rgb(246 243 238 / .07); color: var(--paper); font-size: 13px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s; }
.site-link:hover { background: rgb(246 243 238 / .14); border-color: rgb(246 243 238 / .38); transform: translateY(-1px); }
.site-link .icon { width: 14px; height: 14px; opacity: .7; transition: transform .2s, opacity .2s; }
.site-link:hover .icon { opacity: 1; transform: translate(2px, -2px); }
.site-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #6fd39f; flex: none; }
.site-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #6fd39f; animation: site-ping 2.4s ease-out infinite; }
@keyframes site-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
@media (max-width: 1100px) { .site-link { font-size: 0; gap: 6px; padding: 8px 10px; } .site-link .icon { opacity: 1; } }
@media (max-width: 640px) { .site-link { display: none; } }

/* Reserva: el resumen de la cita separado de los datos */
.booking-page .summary-card:not([hidden]) { margin-bottom: 26px; }

/* ---------- Landing ---------- */
.shot-name { gap: 8px; }
.shot-av { display: inline-block; width: 24px; height: 24px; flex: none; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--c) 55%, #fff); }
.shot-av svg { display: block; width: 100%; height: 100%; }
.shot-block { border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-left: 3px solid var(--c); border-radius: 0 5px 5px 0; background: color-mix(in srgb, var(--c) 10%, var(--surface)); overflow: hidden; }
.shot-block small { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.shot-block small .svc-svg { width: 11px; height: 11px; flex: none; color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.shot-block.is-pending { border: 1.5px dashed var(--ochre); border-left: 3px solid var(--ochre); }
.shot-block.is-done { border: 1px solid color-mix(in srgb, #3d6394 30%, transparent); border-left: 3px solid #3d6394; background: color-mix(in srgb, #3d6394 11%, var(--surface)); }
.shot-block.is-done b, .shot-block.is-done small .svc-svg { color: #3d6394; }
.shot-block.is-now { background: linear-gradient(125deg, #2f7d5d, #1f5c45); border: 1px solid #1a4d3a; border-left: 3px solid #a7e8c5; color: #fff; animation: live-ring 2.4s ease-out infinite; }
.shot-block.is-now small, .shot-block.is-now small .svc-svg { color: rgb(255 255 255 / .82); }
.shot-live { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 0 5px 0 3px; border-radius: 99px; background: #fff; color: #1f5c45; font-style: normal; font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; vertical-align: 1px; }
.shot-live .live-clock { width: 8px; height: 8px; border-width: 1.2px; }
.shot-progress { position: absolute; left: 0; bottom: 0; width: 58%; height: 4px; background: repeating-linear-gradient(-45deg, #d6f5e3 0 5px, #fff 5px 10px); background-size: 14px 14px; animation: progress-slide 1s linear infinite; }
.shot-block.is-pause { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--c) 10%, var(--surface)) 0 5px, var(--surface) 5px 10px); }
.shot-tag { display: inline-block; margin-top: 4px; padding: 0 6px; border-radius: 99px; font-style: normal; font-size: 9.5px; font-weight: 650; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent); }
.shot-stepper { display: flex; align-items: center; margin: 8px 0 6px; }
.shot-stepper i { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 700; background: var(--paper-2); color: var(--ink-3); }
.shot-stepper i.is-done { background: var(--forest); color: #fff; }
.shot-stepper i.is-on { background: var(--terracotta); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--terracotta) 25%, transparent); }
.shot-stepper span { flex: 1; height: 2px; margin: 0 3px; background: var(--forest); opacity: .5; }
.shot-stepper span:nth-of-type(3) { background: var(--line-2); opacity: 1; }
.shot-summary span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.shot-summary .svc-svg { width: 13px; height: 13px; color: var(--terracotta-2); }

/* La agenda del equipo: un Gantt pequeño */
.mini-gantt { position: relative; width: 100%; max-width: 520px; padding: 6px 20px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 40px 70px -36px rgb(0 0 0 / .6); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.stage:hover .mini-gantt { transform: translateY(-6px) rotate(-.5deg); }
.mg-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 14px 0 12px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 19px; }
.mg-head small { font-family: Geist, system-ui, sans-serif; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.mg-axis { display: flex; justify-content: space-between; margin: 10px 0 4px 84px; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mg-row { display: grid; grid-template-columns: 84px 1fr; align-items: center; min-height: 48px; border-top: 1px solid var(--line); }
.mg-who { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; box-shadow: inset 3px 0 0 var(--c); padding-left: 8px; align-self: stretch; }
.mg-track { position: relative; height: 34px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); }
.mg-bar { position: absolute; top: 4px; bottom: 4px; display: flex; align-items: center; gap: 4px; padding: 0 7px; overflow: hidden; white-space: nowrap; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--ink); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-left: 3px solid var(--c); border-radius: 0 5px 5px 0; background: color-mix(in srgb, var(--c) 14%, var(--surface)); transition: background .5s, border-color .5s; }
.mg-bar.is-done { border: 1px solid color-mix(in srgb, #3d6394 30%, transparent); border-left: 3px solid #3d6394; background: color-mix(in srgb, #3d6394 12%, var(--surface)); color: #3c5470; }
.mg-bar.is-now { background: linear-gradient(125deg, #2f7d5d, #1f5c45); border: 1px solid #1a4d3a; border-left: 3px solid #a7e8c5; color: #fff; animation: live-ring 2.4s ease-out infinite; }
.mg-bar.is-now .live-clock { width: 9px; height: 9px; border-width: 1.3px; }
.mg-bar.is-pending { border: 1.5px dashed var(--ochre); border-left: 3px solid var(--ochre); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ochre) 14%, var(--surface)) 0 5px, var(--surface) 5px 10px); }
.mg-bar.flash { animation: flash 1.6s ease-out; }
.mg-off { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 7px; font-style: normal; font-size: 10px; font-weight: 650; color: var(--plum-2); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--plum) 10%, var(--surface)) 0 5px, var(--surface) 5px 9px); }
.mg-body { position: relative; }
.mg-now { position: absolute; top: 22px; bottom: 0; left: calc(84px + (100% - 84px) * .42); border-left: 2px solid var(--terracotta); pointer-events: none; }
.mg-now::before { content: ""; position: absolute; top: -4px; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }
.mg-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-3); }
.mg-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mg-legend i { width: 16px; height: 10px; border-radius: 0 3px 3px 0; }
.mg-legend i.is-pending { border: 1px dashed var(--ochre); border-left: 3px solid var(--ochre); }
.mg-legend i.is-now { background: #2f7d5d; border-left: 3px solid #a7e8c5; }
.mg-legend i.is-done { background: color-mix(in srgb, #3d6394 14%, var(--surface)); border-left: 3px solid #3d6394; }
.mg-legend i.mg-off-key { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--plum) 25%, var(--surface)) 0 3px, var(--surface) 3px 6px); }
@media (max-width: 520px) { .mg-row { grid-template-columns: 64px 1fr; } .mg-axis { margin-left: 64px; } .mg-who .shot-av { display: none; } .mg-now { display: none; } }

/* Y todo lo del día a día */
.toolkit { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(72px, 9vw, 120px); }
.toolkit .section-head h2 em { color: var(--terracotta); }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.tool { padding: 26px 26px 28px; background: var(--surface); transition: background .25s; }
.tool:hover { background: color-mix(in srgb, var(--terracotta) 4%, var(--surface)); }
.tool-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: color-mix(in srgb, var(--terracotta) 11%, var(--surface)); color: var(--terracotta-2); transition: transform .3s cubic-bezier(.34, 1.4, .5, 1); }
.tool:hover .tool-ico { transform: translateY(-3px) rotate(-4deg); }
.tool-ico .svc-svg { width: 21px; height: 21px; }
.tool h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.tool p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.tool:nth-child(3n+2) .tool-ico { background: color-mix(in srgb, var(--forest) 10%, var(--surface)); color: var(--forest); }
.tool:nth-child(3n+3) .tool-ico { background: color-mix(in srgb, var(--plum) 10%, var(--surface)); color: var(--plum); }
@media (max-width: 900px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tool-grid { grid-template-columns: 1fr; } }

@media (max-width: 960px) { .chapter.is-flipped { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .mg-now { left: calc(64px + (100% - 64px) * .42); display: block; } .mini-gantt { padding: 4px 14px 14px; } }

/* Tu cita: cabecera limpia con el color del estado, sin el arco girado */
.ticket::after { display: none; }
.ticket-head { --tone: var(--brand); display: flex; align-items: center; gap: 14px; margin: 4px 0 26px; padding: 14px 18px 14px 14px; border-radius: 16px; background: color-mix(in srgb, var(--tone) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tone) 24%, transparent); }
.ticket-head.is-confirmed, .ticket-head.is-arrived { --tone: var(--ok); }
.ticket-head.is-completed { --tone: #3d6394; }
.ticket-head.is-pending { --tone: var(--ochre); }
.ticket-head.is-cancelled, .ticket-head.is-no_show { --tone: var(--bad); }
.ticket-check { width: 46px; height: 46px; background: var(--tone); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--tone) 80%, #000); }
.ticket-check svg { width: 24px; height: 24px; }
.ticket-check:not(.is-stamp) { animation: none; }
.ticket-check:not(.is-stamp) path { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; }
.ticket-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ticket-head .ticket-state { margin: 0; font-size: 17px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.ticket-head small { font-size: 13px; color: var(--ink-2); line-height: 1.4; }

/* Resumen de la cita en «Tus datos»: cada parte con su etiqueta y una línea entre ellas */
.booking-page .summary-card { gap: 0; padding: 16px 20px; }
.booking-page .summary-card > div { position: relative; gap: 3px; padding: 4px 0; }
.booking-page .summary-card > div::before { font-size: 10.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.booking-page .summary-card > div:first-child::before { content: "Servicio"; }
.booking-page .summary-card > div:nth-child(2)::before { content: "Cuándo"; }
.booking-page .summary-card > div + div { padding-left: 20px; margin-left: 20px; border-left: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); }
.booking-page .summary-card span { margin-top: 0; }
@media (max-width: 640px) {
  .booking-page .summary-card > div + div { padding: 14px 0 4px; margin: 12px 0 0; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); }
}

/* Hecha: etiqueta junto a la hora cuando el lateral no cabe */
.b-done { display: none; align-items: center; flex: none; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 1px 6px; border-radius: 99px; background: #3d6394; color: #fff; white-space: nowrap; }
.agenda .block-day.is-short .b-done { display: inline-flex; margin-left: 6px; }
.agenda .block-day.is-short:hover .b-done { display: none; }
@container (max-width: 250px) { .block-day .b-done { display: inline-flex; } }

/* ==========================================================================
   v12: radar de «activo», foto del profesional, control horario, acceso, reserva
   ========================================================================== */

/* Radar: un punto verde que emite una onda cada pocos segundos */
.radar { position: relative; display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #4cc38a; box-shadow: 0 0 0 1px rgb(76 195 138 / .35); vertical-align: middle; }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #4cc38a; animation: radar-wave 2.8s cubic-bezier(.2, .6, .35, 1) infinite; }
.radar::after { animation-delay: 1.4s; }
@keyframes radar-wave { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .radar::before, .radar::after { animation: none; opacity: 0; } }
.venue-dot { position: relative; width: 8px; height: 8px; background: #4cc38a; box-shadow: 0 0 0 1px rgb(76 195 138 / .35); }
.venue-dot::before, .venue-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #4cc38a; animation: radar-wave 2.8s cubic-bezier(.2, .6, .35, 1) infinite; }
.venue-dot::after { animation-delay: 1.4s; }

/* Día: «Sin cobrar» a la izquierda del precio, en la misma línea */
.b-money { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.block-day .b-money .b-paid { order: 0; }
.block-day .b-money .b-price { order: 1; }
.agenda .block-day.is-short .b-money { display: none; }
.agenda .block-day.is-short:hover .b-money { display: inline-flex; }

/* Foto del profesional */
.staff-avatar img, .client-avatar img, .person-mono img, .arch-av b img, .svc-who i img { display: block; width: 100%; height: 100%; object-fit: cover; }
.staff-arch img { border-radius: inherit; }
.photo-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 10px 12px; margin-bottom: 4px; border: 1.5px dashed var(--line-2); border-radius: 14px; transition: border-color .2s, background .2s; }
.photo-row:hover, .photo-row:focus-within { border-color: var(--forest); background: color-mix(in srgb, var(--forest) 4%, var(--surface)); }
.photo-drop { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; cursor: pointer; }
.photo-thumb { width: 50px !important; height: 50px !important; display: grid !important; place-items: center; color: var(--ink-3); background: var(--paper-2) !important; }
.photo-row.has-photo .photo-thumb { background: none !important; }
.photo-thumb .icon { width: 22px; height: 22px; }
.photo-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.photo-text b { font-size: 14px; font-weight: 650; color: var(--forest); }
.photo-text small { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.photo-remove { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--bad); cursor: pointer; }
.photo-or { margin: 10px 0 8px; }

/* Reserva: confirmar solo con la privacidad aceptada, y la privacidad sin salir de la página */
.booking-page button[type="submit"]:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.6); box-shadow: none; transform: none; }
.privacy-hint { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--ink-3); }
.privacy-hint[hidden] { display: none; }
.privacy-dialog { width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 720px); padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgb(28 25 23 / .55); }
.privacy-dialog::backdrop { background: rgb(28 25 23 / .45); backdrop-filter: blur(3px); }
.privacy-dialog[open] { display: flex; flex-direction: column; animation: dialog-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.privacy-body { overflow-y: auto; padding: 26px 26px 8px; }
.privacy-body h1 { font-size: 26px; margin: 0 0 14px; }
.privacy-body .ticket-data div { flex-direction: column; gap: 4px; }
.privacy-body .ticket-data dd { text-align: left; color: var(--ink-2); }
.privacy-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--paper); }

/* Tipos de ausencia */
.kind-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: var(--ink-3); font-style: normal; }
.kind-dot.kind-vacation { background: #2f8a6a; }
.kind-dot.kind-sick { background: var(--bad); }
.kind-dot.kind-personal { background: var(--ochre); }
.kind-dot.kind-training { background: #3d6394; }
.kind-dot.kind-holiday { background: var(--plum); }
.kind-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.kind-opt { display: inline-flex; align-items: center; gap: 2px; padding: 7px 13px 7px 10px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.kind-opt input { position: absolute; opacity: 0; pointer-events: none; }
.kind-opt:hover { border-color: var(--ink-3); }
.kind-opt:has(input:checked) { border-color: var(--forest); background: color-mix(in srgb, var(--forest) 9%, var(--surface)); font-weight: 600; }
.kind-opt:has(input:focus-visible) { outline: 2px solid var(--forest); outline-offset: 2px; }

/* Control horario */
.wt-figures { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); }
.cf-of { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.clock-card { margin-bottom: 18px; }
.clock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.clock-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 0 14px 14px 0; background: var(--surface); transition: background .25s, border-color .25s; }
.clock-tile.is-in { background: color-mix(in srgb, #2f8a6a 7%, var(--surface)); border-color: color-mix(in srgb, #2f8a6a 30%, var(--line)); border-left-color: var(--c); }
.clock-tile .staff-avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.clock-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.clock-who strong { font-size: 15px; font-weight: 650; }
.clock-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #24694f; font-weight: 600; }
.clock-state.is-out { color: var(--ink-3); font-weight: 500; }
.clock-btn { white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.wt-progress { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.wt-progress span { display: flex; align-items: baseline; gap: 6px; }
.wt-progress b { font-weight: 650; font-variant-numeric: tabular-nums; }
.wt-progress small { color: var(--ink-3); font-size: 12px; }
.wt-progress .meter { height: 6px; }
.wt-progress .meter b { background: var(--c); }
.wt-balance { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); }
.wt-balance.is-plus { color: #24694f; }
.wt-balance.is-minus { color: var(--bad); }
.wt-gap { color: var(--ochre) !important; }
.vac-bar { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.vac-bar span { display: flex; align-items: baseline; gap: 6px; font-size: 13.5px; }
.vac-bar small { color: var(--ink-3); font-size: 12px; }
.vac-meter { display: flex; height: 7px; overflow: hidden; }
.vac-meter b { display: block; height: 100%; border-radius: 0; }
.vac-meter .vac-taken { background: #2f8a6a; }
.vac-meter .vac-planned { background: repeating-linear-gradient(-45deg, #2f8a6a 0 3px, color-mix(in srgb, #2f8a6a 35%, var(--surface)) 3px 6px); }
.vac-key-taken { background: #2f8a6a; width: 12px; }
.vac-key-planned { background: repeating-linear-gradient(-45deg, #2f8a6a 0 3px, color-mix(in srgb, #2f8a6a 35%, var(--surface)) 3px 6px); width: 12px; }
.abs-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.wt-legend { margin-top: 12px; }
.clock-now { margin: 4px 0 6px; }
.vac-big .vac-meter { height: 12px; border-radius: 6px; }
.vac-big p { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 12px; font-size: 13.5px; color: var(--ink-2); }
.vac-big b { font-size: 18px; font-weight: 700; color: var(--ink); margin-right: 3px; }
.abs-list { margin-bottom: 12px; }
.log-day { padding: 8px 0; border-bottom: 1px solid var(--line); }
.log-day:last-child { border-bottom: 0; }
.log-day-head { display: flex; justify-content: space-between; margin: 0 0 4px; font-size: 13px; }
.log-day-head span { font-weight: 650; font-variant-numeric: tabular-nums; }
.log-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 13.5px; }
.log-times { font-variant-numeric: tabular-nums; min-width: 110px; }
.log-note { flex: 1; min-width: 0; color: var(--ink-3); font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.log-open { display: inline-flex; align-items: center; gap: 6px; font-style: normal; color: #24694f; font-weight: 600; }
@media (max-width: 900px) { .wt-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Acceso: la parte derecha, con más de lo que hay dentro */
.scene .scene-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.scene-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: #8fe0b5; letter-spacing: 0; text-transform: none; }
.scene-blocks { display: grid; gap: 6px; padding: 12px; }
.sb { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; overflow: hidden; border-radius: 0 8px 8px 0; border-left: 3px solid #c9a27a; background: rgb(246 243 238 / .07); font-size: 12.5px; color: rgb(246 243 238 / .7); }
.sb > b { font-variant-numeric: tabular-nums; color: var(--paper); font-weight: 650; }
.sb span { display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; min-width: 0; }
.sb strong { width: 100%; color: var(--paper); font-weight: 600; font-size: 13.5px; }
.sb .svc-svg { width: 12px; height: 12px; }
.sb em { font-style: normal; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 99px; background: rgb(246 243 238 / .12); color: var(--paper); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.sb-done { border-left-color: #8fb0d9; background: rgb(143 176 217 / .14); }
.sb-done em { background: #3d6394; }
.sb-now { border-left-color: #a7e8c5; background: linear-gradient(125deg, #2f7d5d, #1f5c45); }
.sb-now em { background: #fff; color: #1f5c45; }
.sb-now .live-clock { width: 9px; height: 9px; border-width: 1.3px; }
.sb-progress { position: absolute; left: 0; bottom: 0; width: 55%; height: 3px; background: repeating-linear-gradient(-45deg, #d6f5e3 0 5px, #fff 5px 10px); background-size: 14px 14px; animation: progress-slide 1s linear infinite; }
.sb-pending { border-left-color: var(--ochre); background: repeating-linear-gradient(-45deg, rgb(201 138 47 / .16) 0 6px, transparent 6px 12px); }
.sb-pending em { background: var(--ochre); }
.sb em.sb-ok { background: rgb(143 224 181 / .16); color: #8fe0b5; text-transform: none; letter-spacing: 0; font-weight: 650; font-size: 11px; }
.scene-today { width: 100%; max-width: 460px; padding: 16px 18px; border-radius: var(--r-lg); background: rgb(23 53 45 / .72); backdrop-filter: blur(6px); border: 1px solid rgb(246 243 238 / .12); }
.scene-today-title { margin: 0 0 10px; font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: rgb(246 243 238 / .55); }
.scene-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.scene-alerts li { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; color: rgb(246 243 238 / .65); line-height: 1.35; }
.scene-alerts b { display: block; color: var(--paper); font-weight: 600; font-size: 13.5px; }
.sa-ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: rgb(246 243 238 / .1); color: var(--peach); }
.sa-ico .svc-svg { width: 16px; height: 16px; }
.sa-warn { color: #f0c27a; background: rgb(201 138 47 / .2); }
.sa-ok { color: #8fe0b5; background: rgb(76 195 138 / .16); }
.scene-features { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 460px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.scene-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: rgb(246 243 238 / .6); line-height: 1.35; }
.scene-features .svc-svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--peach); }
.scene-features b { display: block; color: var(--paper); font-weight: 600; font-size: 13.5px; }
.auth-scene .scene { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
@media (max-width: 520px) { .scene-features { grid-template-columns: 1fr; } }

/* Las citas de la escena van en una tarjeta clara, como en la agenda */
.scene-blocks { width: 100%; }
.scene-blocks .sb { --c: #b0502c; color: var(--ink-3); background: color-mix(in srgb, var(--c) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); border-left: 3px solid var(--c); }
.scene-blocks .sb > b { color: color-mix(in srgb, var(--c) 75%, var(--ink)); }
.scene-blocks .sb strong { color: var(--ink); }
.scene-blocks .sb .svc-svg { color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.scene-blocks .sb em { background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--ink-2); }
.scene-blocks .sb-done { --c: #3d6394; background: color-mix(in srgb, #3d6394 18%, var(--surface)); }
.scene-blocks .sb-done em { background: #3d6394; color: #fff; }
.scene-blocks .sb-now { --c: #a7e8c5; color: rgb(255 255 255 / .82); background: linear-gradient(125deg, #2f7d5d, #1f5c45); border: 1px solid #1a4d3a; border-left: 3px solid #a7e8c5; animation: live-ring 2.4s ease-out infinite; }
.scene-blocks .sb-now > b, .scene-blocks .sb-now strong, .scene-blocks .sb-now .svc-svg { color: #fff; }
.scene-blocks .sb-now em { background: #fff; color: #1f5c45; }
.scene-blocks .sb-pending { --c: #c98a2f; border: 1.5px dashed var(--ochre); border-left: 3px solid var(--ochre); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ochre) 12%, var(--surface)) 0 6px, var(--surface) 6px 12px); }
.scene-blocks .sb-pending em { background: var(--ochre); color: #fff; }
.scene-blocks .sb em.sb-ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent); }
.scene-kpis .scene-live { color: #24694f; }
.head-sub.no-cap { text-transform: none; }
.clock-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.clock-state { white-space: nowrap; }
.clock-state.is-away { color: var(--plum-2); font-weight: 600; }
.clock-tile.is-away { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--plum) 5%, var(--surface)) 0 8px, var(--surface) 8px 16px); }

/* ==========================================================================
   v13: estados cerrados, «No vino» en rojo, botones siempre a mano en el panel
   ========================================================================== */

/* Guardar y borrar siempre en pantalla dentro del panel; al llegar al final, se quedan abajo del todo */
.drawer .ap-submit, .modal .ap-submit { position: sticky; bottom: 0; z-index: 6; margin: 6px -28px -32px; padding: 22px 28px 18px; background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 0%, transparent), var(--paper) 20px); }
.drawer .ap-submit::before, .modal .ap-submit::before { content: ""; position: absolute; left: 28px; right: 28px; top: 14px; border-top: 1px solid var(--line); }
.drawer .ap-submit .btn, .modal .ap-submit .btn { position: relative; }
@media (max-width: 640px) { .drawer .ap-submit { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; } }

/* No vino: rojo de verdad */
.agenda .block.status-no_show { opacity: 1; filter: none; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--bad) 16%, var(--surface)) 0 7px, color-mix(in srgb, var(--bad) 9%, var(--surface)) 7px 14px); border: 1px solid color-mix(in srgb, var(--bad) 50%, transparent); border-left: 4px solid var(--bad); }
.agenda .block.status-no_show.is-past { filter: none; opacity: .95; }
.agenda .block.status-no_show strong { color: color-mix(in srgb, var(--bad) 80%, var(--ink)); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.agenda .block.status-no_show .b-time b, .agenda .block.status-no_show .block-time { color: var(--bad); }
.agenda .block.status-no_show .block-state { background: var(--bad); color: #fff; }
.agenda .block.status-no_show:hover { background: color-mix(in srgb, var(--bad) 20%, var(--surface)); }
.b-noshow { display: none; align-items: center; flex: none; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 1px 6px; border-radius: 99px; background: var(--bad); color: #fff; white-space: nowrap; }
.agenda .block-day.is-short .b-noshow { display: inline-flex; margin-left: 6px; }
.agenda .block-day.is-short:hover .b-noshow { display: none; }
@container (max-width: 250px) { .block-day .b-noshow { display: inline-flex; } }
.g-bar.status-no_show { border: 1px solid color-mix(in srgb, var(--bad) 50%, transparent); border-left: 4px solid var(--bad); background: color-mix(in srgb, var(--bad) 15%, var(--surface)); }
.g-bar.status-no_show.is-past { filter: none; opacity: .95; }
.g-bar.status-no_show .g-text strong { text-decoration: line-through; color: var(--bad); }
.lg-no_show { border: 1px solid color-mix(in srgb, var(--bad) 50%, transparent); border-left: 4px solid var(--bad); background: color-mix(in srgb, var(--bad) 16%, var(--surface)); }
.pill-bad, .st-no_show { --dot: var(--bad); color: var(--bad); }

/* Panel de la cita: estado cerrado con un cambio libre, sin botón predeterminado */
.ap-status-closed { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #3d6394 10%, var(--surface)); border: 1px solid color-mix(in srgb, #3d6394 26%, transparent); }
.ap-status-closed.is-no_show { background: color-mix(in srgb, var(--bad) 8%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 28%, transparent); }
.ap-status-now { display: flex; flex-direction: column; margin: 0; }
.ap-status-now b { font-size: 15px; color: #3d6394; }
.is-no_show .ap-status-now b { color: var(--bad); }
.ap-status-now span { font-size: 12.5px; color: var(--ink-3); }
.status-change { display: flex; gap: 8px; align-items: center; }
.status-change select { min-width: 190px; }

/* ¿Ha terminado antes? */
.ap-finish { padding: 12px 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--forest) 35%, var(--line-2)); background: color-mix(in srgb, var(--forest) 4%, var(--surface)); }
.ap-finish p { display: flex; flex-direction: column; margin: 0 0 8px; }
.ap-finish p b { font-size: 14px; }
.ap-finish p span { font-size: 12.5px; color: var(--ink-3); }
.ap-finish-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13.5px; }
.ap-finish-row input[type="time"] { width: 110px; }
.ap-finish-row .check-line { margin: 0; }

/* ==========================================================================
   v14: ajustes a lo ancho, buscador de tipos, calendario de ausencias, historial de fichajes, plantilla,
   recorte de foto, confeti
   ========================================================================== */

/* Ajustes: todo el ancho, en tarjetas */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.settings-wide { grid-column: 1 / -1; }
.settings-card { margin: 0; }
.settings-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.settings-fields .field.wide { grid-column: span 2; }
.settings-checks { display: grid; gap: 4px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.settings-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
#control-horario { scroll-margin-top: 90px; }
@media (max-width: 1100px) { .settings-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .settings-grid { grid-template-columns: 1fr; } .settings-fields { grid-template-columns: 1fr; } .settings-fields .field.wide { grid-column: auto; } }

/* Lista con buscador */
.combo { position: relative; }
.combo-input { width: 100%; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7268' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 16px; }
.combo-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 24px 48px -20px rgb(28 25 23 / .35); }
.combo-group { padding: 10px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.combo-option { padding: 8px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.combo-option:hover, .combo-option.is-active { background: color-mix(in srgb, var(--forest) 9%, var(--surface)); }
.combo-option.is-selected { font-weight: 650; color: var(--forest); }
.combo-option.is-selected::after { content: " ✓"; }
.combo-empty { padding: 12px 10px; font-size: 13px; color: var(--ink-3); }

/* Landing: la última tarjeta de la carta */
.menu-card.menu-more { background: linear-gradient(160deg, var(--forest-2), var(--forest)); color: var(--paper); border-color: transparent; }
.menu-more .menu-kind { color: var(--peach); }
.more-lead { margin: 0 0 12px; font-size: 14px; color: rgb(246 243 238 / .75); }
.more-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.more-kinds li { padding: 4px 10px; border-radius: 99px; font-size: 12.5px; background: rgb(246 243 238 / .1); border: 1px solid rgb(246 243 238 / .16); }
.more-kinds li.is-more { background: none; border-style: dashed; color: var(--peach); }
.menu-more .menu-link { color: var(--peach); }

/* Control horario: avisos, desde cuándo, historial */
.wt-since { display: inline-block; margin-left: 4px; color: var(--ink-3); }
.wt-notice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.wt-notice .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.wt-notice b { display: block; }
.wt-alerts { display: grid; gap: 8px; margin-bottom: 14px; }
.wt-alert { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ochre) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ochre) 35%, transparent); font-size: 13px; color: var(--ink-2); }
.wt-alert > span:nth-child(2) { flex: 1; min-width: 0; }
.wt-alert b { display: block; color: var(--ink); font-size: 14px; }
.wt-alert-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--ochre); color: #fff; }
.wt-alert-ico .icon { width: 16px; height: 16px; }
.wt-figures { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .wt-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wt-table tr.is-off td { opacity: .7; }
.wt-history { margin-top: 18px; }
.change-list { list-style: none; margin: 0; padding: 0; display: grid; }
.change { position: relative; display: flex; gap: 12px; padding: 10px 0 10px 4px; border-bottom: 1px solid var(--line); }
.change:last-child { border-bottom: 0; }
.change-dot { width: 10px; height: 10px; flex: none; margin-top: 5px; border-radius: 50%; background: #3d6394; box-shadow: 0 0 0 3px color-mix(in srgb, #3d6394 18%, transparent); }
.change-delete .change-dot { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); }
.change-create .change-dot { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
.change p { margin: 0; }
.change-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13.5px; }
.change-head span { font-size: 12px; color: var(--ink-3); }
.change-what { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.change-what s { color: var(--ink-3); }
.change-arrow { display: inline-block; margin: 0 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #3d6394; }
.change-reason { font-size: 12.5px; font-style: italic; color: var(--ink-3); }

/* Corregir un fichaje */
.log-row { position: relative; }
.log-row.is-changed .log-times { color: #3d6394; }
.log-edit { position: relative; }
.log-edit > summary { list-style: none; cursor: pointer; }
.log-edit > summary::-webkit-details-marker { display: none; }
.log-edit[open] > summary { background: var(--paper-2); }
.log-edit-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 12; width: min(340px, 80vw); padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 24px 48px -20px rgb(28 25 23 / .4); display: grid; gap: 12px; }
.log-edit-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.log-edit-pop label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.log-edit-pop input { width: 100%; min-width: 0; }
.log-reason { margin: 8px 0; }
.log-delete { padding-top: 10px; border-top: 1px dashed var(--line-2); }

/* Equipo: antiguos trabajadores */
.former-card { margin-top: 18px; }
.former-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.former-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; background: var(--paper); transition: background .15s, border-color .15s; }
.former-row:hover { background: var(--surface); border-color: var(--line-2); }
.former-row .staff-avatar { filter: grayscale(.6); }
.former-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.former-name small { color: var(--ink-3); font-size: 12px; }
.former-dates { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-section.is-left { background: color-mix(in srgb, var(--bad) 4%, var(--surface)); }

/* Calendario de ausencias */
.absence-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 14px; font-size: 12.5px; color: var(--ink-2); }
.absence-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.absence-legend .btn { margin-left: auto; }
.absence-months { display: grid; gap: 16px; }
.absence-months.is-year { grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); }
.absence-month { margin: 0; padding-bottom: 12px; }
.absence-month .card-title a { color: inherit; text-decoration: none; }
.absence-month .card-title a:hover { color: var(--terracotta-2); }
.ab-scroll { overflow-x: auto; }
.ab-grid { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.ab-grid th, .ab-grid td { padding: 0; }
.ab-grid thead th { font-size: 10px; font-weight: 600; color: var(--ink-3); text-align: center; line-height: 1.1; padding-bottom: 4px; }
.ab-grid thead th span { display: block; font-size: 9px; text-transform: uppercase; opacity: .8; }
.ab-grid thead th b { font-weight: 650; color: var(--ink-2); }
.ab-grid thead th.is-weekend b { color: var(--ink-3); }
.ab-grid thead th.is-today b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 50%; background: var(--terracotta); color: #fff; }
.ab-who { width: 150px; text-align: left; }
.is-year .ab-who { width: 110px; }
.ab-who a { display: flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.ab-who a span { overflow: hidden; text-overflow: ellipsis; display: flex; flex-direction: column; }
.ab-who small { font-size: 10px; font-weight: 500; color: var(--bad); }
.ab-cell { height: 26px; border-radius: 4px; background: color-mix(in srgb, var(--ok) 9%, var(--surface)); }
.is-year .ab-cell { height: 18px; border-radius: 3px; }
td.ab-cell.is-today { box-shadow: inset 0 0 0 2px var(--terracotta); }
.ab-cell.ab-rest { background: var(--paper-2); }
.ab-cell.ab-out { background: repeating-linear-gradient(-45deg, var(--paper-2) 0 3px, var(--surface) 3px 6px); }
.ab-cell.ab-vacation { background: #2f8a6a; }
.ab-cell.ab-sick { background: var(--bad); }
.ab-cell.ab-personal { background: var(--ochre); }
.ab-cell.ab-training { background: #3d6394; }
.ab-cell.ab-holiday { background: var(--plum); }
.ab-cell.ab-half { background-image: linear-gradient(135deg, transparent 50%, var(--surface) 50%); }
i.ab-cell { display: inline-block; width: 16px; height: 14px; border-radius: 3px; }
.ab-sum { width: 120px; text-align: right; }
.ab-count { display: inline-block; min-width: 22px; margin-left: 3px; padding: 1px 5px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; text-align: center; }
.ab-count.ab-vacation { background: #2f8a6a; } .ab-count.ab-sick { background: var(--bad); } .ab-count.ab-personal { background: var(--ochre); }
.ab-count.ab-training { background: #3d6394; } .ab-count.ab-holiday { background: var(--plum); }
.absence-upcoming { margin-top: 16px; }
@media (max-width: 640px) { .absence-months.is-year { grid-template-columns: 1fr; } }

/* Encajar la foto en el círculo */
.crop-dialog { width: min(380px, calc(100vw - 32px)); padding: 22px; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgb(28 25 23 / .55); text-align: center; }
.crop-dialog::backdrop { background: rgb(28 25 23 / .5); backdrop-filter: blur(3px); }
.crop-dialog h2 { margin: 0 0 4px; font-size: 20px; }
.crop-stage { position: relative; margin: 14px auto 12px; overflow: hidden; border-radius: 16px; background: #1c1917; cursor: grab; touch-action: none; user-select: none; }
.crop-stage.is-dragging { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; background: radial-gradient(circle at center, transparent 0 calc(50% - 1px), rgb(28 25 23 / .58) 50%); }
.crop-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .85); }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 0 auto 16px; max-width: 280px; font-weight: 700; color: var(--ink-3); }
.crop-zoom input { flex: 1; accent-color: var(--forest); }
.crop-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Confeti de la reserva */
.confetti-canvas { position: fixed; inset: 0; z-index: 100; pointer-events: none; }

/* ==========================================================================
   v15: el día de cada profesional en su columna, avisos de citas nuevas en vivo
   ========================================================================== */

.agenda .col-head { flex-wrap: wrap; row-gap: 8px; align-content: flex-start; }
.col-stats { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
.col-stats span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 99px; font-size: 11px; font-weight: 550; color: var(--ink-2); background: var(--paper-2); white-space: nowrap; }
.col-stats b { font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ink); }
.col-stats .cs-done { background: color-mix(in srgb, #3d6394 12%, var(--surface)); color: #3d6394; }
.col-stats .cs-done b { color: #2e4f78; }
.col-stats .cs-live { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: #24694f; }
.col-stats .cs-live .radar { width: 6px; height: 6px; }
.col-stats .cs-left { background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.col-stats .cs-unpaid { color: var(--ink-3); }
.col-stats .cs-unpaid.is-due { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); color: var(--bad); }
.col-stats .cs-unpaid.is-due b { color: var(--bad); }

/* Aviso de cita nueva: abajo en el centro, con su color y un botón para verla */
.live-notices { position: fixed; left: 50%; bottom: 22px; z-index: 90; transform: translateX(-50%); display: grid; gap: 10px; width: min(560px, calc(100vw - 24px)); pointer-events: none; }
.live-notice { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 44px 14px 14px; overflow: hidden; border-radius: 18px; background: #1c1917; color: #f6f3ee; box-shadow: 0 26px 60px -20px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .06); pointer-events: auto; opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.3, .4, 1); }
.live-notice.is-in { opacity: 1; transform: none; }
.live-notice.is-leaving { opacity: 0; transform: translateY(16px) scale(.97); transition-duration: .3s; }
.live-notice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.ln-bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: #2f8a6a; color: #fff; animation: ln-ring 1.1s ease .3s 2; }
.is-pending .ln-bell { background: var(--ochre); }
.ln-bell svg { width: 22px; height: 22px; }
.ln-bell::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #2f8a6a; animation: radar-wave 1.8s ease-out infinite; }
.is-pending .ln-bell::after { border-color: var(--ochre); }
@keyframes ln-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.ln-text { flex: 1; min-width: 0; }
.ln-text p { margin: 0; }
.ln-kicker { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8fe0b5; }
.is-pending .ln-kicker { color: #f0c27a; }
.ln-who { font-size: 16.5px; font-weight: 700; line-height: 1.25; }
.ln-what { font-size: 13px; color: rgb(246 243 238 / .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-actions { display: flex; flex-direction: column; align-items: stretch; gap: 4px; flex: none; }
.ln-actions .btn { padding-left: 18px; padding-right: 18px; }
.ln-mute { border: 0; background: none; padding: 2px; font: inherit; font-size: 11px; color: rgb(246 243 238 / .55); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ln-mute:hover { color: #f6f3ee; }
.ln-close { position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .08); color: rgb(246 243 238 / .75); font-size: 17px; line-height: 1; cursor: pointer; }
.ln-close:hover { background: rgb(255 255 255 / .16); color: #fff; }
.ln-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--c); opacity: .8; transform-origin: left; animation: ln-timer 20s linear forwards; }
.live-notice.is-paused .ln-timer { animation-play-state: paused; }
@keyframes ln-timer { to { transform: scaleX(0); } }
@media (max-width: 560px) { .live-notice { flex-wrap: wrap; } .ln-actions { flex-direction: row; width: 100%; } .ln-actions .btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .ln-bell, .ln-bell::after { animation: none; } .live-notice { transition: opacity .2s; transform: none; } }

/* ==========================================================================
   v16: Horario por semanas, meses y años
   ========================================================================== */
.hours-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 14px; }
.hours-nav .day-nav { display: flex; align-items: center; gap: 8px; }
.hours-nav .card-title { margin: 0 0 0 4px; }
.hours-today { margin-left: 8px; font-weight: 500; }
.hours-nav .head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hours-jump input[type="date"] { height: 38px; padding: 0 10px; }
.is-month-board .wb-day { padding: 4px 0; }
.is-month-board .wb-business { height: 18px; }
.is-month-board .wb-business i span { font-size: 10.5px; }
.is-month-board .wb-member { height: 8px; }
.is-month-board .wb-member.is-away { height: 13px; }
.is-month-board .wb-label { font-size: 13px; }
.wb-day.is-weekend .wb-label b { color: var(--ink-3); }
.hours-period-offs { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }

.hours-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 22px; }
.hy-month { min-width: 0; }
.hy-head { display: flex; flex-direction: column; margin: 0 0 8px; }
.hy-head a { font-size: 15px; font-weight: 650; color: var(--ink); text-decoration: none; }
.hy-head a:hover { color: var(--terracotta-2); }
.hy-head small { font-size: 11.5px; color: var(--ink-3); }
.hy-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.hy-dow { font-size: 10px; font-weight: 650; text-align: center; color: var(--ink-3); }
.hy-day { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 7px; font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.hy-day:hover { transform: scale(1.12); box-shadow: 0 6px 14px -8px rgb(28 25 23 / .5); z-index: 1; }
.hy-day.is-open { background: color-mix(in srgb, var(--forest) 13%, var(--surface)); }
.hy-day.is-closed { background: var(--paper-2); color: var(--ink-3); }
.hy-day.is-closure { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--plum) 22%, var(--surface)) 0 4px, color-mix(in srgb, var(--plum) 10%, var(--surface)) 4px 8px); color: var(--plum-2); font-weight: 700; }
.hy-day.is-past { opacity: .62; }
.hy-day.is-today { background: var(--terracotta); color: #fff; opacity: 1; font-weight: 750; }
.hy-dots { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; gap: 2px; }
.hy-dots .kind-dot { width: 5px; height: 5px; margin: 0; }
.hy-key-open { width: 12px; background: color-mix(in srgb, var(--forest) 18%, var(--surface)); }
.hy-key-closed { width: 12px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.hy-key-closure { width: 12px; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--plum) 30%, var(--surface)) 0 3px, var(--surface) 3px 6px); }
.week-card .legend .kind-dot { margin-left: 8px; }
.hy-day.is-open { background: color-mix(in srgb, var(--ok) 24%, var(--surface)); color: #1f4d3c; }
.hy-day.is-closed { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 400; }
.hy-day.is-past { opacity: .55; }
.hy-key-open { background: color-mix(in srgb, var(--ok) 28%, var(--surface)); }
.hy-key-closed { background: transparent; }

/* ==========================================================================
   v17: precio, contratar, administración
   ========================================================================== */

/* Precio en el landing */
.pricing { padding: clamp(72px, 9vw, 120px) 0; background: radial-gradient(900px 500px at 85% 0%, color-mix(in srgb, var(--terracotta) 14%, transparent), transparent 70%), var(--paper); }
.pricing .section-head h2 em { color: var(--terracotta); }
.pricing-lead { max-width: 560px; color: var(--ink-2); font-size: 16px; margin: 12px 0 0; }
.price-panel { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.6fr); gap: 0; margin-top: 36px; overflow: hidden; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgb(28 25 23 / .45); }
.price-main { position: relative; padding: 36px 32px; background: linear-gradient(160deg, var(--forest-2), var(--forest)); color: var(--paper); overflow: hidden; }
.price-main::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 260px; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #d98f5f, #b8552e); opacity: .5; }
.price-main > * { position: relative; z-index: 1; }
.price-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--peach); }
.price-amount { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.price-amount b { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.02em; }
.price-amount span { font-size: 18px; opacity: .8; }
.price-note { margin: 10px 0 26px; color: rgb(246 243 238 / .75); }
.price-fine { margin: 12px 0 0; font-size: 12.5px; color: rgb(246 243 238 / .6); text-align: center; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; padding: 34px 34px; align-content: center; }
.price-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.price-list b { display: block; font-size: 15px; color: var(--ink); font-weight: 650; margin-bottom: 1px; }
.price-check { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); font-size: 13px; font-weight: 800; }
@media (max-width: 860px) { .price-panel { grid-template-columns: 1fr; } .price-grid { grid-template-columns: 1fr; padding: 26px; } }

/* Contratar */
.contact-grid .auth-inner.is-wide { width: min(620px, 100%); }
.contact-form .check-line { margin: 6px 0 14px; }
.contact-side { align-items: center; justify-content: center; }
.price-card { position: relative; width: min(460px, 100%); padding: 30px; border-radius: 22px; background: rgb(23 53 45 / .72); backdrop-filter: blur(6px); border: 1px solid rgb(246 243 238 / .14); color: var(--paper); }
.price-card .price-list li { color: rgb(246 243 238 / .66); font-size: 13px; }
.price-card .price-list b { color: var(--paper); font-size: 14px; }
.price-card .price-check { background: rgb(143 224 181 / .16); color: #8fe0b5; }
.price-card .price-note { margin-bottom: 20px; }
.thanks-card { text-align: center; }
.thanks-card .ticket-check { margin: 0 auto 14px; background: var(--forest); }
.lead-text { font-size: 17px; color: var(--ink-2); }
.thanks-steps { text-align: left; margin: 22px 0 26px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.thanks-steps li { counter-increment: s; position: relative; padding-left: 44px; font-size: 14px; color: var(--ink-3); }
.thanks-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--terracotta); color: #fff; font-weight: 700; }
.thanks-steps b { display: block; color: var(--ink); font-size: 15px; }

/* Administración */
.admin-topbar { background: #1c1917; }
.admin-chip { color: var(--peach) !important; gap: 6px; }
.admin-chip .icon { width: 15px; height: 15px; }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 99px; background: var(--terracotta); color: #fff; font-size: 11px; }
.admin-figures { grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .admin-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.admin-cols { align-items: start; }
.admin-sub { margin-top: 22px; }
.card-title .small { margin-left: auto; font-weight: 500; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: 10px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; }
.admin-row:hover { background: var(--paper-2); }
.admin-row-main { display: flex; flex-direction: column; min-width: 0; }
.admin-row-main small, .admin-row-side small { font-size: 12px; color: var(--ink-3); }
.admin-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.status-pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-style: normal; font-size: 11.5px; font-weight: 650; vertical-align: middle; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.status-pill.plan-active, .status-pill.lead-won { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: #24694f; }
.status-pill.plan-trial, .status-pill.lead-contacted { background: color-mix(in srgb, #3d6394 14%, var(--surface)); color: #2e4f78; }
.status-pill.plan-paused, .status-pill.lead-new { background: color-mix(in srgb, var(--ochre) 18%, var(--surface)); color: #8a5a14; }
.status-pill.plan-cancelled, .status-pill.lead-lost, .status-pill.is-off { background: color-mix(in srgb, var(--ink) 8%, var(--surface)); color: var(--ink-3); }
.status-pill.is-overdue { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); color: var(--bad); }
h1 .status-pill { font-family: var(--sans); font-size: 13px; margin-left: 8px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.back-link { display: inline-block; margin-bottom: 6px; font-size: 13px; color: var(--ink-3); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.admin-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .admin-detail { grid-template-columns: 1fr; } }
.credentials-box { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--ochre) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ochre) 40%, transparent); }
.credentials-box > .icon { width: 22px; height: 22px; flex: none; color: #8a5a14; }
.credentials-box > div { flex: 1; min-width: 0; }
.credentials-box p { margin: 4px 0 0; font-size: 14px; }
.credentials-box code { padding: 2px 6px; border-radius: 6px; background: var(--surface); font-size: 13.5px; }
.account-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.account-row.is-off { opacity: .6; }
.account-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.account-main small { font-size: 12px; color: var(--ink-3); }
.account-actions summary { list-style: none; cursor: pointer; font-size: 18px; }
.account-actions summary::-webkit-details-marker { display: none; }
.account-actions .menu-pop { right: 0; left: auto; }
.add-account { margin-top: 12px; }
.add-account > summary { list-style: none; }
.add-account > summary::-webkit-details-marker { display: none; }
.add-account[open] > summary { margin-bottom: 12px; }
.danger-card { border-color: color-mix(in srgb, var(--bad) 25%, var(--line)); }
.account-biz { display: inline-flex; align-items: baseline; gap: 4px; margin: 0 8px 2px 0; font-size: 13.5px; }
.account-biz small { color: var(--ink-3); }
.admin-facts { margin: 0; }
.lead-message { margin: 0; padding: 12px 14px; border-left: 3px solid var(--terracotta); background: var(--paper); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--ink-2); }

/* Dentro de un negocio como administrador */
.admin-strip { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 7px 16px; background: var(--peach); color: #3b2414; font-size: 13px; }
.admin-strip span { display: inline-flex; align-items: center; gap: 6px; }
.admin-strip .icon { width: 15px; height: 15px; }
.admin-strip .btn { background: #3b2414; color: #fff; border-color: transparent; padding: 4px 12px; }

/* ---------- Plans (home page) ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 40px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 30px 28px 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -55px rgb(28 25 23 / .55); }
.plan-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: -.01em; }
.plan-tagline { margin: 8px 0 18px; color: var(--ink-2); font-size: 14.5px; min-height: 2.9em; }
.plan-price { display: flex; align-items: flex-end; gap: 10px; margin: 0; }
.plan-price b { font-family: var(--serif); font-weight: 400; font-size: clamp(3.2rem, 5vw, 4.2rem); line-height: .9; letter-spacing: -.03em; }
.plan-price span { font-size: 14px; line-height: 1.15; color: var(--ink-3); padding-bottom: 6px; }
.plan-price small { font-size: 12px; }
.plan-team { display: inline-flex; margin: 16px 0 0; padding: 6px 12px; border-radius: 99px; background: var(--paper-2); font-size: 13px; font-weight: 650; color: var(--ink-2); }
.plan-list { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; flex: 1; align-content: start; }
.plan-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.plan-list b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 650; margin-bottom: 1px; }
.plan.is-featured { background: linear-gradient(165deg, var(--forest-2), var(--forest)); color: var(--paper); border-color: transparent; transform: translateY(-10px); box-shadow: 0 50px 90px -45px rgb(23 53 45 / .75); overflow: hidden; }
.plan.is-featured::after { content: ""; position: absolute; right: -70px; top: -90px; width: 230px; height: 270px; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #d98f5f, #b8552e); opacity: .22; transform: rotate(180deg); pointer-events: none; }
.plan.is-featured > * { position: relative; z-index: 1; }
.plan.is-featured > .plan-badge { position: absolute; z-index: 2; }
.plan.is-featured .plan-tagline, .plan.is-featured .plan-list li { color: rgb(246 243 238 / .72); }
.plan.is-featured .plan-list b { color: var(--paper); }
.plan.is-featured .plan-price span { color: rgb(246 243 238 / .7); }
.plan.is-featured .plan-team { background: rgb(246 243 238 / .12); color: var(--paper); }
.plan.is-featured .plan-list { border-top-color: rgb(246 243 238 / .16); }
.plan.is-featured .price-check { background: rgb(143 224 181 / .16); color: #8fe0b5; }
.plan-badge { position: absolute; top: 22px; right: 22px; margin: 0; padding: 6px 12px; border-radius: 99px; background: var(--peach); color: #2a130a; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.plan.is-ai { border-color: color-mix(in srgb, var(--terracotta) 35%, var(--line)); background: radial-gradient(420px 260px at 100% 0%, color-mix(in srgb, var(--peach) 30%, transparent), transparent 70%), var(--surface); }
.plan.is-ai .plan-head h3::after { content: "✦"; margin-left: 8px; color: var(--terracotta); font-size: .8em; }
.plan-always { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 34px 0 0; padding: 0; font-weight: 650; font-size: 14.5px; color: var(--ink-2); }
.plan-always li { display: inline-flex; align-items: center; gap: 8px; }
.plan-always span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); font-size: 12px; font-weight: 800; }

.versus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; margin-top: 64px; padding: 38px; border-radius: 24px; background: var(--paper-2); border: 1px solid var(--line); }
.versus-text h3 { margin: 6px 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.08; }
.versus-text h3 em { color: var(--terracotta); }
.versus-text p:last-child { margin: 0; color: var(--ink-2); line-height: 1.55; }
.versus-table { display: grid; gap: 8px; }
.versus-caption { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.vs-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.vs-row > span:last-child { display: grid; justify-items: end; text-align: right; }
.vs-row b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1; }
.vs-row small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.vs-row.is-us { background: var(--forest); color: var(--paper); border-color: transparent; }
.vs-row.is-us small { color: rgb(246 243 238 / .66); }
.vs-row.is-us b { color: var(--peach); }
.versus-fine { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }

/* ---------- Features (home page) ---------- */
.features-band { padding: clamp(64px, 8vw, 110px) 0; background: var(--surface); border-top: 1px solid var(--line); }
.features-band .section-head h2 em { color: var(--terracotta); }
.feature-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.feature-group { padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); }
.feature-group h3 { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1; }
.feature-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-group li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.feature-group li b { font-size: 14.5px; color: var(--ink); }
.feature-group.is-new { background: linear-gradient(165deg, var(--forest-2), var(--forest)); border-color: transparent; color: var(--paper); }
.feature-group.is-new li { color: rgb(246 243 238 / .72); border-left-color: var(--peach); }
.feature-group.is-new li b { color: var(--paper); }
.new-tag { padding: 5px 11px; border-radius: 99px; background: var(--peach); color: #2a130a; font-family: Geist, system-ui, sans-serif; font-size: 12px; font-weight: 750; }

/* ---------- Plans next to the «Contratar» form ---------- */
.mini-plans { display: grid; gap: 10px; margin: 6px 0 20px; }
.mini-plan { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 14px 16px 14px 44px; border-radius: 14px; border: 1px solid rgb(246 243 238 / .18); cursor: pointer; transition: background .15s, border-color .15s; }
.mini-plan input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; accent-color: var(--peach); }
.mini-plan:has(input:checked) { background: rgb(246 243 238 / .12); border-color: var(--peach); }
.mini-plan-name { font-weight: 700; }
.mini-plan-price b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.mini-plan small { grid-column: 1 / -1; color: rgb(246 243 238 / .6); font-size: 12.5px; }

@media (max-width: 980px) {
  .plans, .feature-groups { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .plan.is-featured { transform: none; order: -1; }
  .plan-tagline { min-height: 0; }
  .versus { grid-template-columns: 1fr; padding: 26px; gap: 24px; }
}
@media (max-width: 520px) {
  .vs-row { flex-direction: column; align-items: flex-start; }
  .vs-row > span:last-child { justify-items: start; text-align: left; }
}

/* ---------- Inventory ---------- */
.stock-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.voucher-tile.is-tool { background: color-mix(in srgb, var(--ink-3) 18%, var(--surface)); color: var(--ink-2); }
.meter-bad b { background: var(--bad, #b4412f) !important; }
.text-ok { color: var(--ok); font-weight: 650; }
.text-bad { color: #b4412f; font-weight: 650; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px; }
.check-col { display: grid; gap: 6px; max-height: 220px; overflow: auto; padding: 4px 2px; }
@media (max-width: 1100px) { .stock-layout { grid-template-columns: 1fr; } }

/* ---------- Plans inside the panel ---------- */
.upgrade-card { text-align: left; max-width: 620px; }
.upgrade-card .plan-list { border-top: 1px solid var(--line); margin: 18px 0 22px; }

/* ---------- Tickets (VeriFactu) ---------- */
.fticket { width: min(380px, 100%); margin: 0 auto; padding: 22px 20px; background: #fff; color: #111; border: 1px dashed var(--line-2); border-radius: 10px; font: 13px/1.45 "Geist Mono", ui-monospace, monospace; }
.fticket-head { display: grid; gap: 2px; text-align: center; padding-bottom: 12px; border-bottom: 1px dashed #bbb; }
.fticket-head strong { font-size: 15px; }
.fticket-kind { margin: 10px 0 6px; text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.fticket-meta { display: grid; gap: 2px; margin: 0 0 10px; }
.fticket-meta div, .fticket-totals div { display: flex; justify-content: space-between; gap: 12px; }
.fticket-meta dt, .fticket-totals dt { color: #555; }
.fticket-meta dd, .fticket-totals dd { margin: 0; text-align: right; }
.fticket-lines { width: 100%; border-collapse: collapse; margin: 6px 0; }
.fticket-lines th { text-align: left; font-weight: 600; border-bottom: 1px dashed #bbb; padding: 4px 0; }
.fticket-lines td { padding: 4px 0; vertical-align: top; }
.fticket-lines small { color: #666; }
.fticket-lines .num { text-align: right; white-space: nowrap; padding-left: 8px; }
.fticket-totals { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #bbb; display: grid; gap: 2px; }
.fticket-totals .is-total { font-size: 16px; font-weight: 800; }
.fticket-qr { display: grid; justify-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #bbb; text-align: center; }
.fticket-qr p { margin: 0; font-size: 11px; color: #333; }
.fticket-qr b { display: block; font-size: 13px; letter-spacing: .08em; }
.fticket-qr-code svg { width: 132px; height: 132px; }
.fticket-buttons { margin: 14px 0; justify-content: center; }
.hash { word-break: break-all; }
.fticket-page { background: var(--paper); padding: 24px 16px; }
.fticket-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
@media print { .no-print { display: none !important; } .fticket-page { background: #fff; padding: 0; } .fticket { border: 0; width: 80mm; } }

/* ---------- Reviews ---------- */
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.review-card { padding: 20px 22px; display: grid; gap: 8px; }
.review-card header { display: flex; justify-content: space-between; align-items: center; }
.review-card blockquote, .review blockquote { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; color: var(--ink); }
.review-card.is-off { opacity: .6; }
.review-who { margin: 0; color: var(--ink-2); font-size: 14px; }
.review-reply-form { display: grid; gap: 8px; }
.review-reply-form textarea { width: 100%; }
.review-stars { color: #d39b2a; letter-spacing: 1px; margin: 0; }
.review-stars.big { font-size: 20px; }
.review-stars .is-off { color: var(--line-2); }
.rating-bar { display: grid; grid-template-columns: 34px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; margin-top: 8px; }
.rating-bar .meter b { background: #d39b2a; }
.reviews-block .review { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.reviews-block .review blockquote { font-size: 1.1rem; margin: 4px 0; }
.reviews-block figcaption { font-size: 12.5px; color: var(--ink-3); }
.review-reply { margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--paper-2); font-size: 13px; color: var(--ink-2); }
.rating-big { margin-left: 6px; color: #d39b2a; font-family: Geist, system-ui, sans-serif; font-size: 15px; font-weight: 750; }
.rating-chip b { color: #f4c86a; }
.lang-chip { text-decoration: none; }
@media (max-width: 900px) { .reviews-layout { grid-template-columns: 1fr; } }

/* Stars on the client's page */
.review-box { display: grid; gap: 10px; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { font-size: 34px; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .12s, transform .12s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #d39b2a; }
.stars input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.review-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; }
.deal { color: #2f7d5d; font-weight: 700; }

/* Quiet-hour times on the booking page */
.time-btn.is-deal { position: relative; border-color: color-mix(in srgb, #2f7d5d 45%, var(--line)); }
.time-btn.is-deal small { display: block; font-size: 10.5px; font-weight: 750; color: #2f7d5d; line-height: 1; margin-top: 2px; }

/* ---------- Rota ---------- */
.rota th.is-today, .rota td.is-today { background: color-mix(in srgb, var(--peach) 14%, transparent); }
.rota td { padding: 6px; }
.rota-input { width: 100%; min-width: 110px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 600 13px Geist, system-ui, sans-serif; }
.rota-input.has-shift { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
.rota-input::placeholder { color: var(--ink-3); font-weight: 500; }
.rota-card { overflow-x: auto; }
.rota-card .form-actions { padding: 14px 16px; }

/* ---------- Before / after photos ---------- */
.photo-form { display: grid; gap: 8px; margin-bottom: 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; display: grid; gap: 4px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.photo-grid figcaption { font-size: 12px; color: var(--ink-3); }

.alert-warn { background: color-mix(in srgb, #c98a2f 12%, var(--surface)); border: 1px solid color-mix(in srgb, #c98a2f 40%, var(--line)); padding: 12px 14px; border-radius: 12px; }
.off-peak-card { margin-top: 20px; }

/* ---------- Product categories ---------- */
.cat-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink-3)); flex: none; }
.shelf-filters { margin-top: 8px; }
.shelf-filters a { display: inline-flex; align-items: center; gap: 6px; }
.shelf-manage { border-style: dashed !important; color: var(--ink-2); }
.cat-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 650;
  background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: color-mix(in srgb, var(--c) 80%, var(--ink)); }
.cat-picker .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.cat-chips-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-pill { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.cat-pill input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.cat-pill > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; transition: background .12s, border-color .12s; }
.cat-pill input[type=radio]:checked + span { border-color: var(--c, var(--ink)); background: color-mix(in srgb, var(--c, var(--ink)) 12%, var(--surface)); box-shadow: inset 0 0 0 1px var(--c, var(--ink)); }
.cat-pill input[type=radio]:focus-visible + span { outline: 2px solid var(--brand, var(--ink)); }
.cat-pill-new { gap: 0; border: 1px dashed var(--line-2); border-radius: 99px; padding: 0 4px 0 12px; background: var(--surface); }
.cat-pill-new > span { border: 0; padding: 0; background: none; font-weight: 800; color: var(--ink-3); }
.cat-pill-new input { width: 130px; border: 0; background: transparent; padding: 7px 8px; font: inherit; font-size: 13.5px; outline: none; }
.cat-add { display: flex; gap: 8px; margin-bottom: 16px; }
.cat-add input { flex: 1; min-width: 0; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cat-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.cat-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.cat-edit input[name=name] { flex: 1 1 140px; min-width: 0; font-weight: 650; }
.cat-count { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.cat-colors { display: inline-flex; gap: 4px; }
.cat-colors label { cursor: pointer; }
.cat-colors input { position: absolute; opacity: 0; pointer-events: none; }
.cat-colors i { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--s); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px transparent; }
.cat-colors input:checked + i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--s); }
.cat-tools { display: flex; gap: 2px; }
.cat-tools .icon-btn:disabled { opacity: .3; }
.cat-pill-new input[name=new_category] { border: 0 !important; box-shadow: none !important; background: transparent !important; height: auto; min-height: 0; padding: 7px 8px; border-radius: 0; }
.cat-pill-new:focus-within { border-color: var(--ink-2); border-style: solid; }

/* ---------- Shopping list and stock moves (inventory) ---------- */
.shop-card.has-items { border-color: color-mix(in srgb, #c98a2f 40%, var(--line)); }
.shop-card .muted.small { margin: -4px 0 12px; }
.shop-list, .move-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shop-row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.shop-row:hover { border-color: var(--line-2); background: var(--surface); transform: translateY(-1px); }
.shop-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.shop-main { display: grid; gap: 2px; min-width: 0; }
.shop-main strong { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-main small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-stock { display: grid; justify-items: end; gap: 1px; }
.shop-left { font-size: 12.5px; font-weight: 700; color: #a8551d; white-space: nowrap; }
.shop-min { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.shop-row.is-empty .shop-left { color: #b4412f; }
.shop-order { display: grid; justify-items: center; min-width: 46px; padding: 5px 8px; border-radius: 10px; background: var(--forest); color: var(--paper); line-height: 1.1; }
.shop-order small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.shop-order b { font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shop-ok { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13.5px; color: var(--ink-2); }
.shop-ok span { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); font-weight: 800; font-size: 13px; }
.move-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.move-row:last-child { border-bottom: 0; }
.move-main { display: grid; gap: 1px; min-width: 0; }
.move-main strong { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.move-main small { font-size: 12px; color: var(--ink-3); }
.move-qty { min-width: 48px; text-align: center; padding: 3px 9px; border-radius: 99px; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.move-qty.is-in { background: color-mix(in srgb, var(--ok) 13%, var(--surface)); color: var(--ok); }
.move-qty.is-out { background: color-mix(in srgb, #b4412f 11%, var(--surface)); color: #b4412f; }
.shop-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main order" "stock order"; row-gap: 4px; }
.shop-main { grid-area: main; }
.shop-stock { grid-area: stock; display: flex; justify-items: start; align-items: baseline; gap: 8px; }
.shop-order { grid-area: order; }
.shop-main small { white-space: normal; }
.shop-actions .btn { flex: 1 1 0; justify-content: center; white-space: nowrap; }

/* Product movement form: sale fields only when «Venta» is chosen */
.stock-move .only-sale { display: none; }
.stock-move .only-adjust { display: none; }
.stock-move:has(input[name=kind][value=sale]:checked) .only-sale { display: revert; }
.stock-move:has(input[name=kind][value=sale]:checked) .pay-methods.only-sale { display: flex; }
.stock-move:has(input[name=kind][value=sale]:checked) .only-stock { display: none; }
.stock-move:has(input[name=kind][value=adjust]:checked) .only-adjust { display: inline; }
.stock-move .pay-methods.only-sale { margin-top: 10px; }

/* Inventory: the products, the shopping list and the last moves, in one row */
.stock-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stock-cols > .card { margin: 0; }
.stock-cols .shop-list { grid-template-columns: 1fr; }
@media (max-width: 1600px) { .stock-cols .hide-md { display: none; } }
@media (max-width: 1180px) {
  .stock-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stock-cols > .table-card { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .stock-cols { grid-template-columns: 1fr; } }
.stock-cols .table .num { white-space: nowrap; }

/* Searchable list: options with a second line */
.combo-option.has-sub { display: grid; gap: 2px; }
.combo-option.has-sub strong { font-weight: 600; font-size: 14px; }
.combo-option.has-sub small { font-size: 12px; color: var(--ink-3); }
.combo-option.has-sub.is-selected::after { content: none; }
.combo-option.has-sub.is-selected strong::after { content: " ✓"; }

/* Product panel: how many are left */
.stock-hero { display: flex; align-items: center; gap: 22px; margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); }
.sh-count { display: flex; align-items: center; gap: 10px; flex: none; }
.sh-count strong { font-size: 56px; font-weight: 750; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sh-count span { font-size: 13px; line-height: 1.25; opacity: .85; }
.sh-gauge { flex: 1; min-width: 0; display: grid; gap: 8px; }
.sh-state { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.sh-state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9fe0bf; box-shadow: 0 0 0 4px rgb(159 224 191 / .2); }
.is-low .sh-state::before { background: #ffc58a; box-shadow: 0 0 0 4px rgb(255 197 138 / .22); }
.is-empty .sh-state::before { background: #ff9b8a; box-shadow: 0 0 0 4px rgb(255 155 138 / .22); }
.sh-bar { position: relative; height: 10px; border-radius: 99px; background: rgb(0 0 0 / .22); }
.sh-bar b { position: absolute; inset: 0 auto 0 0; max-width: 100%; border-radius: inherit; background: var(--paper); transition: width .4s; }
.is-low .sh-bar b { background: #ffc58a; }
.sh-bar i { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--paper); opacity: .75; }
.sh-legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; opacity: .85; font-variant-numeric: tabular-nums; }
.sh-meta { margin: 10px 0 0; font-size: 13px; opacity: .8; }
@media (max-width: 520px) { .stock-hero { flex-direction: column; align-items: stretch; gap: 14px; } }

/* Product note: under the name in the list, and in the panel */
.product-note { display: block; max-width: 46ch; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-note::before { content: "✎ "; color: var(--ink-3); }
.sh-note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 9px 12px; border-radius: 12px; background: rgb(0 0 0 / .14); font-size: 14px; line-height: 1.4; }
.sh-note .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; opacity: .8; }
.sh-note + .sh-meta { margin-top: 8px; }

/* Inventory: sortable column titles */
.th-sort { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
.th-sort:hover { color: var(--ink); }
.th-sort::after { content: "↕"; font-size: 11px; opacity: .35; }
th[aria-sort] .th-sort { color: var(--ink); }
th[aria-sort="ascending"] .th-sort::after { content: "↑"; opacity: .9; }
th[aria-sort="descending"] .th-sort::after { content: "↓"; opacity: .9; }
#products-tools .shelf-filters { flex-basis: 100%; }

.alert-info { border-color: var(--line-2); color: var(--ink-2); background: var(--paper-2); }

/* ---------- Home: the presentation video ---------- */
.film { padding-top: clamp(64px, 8vw, 112px); }
.film .section-head h2 em { color: var(--terracotta); }
.film-lead { max-width: 60ch; margin: 14px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.film-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 22px; background: #f3eee7; box-shadow: 0 50px 90px -50px rgb(23 53 45 / .65); isolation: isolate; }
.film-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #f3eee7; border-radius: inherit; }
.film-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: 18px; padding: clamp(18px, 3vw, 36px); border: 0; cursor: pointer; color: #fff; font: inherit; text-align: left;
  background: linear-gradient(180deg, rgb(10 22 18 / 0) 45%, rgb(10 22 18 / .62)); }
.film-play[hidden] { display: none; }
.film-play-icon { position: relative; flex: none; width: clamp(58px, 7vw, 80px); aspect-ratio: 1; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 10px rgb(242 176 137 / .22); transition: transform .25s, box-shadow .25s; }
.film-play-icon::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-left: 22px solid var(--forest); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.film-play:hover .film-play-icon, .film-play:focus-visible .film-play-icon { transform: scale(1.06); box-shadow: 0 0 0 14px rgb(242 176 137 / .28); }
.film-play:focus-visible { outline: 3px solid var(--peach); outline-offset: -6px; }
.film-play-text { display: grid; gap: 2px; font-size: clamp(18px, 2vw, 24px); font-weight: 650; letter-spacing: -.01em; }
.film-play-text small { font-size: 13.5px; font-weight: 500; opacity: .82; letter-spacing: 0; }

/* ---------- Home: the real agenda in chapter 02 ---------- */
.clip-window { position: relative; z-index: 1; width: 100%; max-width: 640px; margin: 0; overflow: hidden; border-radius: 14px; background: var(--surface); box-shadow: 0 34px 70px -30px rgb(0 0 0 / .6); }
.clip-bar { display: flex; align-items: center; gap: 6px; margin: 0; padding: 9px 12px; background: #efe9e0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.clip-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d8cdbf; }
.clip-bar span { margin-left: 8px; }
.clip-video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #f6f3ee; }

/* ---------- Home: «Así funciona por dentro» ---------- */
.inside { padding-bottom: clamp(72px, 9vw, 120px); }
.inside .section-head h2 em { color: var(--terracotta); }
.inside-lead { margin: 14px 0 0; color: var(--ink-2); font-size: 17px; }
.inside-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.inside-tile { all: unset; box-sizing: border-box; display: grid; width: 100%; height: 100%; overflow: hidden; cursor: zoom-in; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: transform .25s, box-shadow .25s, border-color .25s; }
.inside-tile:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 26px 44px -30px rgb(28 25 23 / .5); }
.inside-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.inside-tile video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); pointer-events: none; }
.inside-cap { display: grid; align-content: start; gap: 4px; padding: 13px 15px 16px; }
.inside-cap b { font-size: 15px; font-weight: 650; color: var(--ink); }
.inside-cap small { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
@media (max-width: 1080px) { .inside-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .inside-grid { grid-template-columns: 1fr; } }
.clip-dialog { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--forest); color: var(--paper); }
.clip-dialog::backdrop { background: rgb(16 14 12 / .74); backdrop-filter: blur(4px); }
.clip-dialog video { display: block; width: 100%; max-height: calc(100vh - 130px); background: #0b1814; }
.clip-dialog-foot { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.clip-dialog-cap { flex: 1; display: grid; gap: 2px; margin: 0; min-width: 0; }
.clip-dialog-cap b { font-size: 16px; font-weight: 650; }
.clip-dialog-cap span { font-size: 13.5px; opacity: .78; }
.clip-count { font-size: 13px; opacity: .7; font-variant-numeric: tabular-nums; }
.clip-nav, .clip-close { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid rgb(255 255 255 / .28); background: rgb(255 255 255 / .06); color: inherit; font: inherit; font-size: 18px; cursor: pointer; transition: background .2s, border-color .2s; }
.clip-nav:hover, .clip-close:hover { background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .6); }
.clip-close-form { position: absolute; top: 12px; right: 12px; z-index: 2; margin: 0; }
.clip-close { background: rgb(0 0 0 / .45); font-size: 22px; }

/* ---------- Home: questions ---------- */
.faq { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(72px, 9vw, 120px); }
.faq .section-head h2 em { color: var(--terracotta); }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 18px; color: var(--ink-2); transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: -6px 0 20px; max-width: 58ch; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 800px) { .faq-list { grid-template-columns: 1fr; } }

/* ---------- Rota: painting the shifts ---------- */
.rota-tools { display: grid; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.rota-how { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.rota-how b { color: var(--ink); font-weight: 650; }
.rota-brushes { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.rota-brush { display: grid; gap: 1px; min-width: 104px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.rota-brush b { font-size: 13.5px; font-weight: 650; }
.rota-brush small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rota-brush::before { content: ""; width: 16px; height: 8px; margin-bottom: 4px; border-radius: 3px; background: var(--paper-2); }
.rota-brush.is-am::before { background: linear-gradient(180deg, var(--shift-am) 50%, var(--paper-2) 50%); }
.rota-brush.is-pm::before { background: linear-gradient(180deg, var(--paper-2) 50%, var(--shift-pm) 50%); }
.rota-brush.is-full::before { background: linear-gradient(180deg, var(--shift-am) 50%, var(--shift-pm) 50%); }
.rota-brush.is-rest::before { background: transparent; border: 1px dashed var(--line-2); }
.rota-brush:hover { border-color: var(--ink-3); }
.rota-brush[aria-pressed="true"] { border-color: var(--forest); background: color-mix(in srgb, var(--forest) 8%, var(--surface)); box-shadow: 0 0 0 2px var(--forest); }
.rota-custom { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 10px; border-radius: 12px; border: 1px dashed var(--line-2); }
.rota-custom { flex-wrap: wrap; max-width: 100%; align-self: center; }
.rota-tools .rota-custom input[type="time"] { flex: none; width: 116px; min-height: 36px; padding: 4px 8px; }
.rota-custom .btn { flex: none; white-space: nowrap; }
.rota-tools { min-width: 0; }
@media (max-width: 640px) {
  .rota-brush { min-width: 0; flex: 1 1 calc(50% - 8px); }
  .rota-custom { flex: 1 1 100%; }
  .rota-dirty { margin-left: 0; }
}
.rota-quick { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 13px; }
.rota-dirty { margin-left: auto; font-size: 12.5px; font-weight: 650; color: #a8551d; }
.rota-usual { display: block; margin-top: 2px; font-size: 12px; }
:root { --shift-am: #f0b48c; --shift-pm: #2f6b55; }
.rota input.rota-input.is-am { border-color: color-mix(in srgb, var(--shift-am) 80%, var(--line)); background: color-mix(in srgb, var(--shift-am) 26%, var(--surface)); }
.rota input.rota-input.is-pm { border-color: color-mix(in srgb, var(--shift-pm) 50%, var(--line)); background: color-mix(in srgb, var(--shift-pm) 15%, var(--surface)); }
.rota input.rota-input.is-full { border-color: color-mix(in srgb, var(--ink-3) 55%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--shift-am) 26%, var(--surface)) 50%, color-mix(in srgb, var(--shift-pm) 15%, var(--surface)) 50%); }
.rota td .rota-input { min-width: 104px; font-variant-numeric: tabular-nums; }
.rota .client-name { min-width: 0; }
.rota-card.is-painting .rota-input { cursor: cell; caret-color: transparent; user-select: none; touch-action: none; }
.rota-card.is-painting .rota-input:hover { outline: 2px solid var(--forest); outline-offset: 1px; }

/* ---------- Rota: the last weeks at a glance ---------- */
.rota-history { margin-top: 20px; }
.rh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.rh-head .muted { margin: 4px 0 0; }
.rh-table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 13px; }
.rh-table th { padding: 6px 8px; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }
.rh-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.rh-table tr:last-child td { border-bottom: 0; }
.rh-who { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left !important; padding-right: 14px !important; }
.rh-who strong { font-weight: 600; white-space: nowrap; }
.rh-sum { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rh-sum b { color: var(--ink); }
th.rh-sum:last-of-type, td.rh-sum:nth-child(5) { padding-right: 16px; border-right: 1px solid var(--line); }
.rh-wk.is-month { box-shadow: inset 1px 0 0 var(--line-2); }
.rh-wk.is-shown { background: color-mix(in srgb, var(--peach) 14%, transparent); }
.rh-week { display: grid; justify-items: center; gap: 4px; padding: 4px 5px; border-radius: 8px; color: inherit; text-decoration: none; }
.rh-week:hover { background: var(--paper-2); }
.rh-week small { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rh-days { display: flex; gap: 2px; }
.rh-d { display: inline-block; width: 8px; height: 16px; border-radius: 2px; background: var(--paper-2); }
.rh-d.is-am { background: linear-gradient(180deg, var(--c, var(--shift-pm)) 50%, var(--paper-2) 50%); }
.rh-d.is-pm { background: linear-gradient(180deg, var(--paper-2) 50%, var(--c, var(--shift-pm)) 50%); }
.rh-d.is-full { background: var(--c, var(--shift-pm)); }
.rh-d.is-off { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.rh-none { color: var(--ink-3); }
.rh-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }
.rh-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rh-legend .rh-d { --c: var(--ink-2); }
.rh-letters { margin-left: auto; letter-spacing: .32em; font-size: 11px; }

/* Rota: room on both edges (names on the left, hours on the right) */
.rota th:first-child, .rota td:first-child { padding-left: 22px; }
.rota th:last-child, .rota td:last-child { padding-right: 22px; }
.rota td:first-child { padding-right: 14px; }
.rh-table .rh-who { padding-left: 14px; }
.rh-table tr > :last-child { padding-right: 14px; }
.rota td:first-child { min-width: 170px; }
.rota td:first-child .client-name, .rota-usual { white-space: nowrap; }

/* Vouchers: the balance bar has the same length whatever the text next to it */
.use-bar-even { display: grid; grid-template-columns: 130px max-content; gap: 12px; min-width: 0; }
.use-bar-even .meter { width: 130px; }

/* Rows that open something (uses of a voucher, quiet-hour prices): a list row, not a grey browser button */
button.fav-row { width: 100%; padding: 10px 8px; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: inherit; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; transition: background .15s; }
button.fav-row:hover { background: var(--paper-2); }
button.fav-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 8px; }
button.fav-row:last-child { border-bottom: 0; }
button.fav-row:not([data-open-appointment]):not([data-drawer]) { cursor: default; }
button.fav-row:not([data-open-appointment]):not([data-drawer]):hover { background: none; }
.fav-row > span { min-width: 0; }
.fav-row > span .cell-sub { display: block; margin-top: 2px; }

/* ---------- Agenda: the panels on both sides, and arranging them ---------- */
.panel-slot { position: relative; min-width: 0; }
.panel-slot > .side-card { margin: 0; }
.panel-slot[data-hidden] { display: none; }
.panel-slot:not(:has(.side-card)) { display: none; }
.is-arranging .agenda-left, .is-arranging .agenda-right { display: flex !important; min-height: 160px; padding: 8px; border-radius: 16px; outline: 2px dashed var(--line-2); outline-offset: -2px; background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.is-arranging .panel-slot, .is-arranging .panel-slot[data-hidden], .is-arranging .panel-slot:not(:has(.side-card)) { display: block; }
.is-arranging .panel-slot > .side-card { pointer-events: none; user-select: none; max-height: 190px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.is-arranging .panel-slot[data-hidden] > .side-card, .is-arranging .panel-slot[data-hidden] .slot-empty { opacity: .35; }
.slot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; padding: 7px 8px 7px 10px; border-radius: 12px; background: var(--forest); color: var(--paper); cursor: grab; touch-action: none; user-select: none; }
.slot-bar b { flex: 1 1 100px; min-width: 0; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-grip { font-size: 15px; opacity: .7; line-height: 1; }
.slot-actions { display: flex; gap: 4px; margin-left: auto; }
.slot-actions button { min-width: 28px; height: 28px; padding: 0 7px; border-radius: 8px; border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .08); color: inherit; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.slot-actions button:hover { background: rgb(255 255 255 / .2); border-color: rgb(255 255 255 / .55); }
.panel-slot[data-hidden] .slot-bar { background: var(--ink-3); }
.slot-empty { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 12.5px; color: var(--ink-3); background: var(--surface); }
.panel-slot.is-dragging { z-index: 5; }
.panel-slot.is-dragging .slot-bar { cursor: grabbing; box-shadow: 0 16px 30px -12px rgb(0 0 0 / .45); }
.panel-slot.is-dragging > .side-card { box-shadow: 0 20px 40px -20px rgb(0 0 0 / .4); }
body.is-dragging-panel { cursor: grabbing; user-select: none; }
.panel-slot.is-moved { animation: slot-moved .5s ease; }
@keyframes slot-moved { from { transform: scale(.97); filter: brightness(1.06); } }
.arrange-bar { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; width: min(860px, calc(100vw - 32px)); padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -20px rgb(28 25 23 / .45); }
.arrange-bar p { flex: 1 1 320px; margin: 0; font-size: 13.5px; color: var(--ink-2); }
.arrange-bar b { color: var(--ink); }
.arrange-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panels-toast { position: fixed; z-index: 70; right: 20px; bottom: 20px; }

/* ---------- Legal pages ---------- */
.legal-page { max-width: 1100px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(64px, 9vw, 112px); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.legal-nav { position: sticky; top: calc(var(--bar-h, 64px) + 24px); display: grid; gap: 4px; }
.legal-nav a { padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 520; }
.legal-nav a:hover { background: var(--paper-2); color: var(--ink); }
.legal-nav a[aria-current] { background: var(--forest); color: var(--paper); }
.legal-text { max-width: 72ch; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.legal-text h1 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; color: var(--ink); }
.legal-text h2 { margin: 40px 0 10px; font-size: 19px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.legal-text p, .legal-text ul, .legal-text ol { margin: 0 0 14px; }
.legal-text ul, .legal-text ol { padding-left: 22px; }
.legal-text li { margin-bottom: 6px; }
.legal-text a { color: var(--terracotta-2); }
.legal-text b { color: var(--ink); font-weight: 650; }
.legal-updated { margin: 0 0 28px !important; font-size: 13px; color: var(--ink-3); }
.legal-lead { font-size: 17px; color: var(--ink); }
.legal-data { margin: 0 0 16px; border-top: 1px solid var(--line); }
.legal-data div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.legal-data dt { font-weight: 600; color: var(--ink); }
.legal-data dd { margin: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 13.5px; line-height: 1.5; }
.legal-table th { text-align: left; padding: 10px 12px; background: var(--paper-2); color: var(--ink); font-weight: 650; }
.legal-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-list li { margin-bottom: 8px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-legal a { color: inherit; opacity: .75; text-decoration: none; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 820px) {
  .legal-page { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; }
  .legal-data div { grid-template-columns: 1fr; gap: 2px; }
}
.legal-text h2 { font-family: var(--sans); }
.legal-table td:nth-child(2) { white-space: nowrap; }
.legal-text .table-wrap { overflow-x: auto; }
@media (max-width: 820px) { .legal-page { grid-template-columns: minmax(0, 1fr); } }

/* ---------- WhatsApp page: settings, the simulator phone and the chats ---------- */
.wa-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 20px; align-items: start; }
.wa-layout .stack > .card { margin: 0; }
.wa-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wa-status li { display: grid; gap: 2px; padding: 10px 12px 10px 34px; border-radius: 12px; background: var(--paper-2); position: relative; font-size: 13.5px; }
.wa-status li::before { content: ""; position: absolute; left: 13px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: #c98a2f; }
.wa-status li.is-ok::before { background: var(--ok); }
.wa-status span { color: var(--ink-3); font-size: 12.5px; }
.wa-phone { --wa-green: #075e54; --wa-bg: #efe7dd; --wa-me: #d9fdd3; position: relative; display: grid; grid-template-rows: auto 1fr auto; height: 600px; overflow: hidden; border-radius: 26px; border: 8px solid #1d1d1f; background: var(--wa-bg); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--wa-green); color: #fff; }
.wa-top b { display: block; font-size: 14px; }
.wa-top small { font-size: 11.5px; opacity: .8; }
.wa-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / .2); font-weight: 700; }
.wa-reset { margin-left: auto; padding: 5px 10px; border-radius: 99px; border: 1px solid rgb(255 255 255 / .4); background: none; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.wa-thread { display: flex; flex-direction: column; gap: 6px; padding: 12px; overflow-y: auto; }
.wa-thread.is-static { max-height: 380px; margin-top: 10px; border-radius: 14px; background: #efe7dd; }
.wa-msg { max-width: 85%; margin: 0; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.4; white-space: pre-line; box-shadow: 0 1px 1px rgb(0 0 0 / .08); }
.wa-msg.is-me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }
.wa-msg.is-them { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.wa-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.wa-buttons { display: grid; gap: 1px; margin: 8px -10px -7px; border-top: 1px solid #e9edef; }
.wa-button { padding: 9px 10px; border: 0; border-top: 1px solid #e9edef; background: none; color: #027eb5; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.wa-buttons .wa-button:first-child { border-top: 0; }
.wa-list-button { display: block; width: calc(100% + 20px); margin: 8px -10px -7px; }
.wa-button:hover { background: #f5f6f6; }
.wa-typing { color: var(--ink-3); font-style: italic; }
.wa-hint { align-self: center; margin: 8px 0; padding: 5px 10px; border-radius: 8px; background: #fff7d6; font-size: 12px; color: #5f5a4a; }
.wa-input { display: flex; gap: 8px; padding: 8px; background: #f0f2f5; }
.wa-input input { flex: 1; min-height: 40px; border-radius: 99px; border: 0; padding: 0 14px; background: #fff; }
.wa-input button { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--wa-green); color: #fff; cursor: pointer; }
.wa-sheet { position: absolute; inset: 0; display: flex; align-items: flex-end; background: rgb(0 0 0 / .35); }
.wa-sheet[hidden] { display: none; }
.wa-sheet-card { width: 100%; max-height: 80%; overflow-y: auto; padding: 14px 14px 10px; border-radius: 16px 16px 0 0; background: #fff; }
.wa-sheet-title { margin: 0 0 8px; text-align: center; font-weight: 700; }
.wa-sheet-section { margin: 10px 0 4px; font-size: 12px; color: var(--wa-green); font-weight: 700; }
.wa-row { display: grid; gap: 2px; width: 100%; padding: 10px 6px; border: 0; border-bottom: 1px solid #e9edef; background: none; text-align: left; font: inherit; cursor: pointer; }
.wa-row b { font-size: 14px; font-weight: 600; }
.wa-row small { font-size: 12px; color: #667781; }
.wa-row:hover { background: #f5f6f6; }
.wa-sheet-close { display: block; width: 100%; margin-top: 8px; padding: 10px; border: 0; background: none; color: #027eb5; font: inherit; font-weight: 600; cursor: pointer; }
.wa-chats { margin-top: 20px; }
.wa-chat { border-bottom: 1px solid var(--line); }
.wa-chat summary { display: grid; grid-template-columns: auto auto 1fr; gap: 2px 12px; align-items: baseline; padding: 12px 0; cursor: pointer; }
.wa-chat summary small { justify-self: end; color: var(--ink-3); }
.wa-last { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; }
@media (max-width: 980px) { .wa-layout { grid-template-columns: 1fr; } }

/* Week view: the time line crosses the whole week; the dot sits on today */
.now-line.week-now { left: var(--gw); right: 0; }
.now-line.week-now span { left: calc(100% * var(--nc) / 7 - 5px); }

/* ---------- Client panel: the header stays on top, smaller once you scroll ---------- */
.ap-client-panel .ap-head { position: sticky; top: 0; z-index: 6; transition: padding .2s ease; }
.ap-client-panel.is-stuck .ap-head { padding-top: 12px; padding-bottom: 12px; box-shadow: 0 14px 24px -18px rgb(0 0 0 / .55); }
.ap-client-panel.is-stuck .ap-top { position: absolute; top: 12px; right: 16px; margin: 0; z-index: 2; }
.ap-client-panel.is-stuck .ap-top .pill { display: none; }
.ap-client-panel.is-stuck .client-hero { gap: 12px; padding-right: 48px; }
.ap-client-panel.is-stuck .client-avatar.lg { width: 40px; height: 40px; font-size: 15px; }
.ap-client-panel.is-stuck .ap-client { font-size: 1.35rem; margin-bottom: 2px; }
.ap-client-panel.is-stuck .ap-tabs { margin-top: 10px; }
.ap-client-panel .client-avatar.lg, .ap-client-panel .ap-client { transition: all .2s ease; }

/* ---------- Tooltips ---------- */
.tip { position: fixed; z-index: 120; max-width: 280px; display: grid; gap: 2px; padding: 8px 11px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 12.5px; line-height: 1.4; box-shadow: 0 14px 30px -12px rgb(0 0 0 / .5); pointer-events: none; }
.tip[hidden] { display: none; }
.tip b { font-weight: 650; }
.tip span { opacity: .82; }
.tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.tip.is-below::after { bottom: auto; top: -5px; }
.ab-cell[data-tip] { cursor: help; }
.ab-cell[data-tip]:hover, .ab-cell[data-tip]:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------- Staff picker: faces instead of a plain list ---------- */
.pp { position: relative; }
.pp-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.pp-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--control-h, 44px); padding: 5px 12px 5px 6px; border-radius: var(--r, 12px); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pp-button:hover { border-color: var(--ink-3); }
.pp-button:focus-visible, .pp.is-open .pp-button { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 18%, transparent); }
.pp-item { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.pp-face { display: inline-flex; flex: none; }
.pp-face .staff-avatar { width: 32px; height: 32px; font-size: 12px; }
.pp-any { background: var(--paper-2) !important; color: var(--ink-3) !important; }
.pp-words { display: grid; min-width: 0; line-height: 1.2; }
.pp-words b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-words small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-caret { flex: none; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.pp.is-open .pp-caret { transform: rotate(-135deg) translateY(-2px); }
.pp-list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); max-height: 300px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 24px 48px -20px rgb(28 25 23 / .4); }
.pp.opens-up .pp-list { top: auto; bottom: calc(100% + 6px); }
.pp-option { padding: 7px 8px; border-radius: 10px; cursor: pointer; }
.pp-option:hover, .pp-option.is-active { background: color-mix(in srgb, var(--forest) 8%, var(--surface)); }
.pp-option.is-selected { background: color-mix(in srgb, var(--forest) 12%, var(--surface)); }
.pp-option.is-selected .pp-words b::after { content: " ✓"; color: var(--forest); }
.pp-option.is-disabled { opacity: .45; cursor: not-allowed; }

/* Rota: the days the business is closed */
.rota th.is-closed, .rota td.is-closed { background: repeating-linear-gradient(-45deg, transparent, transparent 7px, rgb(132 125 116 / .08) 7px, rgb(132 125 116 / .08) 8px); }
.rota-shut { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.rota-closed { display: grid; place-items: center; min-height: 38px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--ink-3); font-size: 12.5px; font-weight: 600; cursor: help; }

/* Control horario: whether the team clocks in, and the hours over or under */
.wt-mode { margin: 0 0 16px; padding: 14px 18px; }
.switch-line { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch-line b { display: block; font-size: 14.5px; font-weight: 650; }
.switch-line small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.adj-row b { font-variant-numeric: tabular-nums; }
.adj-form { margin-top: 10px; }

/* ---------- Services: quiet hours as cards ---------- */
.off-peak-card { margin-top: 20px; }
.op-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; margin-bottom: 14px; }
.op-head .muted { margin: 4px 0 0; max-width: 64ch; }
.op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.op-card { all: unset; box-sizing: border-box; display: grid; gap: 10px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--terracotta) 7%, var(--surface)), var(--surface) 60%); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.op-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--terracotta) 40%, var(--line)); box-shadow: 0 18px 30px -22px rgb(28 25 23 / .45); }
.op-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.op-top { display: flex; justify-content: space-between; align-items: center; }
.op-off { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; background: var(--terracotta); color: #fff; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; justify-self: start; }
.op-state { font-size: 12px; font-weight: 600; color: var(--ok); }
.op-time { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.op-days { display: flex; gap: 4px; }
.op-days i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--paper-2); color: var(--ink-3); font-size: 12px; font-style: normal; font-weight: 650; }
.op-days i.is-on { background: var(--forest); color: var(--paper); }
.op-services { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.op-card.is-paused { background: var(--surface); opacity: .7; }
.op-card.is-paused .op-off { background: var(--ink-3); }
.op-card.is-paused .op-state { color: var(--ink-3); }
.op-empty { border-style: dashed; background: var(--surface); }
.op-empty .op-off { background: color-mix(in srgb, var(--terracotta) 60%, #fff); }
.op-empty .op-time { font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* ---------- Control horario: forgotten exits ---------- */
.wt-alert.is-forgotten { align-items: center; }
.wt-alert-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.wt-alert-actions form { margin: 0; }
.clock-state.is-late { color: var(--bad, #b3261e); font-weight: 600; }
.clock-state.is-late .radar { background: var(--bad, #b3261e); }
@media (max-width: 640px) {
  .wt-alert.is-forgotten { display: grid; grid-template-columns: 32px 1fr; align-items: start; }
  .wt-alert.is-forgotten .wt-alert-actions { grid-column: 2; margin-left: 0; }
}
