/* IMAGO — prototipo navegable */

@font-face { font-family: 'Archivo'; src: url('assets/fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/fonts/instrument-serif.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

@property --giro { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --bg: #09090b;
  --surface: #131316;
  --surface-2: #1b1b1f;
  --surface-3: #25252a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --fg: #f4f2ee;
  --dim: rgba(244, 242, 238, 0.64);
  --faint: rgba(244, 242, 238, 0.4);
  --verde: #3ddc97;
  --ambar: #f5c451;
  --rojo: #ff6b6b;
  --nacar: #ffd9b8, #fff1c2, #cff3d6, #c2e8ff, #d8ccff, #ffd0ea, #ffd9b8;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --f-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --top: 54px;
  --nav-h: 84px;
  --pad: 20px;
  --glass: rgba(9, 9, 11, 0.84);
  --hoja: #111114;
  --fondo-pagina: radial-gradient(1200px 700px at 70% 10%, #17161c 0%, #0a0a0c 60%) fixed, #0a0a0c;
  color-scheme: dark;
}
[data-theme='light'] {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --surface-2: #efece6;
  --surface-3: #e2ded6;
  --line: rgba(22, 20, 17, 0.09);
  --line-2: rgba(22, 20, 17, 0.18);
  --fg: #141311;
  --dim: rgba(20, 19, 17, 0.62);
  --faint: rgba(20, 19, 17, 0.42);
  --verde: #1fae6c;
  --ambar: #e0a113;
  --rojo: #e5484d;
  --glass: rgba(246, 244, 240, 0.86);
  --hoja: #fbfaf8;
  --fondo-pagina: radial-gradient(1200px 700px at 70% 10%, #ffffff 0%, #ebe8e2 60%) fixed, #ebe8e2;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--f-ui);
  color: var(--fg);
  background: var(--fondo-pagina);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-s { width: 16px; height: 16px; }
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- Escenario (escritorio) ---------- */
.stage { min-height: 100dvh; display: flex; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 96px); padding: 16px; }
.side { width: 330px; display: flex; flex-direction: column; gap: 28px; }
.side__brand { display: flex; flex-direction: column; gap: 14px; }
.side__lead { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.55; }
.side__lead em { font-family: var(--f-serif); font-style: italic; font-size: 1.2em; color: var(--fg); }
.side h3 { margin: 0 0 10px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.side__try { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.side__try button { width: 100%; text-align: left; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--dim); font-size: 14px; line-height: 1.35; transition: background-color 160ms ease, color 160ms ease; }
.side__try button span:first-child { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11px; color: var(--faint); }
@media (hover: hover) and (pointer: fine) { .side__try button:hover { background: var(--surface); color: var(--fg); } }
.side__note { font-size: 12px; color: var(--faint); line-height: 1.5; margin: 0; }

.modo { display: grid; grid-template-columns: 1fr 1fr; position: relative; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.modo button { position: relative; z-index: 1; height: 40px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--dim); transition: color 200ms ease; }
.modo button[aria-pressed='true'] { color: var(--bg); }
.modo__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--fg); transition: transform 320ms var(--ease-out); }
.modo[data-modo='negocio'] .modo__pill { transform: translateX(100%); }

/* Marca */
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 125%; letter-spacing: 0.16em; font-size: 15px; }
.marca--xl { font-size: 26px; gap: 14px; }
.marca__orbe { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from var(--giro), var(--nacar)); animation: girar 8s linear infinite; box-shadow: 0 0 18px rgba(255, 230, 210, 0.35); }
.marca--xl .marca__orbe { width: 28px; height: 28px; }
@keyframes girar { to { --giro: 360deg; } }

/* ---------- Dispositivo ---------- */
.device {
  position: relative;
  height: min(844px, calc(100dvh - 32px));
  aspect-ratio: 390 / 844;
  padding: 11px;
  border-radius: 58px;
  background: #050506;
  box-shadow: 0 0 0 1px #2c2c31, 0 0 0 4px #0d0d0f, 0 0 0 5px #222226, 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 140px -40px rgba(255, 220, 200, 0.12);
  flex: none;
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 47px; overflow: hidden; background: var(--bg); isolation: isolate; container-type: inline-size; }
.statusbar { position: absolute; z-index: 60; top: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font-size: 15px; font-weight: 600; pointer-events: none; }
.statusbar__isla { position: absolute; left: 50%; top: 11px; width: 118px; height: 34px; margin-left: -59px; border-radius: 20px; background: #000; }
.statusbar__icons { display: flex; gap: 6px; align-items: center; }
.home-ind { position: absolute; z-index: 70; bottom: 8px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--fg); opacity: 0.85; pointer-events: none; }

@media (max-width: 760px) {
  body { background: var(--bg); }
  .stage { padding: 0; display: block; }
  .side { display: none; }
  .device { width: 100%; height: 100dvh; aspect-ratio: auto; padding: 0; border-radius: 0; box-shadow: none; }
  .screen { border-radius: 0; }
  .statusbar, .home-ind { display: none; }
  :root { --top: max(14px, env(safe-area-inset-top)); }
}

/* ---------- Vistas ---------- */
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; padding-top: var(--top); padding-bottom: calc(var(--nav-h) + 28px); }
.view::-webkit-scrollbar { display: none; }
.view--full { padding-top: 0; }
.view--sinnav { padding-bottom: 120px; }
.pad { padding-left: var(--pad); padding-right: var(--pad); }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--pad) 4px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.icon-btn:active { transform: scale(0.94); }
.icon-btn--glass { background: rgba(10, 10, 12, 0.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: rgba(255, 255, 255, 0.12); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }

h1, h2, h3, p { margin: 0; }
.titulo { font-size: 32px; line-height: 1.05; font-weight: 700; font-stretch: 108%; letter-spacing: -0.02em; text-wrap: balance; }
.titulo em, .serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-stretch: 100%; }
.seccion-t { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.seccion-t h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.seccion-t button, .link { font-size: 13px; color: var(--dim); }
.muted { color: var(--dim); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }

/* Botones */
.btn { height: 54px; padding: 0 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 650; font-size: 16px; transition: transform 160ms var(--ease-out), opacity 200ms ease, background-color 200ms ease; white-space: nowrap; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.3; cursor: default; }
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--ghost { background: var(--surface-2); border: 1px solid var(--line); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--dim); white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); flex: none; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed='true'] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--pad); margin: 0 calc(var(--pad) * -1); }
.chips::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.08); color: var(--fg); white-space: nowrap; }
.pill--glass { background: rgba(10, 10, 12, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.punto { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); flex: none; }
.estrellas { display: inline-flex; gap: 1px; color: #ffd27a; }

/* ---------- Explorar ---------- */
.saludo { padding: 18px var(--pad) 0; }
.saludo p { margin-top: 8px; }
.buscador {
  position: relative; display: flex; align-items: center; gap: 12px; width: calc(100% - var(--pad) * 2); margin: 20px var(--pad) 18px;
  height: 58px; padding: 0 16px 0 10px; border-radius: 999px; text-align: left; color: var(--dim); font-size: 15px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--giro), var(--nacar)) border-box;
  border: 1px solid transparent; animation: girar 10s linear infinite; transition: transform 160ms var(--ease-out);
}
.buscador:active { transform: scale(0.985); }
.buscador__txt { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.buscador__txt b { color: var(--fg); font-weight: 600; }
.cursor { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; background: var(--fg); vertical-align: -0.15em; animation: parpadeo 1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }

.orbe { position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.orbe::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from var(--giro), var(--nacar)); animation: girar 6s linear infinite; }
.orbe::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a2a31, #0c0c0f 70%); }
.orbe svg { position: relative; z-index: 1; width: 18px; height: 18px; }
.orbe--sm { width: 28px; height: 28px; }
.orbe--sm svg { width: 14px; height: 14px; }
.orbe--sm::after { inset: 2px; }

.negocio-hero { position: relative; display: block; width: calc(100% - var(--pad) * 2); margin: 0 var(--pad); aspect-ratio: 4 / 4.6; border-radius: 28px; overflow: hidden; text-align: left; background: var(--surface); transition: transform 200ms var(--ease-out); }
.negocio-hero:active { transform: scale(0.985); }
.negocio-hero video, .negocio-hero img.fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.negocio-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 30%, transparent 45%, rgba(0, 0, 0, 0.88) 100%); }
.negocio-hero__top { position: absolute; z-index: 1; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.negocio-hero__info { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.negocio-hero__info h3 { font-size: 24px; font-weight: 700; font-stretch: 108%; letter-spacing: -0.01em; }
.negocio-hero__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.negocio-hero__pie { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }

.fila-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--pad) 6px; scroll-snap-type: x mandatory; scroll-padding: var(--pad); }
.fila-scroll::-webkit-scrollbar { display: none; }
.mini-negocio { flex: none; width: 168px; scroll-snap-align: start; text-align: left; transition: transform 200ms var(--ease-out); }
.mini-negocio:active { transform: scale(0.97); }
.mini-negocio__arte { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; display: grid; place-items: center; }
.mini-negocio__arte span { font-family: var(--f-serif); font-style: italic; font-size: 76px; line-height: 1; color: rgba(255, 255, 255, 0.92); mix-blend-mode: overlay; }
.mini-negocio__arte .pill { position: absolute; left: 10px; bottom: 10px; }
.mini-negocio h4 { margin: 10px 0 2px; font-size: 15px; font-weight: 650; }
.mini-negocio p { font-size: 12.5px; color: var(--dim); display: flex; gap: 6px; align-items: center; }
.etiqueta-ej { position: absolute; top: 10px; right: 10px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }

.repetir { display: flex; align-items: center; gap: 14px; width: calc(100% - var(--pad) * 2); margin: 0 var(--pad); padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: transform 160ms var(--ease-out); }
.repetir:active { transform: scale(0.985); }
.repetir img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.repetir div { flex: 1; min-width: 0; }
.repetir b { display: block; font-size: 15px; font-weight: 650; }
.repetir small { font-size: 13px; color: var(--dim); }

/* ---------- Ficha de negocio ---------- */
.ficha-hero { position: relative; height: 470px; overflow: hidden; background: #000; }
.ficha-hero video, .ficha-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ficha-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 9, 11, 0.4) 0%, transparent 25%, transparent 50%, var(--bg) 100%); pointer-events: none; }
.ficha-hero__bar { position: absolute; z-index: 2; top: calc(var(--top) + 4px); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; }
.ficha-hero__bar div { display: flex; gap: 8px; }
.trailer-btn { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255, 255, 255, 0.22); font-weight: 650; font-size: 15px; transition: transform 160ms var(--ease-out); }
.trailer-btn:active { transform: scale(0.96); }
.trailer-btn__play { width: 38px; height: 38px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; }
.trailer-btn small { font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.ficha-info { position: relative; z-index: 2; margin-top: -86px; padding: 0 var(--pad); }
.ficha-logo { width: 64px; height: 64px; border-radius: 20px; background: #000; border: 1px solid var(--line-2); display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.ficha-logo img { width: 30px; }
.ficha-info h1 { font-size: 30px; line-height: 1.05; font-weight: 750; font-stretch: 110%; letter-spacing: -0.02em; }
.ficha-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 14px; color: var(--dim); }
.ficha-meta b { color: var(--fg); }
.sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.ventajas { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ventajas .pill { background: var(--surface-2); border: 1px solid var(--line); color: var(--dim); font-weight: 500; }
.hueco-rapido { display: flex; align-items: center; gap: 12px; margin: 18px var(--pad) 0; padding: 12px 12px 12px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.hueco-rapido div { flex: 1; }
.hueco-rapido b { display: block; font-size: 15px; }
.hueco-rapido small { color: var(--dim); font-size: 13px; }

.tabs { position: sticky; top: 0; z-index: 5; margin-top: 22px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); padding-top: var(--top); margin-top: calc(22px - var(--top)); }
.tabs__lista { position: relative; display: flex; gap: 22px; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; }
.tabs__lista::-webkit-scrollbar { display: none; }
.tabs__lista button { height: 46px; font-size: 15px; font-weight: 600; color: var(--faint); transition: color 200ms ease; flex: none; }
.tabs__lista button[aria-selected='true'] { color: var(--fg); }
.tabs__ind { position: absolute; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--fg); transition: transform 320ms var(--ease-out), width 320ms var(--ease-out); }
.panel { padding: 18px var(--pad) 0; }
.panel-anim { animation: entrar 280ms var(--ease-out); }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } }

.serv-fila { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; transition: opacity 160ms ease; }
.serv-fila:active { opacity: 0.6; }
.serv-fila__img { position: relative; width: 64px; height: 80px; border-radius: 14px; overflow: hidden; flex: none; background: var(--surface-2); }
.serv-fila__img img, .serv-fila__img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.serv-fila__img .vid-ic { position: absolute; z-index: 1; right: 5px; bottom: 5px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); display: grid; place-items: center; }
.serv-fila__txt { flex: 1; min-width: 0; }
.serv-fila__txt b { display: block; font-size: 15.5px; font-weight: 650; }
.serv-fila__txt p { font-size: 13px; color: var(--dim); margin-top: 3px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.serv-fila__txt small { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--faint); }
.serv-fila__precio { text-align: right; flex: none; }
.serv-fila__precio b { display: block; font-size: 16px; font-weight: 700; }
.mas { width: 32px; height: 32px; margin-top: 6px; margin-left: auto; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }

.equipo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.miembro { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; text-align: left; background: var(--surface); }
.miembro img, .miembro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.miembro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85)); }
.miembro div { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; }
.miembro b { display: block; font-size: 17px; }
.miembro small { font-size: 12px; color: rgba(255, 255, 255, 0.72); }

.trabajos-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; margin: 0 calc(var(--pad) * -1); }
.trabajo { position: relative; aspect-ratio: 9 / 14; overflow: hidden; background: var(--surface); }
.trabajo img, .trabajo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trabajo span { position: absolute; z-index: 1; left: 8px; bottom: 7px; font-family: var(--f-serif); font-style: italic; font-size: 15px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.trabajo .vid-ic { position: absolute; z-index: 1; top: 7px; right: 7px; }

/* Reseñas */
.resumen-res { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.resumen-res__nota { text-align: center; }
.resumen-res__nota b { display: block; font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.resumen-res__nota small { font-size: 12px; color: var(--dim); }
.barras-res { display: flex; flex-direction: column; gap: 5px; }
.barras-res div { display: grid; grid-template-columns: 12px 1fr 28px; gap: 8px; align-items: center; font-size: 12px; color: var(--dim); }
.barras-res i { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.barras-res i::before { content: ''; display: block; height: 100%; width: var(--p); background: var(--fg); border-radius: 3px; }
.ia-resumen { margin-top: 12px; padding: 14px 16px; border-radius: 20px; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from 200deg, var(--nacar)) border-box; border: 1px solid transparent; display: flex; gap: 12px; }
.ia-resumen p { font-size: 14px; line-height: 1.45; color: var(--dim); }
.ia-resumen p b { color: var(--fg); font-weight: 600; }
.busca-res { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; margin: 14px 0 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--faint); }
.busca-res input { flex: 1; background: none; border: 0; outline: 0; font-size: 15px; color: var(--fg); }
.resena { padding: 16px 0; border-bottom: 1px solid var(--line); animation: entrar 260ms var(--ease-out) both; }
.resena__cab { display: flex; align-items: center; gap: 10px; }
.resena__ini { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.resena__cab div { flex: 1; }
.resena__cab b { display: block; font-size: 14.5px; }
.resena__cab small { font-size: 12px; color: var(--faint); }
.resena p { margin-top: 10px; font-size: 14.5px; line-height: 1.5; }
.resena mark { background: rgba(255, 241, 194, 0.22); color: var(--fg); border-radius: 3px; padding: 0 2px; }
.vacio { padding: 36px 12px; text-align: center; color: var(--dim); font-size: 14px; line-height: 1.5; }
.vacio svg { width: 28px; height: 28px; margin: 0 auto 10px; color: var(--faint); }

.info-lista { display: flex; flex-direction: column; }
.info-lista div { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.info-lista div > svg { color: var(--faint); margin-top: 1px; }
.horario { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; flex: 1; color: var(--dim); }
.horario b { color: var(--fg); font-weight: 500; }

.cta-fija { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; padding: 14px var(--pad) calc(14px + max(14px, env(safe-area-inset-bottom))); background: linear-gradient(180deg, transparent, var(--glass) 30%); display: flex; gap: 10px; }
.cta-fija .btn--primary { flex: 1; }

/* ---------- Reserva ---------- */
.reserva-cab { position: absolute; z-index: 10; top: 0; left: 0; right: 0; padding: calc(var(--top) + 2px) var(--pad) 12px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.reserva-cab__fila { display: flex; align-items: center; gap: 12px; }
.reserva-cab__fila > div { flex: 1; min-width: 0; }
.reserva-cab__fila small { display: block; font-size: 12px; color: var(--faint); }
.reserva-cab__fila b { font-size: 16px; }
.progreso { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 12px; }
.progreso i { height: 3px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.progreso i::before { content: ''; display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-out); }
.progreso i.on::before { transform: scaleX(1); }
.guia-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; transition: transform 160ms var(--ease-out); }
.guia-btn:active { transform: scale(0.96); }
.reserva-cuerpo { padding: calc(var(--top) + 96px) var(--pad) 150px; }
.paso { animation: paso-in 320ms var(--ease-out) both; }
.paso[data-dir='atras'] { animation-name: paso-back; }
@keyframes paso-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes paso-back { from { opacity: 0; transform: translateX(-28px); } }
.paso h2 { font-size: 26px; font-weight: 700; font-stretch: 106%; letter-spacing: -0.02em; line-height: 1.1; }
.paso > p.muted { margin-top: 6px; font-size: 14.5px; }
.consejo { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--dim); text-align: left; width: 100%; }
.consejo b { color: var(--fg); font-weight: 600; }

/* Paso 1: servicios con imagen y vídeo */
.serv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.serv-card { position: relative; aspect-ratio: 4 / 5.2; border-radius: 22px; overflow: hidden; text-align: left; background: var(--surface); transition: transform 380ms var(--ease-out), filter 380ms ease, opacity 380ms ease; }
.serv-card img, .serv-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.serv-card video { opacity: 0; transition: opacity 400ms ease; }
.serv-card.on video.listo { opacity: 1; }
.serv-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.88)); }
.serv-card__txt { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; }
.serv-card__txt b { display: block; font-size: 15px; line-height: 1.2; font-weight: 650; }
.serv-card__txt small { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.serv-card__txt small b { display: inline; font-size: 14px; color: #fff; }
.serv-card .tag { position: absolute; z-index: 2; top: 10px; left: 10px; }
.check { position: absolute; z-index: 3; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; opacity: 0; transform: scale(0.6); transition: opacity 200ms ease, transform 300ms var(--ease-out); }
.check .ic { width: 15px; height: 15px; stroke-width: 2.5; }
.on > .check { opacity: 1; transform: scale(1); }
.serv-grid.hay-sel .serv-card:not(.on) { filter: grayscale(0.85) brightness(0.55); transform: scale(0.97); }
.serv-card.on { box-shadow: 0 0 0 2px var(--fg), 0 18px 40px -12px rgba(255, 235, 215, 0.35); }

/* Paso 2: profesionales que se iluminan */
.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.pro-card { position: relative; text-align: left; transition: transform 480ms var(--ease-out), filter 480ms ease, opacity 480ms ease; }
.pro-card__foto { position: relative; aspect-ratio: 4 / 5.3; border-radius: 26px; overflow: hidden; background: var(--surface); z-index: 1; }
.pro-card__foto img, .pro-card__foto video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pro-card__foto video { opacity: 0; transition: opacity 500ms ease; }
.pro-card.on .pro-card__foto video.listo { opacity: 1; }
.pro-card__foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.8)); }
.pro-card__halo { position: absolute; inset: -3px; bottom: auto; aspect-ratio: 4 / 5.3; height: auto; width: calc(100% + 6px); border-radius: 29px; background: conic-gradient(from var(--giro), var(--nacar)); animation: girar 4s linear infinite; opacity: 0; transition: opacity 400ms ease; }
.pro-card__halo::after { content: ''; position: absolute; inset: 8px; border-radius: inherit; background: conic-gradient(from var(--giro), var(--nacar)); filter: blur(26px); opacity: 0.75; }
.pro-card.on .pro-card__halo { opacity: 1; }
.pro-card__nombre { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; }
.pro-card__nombre b { display: block; font-size: 20px; font-weight: 700; }
.pro-card__nombre small { font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.pro-card__datos { margin-top: 12px; padding: 0 4px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--dim); }
.pro-card__datos b { color: var(--fg); font-weight: 600; }
.pro-grid.hay-sel .pro-card:not(.on) { filter: grayscale(1) brightness(0.45); transform: scale(0.95); }
.pro-card.on { transform: scale(1.02); }
.sin-pref { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 16px; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: border-color 300ms ease, background-color 300ms ease, opacity 300ms ease; }
.sin-pref div { flex: 1; }
.sin-pref b { display: block; font-size: 15px; }
.sin-pref small { font-size: 13px; color: var(--dim); }
.sin-pref__ic { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; }
.sin-pref.on { border-color: var(--fg); background: var(--surface-2); }
.pro-grid.hay-sel ~ .sin-pref:not(.on) { opacity: 0.5; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--fg); transform: scale(0); transition: transform 240ms var(--ease-out); }
.on > .radio::after, .on .radio::after { transform: scale(1); }
.on > .radio { border-color: var(--fg); }

/* Paso 3: calendario por colores */
.cal { margin-top: 18px; padding: 16px 14px 12px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.cal__cab { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; }
.cal__cab b { font-size: 16px; }
.cal__cab div { display: flex; gap: 6px; }
.cal__cab .icon-btn { width: 34px; height: 34px; }
.cal__dias, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal__dias span { font-size: 11px; color: var(--faint); font-weight: 600; padding-bottom: 6px; }
.cal__grid { row-gap: 4px; }
.dia { position: relative; height: 46px; margin: 0 2px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 15px; font-weight: 600; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.dia:active:not(:disabled) { transform: scale(0.92); }
.dia i { width: 16px; height: 4px; border-radius: 2px; background: currentColor; }
.dia[data-n='alta'] i { background: var(--verde); }
.dia[data-n='media'] i { background: var(--ambar); }
.dia[data-n='poca'] i { background: var(--rojo); }
.dia[data-n='completo'] { color: var(--faint); }
.dia[data-n='completo'] span { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.dia[data-n='completo'] i { background: var(--surface-3); }
.dia[data-n='cerrado'], .dia[data-n='pasado'] { color: rgba(244, 242, 238, 0.18); cursor: default; }
.dia[data-n='cerrado'] i, .dia[data-n='pasado'] i { opacity: 0; }
.dia.hoy span { text-decoration: underline; text-underline-offset: 3px; }
.dia.on { background: var(--fg); color: var(--bg); }
.dia.on[data-n='completo'] { background: var(--surface-3); color: var(--fg); }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 4px 2px; border-top: 1px solid var(--line); margin-top: 10px; font-size: 12px; color: var(--dim); }
.leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda i { width: 12px; height: 4px; border-radius: 2px; }
.horas-t { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; }
.horas-t b { font-size: 17px; }
.horas-t b::first-letter { text-transform: uppercase; }
.franja { font-size: 12px; color: var(--faint); margin: 14px 0 8px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hora { height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); animation: entrar 260ms var(--ease-out) both; }
.hora:active { transform: scale(0.95); }
.hora.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.espera { margin-top: 14px; padding: 18px; border-radius: 22px; border: 1px dashed var(--line-2); text-align: center; }
.espera b { display: block; font-size: 16px; margin-bottom: 4px; }
.espera p { font-size: 13.5px; color: var(--dim); margin-bottom: 14px; line-height: 1.45; }
.espera-link { display: flex; align-items: center; gap: 10px; justify-content: center; width: 100%; margin-top: 16px; font-size: 13.5px; color: var(--dim); }
.sugerencia { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 18px; text-align: left; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from 120deg, var(--nacar)) border-box; border: 1px solid transparent; transition: transform 160ms var(--ease-out); }
.sugerencia:active { transform: scale(0.985); }
.sugerencia div { flex: 1; font-size: 13.5px; color: var(--dim); line-height: 1.4; }
.sugerencia div b { color: var(--fg); }

/* Paso 4: confirmar y pagar */
.resumen { margin-top: 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.resumen__top { display: flex; gap: 14px; padding: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.resumen__top img { width: 64px; height: 80px; border-radius: 14px; object-fit: cover; }
.resumen__top b { display: block; font-size: 17px; }
.resumen__top small { font-size: 13px; color: var(--dim); }
.resumen__filas div { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 14.5px; }
.resumen__filas div + div { border-top: 1px solid var(--line); }
.resumen__filas svg { color: var(--faint); }
.resumen__filas span { flex: 1; color: var(--dim); }
.resumen__filas img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.pagos { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pago { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: border-color 240ms ease, background-color 240ms ease; }
.pago.on { border-color: var(--fg); background: var(--surface-2); }
.pago div { flex: 1; }
.pago b { display: block; font-size: 15px; }
.pago small { font-size: 12.5px; color: var(--dim); }
.metodos { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.metodo { height: 24px; padding: 0 8px; border-radius: 6px; background: var(--fg); color: var(--bg); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.metodo--osc { background: var(--surface-3); color: var(--fg); }
.nota-campo { width: 100%; min-height: 76px; margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); resize: none; outline: none; font-size: 14.5px; }
.nota-campo:focus { border-color: var(--line-2); }
.politica { display: flex; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--faint); line-height: 1.45; }

.reserva-pie { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; padding: 14px var(--pad) calc(16px + max(14px, env(safe-area-inset-bottom))); background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.reserva-pie__txt { flex: 1; min-width: 0; }
.reserva-pie__txt b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.reserva-pie__txt small { display: block; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reserva-pie .btn { min-width: 150px; }
.cargando .btn__txt { filter: blur(2px); opacity: 0.6; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rueda 600ms linear infinite; }
@keyframes rueda { to { transform: rotate(360deg); } }

/* Éxito */
.exito { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--top) + 20px) 28px 40px; }
.exito__sello { position: relative; width: 120px; height: 120px; margin-bottom: 28px; display: grid; place-items: center; }
.exito__sello::before { content: ''; position: absolute; inset: -20px; border-radius: 50%; background: conic-gradient(from var(--giro), var(--nacar)); filter: blur(30px); opacity: 0.55; animation: girar 6s linear infinite, aparecer 900ms var(--ease-out) both; }
.exito__sello::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--fg); animation: sello 600ms var(--ease-out) both; }
.exito__sello svg { position: relative; z-index: 1; width: 52px; height: 52px; color: var(--bg); stroke-width: 2.5; stroke-dasharray: 30; stroke-dashoffset: 30; animation: trazo 420ms 320ms var(--ease-out) forwards; }
@keyframes sello { from { transform: scale(0.6); opacity: 0; } }
@keyframes aparecer { from { opacity: 0; transform: scale(0.7); } }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.exito h1 { font-size: 30px; font-weight: 750; font-stretch: 108%; letter-spacing: -0.02em; animation: entrar 400ms 200ms var(--ease-out) both; }
.exito > p { margin-top: 10px; color: var(--dim); font-size: 15px; line-height: 1.5; animation: entrar 400ms 280ms var(--ease-out) both; }
.exito .resumen { width: 100%; text-align: left; animation: entrar 400ms 360ms var(--ease-out) both; }
.exito__acciones { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 22px; animation: entrar 400ms 440ms var(--ease-out) both; }

/* Mis citas */
.cita-card { position: relative; margin: 18px var(--pad) 0; border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.cita-card__img { position: relative; height: 150px; }
.cita-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cita-card__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--surface)); }
.cita-card__img .pill { position: absolute; z-index: 1; top: 12px; left: 12px; }
.cita-card__body { padding: 0 18px 18px; margin-top: -30px; position: relative; }
.cita-card__body h3 { font-size: 21px; font-weight: 700; }
.cita-card__body > p { color: var(--dim); font-size: 14px; margin-top: 4px; }
.cuenta { display: flex; gap: 8px; margin-top: 16px; }
.cuenta div { flex: 1; padding: 10px 0; border-radius: 14px; background: var(--surface-2); text-align: center; }
.cuenta b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.cuenta small { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.cita-acciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cita-acciones button { height: 64px; border-radius: 16px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--dim); transition: transform 160ms var(--ease-out); }
.cita-acciones button:active { transform: scale(0.95); }
.pasada { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pasada img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.pasada div { flex: 1; min-width: 0; }
.pasada b { display: block; font-size: 14.5px; }
.pasada small { font-size: 12.5px; color: var(--dim); }

/* Perfil */
.perfil-cab { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px var(--pad) 8px; text-align: center; }
.perfil-cab .avatar { width: 84px; height: 84px; font-size: 30px; display: grid; place-items: center; font-weight: 700; }
.lista-op { margin: 18px var(--pad) 0; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.lista-op button, .lista-op div { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; text-align: left; font-size: 15px; }
.lista-op > * + * { border-top: 1px solid var(--line); }
.lista-op span { flex: 1; }
.lista-op svg:first-child { color: var(--dim); }
.negocio-cta { margin: 18px var(--pad) 0; padding: 18px; border-radius: 24px; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, conic-gradient(from var(--giro), var(--nacar)) border-box; border: 1px solid transparent; animation: girar 10s linear infinite; }
.negocio-cta b { display: block; font-size: 17px; margin-bottom: 4px; }
.negocio-cta p { font-size: 13.5px; color: var(--dim); line-height: 1.45; margin-bottom: 14px; }

/* ---------- Barra inferior ---------- */
.tabbar { position: absolute; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + max(0px, env(safe-area-inset-bottom) - 10px)); padding: 6px 8px max(22px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; background: var(--glass); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); border-top: 1px solid var(--line); transition: transform 360ms var(--ease-drawer); }
.tabbar.oculta { transform: translateY(110%); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 6px; font-size: 10.5px; font-weight: 600; color: var(--faint); transition: color 200ms ease, transform 160ms var(--ease-out); }
.tab:active { transform: scale(0.92); }
.tab[aria-current='page'] { color: var(--fg); }
.tab .ic { width: 23px; height: 23px; }
.tab--orbe { margin-top: -18px; }
.tab--orbe .orbe { width: 56px; height: 56px; box-shadow: 0 8px 30px -6px rgba(255, 220, 200, 0.4); }
.tab--orbe .orbe svg { width: 22px; height: 22px; }
.tab--orbe .orbe::after { inset: 3px; }

/* ---------- Asistente IA (hoja inferior) ---------- */
.velo { position: absolute; z-index: 80; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 360ms ease; }
.velo.on { opacity: 1; pointer-events: auto; }
.hoja { position: absolute; z-index: 81; left: 0; right: 0; bottom: 0; max-height: 86%; display: flex; flex-direction: column; border-radius: 30px 30px 0 0; background: var(--hoja); border-top: 1px solid var(--line-2); transform: translateY(105%); transition: transform 440ms var(--ease-drawer); }
.hoja.on { transform: translateY(0); }
.hoja.arrastrando { transition: none; }
.hoja__asa { padding: 10px 0 2px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.hoja__asa i { width: 38px; height: 5px; border-radius: 3px; background: var(--surface-3); }
.hoja__cab { display: flex; align-items: center; gap: 12px; padding: 8px var(--pad) 12px; border-bottom: 1px solid var(--line); touch-action: none; }
.hoja__cab div { flex: 1; }
.hoja__cab b { display: block; font-size: 16px; }
.hoja__cab small { font-size: 12.5px; color: var(--verde); display: inline-flex; align-items: center; gap: 6px; }
.hoja__cuerpo { flex: 1; overflow-y: auto; padding: 16px var(--pad) 8px; display: flex; flex-direction: column; gap: 10px; min-height: 340px; scrollbar-width: none; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.45; animation: msg 320ms var(--ease-out) both; }
@keyframes msg { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.msg--ia { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.msg--yo { align-self: flex-end; background: var(--fg); color: var(--bg); border-bottom-right-radius: 6px; }
.msg b { font-weight: 650; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
.escribiendo { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; border-radius: 20px; background: var(--surface-2); }
.escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); animation: bote 1s ease-in-out infinite; }
.escribiendo i:nth-child(2) { animation-delay: 0.15s; }
.escribiendo i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bote { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.sugeridas { display: flex; flex-wrap: wrap; gap: 6px; animation: msg 320ms 100ms var(--ease-out) both; }
.sugeridas .chip { height: 34px; font-size: 13.5px; color: var(--fg); }
.opciones-ia { display: flex; flex-direction: column; gap: 6px; align-self: stretch; animation: msg 320ms 80ms var(--ease-out) both; }
.op-ia { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); text-align: left; font-size: 14px; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.op-ia:active { transform: scale(0.98); }
.op-ia img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.op-ia div { flex: 1; }
.op-ia small { display: block; color: var(--dim); font-size: 12.5px; }
.hoja__input { display: flex; gap: 8px; align-items: center; padding: 10px var(--pad) calc(12px + max(14px, env(safe-area-inset-bottom))); border-top: 1px solid var(--line); }
.hoja__input input { flex: 1; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); outline: none; font-size: 15px; }
.hoja__input input:focus { border-color: var(--line-2); }
.hoja__input .icon-btn { width: 48px; height: 48px; background: var(--fg); color: var(--bg); border: 0; }

.globo-guia { position: absolute; z-index: 15; right: var(--pad); top: calc(var(--top) + 56px); max-width: 230px; padding: 10px 14px; border-radius: 16px 4px 16px 16px; background: var(--fg); color: var(--bg); font-size: 13px; line-height: 1.4; font-weight: 500; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); transform-origin: top right; animation: globo 360ms var(--ease-out) both; }
.globo-guia.sale { animation: globo-out 200ms ease forwards; }
@keyframes globo { from { opacity: 0; transform: scale(0.9) translateY(-4px); } }
@keyframes globo-out { to { opacity: 0; transform: scale(0.96); } }

/* ---------- Tráiler ---------- */
.trailer { position: absolute; z-index: 90; inset: 0; background: #000; clip-path: circle(0 at var(--cx, 50%) var(--cy, 50%)); transition: clip-path 640ms var(--ease-in-out); }
.trailer.on { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); }
.trailer.cerrando { transition: clip-path 380ms var(--ease-in-out), opacity 380ms ease; opacity: 0; }
.trailer video, .trailer .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trailer video { transition: opacity 300ms ease; }
.trailer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 22%, transparent 55%, rgba(0, 0, 0, 0.85) 100%); pointer-events: none; }
.trailer__barras { position: absolute; z-index: 3; top: calc(var(--top) + 2px); left: 14px; right: 14px; display: flex; gap: 4px; }
.trailer__barras i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.trailer__barras i b { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.trailer__cab { position: absolute; z-index: 3; top: calc(var(--top) + 16px); left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; }
.trailer__cab .ficha-logo { width: 34px; height: 34px; border-radius: 50%; margin: 0; }
.trailer__cab .ficha-logo img { width: 16px; }
.trailer__cab div { flex: 1; font-size: 14px; font-weight: 650; }
.trailer__cab small { display: block; font-weight: 400; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.trailer__zonas { position: absolute; z-index: 2; inset: 0; display: grid; grid-template-columns: 1fr 2fr; }
.trailer__txt { position: absolute; z-index: 3; left: 24px; right: 24px; bottom: 120px; pointer-events: none; }
.trailer__txt small { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); margin-bottom: 8px; }
.trailer__txt h2 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: -0.01em; }
.trailer__txt.cambia small, .trailer__txt.cambia h2 { animation: titulo 700ms var(--ease-out) both; }
.trailer__txt.cambia h2 { animation-delay: 80ms; }
@keyframes titulo { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.trailer__pie { position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: calc(28px + max(14px, env(safe-area-inset-bottom))); display: flex; gap: 10px; }
.trailer__pie .btn--primary { flex: 1; }

/* ---------- Toast ---------- */
.toast { position: absolute; z-index: 95; left: var(--pad); right: var(--pad); bottom: calc(var(--nav-h) + 14px); display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 18px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 550; line-height: 1.35; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); transform: translateY(16px); opacity: 0; transition: transform 380ms var(--ease-out), opacity 300ms ease; pointer-events: none; }
.toast.on { transform: translateY(0); opacity: 1; }

/* ---------- Modo negocio ---------- */
.neg-cab { display: flex; align-items: center; gap: 12px; padding: 8px var(--pad) 0; }
.neg-cab .ficha-logo { width: 42px; height: 42px; border-radius: 13px; margin: 0; }
.neg-cab .ficha-logo img { width: 20px; }
.neg-cab div { flex: 1; min-width: 0; }
.neg-cab b { display: block; font-size: 16px; }
.neg-cab small { font-size: 12.5px; color: var(--dim); }
.neg-titulo { padding: 18px var(--pad) 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.neg-titulo h1 { font-size: 30px; font-weight: 750; font-stretch: 108%; letter-spacing: -0.02em; }

.dias-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 16px var(--pad) 4px; }
.dias-strip::-webkit-scrollbar { display: none; }
.dia-p { flex: none; width: 48px; height: 62px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background-color 200ms ease, color 200ms ease; }
.dia-p small { font-size: 11px; color: var(--faint); text-transform: capitalize; }
.dia-p b { font-size: 17px; }
.dia-p.on { background: var(--fg); color: var(--bg); }
.dia-p.on small { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.agenda-res { display: flex; gap: 8px; padding: 14px var(--pad) 0; }
.agenda-res div { flex: 1; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.agenda-res b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.agenda-res small { font-size: 11.5px; color: var(--dim); }
.agenda { position: relative; display: grid; grid-template-columns: 44px 1fr 1fr; gap: 0 8px; padding: 16px var(--pad) 0; }
.agenda__cab { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 0; background: var(--bg); font-weight: 650; font-size: 14px; }
.agenda__cab img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.agenda__hora { height: 52px; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 2px; }
.agenda__hora.corte { margin-top: 18px; }
.slot { height: 48px; margin-bottom: 4px; border-radius: 12px; padding: 6px 10px; text-align: left; display: flex; flex-direction: column; justify-content: center; font-size: 12px; overflow: hidden; transition: transform 160ms var(--ease-out); }
.slot:active { transform: scale(0.97); }
.slot.corte { margin-top: 18px; }
.slot--libre { border: 1px dashed var(--line); color: var(--faint); }
.slot--cita { background: var(--surface-2); border-left: 3px solid var(--fg); }
.slot--cita b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot--cita small { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot--online { border-left-color: var(--verde); }
.slot--nueva { animation: nueva 1.6s ease 2; }
@keyframes nueva { 50% { background: rgba(255, 241, 194, 0.22); } }
.slot--hecha { opacity: 0.45; }
.ahora { position: absolute; z-index: 2; left: calc(var(--pad) + 44px); right: var(--pad); height: 0; border-top: 1.5px solid var(--rojo); pointer-events: none; }
.ahora::before { content: ''; position: absolute; left: -5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); }

.caja-hoy { margin: 16px var(--pad) 0; padding: 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.caja-hoy__cifra { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; margin-top: 4px; }
.caja-hoy__desglose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.caja-hoy__desglose div { padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.caja-hoy__desglose b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.caja-hoy__desglose small { font-size: 11.5px; color: var(--dim); }
.bloque-t { padding: 22px var(--pad) 10px; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.bloque-t small { font-size: 13px; font-weight: 500; color: var(--dim); }
.pros-sel { display: flex; gap: 8px; padding: 0 var(--pad); }
.pros-sel .chip { height: 44px; padding-left: 5px; }
.pros-sel .chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.items-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px var(--pad) 0; }
.item { position: relative; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; min-height: 70px; transition: transform 160ms var(--ease-out), border-color 200ms ease; }
.item:active { transform: scale(0.96); }
.item b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; padding-right: 20px; }
.item small { display: block; margin-top: 6px; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.item .cuenta-b { position: absolute; top: 8px; right: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 700; display: grid; place-items: center; animation: globo 240ms var(--ease-out); }
.item.on { border-color: var(--line-2); }
.ticket { margin: 14px var(--pad) 0; padding: 6px 16px 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.ticket__fila { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; animation: entrar 240ms var(--ease-out); }
.ticket__fila span { flex: 1; }
.ticket__fila small { color: var(--faint); font-size: 12px; display: block; }
.ticket__fila b { font-variant-numeric: tabular-nums; }
.ticket__fila .icon-btn { width: 30px; height: 30px; }
.ticket__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.ticket__total b { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.segmento { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: var(--surface-2); margin-top: 14px; }
.segmento button { position: relative; z-index: 1; height: 38px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--dim); transition: color 200ms ease; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.segmento button[aria-pressed='true'] { color: var(--bg); }
.segmento__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: var(--fg); transition: transform 320ms var(--ease-out); }
.segmento--pad { margin: 16px var(--pad) 0; }

/* Estadísticas */
.hero-cifra { padding: 20px var(--pad) 0; }
.hero-cifra small { font-size: 13px; color: var(--dim); }
.hero-cifra b { display: block; font-size: 52px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; margin-top: 2px; }
.delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; font-weight: 600; }
.delta--sube { color: var(--verde); }
.delta--baja { color: var(--rojo); }
.delta span { color: var(--dim); font-weight: 400; }
.grafico { position: relative; margin: 16px var(--pad) 0; padding: 14px 10px 6px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.grafico svg { display: block; width: 100%; height: 170px; overflow: visible; }
.grafico .barra { fill: color-mix(in srgb, var(--fg) 28%, transparent); transition: fill 200ms ease; }
.grafico .barra.actual { fill: var(--fg); }
.grafico .barra.hover { fill: color-mix(in srgb, var(--fg) 70%, transparent); }
.grafico .barra.actual.hover { fill: var(--fg); }
.grafico .rejilla { stroke: var(--line); stroke-width: 1; }
.grafico text { fill: var(--faint); font-size: 10px; font-family: var(--f-ui); }
.grafico .hit { fill: transparent; cursor: pointer; }
.tip { position: absolute; z-index: 4; padding: 6px 10px; border-radius: 10px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; transform: translate(-50%, -100%); opacity: 0; transition: opacity 120ms ease; font-variant-numeric: tabular-nums; }
.tip.on { opacity: 1; }
.tip small { display: block; font-weight: 400; opacity: 0.7; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px var(--pad) 0; }
.kpi { padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.kpi small { font-size: 12.5px; color: var(--dim); }
.kpi b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .delta { margin-top: 2px; font-size: 12px; }
.pro-stat { margin: 0 var(--pad) 8px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pro-stat__cab { display: flex; align-items: center; gap: 12px; }
.pro-stat__cab img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pro-stat__cab div { flex: 1; }
.pro-stat__cab b { display: block; font-size: 15.5px; }
.pro-stat__cab small { font-size: 12px; color: var(--dim); }
.pro-stat__total { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pro-stat__barra { height: 6px; margin: 12px 0; border-radius: 3px; background: var(--surface-3); overflow: hidden; display: flex; gap: 2px; }
.pro-stat__barra i { height: 100%; border-radius: 3px; background: var(--fg); transition: width 600ms var(--ease-out); }
.pro-stat__barra i + i { background: color-mix(in srgb, var(--fg) 45%, transparent); }
.pro-stat__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 12px; color: var(--dim); }
.pro-stat__nums b { display: block; font-size: 15px; color: var(--fg); font-variant-numeric: tabular-nums; }
.leyenda-mini { display: flex; gap: 14px; padding: 0 var(--pad) 10px; font-size: 12px; color: var(--dim); }
.leyenda-mini span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda-mini i { width: 10px; height: 10px; border-radius: 3px; background: var(--fg); }
.leyenda-mini i.b { background: color-mix(in srgb, var(--fg) 45%, transparent); }
.ranking { margin: 0 var(--pad); padding: 4px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ranking div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 11px 0; font-size: 14px; }
.ranking div + div { border-top: 1px solid var(--line); }
.ranking i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.ranking i::before { content: ''; display: block; height: 100%; width: var(--p); background: var(--fg); border-radius: 2px; }
.ranking b { font-variant-numeric: tabular-nums; }
.ranking small { color: var(--dim); font-size: 12px; margin-left: 6px; }

/* Productos */
.prod { display: flex; align-items: center; gap: 14px; width: calc(100% - var(--pad) * 2); margin: 0 var(--pad); padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; transition: opacity 160ms ease; }
.prod:active { opacity: 0.6; }
.prod-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--surface-2); }
.prod-ic svg { width: 30px; height: 30px; }
.prod div.t { flex: 1; min-width: 0; }
.prod b { display: block; font-size: 15px; font-weight: 650; }
.prod small { font-size: 12.5px; color: var(--dim); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stock-bajo { color: var(--ambar); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.prod .precio { text-align: right; }
.prod .precio b { font-variant-numeric: tabular-nums; }
.form-hoja { padding: 6px var(--pad) 8px; display: flex; flex-direction: column; gap: 16px; }
.campo label { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.campo label b { color: var(--fg); font-variant-numeric: tabular-nums; }
.campo input[type='text'] { width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); outline: none; font-size: 15px; }
.campo input[type='range'] { width: 100%; accent-color: var(--fg); }
.nota-com { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13px; color: var(--dim); line-height: 1.45; }
.nota-com b { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 120ms !important; }
  .trailer { transition: opacity 200ms ease !important; clip-path: none; opacity: 0; }
  .trailer.on { opacity: 1; }
}

.capa { position: absolute; inset: 0; }
#vista { position: absolute; inset: 0; }
.pro-card, .pro-card__foto, .serv-fila__img, .serv-fila__txt, .serv-fila__precio, .serv-card__txt, .pro-card__nombre { display: block; }
.pro-card__datos { display: flex; }
.pro-card__halo { display: block; }
.statusbar { color: var(--fg); background: linear-gradient(180deg, var(--glass) 55%, transparent); }
.trailer-btn { white-space: nowrap; }


/* ---------- Tema claro: lo que va sobre foto o vídeo sigue en blanco ---------- */
.negocio-hero, .miembro, .serv-card, .pro-card__foto, .trabajo, .mini-negocio__arte, .trailer, .reel, .cita-card__img .pill, .ficha-hero__bar, .trailer-btn { color: #fff; }
.pill--glass, .icon-btn--glass { color: #fff; }
.orbe svg { color: #f4f2ee; }
.trailer .btn--primary, .reel .btn--primary { background: #fff; color: #0b0b0b; }
[data-theme='light'] .ficha-hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 25%, transparent 50%, var(--bg) 100%); }
[data-theme='light'] .ficha-info h1 { text-shadow: none; }
[data-theme='light'] .device { background: #1a1a1c; }
[data-theme='light'] .marca__orbe, [data-theme='light'] .orbe { filter: saturate(1.4) contrast(1.05); }
[data-theme='light'] .tab--orbe .orbe { box-shadow: 0 8px 24px -8px rgba(160, 120, 90, 0.5); }
[data-theme='light'] .velo { background: rgba(20, 18, 15, 0.35); }
[data-theme='light'] .serv-card.on { box-shadow: 0 0 0 2px var(--fg), 0 18px 40px -12px rgba(0, 0, 0, 0.35); }
[data-theme='light'] .hoja { box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.12); }
.theme-anim, .theme-anim * { transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease !important; }

/* ---------- Avisos del negocio ---------- */
.aviso { display: flex; gap: 12px; align-items: flex-start; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--ambar) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ambar) 35%, transparent); text-align: left; transition: transform 160ms var(--ease-out); }
.aviso:active { transform: scale(0.985); }
.aviso__ic { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ambar); color: #1a1406; }
.aviso__ic .ic { width: 18px; height: 18px; }
.aviso__txt { flex: 1; font-size: 14px; line-height: 1.45; }
.aviso__txt small { display: block; font-size: 12px; color: var(--dim); margin-bottom: 2px; font-weight: 600; }
.avisos-ficha .aviso { margin-top: 16px; }

/* ---------- Muro ---------- */
.muro-form { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.muro-form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15px; }
.muro-form .icon-btn { width: 38px; height: 38px; background: var(--fg); color: var(--bg); border: 0; }
.muro-nota { display: flex; gap: 8px; align-items: flex-start; margin: 10px 4px 6px; font-size: 12px; color: var(--faint); line-height: 1.45; }
.post { padding: 16px 0; border-bottom: 1px solid var(--line); animation: entrar 280ms var(--ease-out) both; }
.post.revisando { opacity: 0.55; }
.post.revisando small { color: var(--ambar); }
.post__cab { display: flex; align-items: center; gap: 10px; }
.post__cab > div { flex: 1; min-width: 0; }
.post__cab b { font-size: 14.5px; }
.post__cab small { display: block; font-size: 12px; color: var(--faint); }
.post__av { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.post__av--neg { background: #000; }
.post__av--neg img { width: 17px; }
.insignia { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--fg); color: var(--bg); font-size: 10.5px; font-weight: 700; vertical-align: 1px; }
.post > p { margin-top: 10px; font-size: 15px; line-height: 1.5; }
.post__img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 16px; margin-top: 10px; }
.post__acc { display: flex; gap: 18px; margin-top: 10px; }
.post__acc button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); }
.post__acc .ic { width: 18px; height: 18px; }
[data-a='like'][aria-pressed='true'] svg { fill: var(--rojo); stroke: var(--rojo); }
.post__resp { margin: 10px 0 0 46px; display: flex; flex-direction: column; gap: 8px; }
.post__resp div { padding: 9px 12px; border-radius: 14px; background: var(--surface); font-size: 13.5px; line-height: 1.45; color: var(--dim); }
.post__resp b { color: var(--fg); margin-right: 4px; }

/* ---------- Inspiración: reels ---------- */
.view--reels { padding: 0; scroll-snap-type: y mandatory; background: #000; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.reel video, .reel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 28%, transparent 55%, rgba(0, 0, 0, 0.8) 100%); pointer-events: none; }
.reel__acc { position: absolute; z-index: 2; right: 12px; bottom: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.reel__acc button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); transition: transform 160ms var(--ease-out); }
.reel__acc button:active { transform: scale(0.9); }
.reel__acc .ic { width: 30px; height: 30px; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.4)); }
.reel__info { position: absolute; z-index: 2; left: 16px; right: 74px; bottom: calc(var(--nav-h) + 22px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.reel__autor { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.reel__autor img, .reel__autor > span:first-child { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1.5px solid #fff; display: grid; place-items: center; background: #333; font-weight: 700; font-size: 13px; }
.reel__autor .faint { color: rgba(255, 255, 255, 0.7); font-size: 12.5px; }
.reel__info p { font-size: 14.5px; line-height: 1.4; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.reel__cta { background: rgba(255, 255, 255, 0.95); color: #0b0b0b; }
.reels-cab { position: absolute; z-index: 10; top: 0; left: 0; right: 0; padding: calc(var(--top) + 2px) 0 10px; color: #fff; background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent); pointer-events: none; }
.reels-cab > * { pointer-events: auto; }
.reels-cab__fila { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); }
.reels-cab h1 { font-size: 24px; font-weight: 750; font-stretch: 108%; letter-spacing: -0.01em; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4); }
.subir-btn { background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
.stories { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 12px var(--pad) 0; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 62px; transition: transform 160ms var(--ease-out); }
.story:active { transform: scale(0.94); }
.story small { font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story__aro { width: 60px; height: 60px; border-radius: 50%; padding: 2.5px; background: conic-gradient(from var(--giro), var(--nacar)); animation: girar 6s linear infinite; }
.story.vista .story__aro { background: rgba(255, 255, 255, 0.35); animation: none; }
.story__av { width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid #000; background: #000; display: grid; place-items: center; font-family: var(--f-serif); font-style: italic; font-size: 26px; color: #fff; overflow: hidden; }
.story__av img { width: 24px; }
.trailer.modo-texto .poster { filter: brightness(0.42) blur(3px); transform: scale(1.06); }
.trailer__txt.largo h2 { font-size: 31px; line-height: 1.12; }
.trailer .poster[hidden], .trailer video[hidden] { display: none; }

/* ---------- Subida y moderación ---------- */
.subida-zona { display: grid; place-items: center; min-height: 170px; border-radius: 22px; border: 1.5px dashed var(--line-2); background: var(--surface); cursor: pointer; overflow: hidden; text-align: center; transition: border-color 200ms ease; }
.subida-zona:hover { border-color: var(--fg); }
.subida-zona span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; }
.subida-zona .ic { width: 28px; height: 28px; }
.subida-zona small { color: var(--faint); font-size: 12.5px; }
.subida-zona.llena span { padding: 0; width: 100%; }
.subida-zona.llena video, .subida-zona.llena img { width: 100%; height: 230px; object-fit: cover; }
.form-hoja .chips { margin: 0; padding: 0; flex-wrap: wrap; }
.normas { margin: 0; padding: 12px 14px; list-style: none; border-radius: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--dim); }
.normas li { display: flex; gap: 8px; align-items: flex-start; }
.check-l { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--dim); }
.check-l input { width: 20px; height: 20px; accent-color: var(--fg); }
.demo-mala { align-self: flex-start; font-size: 12.5px; height: 32px; }
.demo-mala[aria-pressed='true'] { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.moderacion { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 10px 0 4px; }
.moderacion > .orbe { width: 64px; height: 64px; margin-bottom: 6px; }
.moderacion > .orbe svg { width: 26px; height: 26px; }
.moderacion h3 { font-size: 20px; }
.moderacion.rechazado h3 { color: var(--rojo); }
.moderacion.rechazado > .orbe::before { animation: none; background: var(--rojo); }
.moderacion.aprobado > .orbe::before { animation-duration: 1.5s; }
.chks { width: 100%; margin: 12px 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.chks li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); font-size: 14px; color: var(--faint); transition: color 200ms ease; }
.chk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--fg); display: grid; place-items: center; animation: rueda 800ms linear infinite; flex: none; }
.chks li.ok, .chks li.mal { color: var(--fg); }
.chks li.ok .chk { animation: none; border: 0; background: var(--verde); color: #fff; }
.chks li.mal .chk { animation: none; border: 0; background: var(--rojo); color: #fff; }
.chks li.mal { background: color-mix(in srgb, var(--rojo) 12%, var(--surface)); }
#mod-fin { width: 100%; }
.fechas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.fechas label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--dim); margin: 0; }
.fechas input { height: 44px; padding: 0 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.form-hoja .segmento { margin-top: 0; }

/* Profesional ocupado a la hora elegida */
.pro-card.ocupado { opacity: 0.4; filter: grayscale(1); cursor: not-allowed; }
.pro-card .tag { position: absolute; z-index: 3; top: 10px; left: 10px; }
.slot--vac { border-radius: 12px; height: 48px; margin-bottom: 4px; background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--surface-2) 8px 16px); font-size: 12px; color: var(--dim); display: flex; align-items: center; padding: 0 10px; }
.slot--vac.corte { margin-top: 18px; }
.side { max-height: calc(100dvh - 32px); overflow-y: auto; scrollbar-width: none; gap: 20px; }
.side__try button { padding: 7px 12px; }
.chks li.saltado { opacity: 0.4; }
.chks li.saltado .chk { animation: none; border-color: var(--line-2); }
.reserva-pie__txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================
   Dos apps: pantalla de entrada, Face ID, campana
   ===================================================================== */
.splash { position: absolute; z-index: 200; inset: 0; display: grid; place-items: center; background: var(--bg); transition: opacity 360ms ease; }
.splash.sale { opacity: 0; pointer-events: none; }
.splash__marca { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.splash__marca .marca__orbe { width: 64px; height: 64px; box-shadow: 0 0 60px rgba(255, 220, 200, 0.45); animation: girar 4s linear infinite, splash-orbe 700ms var(--ease-out) both; }
.splash__marca b { font-size: 30px; font-weight: 800; font-stretch: 125%; letter-spacing: 0.22em; margin-right: -0.22em; animation: splash-txt 700ms 120ms var(--ease-out) both; }
.splash__marca small { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--dim); margin-top: -8px; animation: splash-txt 700ms 220ms var(--ease-out) both; }
@keyframes splash-orbe { from { transform: scale(0.6); opacity: 0; } }
@keyframes splash-txt { from { opacity: 0; letter-spacing: 0.5em; filter: blur(6px); } }
.faceid { position: absolute; z-index: 190; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.faceid__caja { width: 150px; height: 150px; border-radius: 34px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; animation: globo 300ms var(--ease-out); }
.faceid__ic .ic { width: 56px; height: 56px; stroke-width: 1.4; transition: color 200ms ease, transform 300ms var(--ease-out); }
.faceid.ok .faceid__ic .ic { color: var(--verde); transform: scale(1.08); }
.faceid__caja small { font-size: 13px; color: var(--dim); }
.campana { position: relative; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rojo); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.side h3 { margin-top: 4px; }
.side__note a { color: var(--dim); }

/* ---------- Registro ---------- */
.login { position: relative; min-height: 100%; display: flex; align-items: flex-end; color: #fff; background: #000; }
.login video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.login::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.92) 62%); }
.login__cuerpo { position: relative; z-index: 1; width: 100%; padding: 0 var(--pad) calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.login__marca { display: flex; align-items: center; gap: 12px; }
.login__marca .marca__orbe { width: 36px; height: 36px; }
.login__marca b { font-size: 28px; font-weight: 800; font-stretch: 125%; letter-spacing: 0.18em; }
.login__lema { font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, 0.78); margin-bottom: 8px; }
.login__btns { display: flex; flex-direction: column; gap: 8px; }
.login__btn { height: 52px; justify-content: flex-start; padding: 0 20px; gap: 14px; font-size: 15.5px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.login__btn--apple { background: #fff; color: #000; border-color: #fff; }
.login__btn .btn__txt { flex: 1; text-align: center; margin-right: 34px; }
.login__btn.cargando .spinner { position: absolute; right: 18px; }
.login__btn { position: relative; }
.login__saltar { color: rgba(255, 255, 255, 0.8); font-size: 14px; margin-top: 4px; }
.login__legal { font-size: 11.5px; color: rgba(255, 255, 255, 0.5); text-align: center; }

/* ---------- Inicio del cliente ---------- */
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad) 4px; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 7px; scroll-snap-align: start; transition: transform 160ms var(--ease-out); }
.cat:active { transform: scale(0.94); }
.cat__ic { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.cat__ic .ic { width: 26px; height: 26px; stroke-width: 1.5; }
.cat small { font-size: 11.5px; color: var(--dim); text-align: center; line-height: 1.2; }
.proxima { display: flex; align-items: center; gap: 12px; width: calc(100% - var(--pad) * 2); margin: 0 var(--pad); padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.proxima img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.proxima div { flex: 1; }
.proxima b { display: block; font-size: 15px; }
.proxima small { font-size: 13px; color: var(--dim); }
.neg-card { flex: none; width: 210px; scroll-snap-align: start; text-align: left; transition: transform 200ms var(--ease-out); }
.neg-card:active { transform: scale(0.97); }
.neg-card__img { position: relative; display: block; height: 140px; border-radius: 20px; overflow: hidden; background: var(--surface); color: #fff; }
.neg-card__img > img, .neg-card__img > .arte { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.neg-card__img .pill { position: absolute; left: 10px; bottom: 10px; }
.neg-card b { display: block; margin-top: 10px; font-size: 15px; }
.neg-card small { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.neg-card small .ic { color: #ffc85a; }
.arte { display: grid; place-items: center; transition: opacity 900ms ease; }
.arte span { font-family: var(--f-serif); font-style: italic; font-size: 64px; color: rgba(255, 255, 255, 0.9); mix-blend-mode: overlay; }
.oferta { flex: none; width: 230px; height: 128px; padding: 14px; border-radius: 20px; color: #fff; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; position: relative; scroll-snap-align: start; }
.oferta .pill { position: absolute; top: 12px; left: 12px; }
.oferta b { font-size: 17px; line-height: 1.2; }
.oferta small { font-size: 12.5px; color: rgba(255, 255, 255, 0.8); }
.mapa-mini { position: relative; display: block; width: calc(100% - var(--pad) * 2); margin: 0 var(--pad); height: 180px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.mapa-mini #mapa-mini { position: absolute; inset: 0; pointer-events: none; }
.mapa-mini .pill { position: absolute; z-index: 500; left: 12px; bottom: 12px; }

/* ---------- Explorar ---------- */
.explorar-cab { padding: 8px var(--pad) 4px; display: flex; flex-direction: column; gap: 10px; }
.busca-grande { margin: 0; height: 50px; border-radius: 16px; }
.cerca { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.cerca span { flex: 1; }
.cerca b { display: block; font-size: 15px; }
.cerca small { font-size: 12.5px; color: var(--dim); }
.recientes { display: flex; flex-direction: column; }
.recientes button { display: flex; align-items: center; gap: 10px; padding: 9px 2px; font-size: 14.5px; color: var(--dim); text-align: left; }
.orden-fila { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 4px; }
.res { display: flex; gap: 14px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; position: relative; transition: opacity 160ms ease; }
.res:active { opacity: 0.6; }
.res__img { position: relative; width: 92px; height: 92px; border-radius: 18px; overflow: hidden; flex: none; color: #fff; }
.res__img > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.res__img .arte span { font-size: 44px; }
.res__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.res__txt b { font-size: 15.5px; }
.res__txt small { font-size: 12.5px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.res__txt .pill { margin-top: 4px; background: var(--surface-2); color: var(--dim); font-weight: 500; }
.res__fav { position: absolute; right: 0; top: 12px; color: var(--rojo); }
.res__fav svg { fill: currentColor; width: 18px; height: 18px; }
.pregunta-ia { display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0 4px; padding: 12px 14px; border-radius: 16px; text-align: left; font-size: 14px; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from 120deg, var(--nacar)) border-box; border: 1px solid transparent; }
.pregunta-ia span:nth-child(2) { flex: 1; }
.mapa-grande { position: relative; height: calc(100% - 120px); min-height: 420px; margin-top: 10px; }
.mapa-grande #mapa { position: absolute; inset: 0; }
.leaflet-container { background: var(--surface) !important; font-family: var(--f-ui); }
.leaflet-control-attribution { font-size: 9px !important; background: color-mix(in srgb, var(--bg) 70%, transparent) !important; color: var(--faint) !important; }
.leaflet-control-attribution a { color: var(--dim) !important; }
.pin { display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--fg); color: var(--bg); font: 700 13px var(--f-ui); white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); transform: translateY(0); transition: transform 240ms var(--ease-out), background-color 200ms ease; cursor: pointer; }
.pin .ic { width: 14px; height: 14px; color: #ffc85a; }
.pin--real { background: conic-gradient(from 200deg, var(--nacar)); color: #111; }
.pin--real .ic { color: #111; }
.pin.on { transform: translateY(-6px) scale(1.12); }
.yo-pin { display: block; width: 18px; height: 18px; border-radius: 50%; background: #3b82f6; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.2); }
.mapa-card { position: absolute; z-index: 600; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px); border-radius: 24px; overflow: hidden; background: var(--hoja); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); transform: translateY(20px); opacity: 0; transition: transform 380ms var(--ease-out), opacity 260ms ease; }
.mapa-card.on { transform: none; opacity: 1; }
.mapa-card__fotos { position: relative; height: 150px; background: #000; color: #fff; }
.mapa-card__fotos > img, .mapa-card__fotos > .arte { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1100ms ease, transform 3200ms ease-out; }
.mapa-card__fotos > .on { opacity: 1; transform: scale(1); }
.mapa-card__fotos .icon-btn { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; }
.mapa-card__txt { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.mapa-card__txt > b { font-size: 17px; }
.mapa-card__txt > small { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--dim); }
.mapa-card__ia { display: flex; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 13px; line-height: 1.45; color: var(--dim); }
.mapa-card__ia b { color: var(--fg); }
.mapa-card__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }

/* ---------- Citas: anteriores con foto ---------- */
.pasadas { display: flex; flex-direction: column; gap: 12px; }
.pasada-card { position: relative; height: 210px; border-radius: 24px; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; gap: 12px; }
.pasada-card__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pasada-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%); }
.pasada-card__info, .pasada-card__btns { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.pasada-card__pro { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.pasada-card__info b { display: block; font-size: 18px; }
.pasada-card__info small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }
.pasada-card__btns .btn { flex: 1; }

/* ---------- Notificaciones ---------- */
.noti { display: flex; gap: 12px; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; line-height: 1.45; }
.noti > span:last-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.noti small { font-size: 12.5px; color: var(--faint); }
.noti.nueva { position: relative; }
.noti.nueva::after { content: ''; position: absolute; right: 0; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; }
.noti__ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.noti__ic--verde { background: color-mix(in srgb, var(--verde) 18%, var(--surface)); color: var(--verde); }
.noti__ic--ambar { background: color-mix(in srgb, var(--ambar) 18%, var(--surface)); color: var(--ambar); }
.noti__ic--rojo { background: color-mix(in srgb, var(--rojo) 16%, var(--surface)); color: var(--rojo); }
.noti__btns { display: flex; gap: 8px; margin-top: 8px; }

/* ---------- Perfil del cliente ---------- */
.avatar--sil { display: grid; place-items: center; background: var(--surface-2); color: var(--dim); }
.avatar--sil .ic { width: 40px; height: 40px; }
.sobre-mi { display: block; width: calc(100% - var(--pad) * 2); margin: 16px var(--pad) 0; padding: 16px; border-radius: 22px; text-align: left; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from 200deg, var(--nacar)) border-box; border: 1px solid transparent; }
.sobre-mi__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.sobre-mi__chips .pill { background: var(--surface-2); }
.sobre-mi p { font-size: 14px; line-height: 1.45; color: var(--dim); }
.sobre-mi .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--fg); font-weight: 600; }
.lista-op button span small, .lista-op div span small { display: block; font-size: 12.5px; color: var(--dim); margin-top: 1px; }
.ajuste { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.ajuste span { flex: 1; }
.ajuste b { display: block; font-size: 15px; font-weight: 600; }
.ajuste small { display: block; font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; border-radius: 999px; background: var(--surface-3); transition: background-color 220ms ease; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform 260ms var(--ease-out); }
.switch[aria-checked='true'] { background: var(--verde); }
.switch[aria-checked='true']::after { transform: translateX(20px); }

/* =====================================================================
   IMAGO Business
   ===================================================================== */
.biz-cab { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--pad) 0; }
.marca--biz { font-size: 15px; }
.marca--biz small { font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); font-stretch: 100%; margin-left: 2px; }
.neg-titulo--sm h1 { font-size: 24px; }
.agenda-ctrl { padding: 12px var(--pad) 0; display: flex; flex-direction: column; gap: 10px; }
.agenda-ctrl .segmento { margin-top: 0; }
.agenda-ctrl .chips { margin: 0; padding: 0; }
.semana-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad) 6px; }
.semana-nav b { font-size: 16px; }
.semana-nav .icon-btn { width: 34px; height: 34px; }
.semana { display: grid; grid-template-columns: 38px repeat(7, 1fr); gap: 3px; padding: 8px var(--pad) 0; }
.wk-dia { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.wk-dia small { font-size: 10.5px; color: var(--faint); font-weight: 600; }
.wk-dia b { font-size: 15px; }
.wk-dia i { font-style: normal; font-size: 10px; color: var(--dim); font-variant-numeric: tabular-nums; }
.wk-dia.hoy { background: var(--fg); color: var(--bg); }
.wk-dia.hoy small, .wk-dia.hoy i { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.wk-dia:disabled { opacity: 0.55; }
.wk-h { font-size: 10px; color: var(--faint); height: 22px; line-height: 22px; font-variant-numeric: tabular-nums; }
.wk-c { height: 22px; display: flex; gap: 2px; }
.wk-c i { flex: 1; border-radius: 4px; background: var(--surface); }
.wk-c i.ocu { background: var(--fg); }
.wk-c i.ocu.nueva { background: var(--verde); }
.wk-c i.vac { background: repeating-linear-gradient(135deg, var(--surface) 0 4px, var(--surface-3) 4px 8px); }
.wk-c.wk-pas { opacity: 0.45; }
.wk-c--cerrado { border-radius: 4px; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--surface) 4px 8px); }
.wk-h.corte, .wk-c.corte { margin-top: 10px; }
.leyenda-mini i.b { background: var(--surface-3); }

.first { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; color: #111; background: conic-gradient(from 200deg, var(--nacar)); vertical-align: 1px; }
.tag-c { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.tag-c .ic { width: 12px; height: 12px; }
.tag-c--ok { background: color-mix(in srgb, var(--verde) 16%, transparent); color: var(--verde); }
.tag-c--mal { background: color-mix(in srgb, var(--rojo) 16%, transparent); color: var(--rojo); }
.sil { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--faint); overflow: hidden; }
.sil .ic { width: 30px; height: 30px; transform: translateY(5px); stroke-width: 1.4; fill: currentColor; fill-opacity: 0.25; }
.sil--xl { width: 92px; height: 92px; }
.sil--xl .ic { width: 64px; height: 64px; transform: translateY(10px); }
.cli { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; text-align: left; transition: opacity 160ms ease; }
.cli:active { opacity: 0.6; }
.cli__txt { flex: 1; min-width: 0; }
.cli__txt b { display: block; font-size: 15px; font-weight: 600; }
.cli__txt small { font-size: 12.5px; color: var(--dim); }
.cli__tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.cli-cab { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px var(--pad) 4px; text-align: center; }
.cli-cab h1 { font-size: 26px; font-weight: 750; font-stretch: 106%; letter-spacing: -0.02em; }
.cli-cab .cli__tags { justify-content: center; }
.acc-fila { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 16px var(--pad) 6px; }
.acc-cli { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 10.5px; color: var(--dim); transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.acc-cli:active { transform: scale(0.93); }
.acc-cli .ic { width: 21px; height: 21px; color: var(--fg); }
.acc-cli[data-a='cli-confianza'].on { background: color-mix(in srgb, var(--verde) 16%, var(--surface)); }
.acc-cli[data-a='cli-confianza'].on .ic { color: var(--verde); }
.acc-cli[data-a='cli-bloquear'].on { background: color-mix(in srgb, var(--rojo) 14%, var(--surface)); }
.acc-cli[data-a='cli-bloquear'].on .ic { color: var(--rojo); }
.acc-cli[data-a='cli-wa'] .ic { color: #25d366; }
.nota-cli { margin: 0 var(--pad); padding: 12px 14px; border-radius: 16px; background: var(--surface); font-size: 14px; line-height: 1.5; color: var(--dim); }
.cita-fila { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cita-fila img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.cita-fila > span:nth-child(2) { flex: 1; min-width: 0; }
.cita-fila b { display: block; font-size: 14px; }
.cita-fila small { font-size: 12px; color: var(--dim); }
.cita-fila__der { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.estado { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--dim); white-space: nowrap; }
.estado--ok { background: color-mix(in srgb, var(--verde) 16%, transparent); color: var(--verde); }
.estado--aviso { background: color-mix(in srgb, var(--ambar) 18%, transparent); color: var(--ambar); }
.estado--mal { background: color-mix(in srgb, var(--rojo) 16%, transparent); color: var(--rojo); }

.perfil-neg { display: flex; align-items: center; gap: 14px; width: calc(100% - var(--pad) * 2); margin: 16px var(--pad) 0; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.perfil-neg .ficha-logo { margin: 0; width: 54px; height: 54px; border-radius: 16px; }
.perfil-neg > span:nth-child(2) { flex: 1; }
.perfil-neg b { display: block; font-size: 16px; }
.perfil-neg small { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.qr-card { display: flex; gap: 16px; align-items: center; margin: 10px var(--pad) 0; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.qr { width: 112px; height: 112px; flex: none; padding: 8px; border-radius: 14px; background: #fff; color: #000; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; }
.qr-card__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qr-card__txt b { font-size: 14.5px; word-break: break-all; }
.qr-card__txt small { font-size: 12px; color: var(--dim); line-height: 1.4; }
.qr-card__btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.qr-card__btns .btn { height: 36px; padding: 0 12px; font-size: 13px; }
.recompensa-banner { display: flex; align-items: center; gap: 12px; width: calc(100% - var(--pad) * 2); margin: 10px var(--pad) 0; padding: 14px; border-radius: 20px; text-align: left; color: #111; background: conic-gradient(from 210deg at 20% 50%, var(--nacar)); }
.recompensa-banner > span { flex: 1; }
.recompensa-banner b { display: block; font-size: 15px; }
.recompensa-banner small { font-size: 12.5px; opacity: 0.75; }
.wa { padding: 14px; border-radius: 18px; background: #0b141a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff10'/%3E%3C/svg%3E"); }
.wa__burbuja { max-width: 92%; padding: 9px 12px 6px; border-radius: 4px 14px 14px 14px; background: #1f2c34; color: #e9edef; font-size: 13.5px; line-height: 1.45; }
.wa__burbuja small { display: block; text-align: right; font-size: 10.5px; color: #8696a0; margin-top: 4px; }
.tx { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tx img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.tx span { flex: 1; min-width: 0; }
.tx span b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx small { font-size: 12px; color: var(--dim); }
.tx > b { font-variant-numeric: tabular-nums; }
.nivel { margin: 14px var(--pad) 14px; padding: 18px; border-radius: 24px; color: #111; background: conic-gradient(from var(--giro) at 30% 40%, var(--nacar)); animation: girar 12s linear infinite; }
.nivel .eyebrow { color: rgba(0, 0, 0, 0.55); }
.nivel b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.nivel small { font-size: 13px; opacity: 0.75; }
.nivel__barra, .reto__barra { display: block; height: 6px; margin-top: 10px; border-radius: 3px; background: rgba(0, 0, 0, 0.12); overflow: hidden; }
.nivel__barra i, .reto__barra i { display: block; height: 100%; border-radius: 3px; background: #111; }
.reto { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.reto__ic { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); }
.reto.ok .reto__ic { background: conic-gradient(from 200deg, var(--nacar)); color: #111; }
.reto__txt { flex: 1; min-width: 0; }
.reto__txt b { display: block; font-size: 14.5px; }
.reto__txt small { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.reto__barra { background: var(--surface-3); margin-top: 8px; }
.reto__barra i { background: var(--fg); }
.reto.ok .reto__barra i { background: var(--verde); }
.invita { margin: 18px var(--pad) 0; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px dashed var(--line-2); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.invita b { font-size: 22px; letter-spacing: 0.08em; }
.invita small { font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.splash[hidden], .faceid[hidden], .mapa-card[hidden] { display: none; }
.screen { container-type: size; }
.mapa-grande { height: calc(100cqh - var(--top) - 150px - var(--nav-h)); min-height: 300px; margin: 10px var(--pad) 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.mapa-card { bottom: 10px; left: 10px; right: 10px; }
.mapa-card__fotos { height: 118px; }
.reto { flex-wrap: wrap; }
.reto > .btn { margin-left: 54px; }
.res__txt { padding-right: 24px; }
.res__txt b { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pasada-card::before { z-index: 1; }
.pasada-card__info, .pasada-card__btns { z-index: 2; }
.pasada-card__btns .btn { flex: 1 1 auto; min-width: 0; padding: 0 12px; }
.pasada-card__btns .subir-btn { flex: none; }
.pasada-card::before { background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.78) 42%, rgba(0, 0, 0, 0.15) 80%); }
.login { min-height: 100cqh; margin-bottom: -120px; }
/* Instalada en el móvil: sin marco de teléfono ni panel lateral */
@media (display-mode: standalone) {
  .side { display: none; }
  .stage { padding: 0; display: block; }
  .device { width: 100%; height: 100dvh; aspect-ratio: auto; padding: 0; border-radius: 0; box-shadow: none; }
  .screen { border-radius: 0; }
  .statusbar, .home-ind { display: none; }
  :root { --top: max(14px, env(safe-area-inset-top)); }
}
