/* ============================================================
   Barber.ia — components.css
   ============================================================ */

/* ---------- Iconos ---------- */
.ico {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
  vertical-align: -0.14em;
}
.ico-fill { fill: currentColor; stroke: none; }
.ico-lg { width: 1.5em; height: 1.5em; }
.ico-xl { width: 2.2em; height: 2.2em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .68rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, transform .16s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #202027; border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }

.btn-danger {
  background: transparent;
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  color: #fca5a5;
}
.btn-danger:hover { background: rgba(239, 68, 68, .12); border-color: var(--danger); color: #fff; }

.btn-white { background: var(--text); border-color: var(--text); color: #09090B; }
.btn-white:hover { background: #fff; border-color: #fff; color: #09090B; }

.btn-lg { min-height: 54px; padding: .9rem 1.5rem; font-size: .94rem; }
.btn-sm { min-height: 34px; padding: .3rem .65rem; font-size: .7rem; letter-spacing: .08em; gap: .35rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .42; pointer-events: none; }
.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid color-mix(in srgb, var(--on-accent) 30%, transparent);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-ghost.is-loading::after, .btn-danger.is-loading::after {
  border-color: color-mix(in srgb, var(--text) 20%, transparent);
  border-top-color: var(--text);
}

.icon-btn {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  transition: color .15s, border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.danger:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }

.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--accent);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 32px;
}
.link-btn:hover { color: var(--text); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}
.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  padding: .72rem .9rem;
  background: #0D0D10;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #4B4B55; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--line-strong); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  background: #101014;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.select {
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239E9EA9' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
}
.input.mono { font-family: var(--font-mono); }
.input-sm { min-height: 40px; padding: .45rem .7rem; font-size: 16px; }
.hint { font-size: .75rem; color: var(--dim); line-height: 1.45; }
.field-error { font-size: .78rem; color: #fca5a5; }
input[type="date"], input[type="time"] { color-scheme: dark; }
input[type="color"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 48px; padding: 4px;
  background: #0D0D10; border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 2px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
}

/* Buscador */
.search-box { position: relative; display: flex; align-items: center; }
.search-box .ico {
  position: absolute; left: .95rem;
  color: var(--dim); pointer-events: none;
  width: 18px; height: 18px;
}
.search-box .input { padding-left: 2.7rem; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 44px; height: 25px; border-radius: var(--r-full);
  background: #2A2A32; border: 1px solid var(--line-strong);
  position: relative; transition: background .18s, border-color .18s;
  flex: 0 0 auto;
}
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--muted); transition: transform .18s, background .18s;
}
.switch input:checked + .switch-track { background: color-mix(in srgb, var(--accent) 30%, #15151A); border-color: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(19px); background: var(--accent); }

/* ---------- Superficies ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.card-pad { padding: clamp(1rem, 3vw, 1.6rem); }
.card-hover { transition: border-color .18s, transform .18s, background .18s; }
.card-hover:hover { border-color: var(--line-strong); transform: translateY(-2px); background: #131317; }
.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.panel-pad { padding: 1.1rem 1.2rem; }
.inset { background: #0C0C0F; border: 1px solid var(--line); border-radius: var(--r-sm); }

.paper-accent { position: relative; overflow: hidden; }
.paper-accent::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 75%);
}

.notice {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: #0E0E11;
  border-radius: var(--r-sm);
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.5;
}
.notice .ico { color: var(--accent); margin-top: .1rem; }
.notice.danger { border-left-color: var(--danger); }
.notice.danger .ico { color: var(--danger); }
.notice.success { border-left-color: var(--success); }
.notice.success .ico { color: var(--success); }

/* ---------- Badges / chips / estrellas ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .55rem;
  font-size: .64rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  color: var(--muted);
  background: #141418;
  line-height: 1.3;
  white-space: nowrap;
}
.badge-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, #111114); }
.badge-success { color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, var(--line)); background: color-mix(in srgb, var(--success) 8%, #111114); }
.badge-danger { color: #fca5a5; border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: color-mix(in srgb, var(--danger) 8%, #111114); }
.badge-dim { color: var(--dim); }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 34px; padding: .3rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--muted);
  font-size: .74rem; font-weight: 600;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.chip:hover, .chip.active { color: var(--text); border-color: var(--line-strong); }
.chip.active { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }

.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); }
.stars .ico { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.stars.lg .ico { width: 18px; height: 18px; }
.rating {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
  color: var(--text);
}
.rating .muted { font-family: var(--font-body); font-weight: 400; font-size: .72rem; }

.rating-input { display: flex; gap: .25rem; }
.rating-input button {
  background: none; border: 0; padding: .2rem; color: #3A3A44;
  min-width: 40px; min-height: 40px;
  display: grid; place-items: center;
  transition: color .12s, transform .12s;
}
.rating-input button .ico { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.rating-input button.on { color: var(--accent); }
.rating-input button:hover { transform: scale(1.1); }

/* ---------- Avatares ---------- */
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  object-fit: cover;
  flex: 0 0 auto;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: .95rem; color: var(--muted);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar.lg { width: 54px; height: 54px; font-size: 1.2rem; }
.avatar.xl { width: 84px; height: 84px; font-size: 1.7rem; }
.avatar-ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  padding-top: var(--safe-t);
  background: rgba(9, 9, 11, .82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: .9rem;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.brand-mark { width: 32px; height: 32px; color: var(--accent); flex: 0 0 auto; }
.brand-mark .emblem { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text);
}
.brand-sub { font-size: .5rem; letter-spacing: .22em; color: var(--dim); margin-top: 3px; }

.shop-pill {
  display: flex; align-items: center; gap: .55rem;
  max-width: 280px; min-height: 38px;
  padding: .3rem .7rem .3rem .35rem;
  border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--surface); color: var(--muted);
  font-size: .78rem; font-weight: 600;
}
.shop-pill:hover { border-color: var(--line-strong); color: var(--text); }
.shop-pill img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.shop-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.topnav { display: flex; align-items: center; gap: .15rem; }
.topnav a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .8rem;
  border-radius: var(--r-sm);
  font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  color: var(--dim); text-transform: uppercase;
  transition: color .15s, background .15s;
}
.topnav a:hover { color: var(--text); background: var(--surface); }
.topnav a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }

.user-menu { position: relative; }
.avatar-btn {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 50%; padding: 2px; display: grid; place-items: center;
  transition: border-color .15s;
}
.avatar-btn:hover { border-color: var(--accent); }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 230px;
  background: #101013; border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55);
  padding: .45rem;
  z-index: 90;
  animation: rise-in .16s var(--ease) both;
}
.menu-head { padding: .7rem .7rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .35rem; }
.menu-head strong { display: block; font-size: .86rem; }
.menu-head span { display: block; font-size: .7rem; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.menu-item {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; min-height: 42px; padding: .5rem .7rem;
  background: none; border: 0; border-radius: var(--r-xs);
  color: var(--muted); font-size: .82rem; text-align: left;
}
.menu-item:hover { background: var(--surface-2); color: var(--text); }
.menu-item.danger { color: #fca5a5; }
.menu-item.danger:hover { background: rgba(239, 68, 68, .1); }

/* ---------- Bottom nav ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex;
  background: rgba(11, 11, 14, .95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}
.bottomnav a {
  flex: 1; min-height: var(--nav-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--dim);
  font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s;
}
.bottomnav a .ico { width: 21px; height: 21px; }
.bottomnav a.active { color: var(--accent); }
.bottomnav a.active::before {
  content: ""; position: absolute; top: 0; left: 28%; right: 28%;
  height: 2px; background: var(--accent);
}
@media (min-width: 900px) { .bottomnav { display: none; } }

/* ---------- Login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.15fr .85fr; }

.login-editorial {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-right: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(40rem 30rem at 20% 110%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%),
    linear-gradient(160deg, #101013 0%, #09090B 55%);
}
.login-editorial::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: .16;
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 72%);
  pointer-events: none;
}
.login-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.login-brand { display: flex; align-items: center; gap: .7rem; }
.login-brand .brand-name { font-size: 1.15rem; }
.login-copy { position: relative; z-index: 1; margin: clamp(2.5rem, 8vh, 5rem) 0; }
.login-title { font-size: clamp(3.7rem, 11vw, 10rem); line-height: .82; letter-spacing: -.02em; }
.login-title .dot { color: var(--accent); }
.login-sub {
  margin-top: 1.5rem; max-width: 30ch;
  font-size: .95rem; color: var(--muted); line-height: 1.6;
}
.login-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.login-foot .pole-mini {
  width: 54px; height: 4px;
  background: repeating-linear-gradient(135deg, #DC2626 0 6px, #F4F4F6 6px 12px, #2563EB 12px 18px);
}

.login-panel {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.4rem, 4vw, 3rem);
  padding-bottom: calc(clamp(1.4rem, 4vw, 3rem) + var(--safe-b));
  background: radial-gradient(30rem 26rem at 50% 0%, #141418, #09090B 70%);
}
.auth-card {
  width: min(100%, 430px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.auth-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.auth-head { margin-bottom: 1.6rem; }
.auth-emblem { width: 48px; height: 48px; color: var(--accent); margin-bottom: 1rem; }
.auth-title { font-size: 1.65rem; margin-bottom: .35rem; }
.auth-desc { font-size: .82rem; color: var(--dim); line-height: 1.5; }

.google-btn {
  width: 100%; min-height: 54px;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  background: var(--text); color: #111114;
  border: 1px solid var(--text); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: .95rem; font-weight: 700;
  letter-spacing: 0; text-transform: none;
  transition: background .15s, transform .15s;
}
.google-btn:hover { background: #fff; }
.google-btn:active { transform: translateY(1px); }
.google-btn svg { width: 19px; height: 19px; }

.auth-divider {
  display: flex; align-items: center; gap: .8rem;
  margin: 1.4rem 0;
  color: var(--dim); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.auth-foot { margin-top: 1.4rem; font-size: .68rem; color: var(--dim); line-height: 1.5; text-align: center; }
.auth-foot strong { color: var(--muted); font-weight: 600; }

.demo-toggle {
  width: 100%; background: none; border: 0;
  color: var(--dim); font-size: .7rem; letter-spacing: .06em;
  min-height: 40px; text-decoration: underline; text-underline-offset: 3px;
}
.demo-toggle:hover { color: var(--muted); }
.demo-box { margin-top: .4rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.demo-list { display: grid; gap: .4rem; }
.demo-item {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  width: 100%; padding: .55rem .7rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #0D0D10; color: var(--muted);
  font-size: .78rem; text-align: left;
  transition: border-color .15s, color .15s;
}
.demo-item:hover { border-color: var(--line-strong); color: var(--text); }
.demo-item strong { color: var(--text); font-weight: 600; display: block; font-size: .8rem; }
.demo-item small { color: var(--dim); font-size: .66rem; }

.role-grid { display: grid; gap: .6rem; }
.role-card {
  display: flex; align-items: flex-start; gap: .9rem;
  width: 100%; padding: 1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #0D0D10; text-align: left;
  transition: border-color .16s, background .16s;
}
.role-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.role-card.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #0D0D10); }
.role-ico {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--accent); background: var(--surface);
}
.role-body strong { display: block; font-size: .92rem; margin-bottom: .15rem; }
.role-body span { display: block; font-size: .76rem; color: var(--dim); line-height: 1.45; }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-editorial {
    border-right: 0; border-bottom: 1px solid var(--line);
    padding: calc(var(--safe-t) + 1.5rem) 1.4rem 1.6rem;
    min-height: auto;
  }
  .login-copy { margin: 2rem 0 1.4rem; }
  .login-title { font-size: clamp(3rem, 16vw, 5rem); }
  .login-sub { display: none; }
  .login-foot { display: none; }
  .login-panel { padding: 1.4rem 1.1rem calc(2rem + var(--safe-b)); align-items: flex-start; }
  .auth-card { padding: 1.4rem; }
}

/* ---------- Secciones ---------- */
.section { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.section-head .section-title { font-size: clamp(1.25rem, 3vw, 1.7rem); }
.section-head .kicker { margin-bottom: .35rem; }
.section-head p { font-size: .82rem; color: var(--dim); max-width: 60ch; }

.page-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page-head .kicker { margin-bottom: .5rem; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.page-head .lead { margin-top: .8rem; max-width: 62ch; }

/* ---------- Directorio ---------- */
.hero-banner {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  background:
    radial-gradient(40rem 20rem at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    linear-gradient(135deg, #131317, #0B0B0E);
}
.hero-banner::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.hero-banner .display-xl { max-width: 14ch; }
.hero-banner .lead { max-width: 46ch; margin-top: .9rem; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }

.shop-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .18s, transform .18s;
  position: relative;
}
.shop-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.shop-cover {
  position: relative; height: 132px; overflow: hidden;
  background: linear-gradient(135deg, #1A1A20, #0C0C0F);
}
.shop-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform .6s var(--ease), opacity .3s; }
.shop-card:hover .shop-cover img { transform: scale(1.04); opacity: .9; }
.shop-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,9,11,.15) 0%, rgba(9,9,11,.85) 100%);
}
.shop-cover .cover-tag { position: absolute; z-index: 2; top: .7rem; left: .7rem; }
.shop-logo {
  position: absolute; z-index: 2; bottom: -24px; left: 1rem;
  width: 62px; height: 62px; border-radius: 50%;
  border: 3px solid var(--surface);
  background: var(--surface-2);
  object-fit: cover;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--accent);
  overflow: hidden;
}
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-body { padding: 2rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.shop-name { font-size: 1.12rem; line-height: 1.1; letter-spacing: .02em; }
.shop-slogan { font-size: .76rem; color: var(--dim); margin-top: .3rem; font-style: italic; }
.shop-meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-top: .8rem; font-size: .74rem; color: var(--muted); }
.shop-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.shop-addr { display: flex; align-items: center; gap: .35rem; font-size: .73rem; color: var(--dim); margin-top: .7rem; }
.shop-addr .ico { width: 13px; height: 13px; }
.shop-actions { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }

.filter-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.filter-bar .search-box { flex: 1; min-width: 220px; }

/* ---------- Ficha de barbería ---------- */
.shop-hero { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 1.4rem; }
.shop-hero-cover { position: relative; height: clamp(160px, 26vw, 260px); background: linear-gradient(135deg, #1A1A20, #0C0C0F); }
.shop-hero-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.shop-hero-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,9,11,.1), rgba(9,9,11,.92));
}
.shop-hero-body {
  position: relative; z-index: 2;
  padding: 0 clamp(1rem, 3vw, 1.8rem) clamp(1.1rem, 3vw, 1.6rem);
  margin-top: -54px;
  display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
}
.shop-hero-logo {
  width: 92px; height: 92px; border-radius: 50%;
  border: 3px solid var(--surface);
  background: var(--surface-2);
  overflow: hidden; flex: 0 0 auto;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2rem; color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.shop-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero-info { flex: 1; min-width: 200px; }
.shop-hero-info h1 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); }
.shop-hero-info .slogan { color: var(--muted); font-size: .86rem; margin-top: .2rem; font-style: italic; }
.shop-hero-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: .7rem; font-size: .76rem; color: var(--dim); }
.shop-hero-meta .ico { width: 14px; height: 14px; }
.shop-hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex; align-items: center; gap: .2rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
  margin-bottom: 1.4rem;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  min-height: 46px; padding: .5rem .9rem;
  background: none; border: 0;
  color: var(--dim); font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
  transition: color .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); }
.tab.active::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -1px;
  height: 2px; background: var(--accent);
}
.tab .count { font-family: var(--font-mono); font-size: .66rem; color: var(--dim); margin-left: .3rem; }

/* ---------- Wizard de reserva ---------- */
.wizard { display: grid; grid-template-columns: 1fr; gap: 0; }
.wizard-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #0D0D10;
}
.stepper { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.step {
  display: flex; align-items: center; gap: .45rem;
  padding: .3rem .55rem;
  border-radius: var(--r-xs);
  color: var(--dim);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent;
}
.step-num {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono); font-size: .62rem;
}
.step.active { color: var(--text); border-color: var(--line); background: var(--surface-2); }
.step.active .step-num { border-color: var(--accent); color: var(--accent); }
.step.done { color: var(--muted); }
.step.done .step-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.wizard-body { padding: clamp(1rem, 3vw, 1.6rem); }
.wizard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: 1rem clamp(1rem, 3vw, 1.6rem);
  border-top: 1px solid var(--line);
  background: #0C0C0F;
  position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px);
  z-index: 20;
  border-radius: 0 0 var(--r-md) var(--r-md);
}
@media (min-width: 900px) { .wizard-foot { bottom: 0; } }
.wizard-foot .price-total { display: flex; flex-direction: column; }
.wizard-foot .price-total strong { font-family: var(--font-mono); font-size: 1.15rem; }
.wizard-foot .price-total span { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }

/* Servicios */
.option-list { display: grid; gap: .6rem; }
.option-row {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; text-align: left;
  padding: .95rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #0D0D10;
  transition: border-color .15s, background .15s;
  position: relative;
}
.option-row:hover { border-color: var(--line-strong); background: var(--surface); }
.option-row.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #0D0D10); }
.option-row.selected::before {
  content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px;
  width: 2px; background: var(--accent);
}
.option-main { flex: 1; min-width: 0; }
.option-main strong { display: block; font-size: .95rem; font-weight: 600; }
.option-main p { margin: .2rem 0 0; font-size: .76rem; color: var(--dim); line-height: 1.4; }
.option-meta { display: flex; align-items: center; gap: .8rem; margin-top: .35rem; font-size: .7rem; color: var(--muted); }
.option-meta .ico { width: 12px; height: 12px; }
.option-price { text-align: right; flex: 0 0 auto; }
.option-price strong { display: block; font-family: var(--font-mono); font-size: .95rem; }
.option-price span { font-size: .62rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.option-check {
  width: 22px; height: 22px; flex: 0 0 auto;
  border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; color: transparent;
}
.option-row.selected .option-check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.option-check .ico { width: 12px; height: 12px; stroke-width: 3; }

/* Barberos */
.barber-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .6rem; }
.barber-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #0D0D10; text-align: left;
  transition: border-color .15s, background .15s;
}
.barber-card:hover { border-color: var(--line-strong); background: var(--surface); }
.barber-card.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #0D0D10); }
.barber-card .avatar { width: 48px; height: 48px; }
.barber-card strong { display: block; font-size: .86rem; line-height: 1.2; }
.barber-card span { display: block; font-size: .7rem; color: var(--dim); margin-top: .15rem; }
.barber-card.any .avatar { color: var(--accent); border-style: dashed; }

/* Fechas */
.date-strip {
  display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .4rem;
  scrollbar-width: thin;
}
.date-btn {
  flex: 0 0 auto; width: 68px;
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .55rem .3rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #0D0D10;
  transition: border-color .15s, background .15s;
}
.date-btn:hover { border-color: var(--line-strong); }
.date-btn .dow { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.date-btn .day { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 600; line-height: 1.1; }
.date-btn .month { font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.date-btn.selected { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.date-btn.selected .dow, .date-btn.selected .month { color: color-mix(in srgb, var(--on-accent) 65%, transparent); }
.date-btn.closed { opacity: .35; pointer-events: none; }

/* Horarios */
.slots-wrap { display: flex; flex-direction: column; gap: 1rem; }
.slot-group .slot-group-title {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
  margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem;
}
.slot-group-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .4rem; }
.time-btn {
  min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #0D0D10;
  font-family: var(--font-mono); font-size: .85rem; font-weight: 500;
  color: var(--text);
  transition: border-color .15s, background .15s, color .15s;
}
.time-btn:hover { border-color: var(--accent); }
.time-btn.selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.time-btn small { display: block; font-family: var(--font-body); font-size: .58rem; color: var(--dim); letter-spacing: .04em; }
.time-btn.selected small { color: color-mix(in srgb, var(--on-accent) 60%, transparent); }
.time-btn:disabled { opacity: .25; pointer-events: none; text-decoration: line-through; }

/* Fotos de referencia */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.ref-thumb {
  position: relative;
  aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); background: #0D0D10;
  padding: 0;
}
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.ref-thumb.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ref-thumb.selected img { opacity: 1; }
.ref-thumb.selected::after {
  content: "✓"; position: absolute; top: 4px; right: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-size: .6rem; font-weight: 800; display: grid; place-items: center;
}
.upload-tile {
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
  background: transparent; color: var(--dim);
  font-size: .6rem; text-transform: uppercase; letter-spacing: .08em;
  min-height: 84px;
}
.upload-tile:hover { border-color: var(--accent); color: var(--accent); }
.upload-preview { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--accent); }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview button {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px;
  border-radius: 50%; border: 0; background: rgba(9,9,11,.85); color: #fff;
  display: grid; place-items: center;
}

/* Resumen */
.summary { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.summary-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}
.summary-row:last-child { border-bottom: 0; }
.summary-row .s-label { color: var(--dim); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.summary-row .s-value { text-align: right; font-weight: 600; }
.summary-row .s-value.mono { font-weight: 500; }
.summary-total { background: #0C0C0F; }
.summary-total .s-value { font-family: var(--font-mono); font-size: 1.05rem; }

/* ---------- Ticket / Pase ---------- */
.ticket-wrap { padding: 1rem 0 2rem; }
.ticket {
  width: min(100%, 470px); margin: 0 auto;
  background: linear-gradient(180deg, #141418 0%, #0E0E11 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.ticket::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #DC2626, #F4F4F6, #2563EB);
  opacity: .8;
}
.ticket-top { padding: 1.6rem 1.5rem 1.2rem; text-align: center; }
.ticket-brand {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--dim);
  margin-bottom: 1rem;
}
.ticket-brand .emblem { width: 22px; height: 22px; color: var(--accent); }
.ticket-shop { font-size: 1.4rem; line-height: 1.05; }
.ticket-code-label { font-size: .58rem; letter-spacing: .22em; color: var(--dim); text-transform: uppercase; margin-top: 1rem; }
.ticket-code {
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700;
  letter-spacing: .14em; color: var(--accent);
  margin-top: .25rem;
}
.ticket-perf {
  position: relative;
  border-top: 1px dashed #44444F;
  margin: 0;
}
.ticket-perf::before, .ticket-perf::after {
  content: ""; position: absolute; top: -11px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong);
}
.ticket-perf::before { left: -12px; }
.ticket-perf::after { right: -12px; }
.ticket-body { padding: 1.2rem 1.5rem 1.5rem; }
.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.ticket-field .t-label { font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.ticket-field .t-value { font-size: .9rem; font-weight: 600; margin-top: .1rem; }
.ticket-field .t-value.mono { font-family: var(--font-mono); }
.ticket-qr { display: flex; align-items: center; justify-content: center; padding: 1.1rem 0 .3rem; }
.ticket-qr img { width: 168px; height: 168px; border: 8px solid #F4F4F6; border-radius: 4px; background: #F4F4F6; }
.ticket-note {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .72rem; color: var(--dim); line-height: 1.5;
}
.barcode {
  height: 34px; margin: 1rem 0 .4rem;
  background-image: repeating-linear-gradient(90deg, #F4F4F6 0 2px, transparent 2px 4px, #F4F4F6 4px 5px, transparent 5px 9px, #F4F4F6 9px 12px, transparent 12px 14px);
  opacity: .5;
}
.ticket-actions { display: grid; gap: .5rem; margin-top: 1rem; }
@media (max-width: 420px) {
  .ticket-top, .ticket-body { padding-left: 1.1rem; padding-right: 1.1rem; }
  .ticket-qr img { width: 146px; height: 146px; }
}

/* ---------- Fidelidad ---------- */
.loyalty {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background:
    radial-gradient(26rem 14rem at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--surface);
  padding: 1.2rem;
  position: relative; overflow: hidden;
}
.loyalty-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.stamps { display: grid; grid-template-columns: repeat(10, 1fr); gap: .3rem; margin-top: 1rem; }
.stamp {
  aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--dim);
  background: #0C0C0F;
}
.stamp .ico { width: 13px; height: 13px; }
.stamp.filled { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.stamp.filled .ico { width: 14px; height: 14px; }
.stamp.next { border-color: var(--accent); border-style: dashed; color: var(--accent); }
@media (max-width: 520px) {
  .stamps { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Galería ---------- */
.gallery { columns: 3; column-gap: .75rem; }
.gallery-item {
  break-inside: avoid; margin-bottom: .75rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden; background: var(--surface);
  position: relative;
}
.gallery-img-wrap { position: relative; background: #0C0C0F; }
.gallery-item img { width: 100%; height: auto; display: block; opacity: .9; transition: opacity .2s, transform .5s var(--ease); }
.gallery-item:hover img { opacity: 1; transform: scale(1.01); }
.gallery-body { padding: .7rem .8rem .8rem; }
.gallery-title { font-size: .8rem; font-weight: 600; line-height: 1.25; }
.gallery-sub { font-size: .65rem; color: var(--dim); margin-top: .2rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.gallery-comment { font-size: .75rem; color: var(--muted); margin-top: .4rem; line-height: 1.45; }
.gallery-item .gallery-rating { position: absolute; top: .5rem; left: .5rem; background: rgba(9,9,11,.82); backdrop-filter: blur(6px); border-radius: var(--r-xs); padding: .15rem .4rem; }
.gallery-item .gallery-del { position: absolute; top: .5rem; right: .5rem; }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 480px) { .gallery { columns: 1; } }

/* ---------- Turnos ---------- */
.appt-list { display: flex; flex-direction: column; gap: .7rem; }
.appt-card {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface);
  padding: .95rem 1rem;
  position: relative; overflow: hidden;
}
.appt-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); opacity: .75;
}
.appt-card.completed::before { background: var(--success); }
.appt-card.cancelled::before { background: var(--danger); }
.appt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.appt-when { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.appt-when .date { font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; }
.appt-when .time { font-family: var(--font-mono); font-size: .9rem; color: var(--accent); }
.appt-service { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.appt-meta { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .6rem; font-size: .7rem; color: var(--dim); }
.appt-meta .ico { width: 12px; height: 12px; }
.appt-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.appt-thumb {
  width: 46px; height: 46px; border-radius: var(--r-xs); object-fit: cover;
  border: 1px solid var(--line); flex: 0 0 auto;
}
.appt-side { display: flex; align-items: center; gap: .6rem; }

/* ---------- Timeline barbero ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex; gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-time {
  flex: 0 0 62px; text-align: right;
  font-family: var(--font-mono); font-size: .86rem; font-weight: 600; color: var(--text);
  padding-top: .15rem;
}
.timeline-time small { display: block; font-size: .58rem; color: var(--dim); font-weight: 400; font-family: var(--font-body); }
.timeline-main { flex: 1; min-width: 0; padding-left: 1rem; border-left: 1px solid var(--line); position: relative; }
.timeline-main::before {
  content: ""; position: absolute; left: -4px; top: .45rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--surface);
}
.timeline-item.completed .timeline-main::before { background: var(--success); }
.timeline-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; flex-wrap: wrap; }
.timeline-name { font-weight: 600; font-size: .9rem; }
.timeline-service { font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.timeline-notes {
  margin-top: .55rem; font-size: .75rem; color: var(--muted);
  background: #0C0C0F; border: 1px solid var(--line); border-left: 2px solid var(--accent);
  padding: .5rem .65rem; border-radius: var(--r-xs);
  line-height: 1.45;
}
.timeline-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-top: .7rem; }
.timeline-photo { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-xs); border: 1px solid var(--line); }
@media (max-width: 560px) {
  .timeline-time { flex-basis: 52px; font-size: .78rem; }
  .timeline-main { padding-left: .8rem; }
}

/* ---------- KPIs ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: .8rem; }
.kpi {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface);
  padding: 1rem 1.1rem;
  position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); opacity: .5;
}
.kpi-label { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.kpi-value { font-family: var(--font-mono); font-size: clamp(1.35rem, 3.4vw, 1.9rem); font-weight: 600; line-height: 1.15; margin-top: .35rem; }
.kpi-sub { font-size: .68rem; color: var(--dim); margin-top: .25rem; }
.kpi.accent .kpi-value { color: var(--accent); }

/* ---------- Admin ---------- */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }

.swatches { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid transparent; padding: 3px;
  background: none; position: relative;
  transition: border-color .15s, transform .15s;
}
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.swatch:hover { transform: scale(1.08); }
.swatch.selected { border-color: var(--text); }
.swatch.selected::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--bg) inset;
}
.color-free { width: 44px; height: 44px; }

.brand-preview {
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; background: var(--surface);
  position: sticky; top: calc(var(--topbar-h) + 1rem);
}
.brand-preview-cover { height: 90px; position: relative; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, #131317), #0C0C0F); overflow: hidden; }
.brand-preview-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.brand-preview-body { padding: 0 1rem 1rem; margin-top: -26px; position: relative; }
.brand-preview-logo {
  width: 58px; height: 58px; border-radius: 50%;
  border: 3px solid var(--surface); background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--accent);
}
.brand-preview-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-preview h4 { margin-top: .5rem; font-size: 1.1rem; }
.brand-preview .slogan { font-size: .72rem; color: var(--dim); font-style: italic; margin-top: .15rem; }
.brand-preview .accent-line { height: 3px; background: var(--accent); border-radius: 2px; margin-top: .8rem; }

/* Filas de lista (equipo, servicios, barberos) */
.list-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
.list-main { flex: 1; min-width: 0; }
.list-main strong { display: block; font-size: .88rem; font-weight: 600; }
.list-main span { display: block; font-size: .72rem; color: var(--dim); margin-top: .12rem; }
.list-actions { display: flex; align-items: center; gap: .35rem; flex: 0 0 auto; }
.list-actions .input-sm { width: 78px; text-align: center; }

.breakdown-bar { height: 5px; background: #222229; border-radius: 3px; overflow: hidden; margin-top: .35rem; }
.breakdown-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 520px; }
.table th {
  text-align: left; padding: .65rem .8rem;
  font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  border-bottom: 1px solid var(--line); background: #0C0C0F; font-weight: 700;
}
.table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table td.mono { font-family: var(--font-mono); }

/* ---------- Empty / skeleton / spinner ---------- */
.empty {
  text-align: center; padding: 3rem 1.2rem;
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  background: rgba(17,17,20,.5);
}
.empty-ico {
  width: 58px; height: 58px; margin: 0 auto 1rem;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--dim);
}
.empty-ico .ico { width: 24px; height: 24px; }
.empty h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.empty p { font-size: .8rem; color: var(--dim); max-width: 40ch; margin: 0 auto .9rem; }

.skeleton {
  background: linear-gradient(90deg, #15151A 0%, #1D1D23 50%, #15151A 100%);
  background-size: 840px 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--r-xs);
}
.sk-line { height: 12px; margin-bottom: .5rem; }
.sk-card { height: 180px; border-radius: var(--r-md); }
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
.loading-block { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 3rem 1rem; color: var(--dim); font-size: .8rem; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 4, 6, .72);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  animation: fade-in .18s ease both;
}
.modal {
  width: min(100%, 560px);
  max-height: 92vh; max-height: 92dvh;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex; flex-direction: column;
  animation: slide-up .26s var(--ease) both;
  overflow: hidden;
}
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; padding: 1.5rem; }
  .modal { border-radius: var(--r-md); }
}
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.2rem .9rem;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 1.15rem; }
.modal-head p { font-size: .72rem; color: var(--dim); margin: .25rem 0 0; }
.modal-body { padding: 1.2rem; overflow-y: auto; flex: 1; }
.modal-foot {
  display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap;
  padding: .9rem 1.2rem calc(.9rem + var(--safe-b));
  border-top: 1px solid var(--line);
  background: #0C0C0F;
}
.modal-close { flex: 0 0 auto; }
@media (max-width: 640px) {
  .modal-foot { padding-bottom: calc(.9rem + var(--safe-b)); }
  .modal-foot .btn { flex: 1; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 210; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: 1rem; }
.lightbox img { max-width: 100%; max-height: 86dvh; object-fit: contain; border: 1px solid var(--line-strong); }
.lightbox-close { position: absolute; top: calc(1rem + var(--safe-t)); right: 1rem; }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; z-index: 250;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
  width: min(calc(100% - 2rem), 430px);
  display: flex; flex-direction: column; gap: .5rem;
  pointer-events: none;
}
@media (min-width: 900px) { .toasts { bottom: calc(1.5rem + var(--safe-b)); left: auto; right: 1.5rem; transform: none; } }
.toast {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .75rem .85rem;
  background: #141418;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-sm);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  font-size: .8rem; color: var(--text);
  pointer-events: auto;
  animation: slide-up .24s var(--ease) both;
}
.toast .ico { color: var(--accent); margin-top: .1rem; }
.toast.success { border-left-color: var(--success); }
.toast.success .ico { color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.error .ico { color: var(--danger); }
.toast .toast-msg { flex: 1; line-height: 1.45; }
.toast.hide { animation: fade-in .2s reverse both; }

/* ---------- Varios ---------- */
.price { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: .62rem; color: var(--dim); font-weight: 400; }
.meta-sep { width: 1px; height: 12px; background: var(--line-strong); display: inline-block; }
.scroll-x { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

.danger-zone { border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line)); border-radius: var(--r-sm); padding: 1rem; }

.install-banner {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  margin-bottom: 1rem;
  font-size: .78rem;
}
.install-banner .grow { min-width: 160px; }

.status-dot {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block;
  background: var(--dim);
}
.status-dot.on { background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 18%, transparent); }
.status-dot.off { background: var(--danger); }

/* Foto de perfil subible */
.avatar-upload { position: relative; display: inline-flex; }
.avatar-upload .cam {
  position: absolute; right: -2px; bottom: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; border: 2px solid var(--surface);
}

/* Sticky CTA móvil */
.sticky-cta {
  position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 10px);
  z-index: 30;
  margin-top: 1rem;
}
@media (min-width: 900px) { .sticky-cta { bottom: 1rem; } }

/* Contador */
.count-pill {
  font-family: var(--font-mono); font-size: .66rem;
  padding: .1rem .4rem; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--muted);
}
