/* =========================================================
   JUST A CUT · Estudio de barbería · Santa Cruz de Tenerife
   ========================================================= */
:root {
  --black: #000;
  --ink: #0a0a0a;
  --ink-2: #121212;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .28);
  --white: #fff;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-intro { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: #000; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(44px, 7vw, 104px);
  line-height: .9;
  letter-spacing: -.005em;
  margin: 0 0 28px;
}
.muted { color: #555; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: #c9c9c9; max-width: 54ch; font-weight: 300; }
.note { color: var(--muted); font-size: 14px; margin-top: 32px; }

/* ---------- Botones ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px;
  font-family: var(--body); font-weight: 600; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--white);
  border-radius: 0;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
  cursor: pointer;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn-solid { background: var(--white); color: var(--black); }
.btn-solid::after { background: var(--black); }
.btn-solid:hover { color: var(--white); }
.btn-ghost { color: var(--white); background: transparent; border-color: var(--line-strong); }
.btn-ghost::after { background: var(--white); }
.btn-ghost:hover { color: var(--black); border-color: var(--white); }
.btn:hover::after { transform: translateY(0); }
.btn-sm { --h: 42px; padding: 0 20px; font-size: 12px; }
.btn-lg { --h: 64px; padding: 0 40px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* =========================================================
   INTRO
   ========================================================= */
#intro {
  position: fixed; inset: 0; z-index: 100;
  background: #000;
  transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1);
  clip-path: inset(0 0 0 0);
}
#intro.is-leaving { clip-path: inset(0 0 100% 0); }
#intro.is-gone { display: none; }
#intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-flash {
  position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none;
}
.intro-reveal {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 40% at 50% 50%, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 55%, transparent 100%);
  opacity: 0; transition: opacity .6s;
}
#intro.show-logo .intro-reveal { opacity: 1; }
.intro-logo {
  width: clamp(96px, 16vw, 168px); height: auto;
  opacity: 0; transform: scale(.6);
  filter: drop-shadow(0 0 24px rgba(255,255,255,.55));
}
.intro-word {
  display: flex; gap: .32em;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 6vw, 72px); letter-spacing: .32em; line-height: 1;
  margin-right: -.32em;
}
.intro-word span { opacity: 0; transform: translateY(40%); display: inline-block; }
#intro.show-logo .intro-logo { animation: logoIn 1s var(--ease) forwards; }
#intro.show-logo .intro-word span { animation: wordIn .9s var(--ease) forwards; }
#intro.show-logo .intro-word span:nth-child(1) { animation-delay: .25s; }
#intro.show-logo .intro-word span:nth-child(2) { animation-delay: .35s; }
#intro.show-logo .intro-word span:nth-child(3) { animation-delay: .45s; }
@keyframes logoIn { to { opacity: 1; transform: scale(1); } }
@keyframes wordIn { to { opacity: 1; transform: none; } }

.intro-skip {
  position: absolute; right: var(--gutter); bottom: max(24px, env(safe-area-inset-bottom));
  background: none; border: 0; color: rgba(255,255,255,.55);
  font: 500 11px/1 var(--body); letter-spacing: .28em; text-transform: uppercase;
  padding: 12px 0; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.25);
  transition: color .3s;
}
.intro-skip:hover { color: #fff; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.nav-brand span { font-family: var(--display); font-weight: 800; letter-spacing: .22em; font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #cfcfcf;
  position: relative; padding: 6px 0;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #fff;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 7px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
  }
  .nav-toggle span { width: 26px; height: 1.5px; background: #fff; transition: transform .4s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 0; background: #000;
    flex-direction: column; justify-content: center; gap: 26px;
    clip-path: inset(0 0 100% 0); transition: clip-path .6s cubic-bezier(.77,0,.18,1);
  }
  .nav-links.is-open { clip-path: inset(0 0 0 0); }
  .nav-links a:not(.btn) { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: .04em; color: #fff; }
  .nav-links .btn { margin-top: 16px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(64px, 10vh, 120px);
  overflow: hidden;
}
#hero-canvas, #cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, #000 0%, rgba(0,0,0,.85) 30%, rgba(0,0,0,.15) 70%, rgba(0,0,0,.5) 100%),
    radial-gradient(ellipse at 50% 30%, transparent 30%, rgba(0,0,0,.6) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.hero-title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(84px, 17vw, 248px); line-height: .82; letter-spacing: -.01em;
  margin: 0 0 32px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .02em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.hero-title .hex-dot { display: inline-block; width: .11em; height: .127em; margin-left: .05em; vertical-align: baseline; }
body.is-ready .hero-title .line > span { transform: none; }
.hero-sub { font-size: clamp(16px, 1.5vw, 20px); color: #bdbdbd; max-width: 46ch; margin: 0 0 36px; font-weight: 300; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: clamp(64px, 10vh, 120px); z-index: 2;
  width: 1px; height: 84px; background: var(--line);
  overflow: hidden;
}
.hero-scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 30px; background: #fff; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-30px); } 100% { transform: translateY(84px); } }
@media (max-width: 600px) { .hero-scroll { display: none; } .hero-cta .btn { flex: 1 1 100%; } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 22px 0; background: #000;
}
.marquee-track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 52px); letter-spacing: .02em; line-height: 1;
  white-space: nowrap;
}
.marquee-track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px #fff; }
.hex {
  width: 22px; height: 25px; flex: none;
  background: #fff;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }

/* Estudio */
.studio-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.studio-media { margin: 0; }
.studio-media figcaption, .g-item figcaption {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 18px;
}
@media (max-width: 860px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-media { order: 2; }
}


/* Servicios */
.services { background: var(--ink); }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.service::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service-num { font-family: var(--display); font-size: 18px; color: var(--muted); font-weight: 700; letter-spacing: .1em; }
.service h3 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 4vw, 56px); line-height: 1; margin: 0 0 8px;
  transition: transform .6s var(--ease);
}
.service:hover h3 { transform: translateX(10px); }
.service p { margin: 0; color: var(--muted); max-width: 60ch; }
.service-cta {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--line-strong); padding: 14px 20px; transition: background .4s, color .4s, border-color .4s;
}
.service-cta:hover { background: #fff; color: #000; border-color: #fff; }
@media (max-width: 700px) {
  .service { grid-template-columns: 44px 1fr; gap: 12px 16px; padding: 28px 0; }
  .service-cta { grid-column: 2; justify-self: start; margin-top: 8px; }
}

/* Frase */
.quote { position: relative; padding: clamp(110px, 16vw, 220px) 0; overflow: hidden; background: #fff; color: #000; }
.quote-bg { position: absolute; inset: 0; opacity: .1; }
.quote-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.quote .container { position: relative; }
.quote-text {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 13vw, 200px); line-height: .86; margin: 0;
}
.qline { display: block; transform: translateX(var(--qx, 0)); will-change: transform; }
.qline.outline { color: transparent; -webkit-text-stroke: 2px #000; }
.quote-cap { margin: 40px 0 0; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: #555; }

/* Galería */
.gallery-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(220px, 34vw));
  max-height: 900px;
}
.g-item { margin: 0; position: relative; overflow: hidden; background: #111; }
.g-tall { grid-row: span 2; }
.g-insta { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: transform 1.4s var(--ease), filter .8s; }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; margin: 0; padding: 40px 20px 18px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
}
.g-insta {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 28px; border: 1px solid var(--line); background: #000;
  transition: background .5s, color .5s;
}
.g-insta svg { margin-bottom: auto; }
.g-insta span { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; }
.g-insta small { color: var(--muted); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; transition: color .5s; }
.g-insta:hover { background: #fff; color: #000; }
.g-insta:hover small { color: #333; }
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 64vw; max-height: none; }
  .g-tall { grid-column: span 2; grid-row: auto; }
  .g-insta { grid-column: span 2; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 100vw; }
  .g-tall, .g-insta { grid-column: auto; }
  .g-insta { height: 56vw; align-self: start; }
}

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding: clamp(120px, 16vw, 220px) 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.25) 0%, rgba(0,0,0,.92) 70%); z-index: 1; pointer-events: none; }
.cta-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta-poles { display: flex; align-items: center; gap: clamp(28px, 6vw, 80px); margin-bottom: 40px; --pw: 22px; --ph: 96px; }
.cta-logo { filter: drop-shadow(0 0 18px rgba(255,255,255,.45)); }
.cta-band .lead { margin: 0 auto 44px; }

/* Ubicación */
.loc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: stretch; }
.info { margin: 12px 0 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.info dd { margin: 0; font-size: 17px; }
.info a { border-bottom: 1px solid var(--line-strong); transition: border-color .3s; }
.info a:hover { border-color: #fff; }
.map { min-height: 420px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(1.1); }
@media (max-width: 860px) { .loc-grid { grid-template-columns: 1fr; } .map { min-height: 340px; } }
@media (max-width: 420px) { .info div { grid-template-columns: 1fr; gap: 6px; } }

/* Footer */
.footer { padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }
.footer .small { font-size: 12px; }

/* Botón flotante (móvil) */
.fab {
  position: fixed; z-index: 40; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  height: 56px; display: none; align-items: center; justify-content: center;
  background: #fff; color: #000; font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  transform: translateY(140%); transition: transform .5s var(--ease);
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.fab.is-visible { transform: none; }
@media (max-width: 700px) { .fab { display: flex; } .footer { padding-bottom: 100px; } }

/* Revelados al hacer scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Quiénes somos ---------- */
.studio-media .tilt-inner { aspect-ratio: 4 / 3.4; }
.studio-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.facts { list-style: none; padding: 0; margin: 40px 0 40px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact-k { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.fact-v { font-size: 17px; }
.studio-cta { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 480px) { .facts li { grid-template-columns: 1fr; gap: 4px; } .studio-cta .btn { flex: 1 1 100%; } }

/* ---------- Relieve 3D en fotos ---------- */
[data-tilt] { perspective: 900px; }
.tilt-inner, .g-item[data-tilt] { position: relative; overflow: hidden; background: #111; }
[data-tilt] .tilt-inner, .g-item[data-tilt] {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease);
  transform-style: preserve-3d;
}
[data-tilt].is-tilting .tilt-inner, .g-item[data-tilt].is-tilting { transition: transform .12s linear; }
.tilt-glare, .g-item[data-tilt]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.28), transparent 45%);
  mix-blend-mode: soft-light;
}
[data-tilt].is-tilting .tilt-glare, .g-item[data-tilt].is-tilting::after { opacity: 1; }

/* ---------- Cursor ---------- */
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor iframe { cursor: auto; }
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 300; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; }
.cursor.is-on { opacity: 1; }
.scissors, .cursor-label { position: fixed; left: 0; top: 0; will-change: transform; }
.scissors { overflow: visible; filter: drop-shadow(0 0 1px rgba(0,0,0,.4)); }
.scissors .blade { transform-origin: 19px 19px; transition: transform .35s var(--ease); }
.scissors .blade-a { transform: rotate(-9deg); }
.scissors .blade-b { transform: rotate(9deg); }
.cursor.is-link .blade-a { transform: rotate(-18deg); }
.cursor.is-link .blade-b { transform: rotate(18deg); }
.cursor.is-snip .blade-a { animation: snipA .32s cubic-bezier(.5,0,.2,1); }
.cursor.is-snip .blade-b { animation: snipB .32s cubic-bezier(.5,0,.2,1); }
@keyframes snipA { 0% { transform: rotate(-20deg); } 45% { transform: rotate(2deg); } 100% { transform: rotate(-9deg); } }
@keyframes snipB { 0% { transform: rotate(20deg); } 45% { transform: rotate(-2deg); } 100% { transform: rotate(9deg); } }
.cursor-label {
  font: 700 9px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: #fff;
  opacity: 0; transition: opacity .3s; white-space: nowrap;
}
.cursor.has-label .cursor-label { opacity: 1; }
.snip-hair {
  position: fixed; z-index: 299; pointer-events: none; width: 1.5px; height: var(--len, 10px);
  background: #fff; mix-blend-mode: difference; border-radius: 1px;
  animation: hairFall 1.1s cubic-bezier(.3,.1,.6,1) forwards;
}
@keyframes hairFall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx), 70px) rotate(var(--r)); }
}
@media (hover: none) { .cursor { display: none; } }
.btn, .service-cta, .nav-brand { transition: color .45s var(--ease), border-color .45s var(--ease), background .4s, transform .5s var(--ease); }

/* ---------- Vista previa en servicios ---------- */
.service-preview {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: 260px; height: 320px; overflow: hidden;
  opacity: 0; scale: .7; transition: opacity .35s, scale .5s var(--ease);
}
.service-preview.is-on { opacity: 1; scale: 1; }
.service-preview img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); }

/* marquesina inclinada por la velocidad de scroll */
.marquee { --skew: 0deg; }
.marquee-track span, .marquee-track .hex { transform: skewX(var(--skew)); display: inline-block; }

/* ---------- Poste de barbero ---------- */
.pole { display: flex; flex-direction: column; align-items: center; width: var(--pw, 46px); filter: drop-shadow(0 0 28px rgba(255,255,255,.18)); }
.pole-cap {
  width: 120%; height: calc(var(--pw, 46px) * .5); border-radius: 50% / 40%;
  background: linear-gradient(90deg, #050505, #3a3a3a 35%, #0c0c0c 60%, #000);
  border: 1px solid rgba(255,255,255,.14);
}
.pole-cap:first-child { border-radius: 50% 50% 20% 20% / 70% 70% 30% 30%; }
.pole-cap:last-child { border-radius: 20% 20% 50% 50% / 30% 30% 70% 70%; }
.pole-cap::before { content: ""; display: block; width: 26%; height: 50%; margin: -40% auto 0; border-radius: 50% 50% 0 0; background: inherit; }
.pole-cap:last-child::before { display: none; }
.pole-glass {
  position: relative; width: 100%; height: var(--ph, 210px); overflow: hidden;
  border-left: 1px solid rgba(255,255,255,.2); border-right: 1px solid rgba(255,255,255,.2);
  background: #fff;
}
.pole-stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-48deg, #0a0a0a 0 12px, #f5f5f5 12px 26px);
  background-size: 100% calc(26px / sin(48deg));
  background-position: 0 var(--pole-y, 0px);
}
.pole-glass::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 28%, rgba(255,255,255,.35) 40%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
}
.pole-mini { --pw: 14px; --ph: 40px; filter: none; }
.pole-mini .pole-cap::before { display: none; }

/* ---------- Reserva integrada ---------- */
.book { position: fixed; inset: 0; z-index: 200; }
.book[hidden] { display: none; }
.book-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.book-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  background: #0a0a0a; border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .7s cubic-bezier(.77,0,.18,1);
}
.book.is-open .book-backdrop { opacity: 1; }
.book.is-open .book-panel { transform: none; }
.book-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.book-brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; }
.book-actions { display: flex; align-items: center; gap: 14px; }
.book-ext { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.book-ext:hover { color: #fff; }
.book-close { width: 44px; height: 44px; background: none; border: 1px solid var(--line-strong); display: grid; place-content: center; cursor: pointer; }
.book-close span { width: 18px; height: 1.5px; background: #fff; grid-area: 1 / 1; }
.book-close span:first-child { transform: rotate(45deg); }
.book-close span:last-child { transform: rotate(-45deg); }
.book-body { position: relative; flex: 1; background: #fff; }
.book-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s; }
.book-body.is-loaded iframe { opacity: 1; }
.book-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #0a0a0a; color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; transition: opacity .4s; }
.book-loading .hex { animation: spinHex 1.6s var(--ease) infinite; }
.book-body.is-loaded .book-loading { opacity: 0; pointer-events: none; }
@keyframes spinHex { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .book-ext { display: none; } }

/* ---------- Espejo arqueado (como el del estudio) ---------- */
.mirror .tilt-inner {
  aspect-ratio: 3 / 4.1;
  border-radius: 999px 999px 0 0;
  padding: 10px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08);
}
.mirror img { border-radius: 999px 999px 0 0; height: 100%; transform: scaleX(-1); }
.mirror .tilt-inner::before {
  content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 42%, rgba(255,255,255,.04) 48%, transparent 58%);
  background-size: 250% 100%;
  background-position: var(--sheen, 80%) 0;
  transition: background-position 1s var(--ease);
}
.mirror.is-tilting .tilt-inner::before { --sheen: calc(var(--gx, 50%) * 1.2); transition: background-position .15s linear; }
.mirror .tilt-glare { border-radius: 999px 999px 0 0; inset: 10px; }
.mirror { max-width: 460px; width: 100%; justify-self: center; }

/* ---------- Sillón de barbero dibujado ---------- */
.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.chair { width: clamp(120px, 16vw, 200px); height: auto; color: #fff; flex: none; opacity: .9; }
.chair path { stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); transition: stroke-dashoffset 2.4s var(--ease); }
.chair.is-drawn path { --draw: 0; }
.chair.is-drawn path:nth-child(n+4) { transition-delay: .25s; }
.chair.is-drawn path:nth-child(n+8) { transition-delay: .5s; }
.chair:hover { animation: chairSpin 1.6s var(--ease); }
@keyframes chairSpin { 50% { transform: scaleX(-1); } }
@media (max-width: 600px) { .chair { width: 96px; } }

/* ---------- La capa ---------- */
.cape-sec { position: relative; min-height: 100vh; display: flex; align-items: center; background: #000; overflow: hidden; touch-action: pan-y; }
#cape-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cape-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,0) 62%),
              linear-gradient(to bottom, #000 0%, transparent 14%, transparent 86%, #000 100%); }
.cape-grid { position: relative; z-index: 2; width: 100%; }
.cape-text { max-width: 560px; }
.cape-hint { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 28px; }
.cape-hint .hex { width: 10px; height: 11px; }
.cape-sec.no-gl { background: radial-gradient(ellipse at 70% 50%, #1c1c1c, #000 70%); }
@media (max-width: 860px) {
  .cape-sec { align-items: flex-start; min-height: 110vh; }
  .cape-shade { background: linear-gradient(to bottom, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,0) 62%, #000 100%); }
}

/* ---------- Hero: logo como el rótulo de la fachada (letras corpóreas blancas, retroiluminadas) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-sign { position: relative; margin: 0 0 34px; font-size: clamp(56px, 10.5vw, 158px); line-height: 1; }
.sign-row {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .04em;
  padding: .42em 0 .5em; opacity: 0;
  filter: drop-shadow(0 0 .14em rgba(255,255,255,.24));
  will-change: opacity;
}
/* brillo extra al acercar el cursor: una capa aparte que solo cambia de opacidad */
.hero-sign::after {
  content: ""; position: absolute; inset: -10% -6%; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 50% 45% at 50% 52%, rgba(255,255,255,.12), transparent 70%);
  opacity: var(--glow, 0); transition: opacity .3s;
}
.sign-word {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  line-height: .78; color: #fafafa;
  text-shadow: 0.006em 0.007em 0 #a0a0a0, 0.012em 0.015em 0 #8a8a8a, 0.018em 0.022em 0 #7b7b7b, 0.024em 0.030em 0 #6d6d6d, 0.030em 0.037em 0 #606060, 0.036em 0.045em 0 #545454, 0.042em 0.052em 0 #474747, 0.048em 0.060em 0 #3a3a3a, 0.054em 0.068em 0 #2b2b2b;
}
.sign-mono { width: 1.28em; height: auto; overflow: visible; margin: 0 -.06em; translate: 0 .05em; }
.sign-halo {
  position: absolute; left: 0; top: 50%; width: 100%; height: 160%; translate: 0 -50%;
  background: radial-gradient(ellipse 55% 50% at 45% 50%, rgba(255,255,255,.13), rgba(255,255,255,.04) 45%, transparent 70%);
  opacity: 0; pointer-events: none;
}
body.is-ready .sign-row { animation: signOn 1.7s steps(1, end) .5s forwards, neonHum 8s 2.6s infinite; }
body.is-ready .sign-halo { animation: haloOn 1.9s ease .7s forwards; }
@keyframes signOn { 0%{opacity:0} 6%{opacity:.7} 9%{opacity:.05} 22%{opacity:1} 25%{opacity:.2} 31%{opacity:.05} 50%{opacity:.9} 54%{opacity:.35} 62%,100%{opacity:1} }
@keyframes neonHum { 0%,91%,100%{opacity:1} 92%{opacity:.6} 93%{opacity:1} 95%{opacity:.82} 96%{opacity:1} }
@keyframes haloOn { 0%{opacity:0} 40%{opacity:.4} 45%{opacity:.1} 100%{opacity:1} }
@media (max-width: 640px) { .hero-sign { font-size: 15vw; } }
@media (prefers-reduced-motion: reduce) { .sign-row, .sign-halo { opacity: 1 !important; animation: none !important; } }

/* ---------- Poste de barbero = barra de progreso del scroll ---------- */
.pole-rail {
  position: fixed; right: 22px; top: 50%; z-index: 90; translate: 0 -50%;
  width: 6px; height: min(46vh, 380px); border-radius: 6px;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  opacity: 0; transition: opacity 1s .6s; pointer-events: none;
}
body.is-ready .pole-rail { opacity: 1; }
.pole-rail::before, .pole-rail::after {
  content: ""; position: absolute; left: 50%; translate: -50% 0; width: 12px; height: 4px; border-radius: 2px; background: #2a2a2a; box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.pole-rail::before { top: -8px; } .pole-rail::after { bottom: -8px; }
.pole-rail-fill {
  position: absolute; left: 0; right: 0; top: 0; height: calc(var(--p, 0) * 100%);
  border-radius: 6px; overflow: hidden; background: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,.35);
}
.pole-rail .pole-stripes { background: repeating-linear-gradient(-48deg, #0a0a0a 0 4px, #f5f5f5 4px 9px); background-size: 100% calc(9px / sin(48deg)); }
.pole-rail-label {
  position: absolute; top: calc(100% + 22px); left: 50%; translate: -50% 0; writing-mode: vertical-rl;
  font-size: 9px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 860px) { .pole-rail { right: 8px; width: 4px; height: 30vh; } .pole-rail-label { display: none; } }
.hero-scroll { display: none; }

/* ---------- Cabecera de servicios ---------- */
.services-head { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 32px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.services-title { margin: 0; }
.services-aside p { color: var(--muted); margin: 0 0 22px; font-size: 16px; line-height: 1.6; }
@media (max-width: 760px) { .services-head { grid-template-columns: 1fr; } .services-aside .btn { width: 100%; justify-content: center; } }

/* miniatura del tipo de corte en pantallas táctiles (en escritorio sale la foto que sigue al cursor) */
.service-thumb { display: none; }
@media (hover: none) {
  .service { grid-template-columns: 84px 1fr; gap: 12px 18px; }
  .service-num { display: none; }
  .service-thumb { display: block; grid-row: 1 / span 2; align-self: start; width: 84px; height: 84px; object-fit: cover; filter: grayscale(1) contrast(1.15); background: #111; }
  .service-cta { grid-column: 2; justify-self: start; }
}

/* ---------- Servicios: grupos y precios ---------- */
.service-group { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 48px 0 0; padding-bottom: 14px; }
.service-group:first-of-type { margin-top: 0; }
.service { grid-template-columns: 80px 1fr auto auto; }
.service-price { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); white-space: nowrap; letter-spacing: .02em; }
.service-time { color: #fff; }
@media (max-width: 700px) {
  .service { grid-template-columns: 44px 1fr auto; }
  .service-price { grid-column: 3; grid-row: 1; align-self: start; font-size: 24px; }
}
@media (hover: none) {
  .service { grid-template-columns: 84px 1fr auto; }
  .service-price { grid-column: 3; grid-row: 1; align-self: start; font-size: 24px; }
}

/* ---------- Reseñas: carrusel con estrellas doradas ---------- */
:root { --gold-1: #f7e3a1; --gold-2: #d4a93c; --gold-3: #8a6416; }
.reviews { padding: clamp(64px, 9vw, 120px) 0; background: #050505; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.reviews-head .eyebrow { margin: 0; }
.reviews-score { display: flex; align-items: center; gap: 22px; }
.score-num { font-family: var(--display); font-weight: 900; font-size: clamp(72px, 9vw, 120px); line-height: .8; }
.reviews-score p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.stars { display: inline-flex; gap: 4px; }
.stars svg { width: 18px; height: 18px; fill: url(#gold); overflow: visible; }
.stars-lg svg { width: 30px; height: 30px; }
.stars svg { fill: var(--gold-2); }
/* las estrellas grandes brillan; las del carrusel quedan doradas fijas (más ligero) */
.stars-lg svg { filter: drop-shadow(0 0 7px rgba(240, 200, 90, .55)); animation: starGlow 3.2s ease-in-out infinite; will-change: transform, opacity; }
.review .stars svg { fill: #e0b54a; }
.stars-lg svg:nth-child(2) { animation-delay: .15s; } .stars-lg svg:nth-child(3) { animation-delay: .3s; }
.stars-lg svg:nth-child(4) { animation-delay: .45s; } .stars-lg svg:nth-child(5) { animation-delay: .6s; }
@keyframes starGlow {
  0%, 70%, 100% { transform: scale(1); opacity: .88; }
  80% { transform: scale(1.16); opacity: 1; }
}
.reviews-viewport { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews-track { display: flex; gap: 20px; width: max-content; animation: reviewsLoop 60s linear infinite; will-change: transform; }
.reviews-viewport:hover .reviews-track { animation-play-state: paused; }
@keyframes reviewsLoop { to { transform: translateX(calc(-50% - 10px)); } }
.review {
  margin: 0; width: clamp(260px, 26vw, 340px); padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 18px;
  border: 1px solid var(--line-strong); background: linear-gradient(160deg, #111 0%, #080808 100%);
  transition: border-color .4s, transform .5s var(--ease);
}
.review:hover { border-color: rgba(212,169,60,.55); transform: translateY(-4px); }
.review-text { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; min-height: 1em; }
.review-text.is-plain { color: var(--muted); font-weight: 700; font-size: 22px; letter-spacing: .04em; }
.review figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.review figcaption strong { font-weight: 600; font-size: 16px; }
.review figcaption span { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .reviews-track { animation: none; } .reviews-viewport { overflow-x: auto; } .stars svg { animation: none; } }

/* ---------- Abierto / cerrado ---------- */
.open-status { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 13px; margin-bottom: 26px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: rgba(0,0,0,.62); }
.open-status strong { font-weight: 600; }
.open-status .open-text { color: #ddd; }
.open-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #666; flex: none; }
.open-status.is-open { border-color: rgba(52, 211, 107, .45); }
.open-status.is-open .open-dot { background: #2ee06f; box-shadow: 0 0 10px #2ee06f; animation: openBlink 1.4s ease-in-out infinite; }
.open-status.is-open .open-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #2ee06f; animation: openPing 1.4s ease-out infinite; }
.open-status.is-closed .open-dot { background: #e5484d; box-shadow: 0 0 8px rgba(229,72,77,.6); }
@keyframes openBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes openPing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.open-status-lg { margin: 28px 0 24px; font-size: 13px; }

/* ---------- Horario ---------- */
.hours-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hours-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hours-row { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 16px; padding: 22px 8px; border-bottom: 1px solid var(--line); transition: background .4s; }
.hours-day { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: .03em; }
.hours-time { color: #cfcfcf; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.hours-row.is-closed .hours-day, .hours-row.is-closed .hours-time { color: var(--muted); }
.hours-row.is-closed .hours-time { text-transform: uppercase; font-size: 13px; letter-spacing: .2em; }
.hours-today { display: none; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; background: #fff; color: #000; padding: 6px 12px; border-radius: 999px; }
.hours-row.is-today { background: rgba(255,255,255,.04); }
.hours-row.is-today .hours-today { display: inline-block; }
.hours-row.is-today .hours-time { color: #fff; }
@media (max-width: 860px) { .hours-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hours-row { grid-template-columns: 1fr auto; gap: 4px 12px; } .hours-time { grid-column: 1; font-size: 14px; } .hours-today { grid-column: 2; grid-row: 1 / span 2; } }
@media (prefers-reduced-motion: reduce) { .open-dot, .open-dot::after { animation: none !important; } }

/* aviso al abrir la reserva */
.book-toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; translate: -50% 20px; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: #fff; color: #000; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  transition: opacity .4s, translate .5s var(--ease); }
.book-toast img { filter: invert(1); }
.book-toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- Horario y ubicación (una sola sección) ---------- */
.visit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
.visit .info { margin: 8px 0 0; }
.visit .open-status-lg { margin: 26px 0 18px; }
.visit-hours { scroll-margin-top: 100px; }
.map-card { position: relative; display: block; height: clamp(360px, 46vw, 560px); overflow: hidden; border: 1px solid var(--line-strong); background: #0b0b0b; isolation: isolate; }
.map-card iframe { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); border: 0; pointer-events: none;
  filter: grayscale(1) invert(1) contrast(1.35) brightness(.78); transform: scale(1.02); transition: transform 1.4s var(--ease), filter .8s; }
.map-card:hover iframe { transform: scale(1.07); filter: grayscale(1) invert(1) contrast(1.45) brightness(.9); }
.map-shade { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(ellipse 45% 55% at 50% 50%, transparent 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.92) 100%),
  linear-gradient(to top, rgba(0,0,0,.85), transparent 35%); }
.map-grid { position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: screen;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 64px 64px; }
.map-pin { position: absolute; left: 50%; top: 50%; translate: -50% -100%; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.map-pin-head { position: relative; z-index: 2; width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 0 6px rgba(255,255,255,.12); transition: transform .5s var(--ease); }
.map-pin-head img { width: 32px; height: 32px; filter: invert(1); }
.map-pin-stem { width: 2px; height: 26px; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.map-pin-ring { position: absolute; left: 50%; bottom: -6px; width: 22px; height: 8px; translate: -50% 0; border-radius: 50%; border: 1.5px solid #fff; opacity: 0; animation: pinRing 2.4s ease-out infinite; }
.map-pin-ring + .map-pin-ring { animation-delay: 1.2s; }
@keyframes pinRing { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }
.map-card:hover .map-pin-head { transform: translateY(-6px); }
.map-label { position: absolute; left: clamp(20px, 3vw, 36px); bottom: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 6px; }
.map-label-k { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 4vw, 54px); line-height: .9; }
.map-label-v { color: #bdbdbd; font-size: 14px; letter-spacing: .04em; }
.map-go { position: absolute; right: clamp(20px, 3vw, 36px); bottom: clamp(20px, 3vw, 32px); padding: 14px 20px; background: #fff; color: #000; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; transition: transform .4s var(--ease); }
.map-card:hover .map-go { transform: translateY(-3px); }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .map-go { left: 20px; right: auto; bottom: auto; top: 20px; } }
@media (prefers-reduced-motion: reduce) { .map-pin-ring { animation: none; } }

/* ---------- Capa con pelo + máquina de cortar ---------- */
#hair-canvas, #hair-fall { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cape-sec { cursor: auto; }
.cape-sec.is-clipping { cursor: none; }
.cape-sec .cape-text { position: relative; }
.hair-meter { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: baseline; max-width: 320px; margin-top: 22px; }
.hair-meter-k { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.hair-meter-val { font-family: var(--display); font-weight: 800; font-size: 28px; justify-self: end; font-variant-numeric: tabular-nums; }
.hair-meter-bar { grid-column: 1 / -1; height: 2px; background: var(--line-strong); overflow: hidden; }
.hair-meter-bar i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.hair-done { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .6s, transform .6s var(--ease); }
.hair-done p { flex: 1 1 100%; margin: 0 0 4px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 26px; }
.hair-finished .hair-done { opacity: 1; transform: none; pointer-events: auto; }
.clipper { position: fixed; left: 0; top: 0; z-index: 310; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
.clipper svg { display: block; translate: -23px -2px; rotate: -18deg; transform-origin: 23px 2px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.7)); }
.clipper.is-buzz svg { animation: buzz .07s linear infinite; }
@keyframes buzz { 0% { translate: -23.6px -2px; } 50% { translate: -22.4px -1.4px; } 100% { translate: -23.6px -2px; } }
.is-clipping-on .clipper { opacity: 1; }
.is-clipping-on .cursor { opacity: 0 !important; }
@media (hover: none) { .clipper { display: none; } }

/* equipos modestos o movimiento reducido: menos efectos */
.low-end .nav, .low-end .nav.is-scrolled { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.low-end .stars-lg svg { animation: none; }

/* ---------- Títulos: mayúsculas condensadas + cursiva serif + contorno ---------- */
:root { --serif: "Instrument Serif", "Times New Roman", serif; }
.h2 .t-caps { display: inline-block; }
.h2 .t-serif {
  font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none;
  letter-spacing: -.02em; line-height: .85; display: inline-block; font-size: 1.12em;
}
.h2 .t-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.9); display: inline-block; }
.h2 .t-dot { font-style: normal; color: #fff; opacity: .35; }
.h2.h2-stack > * { display: block; }
.h2-stack .t-sm { font-size: .62em; margin-bottom: .08em; color: #bdbdbd; }
.h2-stack .t-line { display: block; }
.h2-mix .t-serif { margin-left: .04em; }
/* capa: frase pequeña en mayúsculas espaciadas y la respuesta enorme en cursiva */
.h2-cape .t-sm {
  display: block; font-size: clamp(16px, 1.7vw, 22px); font-weight: 600; letter-spacing: .32em; line-height: 1.4;
  color: #cfcfcf; margin-bottom: .7em; padding-bottom: .7em; border-bottom: 1px solid rgba(255,255,255,.22); width: max-content; max-width: 100%;
}
.h2-cape .t-xl { display: block; font-size: clamp(64px, 9.2vw, 138px); line-height: .82; }
.h2 .t-serif, .h2 .t-outline { transition: letter-spacing 1.2s var(--ease); }
.reveal:not(.is-in) .t-serif { letter-spacing: .04em; }
@media (max-width: 640px) { .h2 .t-outline { -webkit-text-stroke-width: 1.1px; } .h2-cape .t-sm { letter-spacing: .22em; } }

/* Horario y ubicación: las dos columnas empiezan y terminan a la misma altura */
@media (min-width: 861px) {
  .visit-grid { align-items: stretch; }
  .visit-grid > div:first-child { display: flex; flex-direction: column; }
  .visit .info { margin-top: auto; }
  .visit .open-status-lg { align-self: flex-start; }
  .visit-hours { display: flex; flex-direction: column; }
  .visit-hours .hours-list { flex: 1; display: flex; flex-direction: column; }
  .visit-hours .hours-row { flex: 1; padding-top: 14px; padding-bottom: 14px; }
}

/* Horario y ubicación: foto del local (los sillones con la capa), oscurecida */
.visit { position: relative; overflow: hidden; isolation: isolate; }
.visit::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("assets/interior.jpg") 50% 45% / cover no-repeat;
  filter: grayscale(1) brightness(.55) contrast(1.2); opacity: .7;
}
.visit::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 42%, rgba(0,0,0,.6) 100%),
    linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 62%, #000 96%);
}
.visit .hours-row:not(.is-today) { background: rgba(0,0,0,.25); }

/* ---------- Quiénes somos: Ali & Hamu ---------- */
.team-photo { position: relative; margin: 0; max-width: 470px; width: 100%; justify-self: center; padding: 0 0 18px 18px; }
.team-photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: calc(100% - 18px); height: calc(100% - 18px); border: 1px solid var(--line-strong); pointer-events: none; }
.team-photo .tilt-inner { aspect-ratio: 1000 / 1300; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.08); display: block; }
.team-photo .tilt-inner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 38%); }
.team-cap { position: absolute; left: 26px; right: 26px; bottom: 22px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.team-cap em { font-family: var(--serif); font-style: italic; font-size: clamp(40px, 4.4vw, 60px); line-height: .9; }
.team-cap span { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #bdbdbd; }
.team-side { position: absolute; right: -34px; top: 0; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.team-stats { list-style: none; padding: 0; margin: 34px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.team-stats li { padding: 20px 0 18px; display: flex; flex-direction: column; gap: 6px; }
.team-stats li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.team-stats strong { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 3.6vw, 52px); line-height: .9; }
.team-star { color: var(--gold-2, #d4a93c); font-size: .5em; vertical-align: .55em; margin-left: 4px; }
.team-stats li > span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.barbers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.barber { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; padding: 22px 22px 18px; border: 1px solid var(--line-strong); overflow: hidden; transition: border-color .4s, background .4s; }
.barber::before { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: 0; }
.barber > * { position: relative; z-index: 1; transition: color .4s; }
.barber-num { grid-column: 2; grid-row: 1; font-size: 11px; letter-spacing: .2em; color: var(--muted); align-self: start; }
.barber-name { grid-column: 1; grid-row: 1; font-family: var(--serif); font-style: italic; font-size: clamp(44px, 4.2vw, 62px); line-height: .85; }
.barber-role { grid-column: 1 / -1; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.barber-go { grid-column: 1 / -1; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.barber:hover { border-color: #fff; }
.barber:hover::before { transform: scaleY(1); }
.barber:hover > * { color: #000; }
.barber:hover .barber-go { border-color: rgba(0,0,0,.2); }
@media (max-width: 860px) { .team-photo { order: 2; } .team-side { display: none; } }
@media (max-width: 480px) { .team-stats li + li { padding-left: 14px; } .barbers { grid-template-columns: 1fr; } }

/* ---------- Pie de página ---------- */
.footer { padding: clamp(56px, 7vw, 90px) 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-quote { margin: 22px 0 0 !important; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 36px) !important; line-height: .95; color: #fff !important; max-width: 12ch; }
.footer-quote em { font-family: var(--serif); font-weight: 400; text-transform: none; font-size: 1.1em; display: block; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.footer-col p { color: #bdbdbd !important; font-size: 14px !important; line-height: 1.6; }
.footer-k { font-size: 11px !important; letter-spacing: .26em; text-transform: uppercase; color: var(--muted) !important; margin-bottom: 6px !important; }
.footer-col a, .footer-link { color: #e5e5e5; font: inherit; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.footer-col a:hover, .footer-link:hover { color: #fff; border-color: #fff; }
.footer-social { display: inline-flex; align-items: center; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; }
.footer-bottom p { font-size: 12px !important; letter-spacing: .08em; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Aviso de cookies ---------- */
.cookie-box { position: fixed; left: 20px; bottom: 20px; z-index: 400; width: min(420px, calc(100vw - 40px)); padding: 24px 24px 22px; background: #0b0b0b; border: 1px solid var(--line-strong); box-shadow: 0 30px 60px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .5s, transform .6s var(--ease); }
.cookie-box.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cookie-title { margin: 0 0 10px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1; }
.cookie-title em { font-family: var(--serif); font-weight: 400; text-transform: none; font-size: 1.1em; }
.cookie-text { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: #bdbdbd; }
.cookie-text a { color: #fff; border-bottom: 1px solid var(--line-strong); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 auto; justify-content: center; padding: 14px 18px; }
@media (max-width: 700px) { .cookie-box { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* mapa bloqueado hasta aceptar */
.map-off { position: absolute; left: 50%; top: 18px; translate: -50% 0; z-index: 3; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.maps-on .map-off { display: none; }
@media (max-width: 600px) { .map-off { white-space: normal; text-align: center; width: 80%; } }

/* ---------- Páginas legales ---------- */
.legal-page { overflow-x: hidden; }
.legal-nav { position: sticky; display: flex; justify-content: space-between; align-items: center; }
.legal-back { padding: 12px 18px; font-size: 12px; }
.legal { padding: clamp(60px, 9vw, 120px) 0 clamp(60px, 8vw, 100px); }
.legal-wrap { max-width: 860px; }
.legal-upd { color: var(--muted); font-size: 13px; margin: -8px 0 30px; }
.legal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; }
.legal-tabs a { padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #cfcfcf; transition: background .3s, color .3s; }
.legal-tabs a:hover { border-color: #fff; color: #fff; }
.legal-tabs a[aria-current="page"] { background: #fff; color: #000; border-color: #fff; }
.legal-body { color: #c9c9c9; font-size: 16px; line-height: 1.75; font-weight: 300; }
.legal-body h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3vw, 34px); color: #fff; margin: 52px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); letter-spacing: .01em; }
.legal-body strong { color: #fff; font-weight: 600; }
.legal-body a { color: #fff; border-bottom: 1px solid var(--line-strong); }
.legal-data { margin: 18px 0 0; border-top: 1px solid var(--line); }
.legal-data div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-data dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 5px; }
.legal-data dd { margin: 0; color: #fff; }
.legal-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.legal-table th, .legal-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.legal-table td:first-child { color: #fff; font-family: ui-monospace, monospace; font-size: 13px; }
.ph { color: #000; background: #fff; padding: 1px 6px; font-weight: 500; }
@media (max-width: 520px) { .legal-data div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Galería: en blanco y negro, un foco de color sigue al ratón ---------- */
@property --r { syntax: "<length>"; inherits: true; initial-value: 0px; }
.shots-hint { margin: 18px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.shots { columns: 4 240px; column-gap: 14px; margin-top: 10px; }
.shot { --x: 50%; --y: 50%; --r: 0px; position: relative; margin: 0 0 14px; break-inside: avoid; overflow: hidden; background: #111; cursor: none; transition: --r .7s var(--ease); }
.shot img { display: block; width: 100%; height: auto; }
.shot-bw { filter: grayscale(1) contrast(1.08) brightness(.82); transition: transform 1.2s var(--ease), filter .6s; }
.shot-color { position: absolute; inset: 0; height: 100% !important; object-fit: cover; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, #000 45%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, #000 45%, transparent 100%);
  transition: transform 1.2s var(--ease); }
.shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle calc(var(--r) * 1.2) at var(--x) var(--y), rgba(255,255,255,.08), transparent 70%); mix-blend-mode: screen; }
.shot:hover { --r: 260px; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #fff; padding: 6px 10px; background: rgba(0,0,0,.55); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.shot:hover figcaption, .shot.is-lit figcaption { opacity: 1; transform: none; }
.shot.is-more { display: none; }
.shots.show-all .shot.is-more { display: block; animation: shotIn .7s var(--ease) both; }
@keyframes shotIn { from { opacity: 0; transform: translateY(18px); } }
.shots-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.shots.show-all + .shots-foot .shots-more { display: none; }
@media (hover: none) { .shot { cursor: auto; } .shot.is-lit { --r: 1400px; } }
@media (max-width: 600px) { .shots { columns: 2; column-gap: 8px; } .shot { margin-bottom: 8px; } }

/* ---------- Reserva: el sillón que espera ---------- */
.cta-chair { position: relative; z-index: 2; margin: 56px auto 0; width: min(320px, 78vw); }
.cta-chair img { display: block; width: 100%; aspect-ratio: 628 / 700; object-fit: cover; object-position: 50% 0; filter: grayscale(1) contrast(1.1) brightness(.85); border: 1px solid var(--line-strong); }
.cta-chair figcaption { margin-top: 14px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: .02em; }
.cta-chair figcaption em { font-family: var(--serif); font-weight: 400; text-transform: none; font-size: 1.15em; }
@media (min-width: 1000px) {
  .cta-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; text-align: left; padding-left: max(24px, calc((100vw - 1240px) / 2)); padding-right: max(24px, calc((100vw - 1240px) / 2)); column-gap: 60px; }
  .cta-band .cta-inner { align-items: flex-start; padding: 0; max-width: none; margin: 0; }
  .cta-band .lead { margin-left: 0; }
  .cta-chair { margin: 0; width: 100%; max-width: 440px; justify-self: end; }
  .cta-chair::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--line-strong); z-index: -1; }
  .cta-chair figcaption { position: absolute; left: -40px; bottom: 34px; background: #000; padding: 14px 20px; border: 1px solid var(--line-strong); }
}

/* ---------- El barbero: Hamu ---------- */
.barber-sec { border-top: 1px solid var(--line); }
.barber-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.barber-media { position: relative; padding: 0 22% 14% 0; }
.barber-portrait { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line-strong); }
.barber-portrait img, .barber-action img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.08); transition: filter .8s, transform 1.2s var(--ease); }
.barber-media:hover .barber-portrait img { filter: grayscale(0); }
.barber-action { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border: 6px solid #000; outline: 1px solid var(--line-strong); }
.barber-action:hover img { filter: grayscale(0); transform: scale(1.04); }
.barber-action figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; background: rgba(0,0,0,.65); padding: 5px 8px; }
.barber-tag { position: absolute; left: -14px; top: 26px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.team-stats strong small { font-size: .4em; margin-left: 4px; letter-spacing: .1em; color: var(--muted); }
.barber-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 26px; }
.barber-social a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 16px 18px; border: 1px solid var(--line-strong); transition: border-color .3s, background .3s, color .3s; }
.barber-social svg { grid-row: span 2; }
.barber-social span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.barber-social em { font-style: normal; font-size: 15px; }
.barber-social a:hover { background: #fff; color: #000; border-color: #fff; }
.barber-social a:hover span { color: #555; }
.barber-cuts { margin-top: clamp(56px, 7vw, 90px); }
.barber-cuts-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.barber-cuts-head span { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.shots.shots-row { columns: auto; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23vw, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: #444 transparent; margin: 0; }
.shots-row .shot { margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; }
.shots-row .shot-bw { height: 100%; object-fit: cover; }
@media (max-width: 860px) { .barber-grid { grid-template-columns: 1fr; } .barber-tag { display: none; } }
@media (max-width: 480px) { .barber-social { grid-template-columns: 1fr; } .shots.shots-row { grid-auto-columns: 70vw; } }
.barber-sec.is-flip .barber-media { order: 2; padding: 0 0 14% 22%; }
.barber-sec.is-flip .barber-action { right: auto; left: 0; }
.barber-sec.is-flip .barber-tag { left: auto; right: -14px; transform: none; }
.barber-sec.is-flip .barber-portrait img { object-position: 35% 50%; }
.barber-sec + .barber-sec { border-top: 0; padding-top: 0; }
.team-name { position: absolute; z-index: 2; translate: -50% 0; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; background: #fff; color: #000; padding: 5px 9px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.team-name::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 18px; background: #fff; }
.team-photo:hover .team-name { opacity: 1; }
@media (hover: none) { .team-name { opacity: 1; } }
@media (max-width: 860px) { .barber-sec.is-flip .barber-media { order: 0; } }

/* ---------- Historia ---------- */
.story { border-top: 1px solid var(--line); }
.story-list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); counter-reset: s; position: relative; }
.story-list::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--story-h, 0px)); height: 0; }
.story-item figure { margin: 0 0 18px; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line-strong); }
.story-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .8s, transform 1.2s var(--ease); }
.story-item:hover img { filter: grayscale(0); transform: scale(1.04); }
.story-k { display: block; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #fff; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.story-item p { margin: 10px 0 0; color: #bdbdbd; font-weight: 300; line-height: 1.6; }
.story-item:nth-child(2) { margin-top: 60px; }
@media (max-width: 760px) { .story-list { grid-template-columns: 1fr; } .story-item:nth-child(2) { margin-top: 0; } }

/* =========================================================
   IDIOMAS
   ========================================================= */
html.i18n-wait body { opacity: 0; }
body { transition: opacity .35s ease; }
.nav-links { margin-inline-start: auto; }
.lang { position: relative; z-index: 3; margin-inline-start: 28px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  background: transparent; color: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
  font: 600 11px/1 var(--body); letter-spacing: .2em; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.lang-btn:hover, .lang.is-open .lang-btn { background: #fff; color: #000; border-color: #fff; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 200px; margin: 0; padding: 8px;
  list-style: none; background: #000; border: 1px solid var(--line-strong);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 12px;
  background: none; border: 0; color: #cfcfcf; cursor: pointer; text-align: start; font: 400 14px/1.2 var(--body);
  transition: background .25s, color .25s;
}
.lang-menu button:hover { background: #fff; color: #000; }
.lang-menu button[aria-current="true"] { color: #fff; }
.lang-menu button[aria-current="true"] .lang-code::after { content: " •"; }
.lang-code { font: 700 11px/1 var(--body); letter-spacing: .18em; width: 30px; opacity: .7; }
.lang-menu button[lang="ar"] .lang-name { font-family: "Noto Sans Arabic", var(--body); }
@media (max-width: 860px) {
  .lang { margin-inline-start: auto; margin-inline-end: 6px; }
  .lang-btn { height: 36px; padding: 0 12px; }
}
.legal-actions { display: flex; align-items: center; gap: 12px; }
.legal-actions .lang { margin: 0; }
@media (max-width: 520px) { .legal-back { padding: 10px 12px; font-size: 11px; } .legal-nav .nav-brand span { display: none; } }

/* Árabe: tipografías con glifos árabes y sin espaciado entre letras */
html[lang="ar"] {
  --display: "Big Shoulders Display", "Noto Kufi Arabic", "Arial Narrow", sans-serif;
  --body: "Manrope", "Noto Sans Arabic", system-ui, sans-serif;
  --serif: "Instrument Serif", "Noto Kufi Arabic", serif;
}
html[lang="ar"] body *:not(.lang-code):not(.lang-btn):not(.nav-brand span) { letter-spacing: 0 !important; }
html[lang="ar"] em, html[lang="ar"] .t-serif, html[lang="ar"] .cookie-title em { font-style: normal; }
html[lang="ar"] .h2 .t-serif { font-weight: 500; }
/* el logotipo y las marcas siempre de izquierda a derecha */
html[dir="rtl"] .sign-row, html[dir="rtl"] .nav-brand, html[dir="rtl"] .intro { direction: ltr; }

/* =========================================================
   MÓVIL COMPACTO: menos scroll, todo más ajustado
   ========================================================= */
@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .h2 { font-size: clamp(38px, 11vw, 52px); }

  /* Servicios: nombre y precio en una línea, descripción y botón debajo */
  .services-head { margin-bottom: 22px; }
  .services-aside .btn { display: none; }
  .services-aside p { margin-bottom: 0; }
  .service-group { margin-top: 26px; padding-bottom: 8px; }
  .service, .service:nth-child(n) {
    grid-template-columns: 1fr auto; grid-template-areas: "name price" "desc cta";
    gap: 6px 14px; padding: 16px 0; align-items: center;
  }
  .service-num, .service-thumb { display: none; }
  .service > div { display: contents; }
  .service h3 { grid-area: name; font-size: 26px; margin: 0; }
  .service p { grid-area: desc; font-size: 13px; line-height: 1.45; }
  .service-price { grid-area: price; font-size: 24px; }
  .service-cta { grid-area: cta; padding: 8px 12px; font-size: 10px; align-self: end; white-space: nowrap; }
  .service:hover h3 { transform: none; }
  .note { margin-top: 18px; font-size: 12px; }

  /* Quiénes somos: foto más baja y fichas de barbero en dos columnas */
  .team-photo { max-width: 100%; padding: 0 0 12px 12px; }
  .team-photo .tilt-inner { aspect-ratio: 4 / 3.4; }
  .barbers { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 0; }
  .barber { padding: 16px 14px 14px; }
  .studio-cta { display: none; }
  .team-stats { margin-bottom: 18px; }

  /* Ali y Hamu: fotos en dos columnas, redes compactas */
  .barber-grid { gap: 26px; }
  .barber-media { padding: 0; display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }
  .barber-portrait, .barber-action { position: relative; width: auto; aspect-ratio: 4 / 5; border: 1px solid var(--line-strong); outline: 0; }
  .barber-social { gap: 8px; margin-bottom: 18px; }
  .barber-social a { padding: 11px 12px; gap: 0 10px; }
  .barber-social em { font-size: 13px; }
  .barber-cuts { margin-top: 28px; }
  .shots.shots-row { grid-auto-columns: 42vw; gap: 8px; }

  /* Historia: carrusel horizontal */
  .story-list { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 74vw; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 24px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .story-list::-webkit-scrollbar { display: none; }
  .story-item { scroll-snap-align: start; }
  .story-item figure { aspect-ratio: 4 / 3; margin-bottom: 12px; }
  .story-item p { font-size: 13px; }

  /* Lema y experiencia */
  .quote { padding: 72px 0; }

  /* Galería: rejilla de 3 columnas y 9 fotos al principio */
  .shots:not(.shots-row) { columns: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .shots:not(.shots-row) .shot { margin: 0; aspect-ratio: 1; }
  .shots:not(.shots-row) .shot-bw { height: 100%; object-fit: cover; }
  .shots:not(.shots-row) .shot:nth-child(n+10) { display: none; }
  .shots.show-all:not(.shots-row) .shot:nth-child(n+10) { display: block; }
  .shot figcaption { display: none; }
  .shots-foot { margin-top: 18px; gap: 8px; }

  /* Reservar: la silla al lado del texto, pequeña */
  .cta-band { padding-top: 64px; padding-bottom: 64px; }
  .cta-chair { width: min(230px, 62vw); margin-top: 32px; }
  .cta-chair figcaption { font-size: 18px; margin-top: 10px; }

  /* Horario y ubicación: filas compactas y mapa más bajo */
  .info > div { padding: 10px 0; }
  .hours-row, .visit-hours .hours-row { grid-template-columns: 1fr auto auto; padding: 10px 8px; gap: 10px; }
  .hours-day { font-size: 16px; }
  .hours-time { grid-column: auto; font-size: 12.5px; text-align: end; }
  .hours-today { grid-column: auto; grid-row: auto; }
  .map-card { height: 240px; }

  .barber-sec.is-flip .barber-media { padding: 0; }
  .barber-sec .barber-action, .barber-sec.is-flip .barber-action { position: relative; left: auto; right: auto; aspect-ratio: auto; height: 100%; }
  .cape-sec { min-height: 92svh; }
  .map-off { top: 70px; }

  /* Footer en dos columnas */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-bottom: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Móvil: botones en cápsula y reserva flotante */
@media (max-width: 700px) {
  .btn, .service-cta, .map-go, .cookie-box .btn, .barber-social a, .legal-back { border-radius: 999px; }
  .btn { --h: 50px; padding: 0 26px; }
  .service-cta { padding: 8px 14px; }
  .barber-social a { padding: 10px 16px; }
  .fab {
    left: 50%; right: auto; width: min(300px, calc(100% - 64px)); height: 54px;
    translate: -50% 0; border-radius: 999px; gap: 10px;
    box-shadow: 0 14px 34px rgba(0,0,0,.65), 0 0 0 6px rgba(255,255,255,.08);
  }
}

/* =========================================================
   TABLETS (iPad vertical y horizontal)
   ========================================================= */
@media (min-width: 701px) and (max-width: 1024px) {
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 44px; }
  .cta-band { padding-top: 110px; padding-bottom: 110px; }
  .quote { padding: 110px 0; }
}
/* Vertical: fotos de Ali y Hamu en paralelo en vez de una encima de otra */
@media (min-width: 701px) and (max-width: 860px) {
  .barber-grid { gap: 40px; }
  .barber-media, .barber-sec.is-flip .barber-media { padding: 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; max-width: 640px; }
  .barber-sec .barber-action, .barber-sec.is-flip .barber-action { position: relative; left: auto; right: auto; width: auto; aspect-ratio: auto; height: 100%; border: 1px solid var(--line-strong); outline: 0; }
  .team-photo { max-width: 520px; }
  .cape-sec { min-height: 78vh; }
  .shots.shots-row { grid-auto-columns: 30vw; }
  .story-item:nth-child(2) { margin-top: 36px; }
  .map-card { height: 380px; }
}
/* Pantallas táctiles hasta tablet: botones en cápsula y reserva flotante */
@media (hover: none) and (max-width: 1024px) {
  .btn, .service-cta, .map-go, .cookie-box .btn, .barber-social a, .legal-back { border-radius: 999px; }
}
@media (hover: none) and (min-width: 701px) and (max-width: 1024px) {
  .fab {
    display: flex; left: 50%; right: auto; width: 320px; height: 56px; translate: -50% 0; border-radius: 999px;
    bottom: max(24px, env(safe-area-inset-bottom));
    box-shadow: 0 14px 34px rgba(0,0,0,.65), 0 0 0 6px rgba(255,255,255,.08);
  }
  .footer { padding-bottom: 110px; }
}
/* Tablets: galería en rejilla de 4 columnas, 12 fotos al principio */
@media (min-width: 701px) and (max-width: 1024px) {
  .shots:not(.shots-row) { columns: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .shots:not(.shots-row) .shot { margin: 0; aspect-ratio: 4 / 5; }
  .shots:not(.shots-row) .shot-bw { height: 100%; object-fit: cover; }
}

/* Menú móvil: lista ordenada, alineada a la izquierda, con datos de contacto abajo */
.nav-extra { display: none; }
@media (max-width: 860px) {
  .nav-links {
    justify-content: flex-start; align-items: stretch; gap: 0;
    padding: calc(96px + env(safe-area-inset-top)) var(--gutter) calc(28px + env(safe-area-inset-bottom));
    counter-reset: nav; overflow-y: auto;
  }
  .nav-links a:not(.btn):not(.nav-extra a) {
    counter-increment: nav; display: flex; align-items: center; gap: 18px;
    padding: 18px 0; border-bottom: 1px solid var(--line);
    font-size: clamp(26px, 7.4vw, 34px); letter-spacing: .02em; line-height: 1; text-transform: uppercase;
    opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease);
  }
  .nav-links a:not(.btn):not(.nav-extra a):first-child { border-top: 1px solid var(--line); }
  .nav-links a:not(.btn):not(.nav-extra a)::before {
    content: counter(nav, decimal-leading-zero); font-family: var(--body); font-size: 11px; font-weight: 500;
    letter-spacing: .2em; color: var(--muted); width: 26px; flex: none;
  }
  .nav-links a:not(.btn):not(.nav-extra a)::after {
    content: "→"; position: static; height: auto; background: none; transform: none;
    margin-inline-start: auto; font-family: var(--body); font-size: 18px; font-weight: 300; color: var(--muted);
  }
  html[dir="rtl"] .nav-links a:not(.btn):not(.nav-extra a)::after { content: "←"; }
  .nav-links .btn { margin-top: 28px; width: 100%; --h: 54px; border-radius: 999px; opacity: 0; transition: opacity .5s var(--ease) .3s; }
  .nav-extra {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: auto; padding-top: 28px;
    opacity: 0; transition: opacity .5s var(--ease) .35s;
  }
  .nav-links .nav-extra a { display: flex; flex-direction: column; gap: 6px; padding: 0; font-family: var(--body); font-size: 15px; font-weight: 400; letter-spacing: .02em; text-transform: none; color: #fff; }
  .nav-links .nav-extra a::after { display: none; }
  .nav-links .btn { flex: none; }
  .nav-extra span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
  .nav-extra p { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
  .nav-links.is-open a:not(.btn):not(.nav-extra a) { opacity: 1; transform: none; }
  .nav-links.is-open a:nth-child(1) { transition-delay: .12s; }
  .nav-links.is-open a:nth-child(2) { transition-delay: .17s; }
  .nav-links.is-open a:nth-child(3) { transition-delay: .22s; }
  .nav-links.is-open a:nth-child(4) { transition-delay: .27s; }
  .nav-links.is-open .btn, .nav-links.is-open .nav-extra { opacity: 1; }
  html.menu-open .pole-rail, html.menu-open .fab { opacity: 0 !important; visibility: hidden; pointer-events: none; }
  html.menu-open .nav { z-index: 95; }
}
