/* Navaja Norte: barbería de autor (muestra ficticia, nivel premium).
   Idea visual: una navaja que se abre como la aguja de una brújula y marca el norte;
   la carta de servicios se lee como la pizarra de una barbería, con puntos guía hasta el precio. */

:root {
  --bg: #131209;
  --surface: #1F1F1F;
  --surface-2: #181818;
  --deep: #000000;
  --text: #F2EEE6;
  --muted: #A9A397;
  --border: #313131;
  --accent: #D6B57E;
  --accent-hover: #C9A66C;
  --on-accent: #131209;
  --focus: #D6B57E;
  --steel: #CFC9BD;
  --nav-bg: rgba(19, 18, 9, 0.72);
  --menu-bg: rgba(19, 18, 9, 0.96);
  color-scheme: dark;
}

html { scrollbar-color: var(--border) var(--bg); scrollbar-width: thin; }
body { overflow-x: clip; }
::selection { background: var(--accent); color: var(--on-accent); }

/* Estilo que la base no trae (B1: Title 4 = text-sm, Medium) */
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }

/* La barra de muestra ocupa 32px: la navegación flota debajo para no taparla */
.demo-bar { position: relative; z-index: 60; }
.wordmark { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.nav__links a[aria-current="true"] { color: var(--accent); }
.menu a { color: var(--text); }

.btn--primary:hover { filter: none; background: var(--accent-hover); }
.btn--primary { padding-inline: var(--s-300); }

/* Hero */
.hero { padding-top: calc(var(--s-900) + var(--s-400)); }
.hero__grid { display: grid; gap: var(--s-600); align-items: center; }
.hero__copy { gap: var(--s-300); }
.hero__cta { margin-top: 0; }
.nw { white-space: nowrap; }
.hero__proof { margin-top: 0; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-700); }
}

/* Brújula y navaja (ilustración propia, decorativa) */
.compass { margin: 0; justify-self: center; width: 100%; max-width: 320px; display: grid; gap: var(--s-100); justify-items: center; }
@media (min-width: 900px) { .compass { max-width: 380px; } }
.compass__svg { width: 100%; height: auto; overflow: visible; }
.compass__caption { color: var(--muted); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.c-ring { fill: none; stroke: var(--border); stroke-width: 1.5; }
.c-ring--in { stroke-dasharray: 2 6; }
.c-ticks { fill: none; stroke: var(--muted); stroke-width: 10; stroke-dasharray: 0.5 4.5; opacity: 0.55; }
.c-major { fill: none; stroke: var(--text); stroke-width: 18; stroke-dasharray: 1.4 88.6; stroke-dashoffset: 0.7; }
.c-letter { fill: var(--muted); font-family: var(--font); font-size: 20px; font-weight: 600; text-anchor: middle; }
.c-letter--n { fill: var(--accent); }
.r-blade { fill: var(--steel); }
.r-spine { stroke: #9B9B9B; stroke-width: 3; stroke-linecap: round; }
.r-edge { stroke: #FFFFFF; stroke-width: 1.5; stroke-linecap: round; opacity: 0.8; }
.r-handle { fill: #272727; stroke: var(--border); stroke-width: 1.5; }
.r-rivet { fill: var(--muted); }
.r-pivot { fill: var(--accent); }
.r-pivot-in { fill: var(--bg); }

/* La hoja sale del mango y oscila hasta quedar quieta en el norte, como una aguja */
.razor__blade { transform-box: view-box; transform-origin: 200px 200px; animation: aguja 2400ms 300ms both; }
@keyframes aguja {
  0%   { transform: rotate(180deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  52%  { transform: rotate(-9deg);  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  72%  { transform: rotate(4deg);   animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  88%  { transform: rotate(-1.5deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  100% { transform: rotate(0deg); }
}

/* Confianza */
.confianza { background: var(--surface-2); }
.quote { margin: 0; gap: var(--s-300); align-content: space-between; }
.quote blockquote { color: var(--text); text-wrap: pretty; }
.quote figcaption { display: grid; gap: var(--s-25); }

/* Servicios: la carta */
.servicios__grid { display: grid; gap: var(--s-500); }
.servicios__head { margin-bottom: 0; align-content: start; }
@media (min-width: 900px) {
  .servicios__grid { grid-template-columns: 340px minmax(0, 1fr); gap: var(--s-800); }
  .servicios__head { position: sticky; top: calc(var(--s-900) + var(--s-400)); }
}
.carta { display: grid; gap: var(--s-400); }
.carta__item { display: grid; gap: var(--s-75); }
.carta__row { display: flex; align-items: baseline; gap: var(--s-100); }
.carta__row .title-2:first-child { min-width: 0; text-wrap: balance; }
.carta__dots { flex: 1 1 var(--s-400); min-width: var(--s-400); height: 1px; border-bottom: 2px dotted var(--border); transform: translateY(-4px); }
.carta__price { color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.carta__time { color: var(--text); white-space: nowrap; margin-left: var(--s-50); }

/* Frase destacada sobre negro puro */
.tagline { background: var(--deep); padding-block: var(--s-900); }

/* Pasos */
.steps .card { gap: var(--s-100); }
.steps .card::before { font-size: 14px; line-height: 20px; }

/* El local */
.local__grid { display: grid; gap: var(--s-500); }
@media (min-width: 900px) { .local__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-700); align-items: start; } }
.plano { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: var(--s-300); display: grid; gap: var(--s-300); }
.plano__svg { width: 100%; height: auto; }
.p-wall { fill: none; stroke: var(--muted); stroke-width: 4; stroke-linejoin: round; }
.p-window { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 10 6; transform: translateY(-8px); }
.p-door { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 4 4; }
.p-door-leaf { stroke: var(--muted); stroke-width: 3; }
.p-mirror { fill: var(--steel); opacity: 0.7; }
.p-chair rect { fill: #272727; stroke: #9B9B9B; stroke-width: 1.5; }
.p-furn { fill: #272727; stroke: var(--border); stroke-width: 1.5; }
.p-basin { fill: none; stroke: #9B9B9B; stroke-width: 1.5; }
.p-mark circle { fill: var(--accent); }
.p-mark text { fill: var(--on-accent); font-family: var(--font); font-size: 16px; font-weight: 600; text-anchor: middle; }
.plano__ref { display: grid; gap: var(--s-75) var(--s-300); }
@media (min-width: 560px) { .plano__ref { grid-template-columns: 1fr 1fr; } }
.plano__ref li { display: flex; align-items: center; gap: var(--s-100); }
.plano__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); font-size: 12px; line-height: 16px; font-weight: 600; flex: none; }
.equipo { display: grid; gap: var(--s-300); align-content: start; }
.equipo__list { display: grid; gap: var(--s-400); }
.equipo__list li { display: grid; gap: var(--s-50); }

/* FAQ */
.faq summary { color: var(--text); }
.faq summary .i { color: var(--accent); }
.faq details { transition: border-color var(--dur-ui) var(--ease); }
.faq details:hover, .faq details[open] { border-color: #4A4A4A; }

/* Cierre */
.cierre { background: var(--surface-2); }
.cierre__inner { display: grid; gap: var(--s-300); justify-items: start; }
.cierre__title { max-width: 680px; color: var(--text); padding-bottom: var(--s-50); }

/* Pie */
.footer { background: var(--bg); }
.footer h2 { color: var(--text); margin-bottom: var(--s-200); }
.footer__brand { display: grid; gap: var(--s-100); align-content: start; max-width: 360px; }
.footer__li { display: flex; gap: var(--s-75); align-items: flex-start; }
.footer__li .i { margin-top: var(--s-25); color: var(--accent); }
.footer a:hover { color: var(--accent); }
.footer__base { margin-top: var(--s-500); }

@media (prefers-reduced-motion: reduce) {
  .razor__blade { animation: none; transform: none; }
}
