/* =========================================================
   NOBLE BARBER STUDIO
   Sistema de marca: cálido, editorial, fotografía real de luz
   de día. Papel dominante, tinta casi negra, acento burdeos.
   Tipografía Cabinet Grotesk (titulares de impacto: hero y cierre) +
   Zodiak (titulares editoriales: estudio y testimonios, como en el
   mockup aprobado) + Supreme (interfaz) + Tabular (datos: horarios,
   precios, duraciones).
   ========================================================= */

@font-face { font-family:'Cabinet Grotesk'; src:url('assets/fonts/cabinet-grotesk-400.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Cabinet Grotesk'; src:url('assets/fonts/cabinet-grotesk-800.woff2') format('woff2'); font-weight:800; font-display:swap; }
@font-face { font-family:'Zodiak'; src:url('assets/fonts/zodiak-700.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Supreme'; src:url('assets/fonts/supreme-400.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Supreme'; src:url('assets/fonts/supreme-500.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Tabular'; src:url('assets/fonts/tabular-400.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Tabular'; src:url('assets/fonts/tabular-500.woff2') format('woff2'); font-weight:500; font-display:swap; }

:root {
  /* Superficies */
  --paper: #F2EDE5;
  --paper-raised: #F8F5EF;
  --paper-sunken: #E8E1D5;
  --ink: #1B1712;
  --ink-soft: #6B665E;         /* 4.7:1 sobre --paper */
  --ink-faint: #8B8579;

  /* Acento: mismo burdeos que el cierre, pasa contraste como texto
     directamente (13:1 sobre papel), a diferencia del dorado de antes. */
  --wine: #4E1216;
  --wine-bright: #6E1B20;
  --wine-deep: #3A0D10;
  /* Variante clara para texto grande sobre la fotografía oscurecida:
     --wine-bright da 1.66:1 ahí, muy por debajo del mínimo. Esta da 4.9:1. */
  --wine-glow: #D65B4D;

  --line: rgba(27, 23, 18, 0.12);
  --line-soft: rgba(27, 23, 18, 0.07);
  --line-on-wine: rgba(255, 255, 255, 0.18);

  --display: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --sans: 'Supreme', system-ui, -apple-system, sans-serif;
  --mono: 'Tabular', ui-monospace, 'SF Mono', monospace;

  --r-btn: 8px;
  --r-card: 16px;
  --r-photo: 18px;
  --r-panel: 28px;
  --r-pill: 999px;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1360px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Panel del negocio (negocio.html/crm.css): mismos tokens del
     rediseño — tinta en vez de negro puro, vino en vez de dorado. */
  --noble-black: var(--ink);
  --noble-obsidian: var(--ink);
  --noble-gold: var(--wine-bright);
  --noble-champagne: var(--wine-glow);
  --noble-bone: var(--paper);
  --noble-gray: rgba(242, 237, 229, 0.6);
  --ink-muted: #6B665E;
  --gold-ink: var(--wine);
  --status-ink: #4F6352;
  --serif: 'Zodiak', Georgia, serif;

  /* crm.css usa esta escala de espaciado en unas 90 declaraciones
     (padding, gap, margin). Sin ella, todo el panel queda sin aire. */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;
}

/* El panel del negocio ahora comparte tipografía e identidad con el
   sitio público: Supreme para interfaz, burdeos como único acento. */
.crm-body { font-family: var(--sans); }

/* .btn-primary hereda el burdeos del sitio público sin overrides. Solo
   la barra lateral (fondo oscuro) necesita su propia variante clara de
   btn-secondary; el resto del panel (canvas claro) usa la de por defecto. */
.side .btn-secondary { background: transparent; border-color: rgba(242, 237, 229, 0.28); color: var(--paper); }
.side .btn-secondary:hover { border-color: var(--wine-glow); background: rgba(242, 237, 229, 0.06); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

/* ---------- Tipografía compartida ---------- */

.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

/* Titulares editoriales (estudio, testimonios): serif, como en el
   mockup — solo el hero y el cierre usan la sans de impacto. */
.display-serif {
  font-family: 'Zodiak', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow-num { color: var(--wine); }
.eyebrow-rule { width: 34px; height: 1px; background: var(--line); }

.data {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Marca tipográfica ---------- */

.wordmark { display: inline-flex; align-items: center; gap: 5px; }
.wordmark-type { display: grid; line-height: 1; gap: 2px; }
.wordmark-type b { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.wordmark-type span { font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }
.wordmark.on-wine .wordmark-type span { color: rgba(255, 255, 255, 0.55); }
.wordmark.on-wine .wordmark-type b { color: #fff; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.btn i { font-size: 16px; transition: transform 0.25s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-bright); }

.btn-secondary { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-secondary:hover { border-color: var(--ink); }

.btn-ghost { color: var(--ink); padding: 13px 2px; height: auto; }
.btn-ghost::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 2px;
  background: var(--ink);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.btn-ghost:hover::after { transform: scaleX(1); }

.btn-quiet { color: var(--ink-soft); height: 44px; padding: 0 14px; }
.btn-quiet:hover { color: var(--ink); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }

.btn-on-wine { background: var(--paper); color: var(--wine); }
.btn-on-wine:hover { background: #fff; }

.btn-sm { height: 44px; padding: 0 18px; font-size: 13px; }

/* ---------- Nav ---------- */

/* Barra sólida y opaca (como en el mockup): el hero empieza debajo,
   no detrás de ella. El humo/degradado claro vive dentro de la
   propia foto del hero, no en el nav. */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.4vw, 48px);
  padding: 0 var(--gutter);
  background: rgba(242, 237, 229, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(27,23,18,0.02); }

.nav-links { display: flex; gap: clamp(16px, 2.2vw, 28px); font-size: 14px; color: var(--ink-soft); }
.nav-links a { position: relative; padding: 4px 0; transition: color 0.25s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--wine);
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }

.nav-place {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-soft);
}
.nav-place i { font-size: 15px; color: var(--ink-faint); }

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--paper);
  padding: var(--gutter);
  display: none;
  flex-direction: column;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 30px; min-height: 44px; padding: 16px 0; border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
/* Foto a pantalla completa, de lateral a lateral, con todo el contenido
   superpuesto directamente sobre ella: así lo pide el mockup aprobado.
   Nada de panel de papel ni de velo blanco sobre la foto — solo un
   degradado oscuro para que el texto sea legible sobre la atmósfera
   natural de la propia fotografía. */

.hero {
  position: relative;
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  overflow: hidden;
  background: var(--ink);
}

.hero-plate { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--ink); }
.hero-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 38%; will-change: transform; }

/* Nada de bloque blanco sólido: un humo suave y difuminado detrás del
   texto (arriba a la izquierda, bajo el nav) y un velo oscuro abajo
   para la etiqueta lateral. Ambos se funden con la propia atmósfera
   de la foto en vez de taparla. */
.hero-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 62% at 20% 26%, rgba(247,244,238,0.55) 0%, rgba(247,244,238,0.28) 45%, rgba(247,244,238,0) 78%),
    linear-gradient(0deg, rgba(10,8,6,0.48) 0%, rgba(10,8,6,0) 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(32px, 4.4vw, 56px) var(--gutter);
}

.hero-copy { max-width: 40ch; color: var(--ink); }
.hero-copy .eyebrow { margin-bottom: 18px; color: var(--ink-soft); }
.hero-copy .eyebrow-rule { background: var(--line); }

.hero-title { font-size: clamp(36px, 5vw, 64px); color: var(--ink); }
.hero-title .line-b { color: var(--wine); }

.hero-lead {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.hero-actions .btn-ghost { color: var(--ink); }
.hero-actions .btn-ghost::after { background: var(--ink); }

.hero-tagline {
  margin-top: 44px;
  max-width: 24ch;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-tagline-rule { display: block; width: 34px; height: 1px; margin-bottom: 12px; background: var(--line); }

.hero-brandmark {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 3vw, 40px);
  top: clamp(22px, 3.2vw, 36px);
}

.hero-side-tag {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(24px, 4vw, 44px);
  max-width: 16ch;
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

/* Tarjeta de disponibilidad flotante: arriba de la foto, no encajonada
   en la esquina inferior. */
.slot-card {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 3vw, 40px);
  top: clamp(70px, 11vw, 108px);
  width: min(220px, 44%);
  padding: 15px 16px;
  border-radius: var(--r-card);
  background: rgba(27, 23, 18, 0.72);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  color: #fff;
}

.slot-card-label { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.slot-card-label .dot { width: 6px; height: 6px; border-radius: 50%; background: #78A57A; flex-shrink: 0; }

.slot-card strong {
  display: block;
  margin: 8px 0 12px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.slot-card .btn { width: 100%; height: 44px; font-size: 13px; }

/* ---------- Estructura general de sección ---------- */

/* Sin max-width: cada sección usa el ancho completo de la pantalla,
   con el mismo margen lateral que el navbar — nada de columnas
   centradas con barras en blanco a los costados. */
.section { padding: clamp(48px, 6vw, 80px) var(--gutter); }
.section-top { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.section-top h2 { font-size: clamp(24px, 2vw, 30px); }
.section-top .eyebrow-tail { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); text-align: right; }

/* Servicios y Equipo se leen como un mismo bloque (01/02) apilado:
   el espacio entre ambos es mucho menor que el que separa al bloque
   del resto de las secciones. Cómo funciona también se ajusta para
   no quedar con aire de más arriba y abajo. */
#equipo { padding-top: clamp(20px, 2.4vw, 32px); }
#proceso { padding-top: clamp(28px, 3.4vw, 48px); padding-bottom: clamp(28px, 3.4vw, 48px); }

/* ---------- Servicios ---------- */

.service-list { border-top: 1px solid var(--line); }

.service-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 68px 30px;
  align-items: center;
  gap: clamp(14px, 2.6vw, 30px);
  padding: clamp(16px, 2.2vw, 22px) 4px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease), background-color 0.3s var(--ease);
}

.service-row:hover { background: rgba(78, 18, 22, 0.03); padding-left: 12px; }

.service-main { display: grid; gap: 2px; }
.service-name { font-family: var(--sans); font-size: clamp(17px, 1.5vw, 19px); font-weight: 500; }
.service-desc { font-size: 13px; color: var(--ink-soft); }

.service-time { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.service-price { font-family: var(--mono); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }

.service-go { display: grid; place-items: center; color: var(--ink-faint); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.service-row:hover .service-go { color: var(--wine); transform: translate(3px, -3px); }
.service-go i { font-size: 17px; }

.service-foot { margin-top: 18px; }

/* ---------- Equipo ---------- */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }

.team-card { display: block; width: 100%; text-align: left; }

.team-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-photo); background: var(--paper-sunken); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.035); }

.team-body { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 14px; }
.team-name { font-family: var(--sans); font-weight: 500; font-size: 17px; }
.team-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.team-go { display: grid; place-items: center; color: var(--ink-faint); transition: transform 0.3s var(--ease), color 0.3s var(--ease); flex-shrink: 0; }
.team-card:hover .team-go { color: var(--wine); transform: translateX(3px); }

/* ---------- Cómo funciona ---------- */

.how-panel {
  padding: clamp(34px, 5vw, 56px);
  border-radius: var(--r-panel);
  background: var(--paper-raised);
  border: 1px solid var(--line-soft);
}

.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3.4vw, 40px); margin-top: 32px; }

.how-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--paper-sunken);
  color: var(--ink);
  margin-bottom: 22px;
}
.how-icon svg { width: 24px; height: 24px; }

.how-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.how-item h3 span { font-family: var(--mono); color: var(--wine); font-weight: 500; margin-right: 6px; }
.how-item p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Estudio ---------- */

/* La foto sangra hasta el borde izquierdo de la pantalla (como en el
   mockup); la copy y las fotos laterales quedan alineadas al mismo
   margen derecho que el resto de las secciones. */
.studio { background: var(--paper); }
/* Sin padding abajo: la sección queda pegada a la franja vino tinto
   que sigue, sin aire de papel entre ambas (como en el mockup). */
.studio-inner {
  padding: clamp(28px, 3.4vw, 48px) var(--gutter) 0 0;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr) minmax(0, 0.55fr);
  gap: clamp(28px, 3.4vw, 48px); align-items: center;
}

.studio-photo {
  border-radius: 0 var(--r-photo) var(--r-photo) 0;
  overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink);
}
.studio-photo img { width: 100%; height: 100%; object-fit: cover; }

.studio-copy h2 { font-size: clamp(30px, 3.4vw, 48px); max-width: 13ch; margin: 16px 0 20px; }
.studio-copy .eyebrow { margin-bottom: 4px; }
.studio-copy p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); max-width: 38ch; margin-bottom: 26px; }

.studio-side { display: flex; flex-direction: column; gap: 20px; align-self: stretch; }
.studio-side-photos { display: grid; grid-template-columns: 1fr; gap: 14px; flex: 1; }
.studio-side-photo {
  aspect-ratio: 4 / 3; border-radius: var(--r-photo); background: var(--paper-sunken);
  border: 1px dashed var(--line); display: grid; place-items: center; color: var(--ink-faint); font-size: 22px;
}

.studio-words { display: grid; gap: 6px; }
.studio-words span { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Cierre ---------- */

.closing { position: relative; overflow: hidden; background: var(--wine); color: #fff; }

/* Sin max-width: la franja completa (foto + burdeos) sangra de lateral
   a lateral, como en el mockup. */
/* La foto ocupa casi la mitad de la franja, como en el mockup; el
   degradado hacia el vino recién empieza cerca de la mitad de la
   propia foto, no a los dos tercios. */
.closing-inner { display: grid; grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.05fr) auto; align-items: stretch; min-height: clamp(280px, 34vw, 380px); }

.closing-photo { position: relative; overflow: hidden; }
.closing-photo img { width: 100%; height: 100%; object-fit: cover; }
.closing-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(78,18,22,0) 78%, var(--wine) 100%); }

.closing-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px, 4vw, 40px) clamp(24px, 3vw, 40px); }
.closing-copy .eyebrow { color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.closing-copy .eyebrow-rule { background: rgba(255,255,255,0.25); }
.closing-copy h2 { font-size: clamp(28px, 3.6vw, 52px); color: #fff; }
.closing-copy p { margin: 14px 0 24px; font-size: 15px; color: rgba(255,255,255,0.78); }
.closing-copy .btn { align-self: flex-start; }

.closing-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px clamp(20px, 2.6vw, 34px);
  border-left: 1px solid var(--line-on-wine);
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 15ch;
}

/* ---------- Testimonios ---------- */

.testimonials-inner { padding: clamp(60px, 8vw, 100px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 54px); align-items: center; }

.testimonials-copy h2 { font-size: clamp(28px, 3.2vw, 46px); margin-top: 16px; }

.quote-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.quote-body { max-width: 46ch; }
.quote-body p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--ink); }
.quote-stars { margin-top: 14px; color: var(--wine); font-size: 13px; letter-spacing: 2px; }
.quote-attr { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }

.quote-nav { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.quote-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.quote-nav button:hover { border-color: var(--ink); background: var(--paper-raised); }
.quote-nav i { font-size: 15px; }

/* ---------- Pie ---------- */

.footer { border-top: 1px solid var(--line); }
.footer-inner { padding: 30px var(--gutter); display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap; }

.footer-nav { display: flex; gap: clamp(14px, 2vw, 24px); font-size: 13px; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); }
.footer-nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--wine); padding-bottom: 2px; }

.footer-social { display: flex; gap: 10px; margin-left: auto; }
.footer-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.footer-social a:hover { border-color: var(--ink); background: var(--paper-raised); }
.footer-social i { font-size: 16px; }

.footer-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.footer-meta i { font-size: 14px; }
.footer-copy { font-size: 11px; color: var(--ink-soft); }

/* ---------- Barra fija móvil ---------- */

.sticky-cta {
  position: fixed;
  z-index: 55;
  left: 0; right: 0; bottom: 0;
  display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(242, 237, 229, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }

/* =========================================================
   RESERVA — modal
   Resumen oscuro a la izquierda, zona de interacción en papel.
   ========================================================= */

.overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(20, 16, 12, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.overlay.open { opacity: 1; pointer-events: auto; }

.booking {
  width: min(1040px, 100%);
  height: min(680px, calc(100dvh - 40px));
  display: grid;
  grid-template-columns: 310px 1fr;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(0,0,0,0.35);
  transform: translateY(12px) scale(0.99);
  transition: transform 0.4s var(--ease);
}
.overlay.open .booking { transform: none; }

.booking-aside { background: var(--ink); color: var(--paper); padding: 30px; display: flex; flex-direction: column; gap: 26px; }
.booking-aside-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1.05; }
.booking-aside-title em { font-style: normal; color: var(--wine-bright); display: block; }

.summary { margin-top: auto; display: grid; gap: 2px; }
.summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.summary-row span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242,237,229,0.5); }
.summary-row strong { font-size: 14px; font-weight: 500; text-align: right; }
.summary-row.is-empty strong { color: rgba(242,237,229,0.42); font-weight: 400; }
.summary-row.total { border-bottom: 0; padding-top: 12px; }
.summary-row.total strong { font-family: var(--mono); font-size: 18px; color: var(--wine-bright); }

.booking-aside-note { font-size: 11px; color: rgba(242,237,229,0.5); }

.booking-main { display: flex; flex-direction: column; overflow: hidden; }
.booking-top { flex-shrink: 0; display: flex; align-items: center; gap: 18px; padding: 20px 26px; border-bottom: 1px solid var(--line); }

.progress { display: flex; align-items: center; gap: 8px; flex: 1; }
.progress-step { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.progress-step b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--mono); font-size: 9px; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.progress-step.done b { background: var(--wine); border-color: var(--wine); color: #fff; }
.progress-step.active { color: var(--ink); font-weight: 500; }
.progress-line { flex: 1; height: 1px; background: var(--line); }
.progress-line.done { background: var(--wine); }

.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn); color: var(--ink-soft); flex-shrink: 0; transition: background-color 0.25s var(--ease); }
.icon-btn:hover { background: var(--paper-raised); }

.booking-body { flex: 1; overflow-y: auto; padding: 30px 26px; }
.step { display: none; }
.step.active { display: block; }

.step-head { text-align: center; max-width: 42ch; margin: 0 auto 26px; }
.step-head h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(22px, 2.4vw, 30px); }
.step-head p { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }

.options { display: grid; gap: 10px; max-width: 520px; margin: 0 auto; }
.option {
  width: 100%; display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 14px; padding: 14px 18px;
  text-align: left; border-radius: var(--r-card);
  border: 1px solid var(--line); background: var(--paper-raised);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.option:hover { border-color: rgba(78,18,22,0.3); }
.option.selected { border-color: var(--wine); background: rgba(78,18,22,0.06); }
.option-main { display: grid; gap: 2px; }
.option-main strong { font-size: 15px; font-weight: 500; }
.option-main small { font-size: 12px; color: var(--ink-soft); }
.option-side { display: flex; align-items: center; gap: 12px; }
.option-time { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.option-price { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.option-tag { font-size: 11px; font-weight: 500; color: var(--wine); }

.picker { max-width: 520px; margin: 0 auto; }
.date-strip { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; margin-bottom: 20px; }
.date-btn { display: grid; place-items: center; gap: 2px; min-height: 56px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--paper-raised); transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease); }
.date-btn small { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.date-btn strong { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.date-btn:hover:not(:disabled) { border-color: rgba(78,18,22,0.3); }
.date-btn.selected { background: var(--wine); border-color: var(--wine); }
.date-btn.selected small { color: rgba(255,255,255,0.7); }
.date-btn.selected strong { color: #fff; }
.date-btn:disabled { background: transparent; border-style: dashed; cursor: not-allowed; }
.date-btn:disabled small, .date-btn:disabled strong { color: rgba(27,23,18,0.3); }
.date-btn:disabled strong { text-decoration: line-through; }

.time-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 11px; color: var(--ink-soft); }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px,1fr)); gap: 7px; }
.time-btn { min-height: 42px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--paper-raised); font-family: var(--mono); font-size: 12px; transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease); }
.time-btn:hover:not(:disabled) { border-color: rgba(78,18,22,0.3); }
.time-btn.selected { background: var(--wine); border-color: var(--wine); color: #fff; font-weight: 500; }
.time-btn:disabled { background: transparent; border-style: dashed; color: rgba(27,23,18,0.3); cursor: not-allowed; text-decoration: line-through; }

.empty-hint { border: 1px dashed var(--line); border-radius: var(--r-card); padding: 22px; text-align: center; font-size: 12px; color: var(--ink-soft); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; margin: 0 auto; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 500; }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input { height: 44px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: #fff; transition: border-color 0.25s var(--ease); }
.field input:focus { outline: none; border-color: var(--wine); }
.field-error { min-height: 15px; font-size: 11px; color: #A03A2E; }
.field.invalid input { border-color: #A03A2E; }

.pay-note { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: var(--r-card); background: var(--paper-sunken); }
.pay-note strong { display: block; font-size: 13px; font-weight: 500; }
.pay-note small { font-size: 11px; color: var(--ink-soft); }
.pay-note span { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }

.step-actions { display: flex; justify-content: space-between; gap: 10px; max-width: 520px; margin: 22px auto 0; }
.step-actions.full { grid-column: 1/-1; }

.success { display: none; max-width: 440px; margin: 0 auto; text-align: center; }
.success.show { display: block; }
.success-mark { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; border: 1px solid var(--wine); color: var(--wine); display: grid; place-items: center; font-size: 22px; }
.success h3 { font-size: 25px; margin-bottom: 8px; }
.success > p { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.success-card { display: grid; gap: 2px; padding: 18px; margin-bottom: 22px; text-align: left; border-radius: var(--r-card); background: var(--paper-raised); border: 1px solid var(--line); }
.success-card .summary-row { border-bottom-color: var(--line); }
.success-card .summary-row span { color: var(--ink-soft); }
.success-card .summary-row strong { color: var(--ink); }
.success-actions { display: flex; gap: 10px; justify-content: center; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; z-index: 200; left: 50%; bottom: 24px;
  transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 500;
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i { color: var(--wine-bright); font-size: 16px; }

/* ---------- Estado inicial del motion ---------- */

.reveal { opacity: 0; }
.no-motion .reveal, .is-revealed { opacity: 1; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .studio-inner { grid-template-columns: 1fr; padding: clamp(48px, 6vw, 80px) var(--gutter) 0; }
  .studio-photo { border-radius: var(--r-photo); aspect-ratio: 16/9; }
  .testimonials-inner { grid-template-columns: 1fr; }
  .studio-side-photos { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .closing-inner { grid-template-columns: 0.4fr 1fr; }
  .closing-side { display: none; }
}

@media (max-width: 860px) {
  .nav-links, .nav-place { display: none; }
  .nav-burger { display: grid; }
  .nav .btn-primary { display: none; }
  .nav { gap: 14px; }

  .hero { min-height: 0; }
  .hero-plate { position: relative; inset: auto; min-height: 0; aspect-ratio: 4/5; }
  .hero-content { position: relative; z-index: auto; min-height: 0; background: var(--paper); padding: 28px var(--gutter) 40px; }
  .hero-copy { max-width: none; color: var(--ink); }
  .hero-copy .eyebrow { color: var(--ink-soft); }
  .hero-copy .eyebrow-rule { background: var(--line); }
  .hero-title { font-size: clamp(30px, 9vw, 46px); color: var(--ink); }
  .hero-title .line-b { color: var(--wine); }
  .hero-lead { color: var(--ink-soft); }
  .hero-actions .btn-ghost { color: var(--ink); }
  .hero-actions .btn-ghost::after { background: var(--ink); }
  .hero-tagline { margin-top: 32px; color: var(--ink-soft); }
  .hero-tagline-rule { background: var(--line); }
  .hero-brandmark { display: none; }
  .hero-side-tag { display: none; }
  .slot-card { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 20px; }

  .section { padding: 48px var(--gutter); }
  .section-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-top .eyebrow-tail { text-align: left; }

  .service-row { grid-template-columns: 1fr auto; grid-template-areas: "name price" "meta go"; gap: 4px 14px; }
  .service-main { grid-area: name; }
  .service-price { grid-area: price; }
  .service-time { grid-area: meta; }
  .service-go { grid-area: go; justify-self: end; }

  .team-grid { grid-template-columns: 1fr 1fr; }

  .how-panel { padding: 24px; }
  .how-grid { grid-template-columns: 1fr; gap: 24px; }

  .closing-inner { grid-template-columns: 1fr; min-height: 0; }
  .closing-photo { aspect-ratio: 16/9; }

  .quote-card { flex-direction: column; gap: 18px; }
  .quote-nav { flex-direction: row; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-social { margin-left: 0; }

  .sticky-cta { display: block; }

  .overlay { padding: 0; }
  .booking { grid-template-columns: 1fr; grid-template-rows: auto 1fr; width: 100%; height: 100dvh; border-radius: 0; }
  .booking-aside { padding: 22px; gap: 14px; }
  .booking-aside .summary, .booking-aside-note { display: none; }
  .booking-top { padding: 16px 20px; }
  .booking-body { padding: 22px 20px 40px; }
  .progress-step span { display: none; }
  .progress-step.active span { display: inline; }
  .form { grid-template-columns: 1fr; }
  .date-strip { grid-template-columns: repeat(4, 1fr); }
  .success-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; }
  .date-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
