:root {
  --bg: #0e0c0a;
  --surface: #171411;
  --surface-2: #211d18;
  --ink: #efe7da;
  --muted: rgb(239 231 218 / 0.62);
  --line: rgb(239 231 218 / 0.12);
  --accent: #c8a165;
  --accent-ink: #0e0c0a;
  --wine: #7a1f1f;
  --radius: 4px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

::selection { background: var(--accent); color: var(--accent-ink); }
body.is-intro { overflow: hidden; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; font-variation-settings: 'opsz' 144; }
h1 em, h2 em { color: var(--accent); font-style: italic; }
.eyebrow, .kicker { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head h2, .ritual h2, .booking h2 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 0.95; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 32px; max-width: none; }
.section-head.split > p { max-width: 340px; color: var(--muted); }
.btn { border-radius: 999px; letter-spacing: 0.01em; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-ghost { border-color: rgb(239 231 218 / 0.35); }
.btn-ghost:hover { border-color: var(--ink); }
.muted { color: var(--muted); }
.warn { color: #e8a37a; }

/* Intro */
.intro { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.intro-half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg); transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1); }
.intro-half.top { top: 0; } .intro-half.bottom { bottom: 0; }
.intro.open .intro-half.top { transform: translateY(-100%); }
.intro.open .intro-half.bottom { transform: translateY(100%); }
.intro-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.06em; font: 400 clamp(4rem, 16vw, 11rem)/1 var(--font-display); color: var(--ink); transition: opacity 0.4s, transform 1s cubic-bezier(0.76, 0, 0.24, 1); }
.intro-mark span { display: inline-block; opacity: 0; transform: translateY(40%); animation: rise 0.7s var(--ease) forwards; }
.intro-mark span:nth-child(2) { animation-delay: 0.08s; } .intro-mark span:nth-child(3) { animation-delay: 0.16s; } .intro-mark span:nth-child(4) { animation-delay: 0.24s; }
.intro.open .intro-mark { opacity: 0; transform: scale(1.08); }
.intro-blade { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 20%, #fff 50%, var(--accent) 80%, transparent); transform: scaleX(0); transform-origin: left; }
.intro.cut .intro-blade { transition: transform 0.45s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.4s 0.5s; transform: scaleX(1); opacity: 0; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.header.is-solid { background: rgb(14 12 10 / 0.72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; font: 500 1.6rem/1 var(--font-display); text-decoration: none; letter-spacing: -0.02em; }
.logo em { font-family: var(--font-body); font-style: normal; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.logo svg { width: 22px; height: 22px; align-self: center; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.logo.small { font-size: 1.2rem; }
.nav { display: flex; gap: 30px; font-size: 0.92rem; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 0; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; animation: slowzoom 18s ease-out both; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(14 12 10 / 0.92) 0%, rgb(14 12 10 / 0.55) 48%, rgb(14 12 10 / 0.15) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
@keyframes slowzoom { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero h1 { font-size: clamp(3.6rem, 12vw, 10.5rem); line-height: 0.86; letter-spacing: -0.045em; font-weight: 300; }
.hero-row { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: 36px; }
.lede { max-width: 440px; font-size: 1.08rem; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.hero-meta div { padding: 22px 0 28px; display: grid; gap: 2px; }
.hero-meta div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.hero-meta strong { font: 300 2.2rem/1 var(--font-display); color: var(--ink); }
.hero-meta span { font-size: 0.86rem; color: var(--muted); }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--surface); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: slide 40s linear infinite; }
.marquee span { font: italic 300 clamp(1.6rem, 3.4vw, 2.6rem)/1 var(--font-display); white-space: nowrap; }
.marquee i { width: 10px; height: 10px; transform: rotate(45deg); background: var(--accent); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Carta */
.menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.menu a { display: grid; grid-template-columns: 1fr 90px 110px; align-items: center; gap: 24px; padding: 28px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding 0.35s var(--ease), background 0.35s; }
.menu a:hover { padding-left: 24px; background: linear-gradient(90deg, rgb(200 161 101 / 0.08), transparent 70%); }
.menu img { display: none; }
.m-name { font: 400 clamp(1.5rem, 3vw, 2.3rem)/1.1 var(--font-display); letter-spacing: -0.02em; }
.m-name small { display: block; margin-top: 6px; font: 400 0.9rem/1.4 var(--font-body); color: var(--muted); letter-spacing: 0; }
.m-min { font-size: 0.86rem; color: var(--muted); }
.m-price { font: 400 1.6rem/1 var(--font-display); color: var(--accent); text-align: right; }
.menu-preview { position: fixed; left: 0; top: 0; z-index: 40; width: 260px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); pointer-events: none; opacity: 0; transition: opacity 0.3s; box-shadow: 0 30px 60px rgb(0 0 0 / 0.5); }
.menu-preview.on { opacity: 1; }

/* Ritual */
.ritual { padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 10vw, 140px); background: var(--surface); }
.ritual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.ritual-media { position: sticky; top: 110px; height: calc(100svh - 160px); min-height: 420px; border-radius: var(--radius); overflow: hidden; }
.ritual-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.8s var(--ease), transform 1.4s var(--ease); }
.ritual-media img.is-on { opacity: 1; transform: none; }
.ritual-intro { padding: 40px 0 18vh; }
.step { min-height: 52vh; padding: 28px 0; border-top: 1px solid var(--line); opacity: 0.35; transition: opacity 0.5s; }
.step.is-on { opacity: 1; }
.step span { font: italic 300 1.2rem/1 var(--font-display); color: var(--accent); }
.step h3 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 14px 0 14px; }
.step p { max-width: 420px; color: var(--muted); font-size: 1.04rem; }

/* Barberos */
.barbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.barber-photo { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); margin-bottom: 22px; }
.barber-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.6s, transform 1s var(--ease); }
.barber:hover .barber-photo img { filter: none; transform: scale(1.04); }
.barber h3 { font-size: 2.2rem; }
.barber .role { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 8px 0 10px; }
.barber p { color: var(--muted); }
.link { display: inline-block; margin-top: 16px; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 3px; font-weight: 500; }

/* Galería */
.works .section-head { margin-bottom: 36px; }
.rail { display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--gutter) 10px; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; }
.rail figure { margin: 0; flex: none; width: clamp(240px, 30vw, 420px); scroll-snap-align: start; }
.rail figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); pointer-events: none; user-select: none; }
.rail figure.tall img { aspect-ratio: 3/4; }
.rail figure { align-self: end; }
.rail figcaption { margin-top: 12px; font: italic 300 1.15rem/1.2 var(--font-display); color: var(--muted); }

/* Reserva */
.booking { overflow: hidden; isolation: isolate; }
.booking-bg { position: absolute; inset: 0; z-index: -1; }
.booking-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(0.45) saturate(0.8); transform: scale(1.12); }
.booking-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.booking-copy > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); max-width: 400px; }
.hours { margin: 36px 0 0; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 500; text-align: right; }
.booker { display: grid; gap: 26px; padding: clamp(22px, 3vw, 36px); border: 1px solid rgb(239 231 218 / 0.14); border-radius: 18px; background: rgb(23 20 17 / 0.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.booker fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.booker legend { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 12px; }
.booker legend span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 0.78rem; }
.chips, .days, .slots { display: flex; flex-wrap: wrap; gap: 8px; }
.days { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.chip { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgb(239 231 218 / 0.03); transition: border-color 0.2s, background 0.2s; font-size: 0.92rem; font-weight: 500; }
.chip small { font-size: 0.74rem; font-weight: 400; color: var(--muted); }
.chip:hover:not(:disabled) { border-color: rgb(239 231 218 / 0.4); }
.chip.on { border-color: var(--accent); background: rgb(200 161 101 / 0.14); }
.chip:disabled { opacity: 0.32; cursor: not-allowed; text-decoration: line-through; }
.days .chip { flex: none; text-align: center; min-width: 74px; }
.slots .chip { padding: 9px 12px; font-variant-numeric: tabular-nums; }
.summary { font-size: 0.95rem; padding: 14px 16px; border-radius: 10px; background: rgb(239 231 218 / 0.05); min-height: 50px; }
.summary strong { color: var(--accent); font-weight: 600; }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .nav { display: none; }
  .hero-row { flex-direction: column; align-items: start; gap: 24px; }
  .ritual-grid { grid-template-columns: 1fr; }
  .ritual-media { top: 84px; height: 42svh; min-height: 0; z-index: 1; }
  .ritual-intro { padding: 0 0 6vh; order: -1; }
  .step { min-height: 40vh; }
  .barbers { grid-template-columns: 1fr 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header .btn-sm { padding: 0 16px; }
  .section-head.split { flex-direction: column; align-items: start; }
  .hero-meta div + div { padding-left: 14px; }
  .hero-meta strong { font-size: 1.7rem; }
  .menu a { grid-template-columns: 64px 1fr auto; gap: 14px; padding: 18px 0; }
  .menu a:hover { padding-left: 0; }
  .menu img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); grid-row: span 2; }
  .m-min { grid-column: 2; grid-row: 2; font-size: 0.8rem; }
  .m-price { grid-column: 3; grid-row: 1 / span 2; font-size: 1.3rem; }
  .m-name small { display: none; }
  .barbers { grid-template-columns: 1fr; }
  .menu-preview { display: none; }
}
