/* =========================================================================
   Burgos Barbers — sistema de diseño
   Oscuro, gris y negro, con un acento dorado discreto.
   ========================================================================= */

:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --surface-3: #222226;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f2f1ee;
  --muted: #a3a3a8;
  --faint: #6e6e75;
  --accent: #c9a46a;
  --accent-ink: #141109;
  --ok: #5fbf8f;
  --warn: #e0b45a;
  --danger: #e2675f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Instrument Serif", ui-serif, Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* grano sutil para dar textura "de estudio" */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap-sm { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.ic { width: 18px; height: 18px; flex: none; }
.hide { display: none !important; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* --------------------------------------------------------------- tipografía */
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: .98;
}
.display em, .serif-em { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--accent); }
.h1 { font-size: clamp(46px, 8vw, 104px); }
.h2 { font-size: clamp(36px, 5vw, 64px); }
.h3 { font-size: 22px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

/* ------------------------------------------------------------------ botones */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--b); color: var(--text);
  font-weight: 500; font-size: 15px; letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.22); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff) 0%, var(--accent) 100%);
  border-color: transparent; color: var(--accent-ink); font-weight: 600;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--accent) 75%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-light { background: var(--text); color: #0b0b0c; border-color: transparent; font-weight: 600; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-wa { background: #1f8f55; border-color: transparent; color: #fff; font-weight: 600; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-xs { min-height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-xs .ic { width: 15px; height: 15px; }
.btn-block { width: 100%; }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #1d1d20, #111113);
  border: 1px solid var(--line-2);
  color: var(--accent);
}
.brand-mark .ic { width: 17px; height: 17px; }
.brand-name { font-size: 16px; }
.nav-links { display: flex; gap: 26px; margin-left: 10px; }
.nav-links a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-login { font-size: 14.5px; color: var(--muted); }
.nav-login:hover { color: var(--text); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-in { height: 64px; gap: 12px; }
}
.brand-name { white-space: nowrap; }
@media (max-width: 520px) {
  .nav-login { display: none; }
  .brand-name { font-size: 15px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 0 12px; }
  .nav-cta .btn-ghost span { display: none; }
}
@media (max-width: 400px) {
  .nav-cta .btn-primary { display: none; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(60% 50% at 75% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(255,255,255,.06), transparent 70%);
  pointer-events: none;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .6; filter: saturate(.85) contrast(1.05); transform: scale(1.04); animation: hero-zoom 18s ease-out forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(10,10,11,.86) 38%, rgba(10,10,11,.45) 75%, rgba(10,10,11,.6) 100%), linear-gradient(180deg, rgba(10,10,11,.35) 0%, transparent 30%, transparent 65%, var(--bg) 100%); }
@keyframes hero-zoom { to { transform: scale(1); } }
@media (max-width: 960px) { .hero-bg::after { background: linear-gradient(180deg, rgba(10,10,11,.7), rgba(10,10,11,.88) 55%, var(--bg)); } }
@media (prefers-reduced-motion: reduce) { .hero-bg img { animation: none; transform: none; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero .lead { margin: 0 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 36px; color: var(--muted); font-size: 14px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .ic { color: var(--accent); width: 16px; height: 16px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* tarjeta-demo del hero */
.demo {
  position: relative; border-radius: 26px; padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .8s var(--ease);
}
.demo:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.demo-photo { position: relative; height: 210px; border-radius: 16px; overflow: hidden; background: #18181b; margin-bottom: 18px; }
.demo-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); }
.demo-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,10,11,.85)); }
.demo-photo .demo-tag { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-size: 13px; }
.demo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.demo-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.demo-day { padding: 10px 0; text-align: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.demo-day b { display: block; font-size: 17px; color: var(--text); font-weight: 600; }
.demo-day.on { background: var(--text); color: #0b0b0c; border-color: transparent; }
.demo-day.on b { color: #0b0b0c; }
.demo-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.demo-slot { padding: 9px 0; text-align: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.demo-slot.off { color: var(--faint); text-decoration: line-through; }
.demo-slot.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; border-color: transparent; }
.demo-notif {
  position: absolute; right: -18px; bottom: -26px; width: 270px;
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: #121c16; border: 1px solid rgba(95,191,143,.25);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.9);
  font-size: 13px; line-height: 1.4;
  animation: float 6s ease-in-out infinite;
}
.demo-notif .wa { width: 34px; height: 34px; border-radius: 50%; background: #1f8f55; display: grid; place-items: center; flex: none; color: #fff; }
.demo-notif .wa .ic { width: 17px; height: 17px; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 960px) { .demo { transform: none; } .demo-notif { right: 8px; } }
@media (max-width: 480px) { .demo-notif { position: relative; right: auto; bottom: auto; width: auto; margin-top: 14px; } }

/* -------------------------------------------------------------- secciones */
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin: 14px 0 0; }
.section-head h2 { margin-top: 16px; }

/* franja de "ganchos" */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; padding: 20px 0; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 26px; color: var(--muted); white-space: nowrap; }
.marquee-track span::after { content: "✦"; font-family: var(--font); font-size: 12px; color: var(--accent); margin-left: 34px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .demo-notif { animation: none; } }

/* problema vs solución */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.versus-col { border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: var(--surface); }
.versus-col.good { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.versus-col h3 { font-size: 20px; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.versus-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.versus-col li { display: flex; gap: 12px; color: var(--muted); }
.versus-col li .ic { margin-top: 3px; }
.versus-col.bad li .ic { color: var(--danger); }
.versus-col.good li { color: var(--text); }
.versus-col.good li .ic { color: var(--accent); }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } }

/* bento de beneficios */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2; position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 28px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease);
}
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile.wide { grid-column: span 3; }
.tile.xl { grid-column: span 4; }
.tile-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--accent); margin-bottom: 22px; }
.tile h3 { font-size: 19px; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile .big { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--text); margin-bottom: 6px; }
.tile-photo { padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.tile-photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: center 25%; }
.tile-photo-body { padding: 28px; }
@media (max-width: 600px) { .tile-photo { grid-template-columns: 1fr; } .tile-photo img { height: 260px; min-height: 0; } }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .tile, .tile.wide, .tile.xl { grid-column: span 1; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }

/* pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--display); font-size: 54px; line-height: 1; color: var(--accent); display: block; margin-bottom: 26px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* directorio */
.search { position: relative; width: min(380px, 100%); }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 46px; border-radius: 999px; }
.shops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .shops { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .shops { grid-template-columns: 1fr; } }
.shop {
  display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s;
}
.shop:hover { transform: translateY(-4px); border-color: var(--line-2); }
.shop-cover { position: relative; aspect-ratio: 16/9; background: var(--surface-3); overflow: hidden; }
.shop-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shop:hover .shop-cover img { transform: scale(1.04); }
.shop-cover.placeholder, .cover.placeholder {
  background:
    radial-gradient(80% 80% at 80% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    repeating-linear-gradient(135deg, #18181b 0 14px, #141416 14px 28px);
}
.shop-body { padding: 18px 20px 20px; display: flex; gap: 14px; align-items: center; }
.shop-body h3 { font-size: 17px; }
.shop-body p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.shop-go { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); transition: background .3s, color .3s; flex: none; }
.shop:hover .shop-go { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }

/* avatar */
.avatar {
  width: 48px; height: 48px; border-radius: 14px; flex: none; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--surface-3), var(--surface));
  border: 1px solid var(--line-2);
  font-weight: 600; color: var(--accent); letter-spacing: .02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 112px; height: 112px; border-radius: 28px; font-size: 34px; font-family: var(--display); border: 4px solid var(--bg); box-shadow: 0 20px 40px -20px #000; }

/* precio */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.pricing-l { padding: clamp(28px, 4vw, 52px); }
.pricing-r { padding: clamp(28px, 4vw, 52px); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, var(--surface-2)), var(--surface-2)); border-left: 1px solid var(--line); }
.price { font-family: var(--display); font-size: clamp(56px, 7vw, 84px); line-height: 1; margin: 18px 0 6px; }
.price small { font-family: var(--font); font-size: 16px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; }
.checks .ic { color: var(--accent); margin-top: 3px; }
@media (max-width: 800px) { .pricing { grid-template-columns: 1fr; } .pricing-r { border-left: 0; border-top: 1px solid var(--line); } }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* cta final */
.cta-band { border-radius: 32px; padding: clamp(40px, 6vw, 80px); text-align: center; position: relative; overflow: hidden; background: radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--accent) 22%, var(--surface-2)), var(--surface) 70%); border: 1px solid var(--line-2); }
.cta-band .lead { margin: 18px auto 32px; }

/* --------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.foot-in > p { grid-column: 1 / -1; margin: 12px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; align-content: start; color: var(--muted); font-size: 14.5px; }
.foot-links a:hover { color: var(--text); }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr; } .foot-links { justify-content: flex-start; } }

/* ------------------------------------------------------------- formularios */
.field { display: grid; gap: 8px; }
.field > span, .label { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
  background: var(--surface);
}
.field input[type="file"] { padding: 11px 12px; min-height: 0; }
.field input[type="time"] { min-height: 44px; padding: 8px 12px; }
.field small { color: var(--faint); font-size: 12.5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14.5px; color: var(--muted); }
.notice .ic { color: var(--accent); margin-top: 2px; }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
.notice.warn .ic { color: var(--warn); }
.notice.err { border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.notice.err .ic { color: var(--danger); }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.notice.ok .ic { color: var(--ok); }
.notice b, .notice strong { color: var(--text); }

/* auth (login, registro) */
.auth { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--surface); border-right: 1px solid var(--line); }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(.35); }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.2), rgba(10,10,11,.95)); }
.auth-side > * { position: relative; z-index: 1; }
.auth-main { display: grid; place-items: center; padding: 48px 16px; }
.auth-box { width: min(460px, 100%); }
.auth-box h1 { font-size: clamp(38px, 5vw, 52px); margin: 14px 0 10px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ------------------------------------------------------------------ toasts */
.toasts { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(520px, calc(100% - 32px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px #000; font-size: 14.5px; animation: toast-in .5s var(--ease); }
.toast-ok .ic { color: var(--ok); }
.toast-error .ic { color: var(--danger); }
.toast.is-gone { opacity: 0; transform: translateY(-8px); transition: .4s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

/* ---------------------------------------------------------- página barbero */
.cover { position: relative; height: clamp(220px, 34vw, 400px); overflow: hidden; background: var(--surface); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.1) 30%, var(--bg)); }
.profile { position: relative; margin-top: -72px; z-index: 2; display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.profile-info { flex: 1; min-width: 240px; padding-bottom: 6px; }
.profile-info h1 { font-size: clamp(38px, 5vw, 60px); }
.profile-meta { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.profile-meta span { display: inline-flex; align-items: center; gap: 7px; }
.profile-meta .ic { width: 16px; height: 16px; color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.badge-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.badge-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.badge-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

.subnav { position: sticky; top: 64px; z-index: 20; margin-top: 36px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { padding: 14px 14px; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover, .subnav a.is-active { color: var(--text); border-bottom-color: var(--accent); }

.bpage { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 40px; padding: 44px 0 40px; align-items: start; }
.bpage-main > section { scroll-margin-top: 140px; }
.bpage-main > section + section { margin-top: 64px; }
.bpage-side { position: sticky; top: 130px; min-width: 0; }
@media (max-width: 1040px) { .bpage { grid-template-columns: minmax(0, 1fr); } .bpage-side { position: static; order: -1; } }

.block-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.block-title h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 44px); }

/* catálogo */
.menu { display: grid; gap: 2px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.menu-item { display: flex; gap: 20px; align-items: baseline; padding: 20px 22px; background: var(--surface); }
.menu-item h3 { font-size: 17px; font-weight: 500; }
.menu-item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.menu-item .dots { flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-5px); min-width: 20px; }
.menu-item .amount { font-family: var(--display); font-size: 28px; white-space: nowrap; }

/* galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--surface); cursor: zoom-in; }
.gallery figure:nth-child(5n+1) { grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s; filter: grayscale(.15); }
.gallery figure:hover img { transform: scale(1.05); filter: none; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.8)); opacity: 0; transition: opacity .3s; }
.gallery figure:hover figcaption { opacity: 1; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; } }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(5,5,6,.94); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 88vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 18px; right: 18px; }

/* la barbería */
.shopinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shopinfo-photo { border-radius: var(--radius); overflow: hidden; min-height: 280px; background: var(--surface); }
.shopinfo-photo img { width: 100%; height: 100%; object-fit: cover; }
.shopinfo-text { border-radius: var(--radius); padding: 28px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.shopinfo-text p { margin: 0; color: var(--muted); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); transition: color .2s, border-color .2s; }
.social:hover { color: var(--text); border-color: var(--accent); }
.map { margin-top: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 340px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.9) contrast(1.05); }
.hours { display: grid; gap: 0; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.hours div { display: flex; justify-content: space-between; padding: 12px 18px; background: var(--surface); font-size: 14.5px; }
.hours div + div { border-top: 1px solid var(--line); }
.hours .closed { color: var(--faint); }
.hours .today { background: var(--surface-2); }
.hours .today span:first-child::after { content: " · hoy"; color: var(--accent); }
@media (max-width: 760px) { .shopinfo { grid-template-columns: 1fr; } }

/* reserva */
.book { border-radius: 26px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.book-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.book-head h2 { font-size: 21px; }
.book-body { padding: 22px 24px 24px; }
.book-steps { display: flex; gap: 6px; margin-top: 14px; }
.book-steps i { flex: 1; height: 3px; border-radius: 3px; background: var(--surface-3); }
.book-steps i.on { background: var(--accent); }
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.date {
  scroll-snap-align: start; flex: none; width: 62px; padding: 10px 0;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2);
  text-align: center; cursor: pointer; transition: .2s;
}
.date small { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.date b { display: block; font-size: 20px; font-weight: 600; margin-top: 2px; }
.date:hover { border-color: rgba(255,255,255,.25); }
.date.is-on { background: var(--text); color: #0b0b0c; border-color: transparent; }
.date.is-on small { color: #3a3a3f; }
.date[disabled] { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; min-height: 52px; }
.slot { padding: 12px 0; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; font-weight: 500; font-variant-numeric: tabular-nums; transition: .2s; }
.slot:hover { border-color: var(--accent); }
.slot.is-on { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
@media (max-width: 400px) { .slots { grid-template-columns: repeat(3, 1fr); } }
.slots-empty { grid-column: 1 / -1; padding: 18px; text-align: center; color: var(--muted); font-size: 14.5px; border: 1px dashed var(--line-2); border-radius: 12px; }
.skeleton { height: 46px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.summary { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); }
.summary .ic { color: var(--accent); }
.tabs { display: flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { flex: 1; padding: 10px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 500; font-size: 14.5px; }
.tabs button.is-on { background: var(--surface-3); color: var(--text); }

/* ticket de confirmación */
.ticket { position: relative; border-radius: 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); padding: 26px; overflow: hidden; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 118px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); }
.ticket::before { left: -14px; } .ticket::after { right: -14px; }
.ticket-ok { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); margin-bottom: 14px; }
.ticket-ok .ic { width: 26px; height: 26px; }
.ticket-cut { border-top: 1px dashed var(--line-2); margin: 22px -26px; }
.ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; text-align: right; font-weight: 500; }

.mybookings { display: grid; gap: 8px; }
.mybooking { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14.5px; }

/* ------------------------------------------------------------------ panel */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 24px; overflow-y: auto; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-size: 14.5px; transition: .2s; }
.side-nav a:hover { color: var(--text); background: var(--surface); }
.side-nav a.is-active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.side-nav a.is-active .ic { color: var(--accent); }
.side { overflow-x: hidden; }
.side-foot { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.side-me { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.side-me .avatar { width: 38px; height: 38px; border-radius: 10px; font-size: 14px; }
.side-me div { min-width: 0; }
.side-me b, .side-me span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-me span { font-size: 12.5px; color: var(--muted); }
.content { padding: clamp(20px, 3vw, 40px); min-width: 0; }
.content-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.content-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4vw, 48px); }
.mobilebar { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 80; transform: translateX(-100%); transition: transform .35s var(--ease); }
  .side.is-open { transform: none; box-shadow: 40px 0 80px rgba(0,0,0,.6); }
  .mobilebar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stat span { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.stat span .ic { width: 15px; height: 15px; color: var(--accent); }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1.1; margin-top: 8px; }
@media (max-width: 1000px) { .stats { grid-template-columns: 1fr 1fr; } }

.card { padding: clamp(18px, 2.5vw, 26px); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 18px; margin-bottom: 4px; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; flex-wrap: wrap; margin-bottom: 18px; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255,255,255,.015); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.inline { display: inline; margin: 0; }

.day-group + .day-group { margin-top: 26px; }
.day-label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.day-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.appt { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.appt + .appt { margin-top: 8px; }
.appt-time { font-family: var(--display); font-size: 28px; line-height: 1; }
.appt-name { font-weight: 500; }
.appt-sub { color: var(--muted); font-size: 13.5px; }
@media (max-width: 600px) { .appt { grid-template-columns: 60px 1fr; } .appt .actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* editor de horario */
.week { display: grid; gap: 8px; }
.wday { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.wday.is-off .wranges { opacity: .3; pointer-events: none; }
.wranges { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; }
.wrange { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; }
.wrange input { width: 112px; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); }
@media (max-width: 640px) { .wday { grid-template-columns: 1fr; } }

.slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.slotcell { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 14px; display: grid; gap: 4px; }
.slotcell b { font-variant-numeric: tabular-nums; font-size: 16px; }
.slotcell button { all: unset; cursor: pointer; font-size: 12.5px; color: var(--muted); }
.slotcell button:hover { color: var(--text); }
.slotcell.blocked { background: repeating-linear-gradient(135deg, var(--bg-2) 0 8px, var(--surface) 8px 16px); }
.slotcell.blocked b { text-decoration: line-through; color: var(--faint); }
.slotcell.booked { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); }
.slotcell.past { opacity: .4; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--bg-2); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb form { position: absolute; top: 6px; right: 6px; }
.imgpick { display: flex; gap: 16px; align-items: center; }
.imgpick .prev { width: 88px; height: 88px; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; color: var(--faint); }
.imgpick .prev.wide { width: 160px; }
.imgpick .prev img { width: 100%; height: 100%; object-fit: cover; }

.copybox { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 14px; }
.copybox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; letter-spacing: .12em; padding: 10px 16px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--accent); display: inline-block; }

/* ------------------------------------------------------------- animaciones */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
