/* =============================================================================
   ICONIC · sistema de diseño
   Paleta tomada del FONDO DEL LOGO: negro casi puro con un leve tinte verdoso
   (#0B0C0A) que se abre hacia una luz cálida de arena en la esquina superior
   derecha (humo #3C3932 → topo #9B8E85 → arena #D0BFB5). El emblema es blanco
   hueso. Un solo acento: la arena. Motivo: los tres anillos concéntricos.
   Orden: tokens · fondo vivo · menú lateral · encabezado · tipografía ·
   componentes · pestañas · tarjeta de fidelidad · estados del horario · movimiento.
   ========================================================================== */
:root {
  /* Color (del logo) */
  --c-ink: #0b0c0a;          /* fondo del logo */
  --c-ink-2: #121310;        /* superficie */
  --c-ink-3: #1b1b18;        /* superficie elevada */
  --c-smoke: #3c3932;
  --c-taupe: #9b8e85;
  --c-sand: #d0bfb5;         /* la luz de la esquina: acento único */
  --c-sand-hi: #e7dbd2;
  --c-bone: #f2eee9;         /* el emblema */
  --c-text: #f2eee9;
  --c-text-2: #aaa095;       /* secundario, contraste 7:1 sobre el fondo */
  --c-line: rgba(208, 191, 181, 0.14);
  --c-line-2: rgba(208, 191, 181, 0.28);
  --shadow-tint: rgba(0, 4, 0, 0.6);
  /* Tipografía */
  --ff-display: "Anton", "Bebas Neue", "Arial Narrow", "Roboto Condensed", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --ff-body: "Inter", "Helvetica Neue", "Segoe UI", Arial, system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", "Space Mono", Consolas, "SFMono-Regular", monospace;
  --fs-hero: clamp(48px, 7.6vw, 136px);
  --fs-h2: clamp(32px, 4.4vw, 60px);
  --fs-h3: clamp(20px, 2vw, 26px);
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-label: 11px;
  /* Espacio y forma */
  --sp-section: clamp(64px, 9vw, 120px);
  --sp-card: clamp(20px, 2.2vw, 28px);
  --gutter: clamp(16px, 3vw, 48px);
  --r-outer: 20px;
  --r-inner: 12px;
  /* Movimiento (curvas fuertes de salida; UI < 300 ms) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-ui: 220ms;
  --t-med: 420ms;
  --t-slow: 800ms;
  /* Menú */
  --sb-w: 264px;
  --tabbar-h: 0px;
  /* Capas */
  --z-bg: -1; --z-content: 1; --z-tabbar: 50; --z-scrim: 55; --z-sb: 60;

  /* Re-mapeo de tokens de app.css para que todo lo existente obedezca. */
  --ink: var(--c-text); --ink-2: var(--c-bone); --paper: var(--c-ink-2); --bg: var(--c-ink); --muted: var(--c-text-2); --line: var(--c-line);
  --f-display: var(--ff-display); --f-body: var(--ff-body); --f-mono: var(--ff-mono);
  --ok: var(--c-sand); --ok-soft: rgba(208, 191, 181, 0.1); --err: #f0b7ae; --err-soft: rgba(240, 183, 174, 0.1); --warn-soft: rgba(208, 191, 181, 0.08);
  --gold-1: var(--c-sand); --gold-2: var(--c-sand-hi); --gold-3: var(--c-taupe); --gold-ink: var(--c-sand);
  color-scheme: dark;
}
html.sb-collapsed { --sb-w: 80px; }
.theme-dark {
  --walnut: var(--c-ink); --leather: var(--c-ink-2); --leather-2: var(--c-ink-3); --seam: var(--c-line);
  --bone: var(--c-text); --bone-dim: var(--c-text-2); --brass: var(--c-sand); --brass-hi: var(--c-sand-hi); --brass-ink: var(--c-ink);
  --st-pending: var(--c-sand); --st-confirmed: var(--c-sand); --st-completed: var(--c-taupe); --st-cancelled: #6f6862; --st-noshow: var(--c-taupe);
}

html { background: var(--c-ink); }
body, body.theme-dark { font-family: var(--ff-body); font-size: var(--fs-body); color: var(--c-text); background: transparent !important; }
::selection { background: var(--c-sand); color: var(--c-ink); }
::placeholder { color: #8a8178; opacity: 1; }
:focus-visible { outline: 2px solid var(--c-sand) !important; outline-offset: 3px; }
a { color: var(--c-sand); }
.muted, .hint, .theme-dark .muted { color: var(--c-text-2) !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-sand); color: var(--c-ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; transition: top var(--t-ui) var(--ease-out); }
.skip-link:focus { top: 12px; }

/* =============================================================================
   FONDO VIVO (identidad propia): luz de esquina que respira, anillos del sello
   que se expanden, foco que sigue al cursor y grano de película.
   ========================================================================== */
.ambient { position: fixed; inset: 0; z-index: var(--z-bg); pointer-events: none; overflow: hidden; background: var(--c-ink); }
.ambient .glow {
  position: absolute; width: 120vmax; height: 120vmax; right: -60vmax; top: -60vmax;
  background: radial-gradient(closest-side, rgba(208, 191, 181, 0.42), rgba(155, 142, 133, 0.18) 38%, rgba(60, 57, 50, 0.08) 62%, transparent 72%);
  animation: glow-breathe 18s var(--ease-io) infinite alternate;
  will-change: transform, opacity;
}
.ambient .glow.two { right: auto; top: auto; left: -70vmax; bottom: -80vmax; opacity: 0.35; animation-duration: 26s; animation-delay: -9s; }
@keyframes glow-breathe {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate3d(-6vmax, 4vmax, 0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(-2vmax, 9vmax, 0) scale(0.96); opacity: 0.7; }
}
.ambient .rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ambient .rings i {
  position: absolute; left: 0; top: 0; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%;
  border: 1px solid rgba(208, 191, 181, 0.16); opacity: 0;
  animation: ring 14s linear infinite;
}
.ambient .rings i:nth-child(2) { animation-delay: -4.6s; }
.ambient .rings i:nth-child(3) { animation-delay: -9.3s; }
@keyframes ring {
  0% { transform: scale(0.35); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.ambient .spot {
  position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 20%), rgba(208, 191, 181, 0.07), transparent 60%);
  transition: opacity var(--t-med);
}
.ambient .grain {
  position: absolute; inset: -50%; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } 100% { transform: translate(0, 0); } }
/* El personal trabaja muchas horas: fondo más quieto. */
body.is-staff .ambient .rings, body.is-staff .ambient .glow.two { display: none; }
body.is-staff .ambient .glow { opacity: 0.45; animation-duration: 40s; }
body::before, body::after { content: none !important; display: none !important; }

/* =============================================================================
   MENÚ LATERAL (264 px · riel de 80 px con Ctrl+B · cajón en el celular)
   ========================================================================== */
body.has-sb { padding-left: calc(var(--sb-w) + var(--gutter)); padding-right: var(--gutter); transition: padding-left var(--t-med) var(--ease-out); }
.shell-bar { display: none !important; }
.sb {
  position: fixed; inset: 12px auto 12px 12px; width: calc(var(--sb-w) - 24px); z-index: var(--z-sb);
  display: flex; flex-direction: column; gap: 16px; padding: 18px 12px 14px;
  background: rgba(18, 19, 16, 0.78); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid var(--c-line); border-radius: var(--r-outer);
  box-shadow: inset 0 1px 0 rgba(242, 238, 233, 0.05), 0 30px 60px -30px var(--shadow-tint);
  transition: width var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
  overflow: hidden;
}
.sb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; }
.sb-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-text); min-width: 0; }
.sb-logo-img, .sb-mono { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--c-line-2); }
.sb-mono { display: grid; place-items: center; background: var(--c-ink); font-family: var(--ff-display); font-size: 26px; }
.sb-brand-text { display: flex; flex-direction: column; line-height: 0.95; white-space: nowrap; transition: opacity var(--t-ui); }
.sb-brand-text b { font-family: var(--ff-display); font-weight: 400; font-size: 26px; letter-spacing: 0.5px; text-transform: uppercase; }
.sb-brand-text small { font-size: var(--fs-label); letter-spacing: 3px; text-transform: uppercase; color: var(--c-text-2); margin-top: 5px; }
.sb-collapse { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid var(--c-line); background: transparent; border-radius: var(--r-inner); cursor: pointer; color: var(--c-text); transition: background var(--t-ui), color var(--t-ui), transform var(--t-med) var(--ease-out); }
.sb-collapse:hover { background: var(--c-ink-3); }
.sb-collapse:active { transform: scale(0.96); }
html.sb-collapsed .sb-collapse { transform: rotate(180deg); }

.sb-nav { position: relative; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; margin-inline: -2px; padding: 2px; }
.sb-nav::-webkit-scrollbar { display: none; }
.sb-indicator {
  position: absolute; left: 2px; right: 2px; top: 0; height: 46px; border-radius: var(--r-inner); z-index: 0; pointer-events: none;
  background: linear-gradient(120deg, var(--c-sand) 0%, var(--c-sand-hi) 45%, var(--c-taupe) 100%); background-size: 220% 100%;
  box-shadow: 0 10px 24px -14px rgba(208, 191, 181, 0.7);
  transition: transform var(--t-med) var(--ease-out), height var(--t-med) var(--ease-out), opacity var(--t-ui);
  animation: tone-sheen 6s ease-in-out infinite alternate;
}
@keyframes tone-sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.sb-link {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 14px;
  border-radius: var(--r-inner); color: var(--c-text-2); text-decoration: none; font-weight: 500; font-size: 14.5px; white-space: nowrap;
  transition: color var(--t-ui) var(--ease-out);
}
.sb-link .ic { flex: 0 0 20px; transition: transform var(--t-ui) var(--ease-out); }
.sb-text { position: relative; display: inline-block; transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui); }
.sb-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
.sb-link:hover { color: var(--c-text); }
.sb-link:hover .sb-text { transform: translateX(4px); }
.sb-link:hover .sb-text::after { transform: scaleX(1); }
.sb-link[aria-current="page"] { color: var(--c-ink); font-weight: 650; }
.sb-link[aria-current="page"] .sb-text::after { display: none; }
.sb-sep { height: 1px; background: var(--c-line); margin: 8px 10px; flex: 0 0 auto; }

.sb-bottom { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.sb-cta { width: 100%; min-height: 50px; gap: 10px; letter-spacing: 1.5px; font-size: 12.5px; font-weight: 700; justify-content: center; display: flex; align-items: center; text-decoration: none; }
.sb-user { display: flex; align-items: center; gap: 10px; min-height: 50px; color: var(--c-text); text-decoration: none; border-radius: var(--r-inner); }
.sb-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c-ink-3); border: 1px solid var(--c-line); font-family: var(--ff-mono); font-size: 13px; font-weight: 600; color: var(--c-sand); }
.sb-user-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; transition: opacity var(--t-ui); }
.sb-user-text b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-text small { font-size: var(--fs-label); letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-text-2); }
.sb-icon-btn { position: relative; width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: var(--r-inner); background: transparent; color: var(--c-text); cursor: pointer; transition: background var(--t-ui), color var(--t-ui), transform var(--t-press); }
.sb-icon-btn:hover { background: var(--c-ink-3); color: var(--c-sand); }
.sb-icon-btn:active { transform: scale(0.96); }
.sb-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--c-sand); color: var(--c-ink); font: 700 11px/20px var(--ff-mono); text-align: center; box-shadow: 0 0 0 2px var(--c-ink-2); animation: badge-in var(--t-med) var(--ease-out) both; }
@keyframes badge-in { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.sb-login:hover .sb-avatar { background: var(--c-sand); color: var(--c-ink); }

/* Riel contraído: solo iconos; los textos siguen en el DOM para lectores de pantalla. */
html.sb-collapsed .sb-brand-text, html.sb-collapsed .sb-link .sb-text, html.sb-collapsed .sb-cta .sb-text, html.sb-collapsed .sb-user-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0;
}
html.sb-collapsed .sb-top { flex-direction: column; gap: 10px; min-height: auto; }
html.sb-collapsed .sb-link { justify-content: center; padding: 0; }
html.sb-collapsed .sb-cta { padding: 0; }
html.sb-collapsed .sb-user { flex-direction: column; }

/* Celular y tableta */
.tabbar, .sb-scrim { display: none; }
@media (max-width: 900px) {
  :root { --tabbar-h: 70px; }
  html.sb-collapsed { --sb-w: 264px; }
  body.has-sb { padding-left: 16px; padding-right: 16px; padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom, 0px)); }
  .sb { inset: 8px auto 8px 8px; width: min(300px, 86vw); transform: translateX(calc(-100% - 20px)); }
  body.sb-open .sb { transform: none; }
  .sb-collapse { display: none; }
  html.sb-collapsed .sb-brand-text, html.sb-collapsed .sb-link .sb-text, html.sb-collapsed .sb-cta .sb-text, html.sb-collapsed .sb-user-text { position: static; width: auto; height: auto; clip: auto; opacity: 1; }
  html.sb-collapsed .sb-link { justify-content: flex-start; padding: 0 14px; }
  html.sb-collapsed .sb-top, html.sb-collapsed .sb-user { flex-direction: row; }
  .sb-scrim { display: block; position: fixed; inset: 0; z-index: var(--z-scrim); background: rgba(5, 6, 5, 0.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity var(--t-med) var(--ease-out); }
  body.sb-open .sb-scrim { opacity: 1; pointer-events: auto; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-tabbar);
    height: var(--tabbar-h); padding: 6px; border-radius: 22px;
    background: rgba(18, 19, 16, 0.86); backdrop-filter: blur(16px); border: 1px solid var(--c-line); box-shadow: 0 20px 40px -20px var(--shadow-tint);
  }
  .tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 44px; border-radius: 16px; color: var(--c-text-2); text-decoration: none; background: none; border: 0; font: 600 10px/1 var(--ff-body); letter-spacing: 0.6px; text-transform: uppercase; cursor: pointer; transition: color var(--t-ui), background var(--t-ui), transform var(--t-press); }
  .tab:active { transform: scale(0.96); }
  .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 2px; }
  .tab[aria-current="page"] { color: var(--c-ink); background: var(--c-sand); }
  .has-sb .bottom-bar { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); left: 8px; right: 8px; border-radius: 18px; }
  .has-sb.has-bottom-bar { padding-bottom: calc(var(--tabbar-h) + 140px); }
}
@media (min-width: 901px) { .has-sb .bottom-bar { left: calc(var(--sb-w)); right: 12px; bottom: 12px; border-radius: 18px; transition: left var(--t-med) var(--ease-out); } }

/* =============================================================================
   ENCABEZADO DE SECCIÓN
   ========================================================================== */
.page-hero { position: relative; padding: clamp(32px, 6vw, 88px) 0 clamp(24px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); grid-template-areas: "meta meta" "title aside"; align-items: end; gap: 14px 40px; }
.page-hero .hero-meta { grid-area: meta; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line-2); }
.page-hero .hero-num { font-family: var(--ff-mono); font-size: var(--fs-small); color: var(--c-sand); }
.page-hero .hero-title { grid-area: title; }
.page-hero .hero-aside { grid-area: aside; color: var(--c-text-2); line-height: 1.6; max-width: 34ch; padding-bottom: 12px; }
@media (max-width: 760px) { .page-hero { grid-template-columns: 1fr; grid-template-areas: "meta" "title" "aside"; } }
.page-hero.with-photo { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); isolation: isolate; overflow: hidden; border-radius: 0 0 var(--r-outer) var(--r-outer); }
.page-hero.with-photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--c-ink) url(/fondo-barberia) center 58% / cover no-repeat; filter: grayscale(1) contrast(1.05); animation: hero-drift 40s ease-in-out infinite alternate; }
.page-hero.with-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(200deg, rgba(11, 12, 10, 0.55) 0%, rgba(11, 12, 10, 0.85) 45%, var(--c-ink) 100%); }
@media (max-width: 900px) { .page-hero.with-photo { margin-inline: -16px; padding-inline: 16px; } }
.page-hero.compact { padding: clamp(24px, 4vw, 52px) 0 clamp(16px, 2.4vw, 28px); }
.page-hero.compact .hero-title { font-size: clamp(44px, 6.5vw, 96px); }
@keyframes hero-drift { from { transform: scale(1.03); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }

/* =============================================================================
   TIPOGRAFÍA · gigante + pequeño
   ========================================================================== */
.display, .hero-title { font-family: var(--ff-display); font-weight: 400; text-transform: uppercase; line-height: 0.9; letter-spacing: -1px; font-size: var(--fs-hero); margin: 0; color: var(--c-text); text-wrap: balance; overflow-wrap: normal; hyphens: manual; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.05em; }
.hero-title .w-in { display: inline-block; animation: word-up var(--t-slow) var(--ease) both; }
.hero-title .w:last-of-type .w-in { color: var(--c-sand); }
@keyframes word-up { from { transform: translateY(105%); } to { transform: none; } }
.label, .eyebrow, .theme-dark .eyebrow { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--c-text-2); }
h1, h2, h3, .cal-title, .book-title, .title-lg, .sheet-head h2, .barber-ov h3, .cal-list h3, .svc-card .nm, .section-head h1, .theme-dark h1, .theme-dark h2 {
  font-family: var(--ff-display) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: -0.3px !important; line-height: 0.95; color: var(--c-text);
}
.cal-title, .section-head h1, .theme-dark .cal-title, .book-title { font-size: var(--fs-h2) !important; }
.title-lg, .sheet-head h2, .svc-card .nm, .barber-ov h3 { font-size: var(--fs-h3) !important; }
.cfg-block h3 { font-size: 22px !important; }
p, li { text-wrap: pretty; }
.kpi .v, .svc-card .pr, .svc-card .du, .pr, .tm, .ev .t, .slot, .day .dd, .wait-box .count, td.num, .cal-ruler span, .inbox .when, .mono, .cal-head small, .price, .big-num, .gc-value, .gc-big, .gc-qr .code {
  font-family: var(--ff-mono) !important; font-variant-numeric: tabular-nums;
}
th, .theme-dark th { font-family: var(--ff-body); font-size: var(--fs-label) !important; letter-spacing: 1.5px !important; text-transform: uppercase !important; color: var(--c-text-2) !important; font-weight: 600; background: transparent !important; border-bottom: 1px solid var(--c-line-2) !important; }
.field label, .field > .label { font-size: 12px; font-weight: 600; letter-spacing: 0.4px; color: var(--c-text); }

/* =============================================================================
   COMPONENTES
   ========================================================================== */
/* Botones: la arena barre de izquierda a derecha y el texto se invierte. */
.btn, .theme-dark .btn {
  min-height: 48px; border-radius: var(--r-inner); font-weight: 700; letter-spacing: 0.3px;
  background: var(--c-sand); color: var(--c-ink); border: 1px solid var(--c-sand);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color var(--t-med) var(--ease-out), transform var(--t-press) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.btn.small { min-height: 44px; padding: 10px 16px; font-size: 13.5px; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c-bone); transform: scaleX(0); transform-origin: right center; transition: transform var(--t-med) var(--ease-out); }
.btn:hover:not(:disabled)::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover:not(:disabled), .theme-dark .btn:hover { background: var(--c-sand); color: var(--c-ink); box-shadow: 0 14px 30px -16px rgba(208, 191, 181, 0.55); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn.ghost, .theme-dark .btn.ghost, .btn.gold { background: transparent; color: var(--c-text); border-color: var(--c-line-2); }
.btn.ghost::before, .btn.gold::before { background: var(--c-sand); }
.btn.ghost:hover:not(:disabled), .theme-dark .btn.ghost:hover, .btn.gold:hover:not(:disabled) { background: transparent; color: var(--c-ink); border-color: var(--c-sand); }
.btn.danger, .theme-dark .btn.danger { background: #f0b7ae; border-color: #f0b7ae; color: var(--c-ink); }
.btn.ghost.danger, .theme-dark .btn.ghost.danger { background: transparent; color: #f0b7ae; border-color: rgba(240, 183, 174, 0.45); }
.btn.ghost.danger::before { background: #f0b7ae; }
.btn.ghost.danger:hover:not(:disabled) { color: var(--c-ink); }
.btn:disabled, .theme-dark .btn:disabled { background: var(--c-ink-3); color: #8a8178; border-color: var(--c-line); }
.btn:disabled::before { display: none; }
.icon-btn { min-width: 44px; min-height: 44px; border-radius: var(--r-inner); background: transparent; color: var(--c-text); border: 1px solid var(--c-line); transition: background var(--t-ui), transform var(--t-press); }
.icon-btn:hover { background: var(--c-ink-3); }
.icon-btn:active { transform: scale(0.96); }
.link-btn { color: var(--c-text-2) !important; min-height: 44px; }
.link-btn:hover { color: var(--c-sand) !important; }

/* Superficies: borde de luz que sigue al cursor (spotlight). */
.panel, .theme-dark .panel, .kpi, .theme-dark .kpi, .table-wrap, .svc-card, .barber-card, .barber-ov, .summary-card, .tpl, .tile, .list-card, .nearby-card, .booking-link, .login-form, .cal-scroll, dialog.sheet, .wait-box, .reminder-banner {
  background: linear-gradient(180deg, rgba(27, 27, 24, 0.82), rgba(18, 19, 16, 0.86)) !important;
  border: 1px solid var(--c-line) !important; border-radius: var(--r-outer); color: var(--c-text);
  box-shadow: inset 0 1px 0 rgba(242, 238, 233, 0.04), 0 24px 48px -32px var(--shadow-tint);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.panel, .tile, .list-card, .kpi { padding: var(--sp-card); }
.spot-card { position: relative; }
.spot-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px; background: radial-gradient(260px circle at var(--cx, 50%) var(--cy, 0%), rgba(208, 191, 181, 0.7), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity var(--t-med); }
.spot-card:hover::after { opacity: 1; }
.kpi, .svc-card, .barber-card, .barber-ov, .tile, .booking-link, .list-card.link { transition: transform var(--t-ui) var(--ease-out), border-color var(--t-ui), box-shadow var(--t-med) var(--ease-out); }
.kpi:hover, .svc-card:hover, .barber-card:hover, .barber-ov:hover, .tile:hover, .booking-link:hover, .list-card.link:hover {
  transform: translateY(-4px); border-color: var(--c-line-2) !important; box-shadow: inset 0 1px 0 rgba(242, 238, 233, 0.06), 0 0 0 1px rgba(208, 191, 181, 0.3), 0 30px 50px -30px var(--shadow-tint) !important;
}
.kpi:active, .tile:active, .svc-card:active, .barber-card:active { transform: translateY(-2px) scale(0.99); }
.svc-card[aria-pressed="true"], .barber-card[aria-pressed="true"] { border-color: var(--c-sand) !important; box-shadow: 0 0 0 1px var(--c-sand), 0 24px 40px -26px rgba(208, 191, 181, 0.4) !important; }
.svc-card .ph { background: var(--c-ink); }
.svc-card .pr, .barber-card .av { color: var(--c-sand); }
.svc-card .tick { background: var(--c-sand); color: var(--c-ink); }
.barber-card .av { background: var(--c-ink); border: 1px solid var(--c-line-2); border-radius: 14px; }

/* Métricas */
.kpi.accent, .theme-dark .kpi.accent { background: radial-gradient(120% 140% at 100% 0%, rgba(208, 191, 181, 0.32), rgba(60, 57, 50, 0.35) 45%, rgba(18, 19, 16, 0.9) 75%) !important; border-color: var(--c-line-2) !important; }
.kpi.accent .v { color: var(--c-text) !important; }
.kpi .v { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -1px; color: var(--c-text); }
.kpi .k { font-size: var(--fs-label); letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-text-2); font-weight: 600; }
.bento, .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.kpis .kpi.accent { grid-column: span 2; grid-row: span 2; justify-content: flex-end; min-height: 240px; }
.kpis .kpi.accent .v { font-size: clamp(72px, 9vw, 132px); line-height: 0.85; font-family: var(--ff-display) !important; font-weight: 400; letter-spacing: -1px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: 1 / -1; } .row-2 { grid-row: span 2; }
@media (max-width: 1100px) { .bento, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-3 { grid-column: span 2; } }
@media (max-width: 560px) { .bento, .kpis { grid-template-columns: minmax(0, 1fr); } .span-2, .span-3, .kpis .kpi.accent { grid-column: auto; } .row-2 { grid-row: auto; } }
.tile { display: flex; flex-direction: column; gap: 14px; min-height: 176px; color: var(--c-text); text-decoration: none; position: relative; overflow: hidden; }
.tile .label { color: var(--c-text-2); }
.tile.hero-tile { background: radial-gradient(140% 120% at 100% 0%, rgba(208, 191, 181, 0.38), rgba(60, 57, 50, 0.4) 40%, rgba(11, 12, 10, 0.95) 78%) !important; border-color: var(--c-line-2) !important; }
.tile .big-num { font-size: clamp(52px, 6vw, 92px); line-height: 0.85; font-weight: 600; letter-spacing: -3px; }
.tile .big-num small { font-size: 0.32em; letter-spacing: 0; color: var(--c-text-2); margin-left: 4px; }
.tile .tile-title { font-family: var(--ff-display); text-transform: uppercase; font-size: clamp(34px, 4.2vw, 60px); line-height: 0.92; }
.tile .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-sand); }
.tile .go .ic { transition: transform var(--t-ui) var(--ease-out); }
.tile:hover .go .ic { transform: translateX(6px); }
.meter { height: 6px; border-radius: 999px; background: rgba(242, 238, 233, 0.08); overflow: hidden; }
.meter > i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--c-taupe), var(--c-sand), var(--c-bone)); background-size: 200% 100%; animation: meter-in 1.2s var(--ease) both, tone-sheen 4s ease-in-out infinite alternate; transform-origin: left; }
@keyframes meter-in { from { transform: scaleX(0); } to { transform: none; } }
.dots10 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.dots10 i { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--c-line-2); }
.dots10 i.on { background: var(--c-sand); border-color: var(--c-sand); animation: dot-in 500ms var(--ease-out) both; }
.dots10 i.free { border-style: dashed; border-color: var(--c-sand); }
@keyframes dot-in { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Secciones */
.section { margin-top: var(--sp-section); display: flex; flex-direction: column; gap: 24px; }
.section-title { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--c-line-2); padding-bottom: 12px; }
.section-title .n { font-family: var(--ff-mono); font-size: var(--fs-small); color: var(--c-sand); }
.section-title h2 { font-size: var(--fs-h2) !important; margin: 0; }
.section-title small { margin-left: auto; color: var(--c-text-2); font-size: var(--fs-small); }

/* Franja infinita */
.marquee { overflow: hidden; border-block: 1px solid var(--c-line-2); margin-inline: calc(-1 * var(--gutter)); padding-block: 14px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
@media (max-width: 900px) { .marquee { margin-inline: -16px; } }
.mq-track { display: flex; width: max-content; animation: mq 36s linear infinite; }
.mq-line { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--ff-display); text-transform: uppercase; font-size: clamp(40px, 6vw, 84px); line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(208, 191, 181, 0.55); }
.mq-line span:nth-child(4n + 1) { color: var(--c-text); -webkit-text-stroke: 0; }
.mq-line i { font-style: normal; color: var(--c-sand); -webkit-text-stroke: 0; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Formularios */
input, select, textarea, .theme-dark input, .theme-dark select, .theme-dark textarea {
  min-height: 48px; border-radius: var(--r-inner); border: 1px solid var(--c-line-2) !important; background: rgba(11, 12, 10, 0.6) !important; color: var(--c-text) !important; font-family: var(--ff-body); font-size: 15px;
  transition: border-color var(--t-ui), box-shadow var(--t-ui);
}
textarea { min-height: 88px; }
input:hover, select:hover, textarea:hover { border-color: rgba(208, 191, 181, 0.45) !important; }
input:focus, select:focus, textarea:focus { border-color: var(--c-sand) !important; box-shadow: 0 0 0 3px rgba(208, 191, 181, 0.16) !important; outline: none; }
input[type="checkbox"], input[type="radio"] { min-height: 0; width: 20px; height: 20px; accent-color: var(--c-sand); }
input[type="date"], input[type="time"] { color-scheme: dark; }
[aria-invalid="true"] { border-color: #f0b7ae !important; box-shadow: 0 0 0 3px rgba(240, 183, 174, 0.15) !important; }
.alert, .theme-dark .alert.err, .theme-dark .alert.info, .alert.info, .alert.ok { background: rgba(18, 19, 16, 0.9) !important; color: var(--c-text) !important; border: 1px solid var(--c-line-2) !important; border-left: 3px solid var(--c-sand) !important; border-radius: var(--r-inner); }
.alert.err, .theme-dark .alert.err { border-left-color: #f0b7ae !important; color: #f6d4ce !important; }
.pill, .theme-dark .pill { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; background: rgba(242, 238, 233, 0.06); color: var(--c-text); border-radius: 6px; padding: 4px 8px; }
.pill.gold { background: var(--c-sand); color: var(--c-ink); }
.toast, .theme-dark .toast { background: var(--c-sand); color: var(--c-ink); border-radius: 14px; font-weight: 600; animation: toast-in var(--t-med) var(--ease-out) both; box-shadow: 0 20px 40px -20px var(--shadow-tint); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px) scale(0.98); } to { opacity: 1; transform: translate(-50%, 0); } }
dialog.sheet[open] { animation: sheet-in var(--t-ui) var(--ease-out) both; }
dialog.sheet::backdrop { background: rgba(5, 6, 5, 0.72); backdrop-filter: blur(6px); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.skeleton { background: linear-gradient(90deg, rgba(242, 238, 233, 0.04) 0%, rgba(208, 191, 181, 0.12) 50%, rgba(242, 238, 233, 0.04) 100%) !important; background-size: 200% 100% !important; animation: shimmer 1.4s linear infinite; }
.empty-state { border: 1px dashed var(--c-line-2) !important; border-radius: var(--r-outer); }

/* =============================================================================
   PESTAÑAS accesibles (role=tablist) con indicador que se desliza
   ========================================================================== */
.tabset { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 4px; border-radius: 16px; background: rgba(11, 12, 10, 0.7); border: 1px solid var(--c-line); isolation: isolate; max-width: 100%; }
.tabset.block { display: grid; width: 100%; }
.tabset.vertical { grid-auto-flow: row; grid-auto-columns: auto; display: grid; }
.tabset [role="tab"] { position: relative; z-index: 1; min-height: 44px; padding: 0 18px; border: 0; background: transparent; color: var(--c-text-2); font: 600 14px/1 var(--ff-body); border-radius: 12px; cursor: pointer; white-space: nowrap; transition: color var(--t-ui) var(--ease-out); text-align: center; }
.tabset.vertical [role="tab"] { text-align: left; }
.tabset [role="tab"]:hover { color: var(--c-text); }
.tabset [role="tab"][aria-selected="true"] { color: var(--c-ink); }
.tabset .tab-ind { position: absolute; z-index: 0; top: 0; left: 0; border-radius: 12px; background: var(--c-sand); box-shadow: 0 8px 20px -12px rgba(208, 191, 181, 0.8); transition: transform var(--t-med) var(--ease-out), width var(--t-med) var(--ease-out), height var(--t-med) var(--ease-out); pointer-events: none; }
[role="tabpanel"][hidden] { display: none !important; }
[role="tabpanel"]:not([hidden]) { animation: panel-in var(--t-ui) var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cfg-nav button[aria-current="true"], .cfg-nav [aria-selected="true"] { background: var(--c-sand) !important; color: var(--c-ink) !important; box-shadow: none !important; }

/* =============================================================================
   TARJETA DE FIDELIDAD (con el lenguaje del logo: negro + luz de esquina)
   ========================================================================== */
.gold-card {
  background: radial-gradient(120% 90% at 100% 0%, #d0bfb5 0%, #9b8e85 22%, #3c3932 48%, #121310 72%, #050605 100%) !important;
  color: var(--c-bone) !important; border: 1px solid var(--c-line-2) !important;
  box-shadow: inset 0 1px 0 rgba(242, 238, 233, 0.12), 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6) !important;
  animation: card-in 900ms var(--ease) both;
}
.gold-card::before { inset: 0 !important; transform: none !important; animation: none !important; background: repeating-radial-gradient(circle at 50% 120%, transparent 0 46px, rgba(242, 238, 233, 0.07) 46px 47px) !important; }
.gold-card::after { background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.14) 50%, transparent 65%) !important; background-size: 250% 100% !important; animation: card-sheen 6s var(--ease-io) infinite !important; }
@keyframes card-sheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.gold-card .brand .b1, .gold-card .brand .b2, .gold-card .gc-label, .gold-card .gc-value, .gold-card .gc-big { color: var(--c-bone) !important; }
.gold-card .gc-label { opacity: 0.72; }
.stamp { border-color: rgba(242, 238, 233, 0.32) !important; background: rgba(11, 12, 10, 0.25) !important; }
.stamp svg * { stroke: rgba(242, 238, 233, 0.28) !important; }
.stamp.on { background: var(--c-bone) !important; border-color: var(--c-bone) !important; }
.stamp.on svg * { stroke: var(--c-ink) !important; }
.stamp.free { border: 1.5px dashed var(--c-sand) !important; color: var(--c-sand); }
.stamp.free.next { background: var(--c-sand) !important; color: var(--c-ink) !important; }
.stamp.fill-in { animation: stamp-pop 560ms var(--ease) both; }
@keyframes stamp-pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: none; } }
.gc-qr { background: var(--c-bone) !important; }
.gc-qr .code { color: var(--c-ink) !important; }
.gift-banner { background: rgba(18, 19, 16, 0.9) !important; color: var(--c-text) !important; border: 1px solid var(--c-line-2); }
.gift-banner b { color: var(--c-sand) !important; }
.wallet-btn { background: var(--c-bone) !important; color: var(--c-ink) !important; }
.reminder-banner .btn { background: var(--c-sand); color: var(--c-ink); }
.bell { background: transparent !important; border-color: var(--c-line-2) !important; color: var(--c-text) !important; }
.bell .badge { background: var(--c-sand) !important; color: var(--c-ink) !important; }
.inbox li { border-bottom-color: var(--c-line) !important; }
.inbox li.unread .dot { background: var(--c-sand) !important; }
.switch span { background: var(--c-smoke) !important; }
.switch input:checked + span { background: var(--c-sand) !important; }

/* =============================================================================
   HORARIO · estados con los tonos del logo (relleno, borde y textura)
   ========================================================================== */
.cal-scroll { border-radius: var(--r-outer) !important; }
.cal-head, .cal-corner { background: rgba(18, 19, 16, 0.96) !important; }
.cal-ruler { background: rgba(11, 12, 10, 0.96) !important; }
.cal-head.today b { color: var(--c-sand); }
.cal-line { border-top-color: rgba(208, 191, 181, 0.08) !important; }
.cal-line.half { border-top-color: rgba(208, 191, 181, 0.04) !important; }
.cal-outside { background: rgba(0, 0, 0, 0.35) !important; }
.now-line { border-top: 2px solid var(--c-sand) !important; }
.now-line::before { background: var(--c-sand) !important; animation: now-pulse 2.2s ease-out infinite; }
@keyframes now-pulse { 0% { box-shadow: 0 0 0 0 rgba(208, 191, 181, 0.5); } 100% { box-shadow: 0 0 0 12px rgba(208, 191, 181, 0); } }
.ev { border-radius: 10px !important; transition: transform var(--t-ui) var(--ease-out), box-shadow var(--t-ui); animation: ev-in var(--t-med) var(--ease-out) both; }
@keyframes ev-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ev:hover { filter: none !important; transform: translateY(-1px); box-shadow: 0 14px 26px -16px var(--shadow-tint); z-index: 2; }
.ev > * { color: var(--c-text) !important; }
.ev.PENDING { background: rgba(18, 19, 16, 0.95) !important; border: 1px dashed var(--c-sand) !important; border-left: 4px solid var(--c-sand) !important; }
.ev.CONFIRMED { background: var(--c-sand) !important; border-left: 4px solid var(--c-bone) !important; }
.ev.CONFIRMED > * { color: var(--c-ink) !important; }
.ev.COMPLETED { background: rgba(60, 57, 50, 0.85) !important; border-left: 4px solid var(--c-taupe) !important; }
.ev.COMPLETED .t::after { content: "  ✓"; }
.ev.CANCELLED { background: rgba(18, 19, 16, 0.6) !important; border-left: 4px solid #4a4540 !important; }
.ev.CANCELLED > * { color: #8a8178 !important; }
.ev.NO_SHOW { background: repeating-linear-gradient(-45deg, rgba(155, 142, 133, 0.22) 0 3px, rgba(18, 19, 16, 0.95) 3px 9px) !important; border-left: 4px solid var(--c-taupe) !important; }
.ev.NO_SHOW .t::after { content: "  ✕"; }
.blk { background: repeating-linear-gradient(-45deg, rgba(208, 191, 181, 0.1) 0 2px, rgba(11, 12, 10, 0.9) 2px 8px) !important; border-color: var(--c-line-2) !important; color: var(--c-text-2) !important; }
.cal-free { border-color: rgba(208, 191, 181, 0.2) !important; color: var(--c-text-2) !important; }
.cal-free.can:hover { border-color: var(--c-sand) !important; border-style: solid !important; color: var(--c-sand) !important; background: rgba(208, 191, 181, 0.06) !important; }
.cal-legend .ev-dot.PENDING { background: transparent; border: 1px dashed var(--c-sand); }
.cal-legend .ev-dot.CONFIRMED { background: var(--c-sand); }
.cal-legend .ev-dot.COMPLETED { background: var(--c-smoke); border: 1px solid var(--c-taupe); }
.cal-legend .ev-dot.CANCELLED { background: transparent; border: 1px solid #4a4540; }
.cal-legend .ev-dot.NO_SHOW { background: repeating-linear-gradient(-45deg, var(--c-taupe) 0 2px, transparent 2px 4px); border: 1px solid var(--c-taupe); }
.cal-legend .lg-block { background: repeating-linear-gradient(-45deg, rgba(208, 191, 181, 0.4) 0 1px, transparent 1px 4px); }
.st-pending, .theme-dark .st-pending { background: transparent !important; color: var(--c-sand) !important; box-shadow: inset 0 0 0 1px var(--c-sand); }
.st-confirmed, .theme-dark .st-confirmed { background: var(--c-sand) !important; color: var(--c-ink) !important; }
.st-completed, .theme-dark .st-completed { background: var(--c-smoke) !important; color: var(--c-bone) !important; }
.st-cancelled, .theme-dark .st-cancelled { background: transparent !important; color: #8a8178 !important; text-decoration: line-through; }
.st-noshow, .theme-dark .st-noshow { background: repeating-linear-gradient(-45deg, rgba(155, 142, 133, 0.35) 0 2px, transparent 2px 6px) !important; color: var(--c-text) !important; box-shadow: inset 0 0 0 1px var(--c-taupe); }
.theme-dark .appt { background: rgba(18, 19, 16, 0.86) !important; color: var(--c-text) !important; }
.theme-dark .appt.st-confirmed, .theme-dark .appt.st-pending, .theme-dark .appt.st-completed { background: rgba(18, 19, 16, 0.86) !important; color: var(--c-text) !important; text-decoration: none; box-shadow: none; }
.theme-dark .appt.st-pending { border-left-color: var(--c-sand) !important; }
.theme-dark .appt.st-confirmed { border-left-color: var(--c-bone) !important; }
.theme-dark .appt.st-completed { border-left-color: var(--c-taupe) !important; }
.theme-dark .appt.st-cancelled, .theme-dark .appt.st-noshow { background: rgba(11, 12, 10, 0.7) !important; color: #8a8178 !important; text-decoration: none; box-shadow: none; }
.seg { border-color: var(--c-line) !important; border-radius: 14px; overflow: hidden; }
.seg button[aria-pressed="true"], .seg-tabs button[aria-pressed="true"], .cat-filter button[aria-pressed="true"], .weekdays label:has(input:checked) { background: var(--c-sand) !important; color: var(--c-ink) !important; border-color: var(--c-sand) !important; }
.cat-filter button, .seg button, .seg-tabs button { min-height: 44px; transition: background var(--t-ui), color var(--t-ui), transform var(--t-press); }
.cat-filter button:active { transform: scale(0.97); }
.stepper li[aria-current="step"] { border-top-color: var(--c-sand) !important; }
.stepper li.done { border-top-color: var(--c-taupe) !important; }
.theme-dark .slot[aria-selected="true"], .theme-dark .day[aria-selected="true"] { background: var(--c-sand); color: var(--c-ink); border-color: var(--c-sand); }
.theme-dark .slot { transition: transform var(--t-press), border-color var(--t-ui); }
.theme-dark .slot:hover { border-color: var(--c-sand); }
.theme-dark .slot:active { transform: scale(0.96); }
.map-circle { border-color: var(--c-sand) !important; background: rgba(208, 191, 181, 0.12) !important; }
.map-pin { background: var(--c-sand) !important; }
.fondo-preview { width: 100%; max-width: 420px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-inner); border: 1px solid var(--c-line-2); filter: grayscale(1); }
.success-big .mark { background: var(--c-sand) !important; color: var(--c-ink) !important; }

/* Páginas sin menú */
.login-wrap, .denied { position: relative; }
.login-mark h1 { font-size: clamp(56px, 9vw, 120px) !important; line-height: 0.88; }
.login-logo { width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 0 0 1px var(--c-line-2), 0 30px 60px -30px #000; animation: logo-in 900ms var(--ease) both; }
@keyframes logo-in { from { opacity: 0; transform: scale(0.92) rotate(-8deg); } to { opacity: 1; transform: none; } }
.denied h1 { font-size: clamp(44px, 8vw, 96px) !important; }

/* =============================================================================
   ENTRADAS AL HACER SCROLL
   ========================================================================== */
.io { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease), border-color var(--t-ui), box-shadow var(--t-med); }
.io.in { opacity: 1; transform: none; }
.io.in:hover { transition-delay: 0ms !important; }
.shell-main > *, .book-shell > *, main.shell > *, .login-card > *, .denied .box > * { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .ambient .glow, .ambient .rings i, .ambient .grain, .mq-track, .page-hero.with-photo::before, .hero-title .w-in, .stamp.fill-in, .gold-card, .gold-card::after, .sb-indicator, .meter > i, .now-line::before { animation: none !important; }
  .io { opacity: 1; transform: none; transition: none; }
  .sb, .sb-indicator, body.has-sb, .tabset .tab-ind { transition: none !important; }
}

/* =============================================================================
   PÁGINAS NUEVAS: inicio, servicios, barberos, historial
   ========================================================================== */
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 8px 0 22px; }
.dash-name { font-size: var(--fs-h2) !important; margin: 4px 0 0; }
.tile-lead { font-size: 15px; max-width: 42ch; }
.big-time { font-size: clamp(34px, 3.4vw, 48px); font-weight: 600; letter-spacing: -1px; line-height: 1; }
.timeline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px !important; border-radius: 16px !important; }
.list-card > .min0 { display: flex; flex-direction: column; gap: 4px; }
.list-card .tm { font-size: 18px; color: var(--c-sand); }
.list-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 560px) { .list-card { grid-template-columns: 56px minmax(0, 1fr); } .list-card > :last-child { grid-column: 2; justify-self: start; } .list-end { align-items: flex-start; } }
.list-head { font-size: var(--fs-h3) !important; margin: 18px 0 4px; color: var(--c-text-2); }
.svc-tile { padding-top: 0 !important; overflow: hidden; }
.svc-ph { display: block; margin: 0 calc(-1 * var(--sp-card)) 4px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--c-line); }
.svc-tile.row-2 .svc-ph { aspect-ratio: 4 / 3; }
.svc-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.svc-tile:hover .svc-ph img { transform: scale(1.05); }
.svc-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; }
.svc-foot .price { font-size: 22px; color: var(--c-sand); }
.svc-tile .go { margin-top: 0; }
.barber-mono { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; font-family: var(--ff-display); font-size: 40px; color: var(--c-ink); background: linear-gradient(135deg, var(--c-sand-hi), var(--c-taupe)); box-shadow: 0 16px 30px -18px rgba(208, 191, 181, 0.7); }
.barber-tile.row-2 .barber-mono { width: 128px; height: 128px; font-size: 64px; border-radius: 30px; }
#cat-tabs, #hist-tabs, #dash-tabs { margin-bottom: 18px; }
@media (max-width: 640px) { .tabset:not(.block) { display: flex; overflow-x: auto; scrollbar-width: none; width: 100%; } .tabset:not(.block)::-webkit-scrollbar { display: none; } }
.recep-shell, main.shell { position: relative; }

/* Personal: encabezados más contenidos para dejar sitio al trabajo. */
body.is-staff .page-hero.compact { padding: 20px 0 12px; }
body.is-staff .page-hero.compact .hero-title { font-size: clamp(40px, 5vw, 72px); }
body.is-staff .cal-title, body.is-staff .section-head h1 { font-size: clamp(28px, 3vw, 44px) !important; }

/* Reservar: margen lateral en móvil para que el hero con foto no toque el borde. */
@media (max-width: 900px) { body > .page-hero, body > .page-hero.with-photo { margin-inline: 0; padding-inline: 16px; } }

/* =============================================================================
   v7 · BOTÓN DORADO, NIVELES DE TARJETA, EQUIPO, CAJA Y COLORES DEL HORARIO
   ========================================================================== */
:root {
  --au-1: #7a5a17; --au-2: #b98a2a; --au-3: #e3bc58; --au-4: #f8e3a1; --au-ink: #1d1505;
  --au-grad: linear-gradient(110deg, var(--au-1) 0%, var(--au-2) 18%, var(--au-3) 34%, var(--au-4) 46%, var(--au-3) 58%, var(--au-2) 76%, var(--au-3) 90%, var(--au-1) 100%);
}

/* ---- Botón dorado (Reservar cita): oro que fluye + destello que cruza ---- */
.btn.btn-gold, .theme-dark .btn.btn-gold {
  background: var(--au-grad); background-size: 260% 100%; color: var(--au-ink); border: 1px solid #e9c766;
  text-shadow: 0 1px 0 rgba(255, 244, 205, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 246, 214, 0.7), inset 0 -2px 0 rgba(90, 62, 10, 0.35), 0 12px 28px -14px rgba(212, 165, 55, 0.75);
  animation: gold-flow 5s linear infinite;
  transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-med) var(--ease-out), filter var(--t-med) var(--ease-out);
}
.btn.btn-gold::before {
  inset: -2px; transform: translateX(-130%) skewX(-18deg); transform-origin: center; transition: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%); width: 38%; z-index: 0; mix-blend-mode: soft-light;
  animation: gold-shine 3.4s var(--ease-io) infinite;
}
.btn.btn-gold > * { position: relative; z-index: 1; }
.btn.btn-gold:hover:not(:disabled), .theme-dark .btn.btn-gold:hover {
  background: var(--au-grad); background-size: 260% 100%; color: var(--au-ink); filter: brightness(1.08) saturate(1.1);
  transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 246, 214, 0.8), inset 0 -2px 0 rgba(90, 62, 10, 0.35), 0 20px 40px -16px rgba(227, 188, 88, 0.85);
}
.btn.btn-gold:hover:not(:disabled)::before, .btn.btn-gold:focus-visible::before { animation-duration: 1.3s; }
.btn.btn-gold:active:not(:disabled) { transform: translateY(0) scale(0.96); filter: brightness(0.95); box-shadow: inset 0 2px 8px rgba(70, 48, 8, 0.55), 0 6px 14px -10px rgba(212, 165, 55, 0.7); }
.btn.btn-gold:focus-visible { outline: 2px solid var(--au-4); outline-offset: 3px; }
@keyframes gold-flow { from { background-position: 0% 50%; } to { background-position: 260% 50%; } }
@keyframes gold-shine { 0% { transform: translateX(-140%) skewX(-18deg); } 55%, 100% { transform: translateX(360%) skewX(-18deg); } }
.btn.btn-gold .ic { stroke: var(--au-ink); }
/* Pestaña "Reservar" de la barra del celular */
@media (max-width: 900px) {
  .tab.tab-gold { color: var(--au-ink); background: var(--au-grad); background-size: 260% 100%; animation: gold-flow 5s linear infinite; box-shadow: inset 0 1px 0 rgba(255, 246, 214, 0.65), 0 8px 18px -10px rgba(212, 165, 55, 0.8); overflow: hidden; }
  .tab.tab-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%); transform: translateX(-120%); animation: tab-shine 3.4s var(--ease-io) infinite; mix-blend-mode: soft-light; pointer-events: none; }
  .tab.tab-gold[aria-current="page"] { color: var(--au-ink); background: var(--au-grad); background-size: 260% 100%; outline: 2px solid var(--au-4); outline-offset: -2px; }
  .tab.tab-gold:active { transform: scale(0.93); }
}
@keyframes tab-shine { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }
.btn.btn-gold.block { width: 100%; justify-content: center; }

/* ---- Puntos de color y estrellas ---- */
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--sw, var(--c-taupe)); box-shadow: 0 0 0 2px rgba(11, 12, 10, 0.8), 0 0 0 3px color-mix(in srgb, var(--sw, #9b8e85) 50%, transparent); flex: 0 0 auto; vertical-align: middle; }
.svc-name-row { display: inline-flex; align-items: center; gap: 10px; }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars i { width: 16px; height: 16px; display: inline-block; background: linear-gradient(90deg, var(--au-3) var(--f, 0%), rgba(242, 238, 233, 0.18) var(--f, 0%));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.8 6.4.9-4.6 4.5 1.1 6.3L12 17.3l-5.7 3 1.1-6.3L2.8 9.5l6.4-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.8 6.4.9-4.6 4.5 1.1 6.3L12 17.3l-5.7 3 1.1-6.3L2.8 9.5l6.4-.9z'/%3E%3C/svg%3E") center / contain no-repeat; }
.stars.lg i { width: 24px; height: 24px; }
.stars.sm i { width: 13px; height: 13px; }

/* ---- Selector de color (Configuración y Tarjetas) ---- */
.color-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.color-input { width: 56px; height: 44px; padding: 3px; border-radius: 12px; background: var(--c-ink-2); border: 1px solid var(--c-line-2); cursor: pointer; }
.color-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.color-chip { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(242, 238, 233, 0.2); background: var(--chip); cursor: pointer; transition: transform var(--t-press) var(--ease-out), border-color var(--t-ui); }
.color-chip:hover { transform: scale(1.12); border-color: var(--c-bone); }
.color-chip:active { transform: scale(0.94); }
@media (pointer: coarse) { .color-chip { width: 36px; height: 36px; } }

/* ---- Niveles de tarjeta: el color del nivel tiñe la luz de la esquina ---- */
.gold-card[data-tier] {
  --tier: #d0bfb5;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tier) 55%, #fff) 0%, var(--tier) 20%, color-mix(in srgb, var(--tier) 38%, #121310) 46%, #121310 72%, #050605 100%) !important;
  border-color: color-mix(in srgb, var(--tier) 45%, transparent) !important;
  transition: border-color 600ms var(--ease-out);
}
.gc-tier { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; font: 700 10.5px/1 var(--ff-body); letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--c-bone); background: rgba(5, 6, 5, 0.45); border: 1px solid color-mix(in srgb, var(--tier, #d0bfb5) 70%, transparent); backdrop-filter: blur(6px); }
.gc-tier::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tier, #d0bfb5); box-shadow: 0 0 10px var(--tier, #d0bfb5); }
.gc-fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; border-radius: inherit; overflow: hidden; }
.gold-card > *:not(.gc-fx) { position: relative; z-index: 1; }
/* Temas (agregar uno = sumar su clase aquí + su nombre en src/services/tiers.js) */
.tier-theme-brillo .gc-fx { background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--tier) 40%, #fff) 48%, rgba(255, 255, 255, 0.9) 50%, transparent 66%); background-size: 260% 100%; mix-blend-mode: soft-light; animation: card-sheen 3.6s var(--ease-io) infinite; }
.tier-theme-navidad .gc-fx {
  background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 80px 70px, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 140px 20px, rgba(255, 255, 255, 0.9) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 200px 110px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 260px 50px, rgba(255, 255, 255, 0.8) 50%, transparent 51%);
  background-size: 300px 160px; animation: snow 9s linear infinite; opacity: 0.85;
}
.tier-theme-navidad .gc-fx::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, rgba(192, 57, 43, 0.28), transparent); }
@keyframes snow { from { background-position: 0 0; } to { background-position: 40px 160px; } }
.tier-theme-halloween .gc-fx { background: radial-gradient(70% 60% at 15% 100%, rgba(255, 122, 24, 0.45), transparent 60%), radial-gradient(50% 50% at 90% 90%, rgba(120, 60, 200, 0.4), transparent 60%); animation: flicker 2.8s steps(1, end) infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 42% { opacity: 0.75; } 44% { opacity: 1; } 71% { opacity: 0.85; } }
.tier-theme-amor .gc-fx {
  background-image: radial-gradient(circle at 30px 120px, rgba(255, 105, 150, 0.55) 0 4px, transparent 5px), radial-gradient(circle at 120px 160px, rgba(255, 160, 190, 0.5) 0 3px, transparent 4px), radial-gradient(circle at 220px 140px, rgba(255, 105, 150, 0.45) 0 5px, transparent 6px);
  background-size: 260px 180px; animation: float-up 7s linear infinite;
}
@keyframes float-up { from { background-position: 0 0; } to { background-position: 0 -180px; } }

/* Progreso hacia la siguiente tarjeta */
.tier-progress { display: grid; gap: 14px; padding: 20px; border-radius: var(--r-outer); background: linear-gradient(180deg, rgba(27, 27, 24, 0.85), rgba(18, 19, 16, 0.85)); border: 1px solid var(--c-line); }
.tier-progress .tp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tier-progress .tp-head b { font-family: var(--ff-display); font-size: 28px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--tier, var(--c-sand)); }
.tier-progress .tp-head span { color: var(--c-text-2); font-size: 14px; }
.tier-progress .meter > i { background: linear-gradient(90deg, var(--tier, var(--c-sand)), var(--tier-next, var(--c-bone))); }
.tier-ladder { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.tier-ladder li { display: grid; gap: 6px; justify-items: start; font-size: 11.5px; color: var(--c-text-2); letter-spacing: 0.4px; }
.tier-ladder li::before { content: ""; width: 100%; height: 4px; border-radius: 4px; background: rgba(242, 238, 233, 0.1); }
.tier-ladder li.on::before { background: var(--sw); box-shadow: 0 0 12px color-mix(in srgb, var(--sw) 60%, transparent); }
.tier-ladder li.on { color: var(--c-bone); }
.tier-ladder li small { font-family: var(--ff-mono); opacity: 0.8; }

/* Dueño: editor de tarjetas */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tier-item { display: grid; gap: 14px; padding: 16px; border-radius: var(--r-outer); background: rgba(18, 19, 16, 0.88); border: 1px solid var(--c-line); }
.tier-mini { position: relative; aspect-ratio: 1.586; border-radius: 16px; overflow: hidden; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; color: var(--c-bone);
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tier) 55%, #fff) 0%, var(--tier) 20%, color-mix(in srgb, var(--tier) 38%, #121310) 46%, #121310 72%, #050605 100%);
  border: 1px solid color-mix(in srgb, var(--tier) 45%, transparent); box-shadow: 0 24px 40px -28px #000; }
.tier-mini::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 120%, transparent 0 34px, rgba(242, 238, 233, 0.07) 34px 35px); pointer-events: none; }
.tier-mini > * { position: relative; z-index: 1; }
.tier-mini b { font-family: var(--ff-display); font-size: 26px; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1; }
.tier-mini .mono { font-size: 12px; opacity: 0.85; }
.tier-item form { display: grid; gap: 12px; }
.tier-item .cfg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tier-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--c-text-2); font-size: 13px; }

/* ---- Nuestro equipo ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.team-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-outer); overflow: hidden; background: rgba(18, 19, 16, 0.9); border: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; transition: transform var(--t-med) var(--ease-out), border-color var(--t-med), box-shadow var(--t-med); }
.team-card:hover { transform: translateY(-4px); border-color: var(--c-line-2); box-shadow: 0 30px 50px -30px #000; }
.team-photo { position: relative; aspect-ratio: 4 / 4.3; background: radial-gradient(120% 90% at 100% 0%, rgba(208, 191, 181, 0.45), rgba(60, 57, 50, 0.6) 40%, #0b0c0a 80%); display: grid; place-items: center; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); transition: transform 900ms var(--ease-out); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-photo .initials { font-family: var(--ff-display); font-size: 84px; color: var(--c-bone); letter-spacing: 2px; opacity: 0.9; }
.team-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(11, 12, 10, 0.95), transparent); }
.team-card a { text-decoration: none; }
.team-photo .over { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: grid; gap: 4px; }
.team-photo .over b { font-family: var(--ff-display); text-transform: uppercase; font-size: 30px; line-height: 0.95; color: var(--c-bone); }
.team-photo .over span { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--c-sand); font-weight: 700; }
.team-body { display: grid; gap: 12px; padding: 16px; align-content: start; }
.team-body .rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-text-2); }
.team-body .rating b { color: var(--c-bone); font-family: var(--ff-mono); }
.team-body p { margin: 0; color: var(--c-text-2); font-size: 14px; line-height: 1.5; }
.team-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }

/* ---- Perfil del barbero (estilo ficha de reservas) ---- */
.pro-head { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: end; padding-top: clamp(16px, 4vw, 48px); }
.pro-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 90% at 100% 0%, rgba(208, 191, 181, 0.5), rgba(60, 57, 50, 0.6) 40%, #0b0c0a 80%); border: 1px solid var(--c-line-2); display: grid; place-items: center; animation: card-in 900ms var(--ease) both; }
.pro-photo img { width: 100%; height: 100%; object-fit: cover; }
.pro-photo .initials { font-family: var(--ff-display); font-size: 120px; color: var(--c-bone); }
.pro-id { display: grid; gap: 14px; min-width: 0; }
.pro-id .role { font-size: 12.5px; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 700; color: var(--c-sand); }
.pro-id h1 { font-family: var(--ff-display); text-transform: uppercase; font-size: clamp(52px, 8vw, 128px); line-height: 0.86; margin: 0; letter-spacing: -0.5px; overflow-wrap: normal; }
.pro-rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--c-text-2); }
.pro-rating b { font-family: var(--ff-mono); font-size: 20px; color: var(--c-bone); }
.pro-bio { max-width: 62ch; color: var(--c-text-2); line-height: 1.65; white-space: pre-line; margin: 0; }
.pro-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pro-cta .btn-gold { min-width: 220px; }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--c-line-2); color: var(--c-bone); background: rgba(18, 19, 16, 0.7); transition: transform var(--t-press) var(--ease-out), background var(--t-ui), color var(--t-ui), border-color var(--t-ui); }
.social-btn:hover { background: var(--c-sand); color: var(--c-ink); border-color: var(--c-sand); transform: translateY(-2px); }
.social-btn:active { transform: scale(0.94); }
.pro-section { margin-top: clamp(48px, 7vw, 96px); display: grid; gap: 20px; }
.pro-section > h2 { font-family: var(--ff-display); text-transform: uppercase; font-size: clamp(32px, 4vw, 56px); margin: 0; line-height: 1; }
.pro-section > h2 small { display: block; font: 600 12px/1.4 var(--ff-body); letter-spacing: 2px; color: var(--c-text-2); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 10px; }
.gallery button { padding: 0; border: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--c-ink-3); position: relative; }
.gallery button:first-child { grid-row: span 2; grid-column: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--ease-out), filter var(--t-med); }
.gallery button:hover img { transform: scale(1.05); }
.gallery button span { position: absolute; left: 10px; right: 10px; bottom: 8px; font-size: 12px; color: var(--c-bone); text-shadow: 0 1px 6px #000; text-align: left; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 960px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(5, 6, 5, 0.88); backdrop-filter: blur(6px); }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; border-radius: 18px; margin: 0 auto; }
.lightbox p { text-align: center; color: var(--c-bone); margin: 12px 0 0; }
.lightbox .icon-btn { position: fixed; top: 16px; right: 16px; background: rgba(18, 19, 16, 0.9); color: var(--c-bone); }
.top-svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.top-svc a { display: grid; gap: 6px; padding: 16px; border-radius: 18px; text-decoration: none; color: var(--c-text); background: linear-gradient(160deg, color-mix(in srgb, var(--sw, #d0bfb5) 26%, #121310), rgba(18, 19, 16, 0.92) 70%); border: 1px solid color-mix(in srgb, var(--sw, #d0bfb5) 40%, transparent); transition: transform var(--t-med) var(--ease-out); }
.top-svc a:hover { transform: translateY(-3px); }
.top-svc .rank { font: 700 11px/1 var(--ff-mono); color: var(--c-sand); letter-spacing: 1.5px; }
.top-svc b { font-size: 17px; }
.svc-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.svc-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(18, 19, 16, 0.85); border: 1px solid var(--c-line); }
.svc-line .meta { color: var(--c-text-2); font-size: 13px; }
.svc-line .price { font-family: var(--ff-mono); font-size: 15px; color: var(--c-bone); }
.svc-line .end { display: grid; gap: 6px; justify-items: end; }
@media (max-width: 560px) { .svc-line { grid-template-columns: auto minmax(0, 1fr); } .svc-line .end { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: stretch; align-items: center; } }
.rev-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: center; padding: 20px; border-radius: var(--r-outer); background: rgba(18, 19, 16, 0.85); border: 1px solid var(--c-line); }
.rev-avg { display: grid; justify-items: center; gap: 6px; }
.rev-avg b { font-family: var(--ff-display); font-size: 76px; line-height: 0.9; color: var(--c-bone); }
.rev-avg small { color: var(--c-text-2); }
.rev-dist { display: grid; gap: 8px; }
.rev-dist div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font: 600 12.5px/1 var(--ff-mono); color: var(--c-text-2); }
.rev-dist .bar { height: 8px; border-radius: 8px; background: rgba(242, 238, 233, 0.08); overflow: hidden; }
.rev-dist .bar i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--au-2), var(--au-3)); border-radius: inherit; transform-origin: left; animation: bar-grow 900ms var(--ease) both; }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: none; } }
@media (max-width: 560px) { .rev-summary { grid-template-columns: 1fr; } }
.rev-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.rev-item { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: rgba(18, 19, 16, 0.8); border: 1px solid var(--c-line); }
.rev-item.hidden-rev { opacity: 0.5; border-style: dashed; }
.rev-item header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rev-item p { margin: 0; color: var(--c-text); line-height: 1.55; white-space: pre-line; }
.rev-form { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-outer); border: 1px solid color-mix(in srgb, var(--au-3) 40%, transparent); background: linear-gradient(160deg, rgba(185, 138, 42, 0.12), rgba(18, 19, 16, 0.9) 60%); }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; border: 0; padding: 0; margin: 0; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: rgba(242, 238, 233, 0.25); transition: transform var(--t-press) var(--ease-out), color var(--t-ui); }
.star-input label svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--au-3); }
.star-input label:active { transform: scale(0.88); }
.star-input input:focus-visible + label { outline: 2px solid var(--au-4); outline-offset: 2px; border-radius: 10px; }
.hours-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--c-line); }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: rgba(18, 19, 16, 0.8); font-size: 14px; }
.hours-list li + li { border-top: 1px solid var(--c-line); }
.hours-list li.today { background: rgba(208, 191, 181, 0.12); color: var(--c-bone); font-weight: 700; }
.hours-list .mono { color: var(--c-text-2); }
.hours-list .closed { color: #8a8178; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 760px) { .pro-head { grid-template-columns: 1fr; } .pro-photo { max-width: 320px; aspect-ratio: 1; border-radius: 24px; } .visit-grid { grid-template-columns: 1fr; } .gallery button:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 2 / 1.2; } }

/* ---- Mi perfil público (editor del barbero) ---- */
.me-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.me-photo { display: grid; gap: 12px; justify-items: start; }
.me-photo .pro-photo { width: 100%; }
.me-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); gap: 10px; }
.me-work { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--c-ink-3); }
.me-work img { width: 100%; height: 100%; object-fit: cover; }
.me-work .icon-btn { position: absolute; top: 6px; right: 6px; background: rgba(11, 12, 10, 0.82); color: #f0b7ae; border-color: rgba(240, 183, 174, 0.4); }
.me-work span { position: absolute; left: 8px; right: 52px; bottom: 6px; font-size: 11.5px; color: var(--c-bone); text-shadow: 0 1px 4px #000; }
.me-add { aspect-ratio: 1; border-radius: 14px; border: 1.5px dashed var(--c-line-2); background: transparent; color: var(--c-text-2); display: grid; place-items: center; gap: 6px; cursor: pointer; font-weight: 600; transition: border-color var(--t-ui), color var(--t-ui), transform var(--t-press); }
.me-add:hover { border-color: var(--c-sand); color: var(--c-sand); }
.me-add:active { transform: scale(0.97); }
@media (max-width: 860px) { .me-grid { grid-template-columns: 1fr; } .me-photo .pro-photo { max-width: 260px; } }

/* ---- Caja ---- */
.cash-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; align-items: end; padding: 16px; border-radius: var(--r-outer); background: rgba(18, 19, 16, 0.85); border: 1px solid var(--c-line); }
.cash-filters .field { margin: 0; }
.cash-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.cash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cash-kpi { padding: 18px; border-radius: var(--r-outer); background: rgba(18, 19, 16, 0.88); border: 1px solid var(--c-line); display: grid; gap: 6px; }
.cash-kpi.main { background: linear-gradient(160deg, rgba(185, 138, 42, 0.22), rgba(18, 19, 16, 0.9) 65%); border-color: color-mix(in srgb, var(--au-3) 40%, transparent); }
.cash-kpi .v { font-family: var(--ff-mono); font-size: clamp(22px, 2.6vw, 34px); color: var(--c-bone); font-weight: 600; letter-spacing: -0.5px; }
.cash-kpi small { color: var(--c-text-2); font-size: 12.5px; }
@media (max-width: 900px) { .cash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.db-wrap { border-radius: var(--r-outer); border: 1px solid var(--c-line); overflow: auto; max-height: 70vh; background: rgba(11, 12, 10, 0.75); }
.db-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 760px; }
.db-table th { position: sticky; top: 0; z-index: 1; background: #161713; text-align: left; font: 700 11px/1 var(--ff-body); letter-spacing: 1.4px; text-transform: uppercase; color: var(--c-text-2); padding: 14px 12px; border-bottom: 1px solid var(--c-line-2); white-space: nowrap; }
.db-table td { padding: 12px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.db-table tbody tr:nth-child(even) td { background: rgba(242, 238, 233, 0.02); }
.db-table tbody tr:hover td { background: rgba(208, 191, 181, 0.07); }
.db-table td.num, .db-table th.num { text-align: right; font-family: var(--ff-mono); white-space: nowrap; }
.db-table tr.day-sep td { background: rgba(208, 191, 181, 0.08) !important; font-weight: 700; color: var(--c-bone); font-size: 12.5px; letter-spacing: 0.6px; }
.db-table tr.day-sep td.num { color: var(--au-3); }
.db-table tfoot td { position: sticky; bottom: 0; background: #1b1b17; font-weight: 700; color: var(--c-bone); border-top: 1px solid var(--c-line-2); }
.db-table .svc-cell { display: inline-flex; align-items: center; gap: 8px; }
.db-table .strike { text-decoration: line-through; color: #8a8178; }
.cash-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .cash-split { grid-template-columns: 1fr; } }
.cash-split .db-table { min-width: 0; }

/* ---- Horario: cada cita con el color de su servicio ---- */
.ev.svc { --mix: 34%; background: color-mix(in srgb, var(--svc) var(--mix), #121310) !important; border: 1px solid color-mix(in srgb, var(--svc) 55%, transparent) !important; border-left: 5px solid var(--svc) !important; }
.ev.svc > * { color: var(--c-bone) !important; }
.ev.svc.PENDING { --mix: 20%; border-style: dashed !important; border-left-style: solid !important; }
.ev.svc.CONFIRMED { --mix: 46%; }
.ev.svc.COMPLETED { --mix: 28%; }
.ev.svc.CANCELLED { --mix: 10%; opacity: 0.6; }
.ev.svc.CANCELLED .n { text-decoration: line-through; }
.ev.svc.NO_SHOW { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--svc) 30%, transparent) 0 3px, rgba(18, 19, 16, 0.95) 3px 9px) !important; }
.ev .p { font-family: var(--ff-mono); font-size: 11px; opacity: 0.9; }
.ev .st { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; opacity: 0.85; }
.cal-legend.svc { margin-top: -6px; }
.cal-legend.svc .swatch { margin-right: 6px; }
.row-item .swatch { margin-right: 4px; }
.row-item .price { font-family: var(--ff-mono); font-size: 13px; color: var(--c-bone); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .btn.btn-gold, .btn.btn-gold::before, .tab.tab-gold, .tab.tab-gold::after, .gc-fx, .rev-dist .bar i, .pro-photo { animation: none !important; }
}
.tile .go-gold { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; }
.tile.tier-progress { padding: 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cash-quick { grid-column: 1 / -1; align-items: center; }
.cash-quick .cash-csv { margin-left: auto; }
@media (max-width: 560px) { .cash-quick .cash-csv { margin-left: 0; width: 100%; justify-content: center; } }
.ev .p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =============================================================================
   v8 · TARJETA METÁLICA (platino · oro · aguamarina · rojo)
   Misma estructura para las 4; solo cambian degradados, grabado y color de texto.
   Contraste del texto ≥ 4.5:1 sobre todos los tonos del metal (ver README).
   ========================================================================== */
.mcard {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  position: relative; width: 100%; aspect-ratio: 1.586; container-type: inline-size; border-radius: 4.6% / 7.3%; overflow: hidden; isolation: isolate;
  color: var(--mc-ink); user-select: none; -webkit-user-select: none; touch-action: pan-y;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 30px 60px -28px rgba(0, 0, 0, 0.85), 0 12px 24px -16px rgba(0, 0, 0, 0.6);
}
.mcard.mc-tilt { transition: transform 120ms linear, box-shadow 400ms var(--ease-out); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 16px 30px -18px rgba(0, 0, 0, 0.6); }
.mcard.f-platino { --mc-a: #f2f3f5; --mc-b: #d5d8dc; --mc-c: #b9bdc3; --mc-d: #9ea3aa; --mc-ink: #111111; --mc-line: rgba(28, 30, 34, 0.55); --mc-emb-hi: rgba(255, 255, 255, 0.6); --mc-emb-lo: rgba(0, 0, 0, 0.16); --mc-glint: #ffffff; --mc-chip1: #f6f6f6; --mc-chip2: #c3c7cc; --mc-chip3: #868b92; --tier: #c9ccd1; }
.f-platino { --mc-a: #f2f3f5; --mc-b: #d5d8dc; --mc-c: #b9bdc3; --mc-d: #9ea3aa; --mc-glint: #ffffff; }
.mcard.f-oro { --mc-a: #fbe3a0; --mc-b: #f5c451; --mc-c: #f2b632; --mc-d: #c98d1d; --mc-ink: #1c1406; --mc-line: rgba(92, 58, 6, 0.55); --mc-emb-hi: rgba(255, 246, 214, 0.65); --mc-emb-lo: rgba(70, 40, 0, 0.18); --mc-glint: #fff6d6; --mc-chip1: #fff4d1; --mc-chip2: #e2bb58; --mc-chip3: #9a701a; --tier: #f2b632; }
.f-oro { --mc-a: #fbe3a0; --mc-b: #f5c451; --mc-c: #f2b632; --mc-d: #c98d1d; --mc-glint: #fff6d6; }
.mcard.f-aguamarina { --mc-a: #c9f5ec; --mc-b: #a4ead9; --mc-c: #7fdbca; --mc-d: #56bcb2; --mc-ink: #0b3b3a; --mc-line: rgba(14, 82, 80, 0.6); --mc-emb-hi: rgba(240, 255, 252, 0.7); --mc-emb-lo: rgba(10, 60, 58, 0.18); --mc-glint: #effffb; --mc-chip1: #f5f7f8; --mc-chip2: #c4cbcf; --mc-chip3: #7f8a90; --tier: #7fdbca; }
.f-aguamarina { --mc-a: #c9f5ec; --mc-b: #a4ead9; --mc-c: #7fdbca; --mc-d: #56bcb2; --mc-glint: #effffb; }
.mcard.f-rojo { --mc-a: #c8323a; --mc-b: #b8283a; --mc-c: #a3202f; --mc-d: #7d1622; --mc-ink: #f6eedd; --mc-line: rgba(70, 6, 14, 0.7); --mc-emb-hi: rgba(40, 0, 6, 0.55); --mc-emb-lo: rgba(255, 210, 190, 0.18); --mc-glint: #e03a3e; --mc-chip1: #fff1c8; --mc-chip2: #dcb04c; --mc-chip3: #8f6718; --tier: #e03a3e; }
.f-rojo { --mc-a: #c8323a; --mc-b: #b8283a; --mc-c: #a3202f; --mc-d: #7d1622; --mc-glint: #e03a3e; }

/* Metal cepillado: líneas finísimas + degradado + destello diagonal fijo muy suave */
.mc-metal {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(118deg, transparent 22%, color-mix(in srgb, var(--mc-glint) 38%, transparent) 38%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, rgba(0, 0, 0, 0.035) 1px 2px, transparent 2px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 7px),
    linear-gradient(158deg, var(--mc-a) 0%, var(--mc-b) 34%, var(--mc-c) 68%, var(--mc-d) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 -3cqw 6cqw rgba(0, 0, 0, 0.12), inset 0 2cqw 5cqw rgba(255, 255, 255, 0.12);
}
.mc-ghost { z-index: 1; animation: mc-ghost 1.2s var(--ease-out) forwards; }
@keyframes mc-ghost { to { opacity: 0; } }
.mc-engrave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.mc-frame { fill: none; stroke: var(--mc-line); stroke-width: 2.2; }
.mc-frame.thin { stroke-width: 1.1; }
.mc-pat { fill: none; stroke: var(--mc-line); }
.mc-waves { opacity: 0.2; }
.mc-microtile { font: 700 9px/1 var(--ff-body); letter-spacing: 3px; fill: var(--mc-line); opacity: 0.16; }
.mc-rosette { fill: none; stroke: var(--mc-line); stroke-width: 0.8; opacity: 0.28; }
.mc-rosette.two { opacity: 0.16; }
.mc-corner path, .mc-corner circle { fill: none; stroke: var(--mc-line); stroke-width: 1.7; stroke-linecap: round; }
.mc-microline { font: 600 8.5px/1 var(--ff-mono); fill: var(--mc-line); opacity: 0.7; }
.mcard .gc-fx { z-index: 2; }
.mc-content { position: absolute; inset: 0; z-index: 3; }
.mc-content > * { position: absolute; }
/* Texto grabado: color de tinta + reflejo mínimo */
.mc-brand, .mc-tier, .mc-name, .mc-since, .mc-coins, .mc-code, .mc-count, .mc-stamps .free {
  color: var(--mc-ink); text-shadow: 0 0.14cqw 0 var(--mc-emb-hi), 0 -0.08cqw 0 var(--mc-emb-lo);
}
.mc-head { top: 9%; left: 0; right: 0; display: grid; justify-items: center; gap: 0.7cqw; }
.mc-brand { font-family: var(--ff-display); font-weight: 400; font-size: 6.4cqw; line-height: 1; letter-spacing: 0.55cqw; text-transform: uppercase; }
.mc-tier { font: 700 1.9cqw/1 var(--ff-body); letter-spacing: 0.6cqw; }
.mc-chip { left: 9.5%; top: 37%; width: 12cqw; height: auto; filter: drop-shadow(0 0.25cqw 0.3cqw rgba(0, 0, 0, 0.28)); }
.mc-c1 { stop-color: var(--mc-chip1); } .mc-c2 { stop-color: var(--mc-chip2); } .mc-c3 { stop-color: var(--mc-chip3); }
.mc-chip-body { stroke: rgba(0, 0, 0, 0.25); stroke-width: 1.5; }
.mc-chip-lines { fill: none; stroke: rgba(40, 30, 10, 0.5); stroke-width: 2; }
.mc-nfc { right: 10.5%; top: 39%; width: 5cqw; height: auto; }
.mc-nfc path { fill: none; stroke: var(--mc-ink); stroke-width: 4; stroke-linecap: round; opacity: 0.85; }
.mc-medal { left: 50%; top: 26%; width: 18.5cqw; aspect-ratio: 200 / 250; transform: translateX(-50%); }
.mc-medal img { position: absolute; left: 8%; right: 8%; top: 6.4%; bottom: 6.4%; width: 84%; height: 87.2%; object-fit: cover; border-radius: 50%; filter: contrast(1.05); }
.mc-medal::after { content: ""; position: absolute; left: 8%; right: 8%; top: 6.4%; bottom: 6.4%; border-radius: 50%; box-shadow: inset 0 0.6cqw 1.2cqw rgba(0, 0, 0, 0.55), inset 0 -0.3cqw 0.6cqw rgba(255, 255, 255, 0.18); pointer-events: none; }
.mc-medal-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.mc-medal-ring ellipse { fill: none; stroke: var(--mc-line); }
.mc-medal-ring .r1 { stroke-width: 2.4; }
.mc-medal-ring .r2 { stroke-width: 7; stroke-dasharray: 1.4 3.2; opacity: 0.8; }
.mc-medal-ring .r3 { stroke-width: 1.4; }
.mc-coins { right: 9.5%; top: 55%; display: grid; justify-items: end; gap: 0.4cqw; }
.mc-coins small { font: 700 1.55cqw/1 var(--ff-body); letter-spacing: 0.45cqw; }
.mc-coins b { font: 600 4.4cqw/1 var(--ff-mono); letter-spacing: -0.1cqw; }
.mc-code { left: 9.5%; top: 57%; font: 600 2.75cqw/1 var(--ff-mono); letter-spacing: 0.3cqw; }
.mc-stamprow { left: 9.5%; right: 9.5%; top: 70.5%; display: flex; align-items: center; gap: 1.6cqw; }
.mc-stamps { display: flex; align-items: center; gap: 1.15cqw; }
.mc-stamps i { position: relative; width: 3.5cqw; height: 3.5cqw; border-radius: 50%; border: 0.3cqw solid var(--mc-line); box-shadow: inset 0 0.25cqw 0.35cqw rgba(0, 0, 0, 0.22), 0 0.12cqw 0 var(--mc-emb-hi); }
.mc-stamps i.on { border-color: var(--mc-ink); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--mc-ink) 70%, #fff) 0 18%, var(--mc-ink) 60%); box-shadow: 0 0.2cqw 0.3cqw rgba(0, 0, 0, 0.3), inset 0 -0.3cqw 0.4cqw rgba(0, 0, 0, 0.35); }
.mc-stamps i.free { width: auto; height: 3.5cqw; padding: 0 1.1cqw; border-radius: 999px; display: grid; place-items: center; font: 800 1.45cqw/1 var(--ff-body); letter-spacing: 0.25cqw; font-style: normal; border-style: dashed; }
.mc-stamps i.free.on { border-style: solid; background: var(--mc-ink); color: var(--mc-b); text-shadow: none; }
.mc-stamps.complete i.free { animation: mc-free 2.4s var(--ease-io) infinite; }
@keyframes mc-free { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mc-glint) 0%, transparent); } 50% { box-shadow: 0 0 0 0.8cqw color-mix(in srgb, var(--mc-glint) 45%, transparent), 0 0 3cqw color-mix(in srgb, var(--mc-glint) 70%, transparent); } }
.mc-stamps i.pop { animation: mc-pop 700ms var(--ease) both; }
.mc-stamps i.pop::after { content: ""; position: absolute; inset: -0.4cqw; border-radius: 50%; border: 0.35cqw solid var(--mc-glint); animation: mc-ring 900ms var(--ease-out) forwards; }
@keyframes mc-pop { 0% { transform: scale(0.4); } 55% { transform: scale(1.28); } 100% { transform: none; } }
@keyframes mc-ring { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.mc-count { margin-left: auto; font: 700 2.6cqw/1 var(--ff-mono); }
.mc-foot { left: 9.5%; right: 9.5%; bottom: 10%; display: flex; justify-content: space-between; align-items: flex-end; gap: 3cqw; }
.mc-name { font: 700 3.2cqw/1.1 var(--ff-body); letter-spacing: 0.35cqw; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-since { display: grid; justify-items: end; gap: 0.4cqw; }
.mc-since small { font: 700 1.5cqw/1 var(--ff-body); letter-spacing: 0.4cqw; }
.mc-since b { font: 600 3cqw/1 var(--ff-mono); }
/* Reflejo que sigue el dedo o el mouse, y brillo diagonal al cargar */
.mc-glare { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 28%, transparent 55%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity 400ms var(--ease-out); }
.mcard.mc-tilt .mc-glare { opacity: 1; }
.mc-glare::before { content: ""; position: absolute; inset: -10% -40%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.75) 50%, transparent 60%); transform: translateX(-80%); opacity: 0; }
.mcard.mc-intro .mc-glare { opacity: 1; }
.mcard.mc-intro .mc-glare::before, .mcard.mc-complete .mc-glare::before, .mcard.mc-upgrade .mc-glare::before { animation: mc-sweep 1.5s var(--ease-io) both; }
.mcard.mc-complete .mc-glare, .mcard.mc-upgrade .mc-glare { opacity: 1; }
@keyframes mc-sweep { 0% { transform: translateX(-80%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(80%); opacity: 0; } }
.mcard.mc-upgrade { animation: mc-upgrade 1.2s var(--ease) both; }
@keyframes mc-upgrade { 0% { transform: perspective(1100px) rotateY(0); } 45% { transform: perspective(1100px) rotateY(-14deg) scale(1.02); } 100% { transform: perspective(1100px) rotateY(0); } }
.mcard.mc-intro { animation: mc-in 900ms var(--ease) both; }
@keyframes mc-in { from { opacity: 0; transform: perspective(1100px) translateY(18px) rotateX(10deg); } to { opacity: 1; transform: perspective(1100px); } }
@media (prefers-reduced-motion: reduce) {
  .mcard, .mcard * , .mcard *::before, .mcard *::after { animation: none !important; transition: none !important; }
  .mcard { transform: none !important; }
}

/* Página Mi tarjeta: la tarjeta casi a lo ancho y el QR debajo (fuera de la tarjeta) */
.mcard-slot { width: min(100%, 560px); margin: 0 auto; perspective: 1100px; }
.qr-panel { display: grid; justify-items: center; gap: 10px; padding: 18px; border-radius: var(--r-outer); background: var(--c-bone); color: var(--c-ink); width: min(100%, 300px); margin: 0 auto; box-shadow: 0 24px 40px -28px #000; }
.qr-panel img { width: 100%; max-width: 240px; height: auto; display: block; }
.qr-panel .code { font: 600 14px/1 var(--ff-mono); letter-spacing: 2px; color: var(--c-ink); }
.qr-panel .hint { font-size: 12.5px; color: #4a4540; text-align: center; margin: 0; }

/* Panel → Tarjetas (vista del dueño y editor del soporte técnico) */
.tiers-show { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.tier-show { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-outer); background: rgba(18, 19, 16, 0.88); border: 1px solid var(--c-line); animation: tier-in 700ms var(--ease) both; }
.tier-show:nth-child(2) { animation-delay: 90ms; } .tier-show:nth-child(3) { animation-delay: 180ms; } .tier-show:nth-child(4) { animation-delay: 270ms; } .tier-show:nth-child(n+5) { animation-delay: 360ms; }
@keyframes tier-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.tier-show .tier-meta b { color: var(--c-bone); }
.tier-show .btn { justify-self: start; }
.tier-show[aria-current="true"] { border-color: var(--c-sand); box-shadow: 0 0 0 1px var(--c-sand); }
.tier-clients { display: grid; gap: 12px; }
.tier-clients .db-table { min-width: 560px; }
.dev-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 11px/1 var(--ff-body); letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-ink); background: var(--au-grad, #d4a537); background-size: 260% 100%; }
@media (prefers-reduced-motion: reduce) { .tier-show { animation: none; } }
/* Notificaciones → Enviar ahora */
.send-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .send-grid { grid-template-columns: 1fr; } }
.push-preview { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: 18px; background: rgba(242, 238, 233, 0.94); color: #15140f; box-shadow: 0 20px 40px -24px #000; }
.push-preview img { border-radius: 9px; }
.push-preview small { display: block; font-size: 11.5px; color: #5b554d; margin-bottom: 3px; }
.push-preview b { display: block; font-size: 14.5px; }
.push-preview span { display: block; font-size: 13.5px; color: #2a2722; line-height: 1.4; overflow-wrap: anywhere; }
.send-now select[hidden], .send-now input[hidden] { display: none; }
.send-now .field select + input, .send-now .field input + select { margin-top: 8px; }
/* Horario: cita suspendida y reemplazada */
.replace-note { font-size: 12.5px; color: var(--c-text-2); margin: 4px 0 0; }
.replace-note b { color: var(--c-sand); }
input[hidden], select[hidden], textarea[hidden] { display: none !important; }
/* Reserva: foto, cargo y calificación del barbero */
.barber-card img.av.photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-line-2); }
.barber-card .ttl { font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--c-sand); font-weight: 700; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.rating-line b { font-family: var(--ff-mono); color: var(--c-bone); }
.barber-chip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; margin: 10px 0 16px; border-radius: 18px; background: rgba(18, 19, 16, 0.85); border: 1px solid var(--c-line); }
.barber-chip .min0 { display: grid; gap: 3px; }
.barber-chip .av { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-display); font-size: 22px; background: radial-gradient(120% 90% at 100% 0%, rgba(208, 191, 181, 0.5), #1b1b18 70%); color: var(--c-bone); object-fit: cover; }
@media (max-width: 420px) { .barber-chip { grid-template-columns: auto minmax(0, 1fr); } .barber-chip .btn { grid-column: 1 / -1; justify-content: center; } }
/* Barra del celular: tantas columnas como accesos (+ Menú) */
@media (max-width: 900px) { .tabbar { grid-template-columns: repeat(var(--tabs, 5), minmax(0, 1fr)); } }
@media (max-width: 380px) { .tab { font-size: 9px; letter-spacing: 0.3px; } }
@media (max-width: 900px) { .tabbar.many { padding: 5px; gap: 2px; } .tabbar.many .tab { font-size: 9.5px; letter-spacing: 0.1px; } .tabbar.many .tab span { padding-inline: 0; } }

/* =============================================================================
   v11 · AVATAR ÚNICO DEL BARBERO (foto o iniciales) y RECORTE DE FOTO
   ========================================================================== */
.bavatar { position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, rgba(208, 191, 181, 0.5), #1b1b18 70%); color: var(--c-bone); border: 1px solid var(--c-line-2); }
.bavatar-ini { font-family: var(--ff-display); line-height: 1; letter-spacing: 0.04em; user-select: none; }
.bavatar picture, .bavatar img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bavatar img { object-fit: cover; opacity: 0; transition: opacity 260ms var(--ease-out); }
.bavatar.loaded img { opacity: 1; }
.bavatar.v-sm { width: 56px; height: 56px; border-radius: 50%; }
.bavatar.v-sm .bavatar-ini { font-size: 21px; }
.bavatar.v-md { width: 72px; height: 72px; border-radius: 18px; }
.bavatar.v-md .bavatar-ini { font-size: 27px; }
.bavatar.v-lg { width: 100%; height: 100%; border-radius: inherit; border: 0; background: transparent; }
.bavatar.v-lg .bavatar-ini { font-size: clamp(64px, 10vw, 120px); }
.team-photo .bavatar.v-lg .bavatar-ini { font-size: 84px; opacity: 0.9; }
.pro-photo > .bavatar { position: absolute; inset: 0; }
.barber-card .bavatar { margin-bottom: 2px; }
.barber-chip .bavatar { border-color: var(--c-line-2); }
.barber-ov .row-wrap h3 { margin: 0; }
.pro-photo.saving { opacity: 0.75; }
.pro-photo.saving::after { content: "Guardando…"; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(11, 12, 10, 0.85); color: var(--c-bone); font-size: 12.5px; }
/* Recorte */
dialog.crop-sheet { width: min(96vw, 860px); }
.crop-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 20px; align-items: start; }
.crop-stage { width: 100%; aspect-ratio: 1; border-radius: 18px; touch-action: none; cursor: grab; background: #000; box-shadow: 0 0 0 1px var(--c-line-2); }
.crop-stage:active { cursor: grabbing; }
.crop-side { display: grid; gap: 14px; }
.crop-previews { display: flex; gap: 16px; align-items: flex-end; }
.crop-previews figure { margin: 0; display: grid; gap: 6px; justify-items: center; }
.crop-previews figcaption { font-size: 12px; color: var(--c-text-2); }
.crop-prev.circle { width: 56px; height: 56px; border-radius: 50%; }
.crop-prev.square { width: 72px; height: 72px; border-radius: 18px; }
.crop-side input[type="range"] { width: 100%; accent-color: var(--c-sand); }
@media (max-width: 680px) { .crop-wrap { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bavatar img { transition: none; } }
/* Las fotos del barbero son cuadradas (96/256/800): los marcos también, para no recortar nada. */
.pro-photo { aspect-ratio: 1 !important; }
.team-photo { aspect-ratio: 1; }
/* Llegué (etiqueta NFC) */
.arrive-card .arrive-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: rgba(18, 19, 16, 0.85); border: 1px solid var(--c-line); line-height: 1.45; }
.arrive-card .arrive-row .ic { color: var(--c-sand); margin-top: 2px; }
.arrive-card.done .login-logo { box-shadow: 0 0 0 2px var(--c-sand), 0 0 0 8px rgba(208, 191, 181, 0.15), 0 30px 60px -30px #000; transition: box-shadow 600ms var(--ease-out); }
/* Recepción: llegadas por NFC */
.arr-list { display: grid; gap: 10px; }
.arr-card { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(18, 19, 16, 0.9); border: 1px solid var(--c-line-2); animation: arr-in 420ms var(--ease) both; }
.arr-card.done { border-color: color-mix(in srgb, var(--c-sand) 55%, transparent); }
.arr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.arr-head .min0 { display: grid; gap: 3px; }
.arr-name { font-size: 17px; }
.arr-appt { margin: 0; }
.arr-card .btn { min-height: 48px; }
@keyframes arr-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.live-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fbf7a; margin-right: 6px; box-shadow: 0 0 0 0 rgba(95, 191, 122, 0.6); animation: live 2s infinite; vertical-align: middle; }
.live-dot.off::before { background: #c9a227; animation: none; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(95, 191, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 191, 122, 0); } }
.tag-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: start; }
.tag-grid img { background: #fff; border-radius: 12px; padding: 6px; width: 180px; height: auto; }
.tag-grid input[readonly] { font-family: var(--ff-mono); font-size: 13px; min-width: 0; flex: 1 1 220px; }
.tag-help { font-size: 14px; line-height: 1.55; }
.tag-help summary { cursor: pointer; font-weight: 700; }
.tag-help ol { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 4px; }
@media (max-width: 560px) { .tag-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .arr-card, .live-dot::before { animation: none; } }

/* ===================== Instalar la app y activar avisos (instalar.js) ===================== */
.inst-banner {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  padding: 14px 16px; border-radius: 18px; border: 1px solid var(--c-line-2);
  background: linear-gradient(120deg, rgba(208, 191, 181, 0.10), rgba(208, 191, 181, 0.02));
  animation: sheet-in var(--t-ui) var(--ease-out) both;
}
.inst-banner b { display: block; }
.inst-banner p { margin: 2px 0 0; }
.inst-banner-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(208, 191, 181, 0.12); color: var(--c-sand); }
.inst-banner-act { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
@media (max-width: 520px) {
  .inst-banner { flex-wrap: wrap; }
  .inst-banner .min0 { flex: 1 1 calc(100% - 60px); }
  .inst-banner-act { width: 100%; justify-content: space-between; }
  .inst-banner-act .btn { flex: 1; }
}
dialog.inst-sheet { width: min(94vw, 520px); }
.inst-lead { margin: 0; color: var(--c-text-2); }
.inst-step { border: 1px solid var(--c-line-2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.inst-step header { display: flex; align-items: center; gap: 10px; }
.inst-step h3 { margin: 0; font-size: 1rem !important; letter-spacing: 0; text-transform: none; font-family: inherit; }
.inst-step p { margin: 0; }
.inst-step .btn { align-self: flex-start; }
.inst-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; border: 1px solid var(--c-sand); color: var(--c-sand); }
.inst-num.done { background: var(--c-sand); color: var(--c-ink, #0b0c0a); }
.inst-howto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: paso; }
.inst-howto li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; line-height: 1.4; }
.inst-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(208, 191, 181, 0.10); color: var(--c-sand); }

/* Página sin conexión (offline.html, la guarda el service worker). */
.offline-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; max-width: 440px; margin: 0 auto; }
.offline-page img { border-radius: 22px; }
.offline-page h1 { margin: 6px 0 0; }

/* Campana de avisos del personal (menú y barra del celular). */
.sb-user-btns { display: flex; gap: 6px; flex: none; }
html.sb-collapsed .sb-user-btns { flex-direction: column; }
.tab.tab-bell { position: relative; }
.tab.tab-bell .sb-badge { top: 2px; right: calc(50% - 22px); }
/* Lista de avisos */
.alert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.alert-item a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--c-line); color: inherit; text-decoration: none; }
.alert-item a:hover { border-color: var(--c-line-2); background: rgba(208, 191, 181, 0.04); }
.alert-item.unread a { border-color: var(--c-line-2); background: rgba(208, 191, 181, 0.07); }
.alert-item b { display: block; font-size: 0.95rem; }
.alert-item p { margin: 2px 0 0; font-size: 0.88rem; color: var(--c-text-2); }
.alert-item small { display: block; margin-top: 4px; font: 600 11px/1.2 var(--ff-mono); color: var(--c-text-2); letter-spacing: 0.5px; }
.alert-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(208, 191, 181, 0.10); color: var(--c-sand); }
.inst-prefs { display: flex; flex-direction: column; gap: 8px; }
.inst-prefs label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.inst-prefs-box summary { cursor: pointer; color: var(--c-sand); font-weight: 600; padding: 4px 0; }
.inst-prefs-box[open] summary { margin-bottom: 8px; }
