/* ==========================================================================
   SUBLIME BARBER STUDIO — estilos
   Monocromo (negro / hueso), tipografía extendida como el logotipo.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0b0b;
  --ink-2: #151515;
  --bone: #ecebe6;
  --white: #f2f0eb;

  --bg: var(--ink);
  --fg: var(--white);
  --fg-dim: rgba(242, 240, 235, 0.64);
  --fg-faint: rgba(242, 240, 235, 0.4);
  --line: rgba(242, 240, 235, 0.14);
  --surface: rgba(242, 240, 235, 0.045);

  --f-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --f-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 76px;
  --radius: 4px;
}

body[data-theme='light'] {
  --bg: var(--bone);
  --fg: #0e0e0e;
  --fg-dim: rgba(14, 14, 14, 0.62);
  --fg-faint: rgba(14, 14, 14, 0.4);
  --line: rgba(14, 14, 14, 0.14);
  --surface: rgba(14, 14, 14, 0.04);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: var(--header-h);
}
html:not(.js) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.8s var(--ease), color 0.8s var(--ease);
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button, .btn, .cta__btn, .mobile-bar__call { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Fondo topográfico común a toda la web: líneas claras en secciones oscuras y oscuras en las claras */
.topo-global { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.6; }
main, .footer { position: relative; z-index: 1; }
.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;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 2000;
  padding: 10px 16px; background: var(--white); color: var(--ink);
  border-radius: 999px; transform: translateY(-200%);
}
.skip:focus { transform: none; }

.container {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: clamp(5.5rem, 11vw, 11rem); }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.h2 {
  margin-top: 1.1rem;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.5rem, 6.4vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.h2--sm { font-size: clamp(2rem, 4.4vw, 4.2rem); }
.h2 em,
.hero__title em,
.cta__title em,
.about__text em,
.footer__brand em,
.barber__bio em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: -0.01em;
}
.h2 em, .hero__title em, .cta__title em { font-size: 1.12em; line-height: 0.8; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.section-head--split {
  display: grid;
  grid-template-columns: 1fr minmax(0, 400px);
  align-items: end;
  gap: 2rem;
}
.section-head__lead { color: var(--fg-dim); font-size: clamp(1rem, 1.1vw, 1.1rem); max-width: 40ch; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.link-arrow:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.pill {
  display: inline-block;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* ---------- Botones ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  height: var(--h);
  padding: 0 1.55em;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), opacity 0.3s, scale 0.16s var(--ease-out);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-hover, rgba(255, 255, 255, 0.16));
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .btn:hover::before { transform: none; } }
.btn:active, .filter:active, .cta__btn:active, .style-opt:active, .rec:active, .mobile-bar__call:active, .burger:active, .lightbox__nav:active, .lightbox__close:active { scale: 0.97; }
.btn--sm { --h: 44px; font-size: 14px; padding: 0 1.2em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.35; pointer-events: none; }

.btn--solid { background: var(--white); color: var(--ink); --btn-hover: #ffffff; }
.btn--solid:hover { box-shadow: 0 10px 40px -10px rgba(255, 255, 255, 0.45); }
.btn--ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--line { border: 1px solid var(--line); color: var(--fg); --btn-hover: var(--surface); }
.btn--line:hover { border-color: var(--fg); }
.btn--dark { background: #0e0e0e; color: var(--white); --btn-hover: #2a2a2a; }
.btn--line-dark { border: 1px solid rgba(14, 14, 14, 0.25); color: #0e0e0e; --btn-hover: rgba(14, 14, 14, 0.06); }

.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__icon path { animation: arrow 0.6s var(--ease); }
@keyframes arrow {
  0% { transform: none; }
  45% { transform: translate(110%, -110%); }
  46% { transform: translate(-110%, 110%); }
  100% { transform: none; }
}
.btn__spark { width: 16px; height: 16px; fill: currentColor; }
.btn:hover .btn__spark { animation: spin 1.2s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Grano, cursor ---------- */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 998;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
}

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--white);
    mix-blend-mode: difference;
    pointer-events: none;
    transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), opacity 0.3s;
  }
  html.has-cursor .cursor.is-hover { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  html.has-cursor .cursor.has-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; }
  html.has-cursor .cursor.is-hidden { opacity: 0; }
  .cursor__label {
    font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink); opacity: 0; transition: opacity 0.2s;
  }
  .cursor.has-label .cursor__label { opacity: 1; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  animation: preloader-failsafe 0.6s 7s forwards;
}
html:not(.js) .preloader, html.no-preloader .preloader { display: none; }
html.is-ready .preloader { animation: none; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
.preloader__mark { width: clamp(84px, 11vw, 140px); fill: var(--white); overflow: visible; }
.preloader__meta {
  position: absolute;
  inset: auto 0 clamp(1.2rem, 3vw, 2.2rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.55);
}
.preloader__count {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.8;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: transform 0.6s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s;
}
.header.is-scrolled {
  color: var(--fg);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-101%); }
body.menu-open .header { color: var(--white); background: transparent; border-color: transparent; backdrop-filter: none; transform: none; }

.header__logo { display: flex; align-items: center; gap: 0.75rem; }
.header__mark { width: 34px; fill: currentColor; transition: transform 0.8s var(--ease); }
@media (hover: hover) and (pointer: fine) { .header__logo:hover .header__mark { transform: rotate(180deg); } }
.header__word { width: 138px; fill: currentColor; }

.header__nav { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); font-size: 14px; font-weight: 500; }
.header__nav a { position: relative; padding-block: 6px; }
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.header__nav a:hover::after, .header__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-ai::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 0.45em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.15em;
  animation: pulse 2s infinite;
}
.header__right { display: flex; align-items: center; gap: 1.1rem; }
.header__cta.btn--solid { --btn-hover: rgba(128, 128, 128, 0.25); }
.header.is-scrolled .header__cta.btn--solid { background: var(--fg); color: var(--bg); }
body.menu-open .header__cta.btn--solid { background: var(--white); color: var(--ink); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status i {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; opacity: 0.4;
}
.status.is-open i { background: #3ddc84; opacity: 1; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pulse-green 2s infinite; }
@keyframes pulse-green { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@keyframes pulse { 50% { opacity: 0.35; } }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; }
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 24px; }
body.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* Menú móvil */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--white);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s 0.8s;
}
body.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path 0.8s var(--ease-in-out); }
.menu__nav { display: grid; gap: 0.2rem; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(1.9rem, 8.4vw, 4rem); line-height: 1.1; text-transform: uppercase; letter-spacing: -0.02em;
}
.menu__nav span { font-family: var(--f-mono); font-size: 12px; font-weight: 400; color: rgba(242, 240, 235, 0.5); letter-spacing: 0.06em; }
.menu__cta { justify-self: start; margin-bottom: 1.2rem; font-family: var(--f-body); }
.menu__foot { display: grid; gap: 0.4rem; font-family: var(--f-mono); font-size: 13px; color: rgba(242, 240, 235, 0.7); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--header-h);
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  filter: grayscale(0.35) contrast(1.06);
}
.hero__slide > img,
.hero__slide > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 35%;
}
.hero__slide.is-active { opacity: 1; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.72) 0%, rgba(8, 8, 8, 0.18) 28%, rgba(8, 8, 8, 0.3) 55%, rgba(8, 8, 8, 0.94) 100%),
    linear-gradient(90deg, rgba(8, 8, 8, 0.7) 0%, rgba(8, 8, 8, 0) 60%);
}
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(1.5rem, 4vh, 3rem); }
.hero__eyebrow { color: rgba(242, 240, 235, 0.8); }
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero__title {
  margin-top: 1.2rem;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.7rem, 7.2vw, 7.4rem);
  line-height: 0.93;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero__title .line { display: block; }
.hero__lead {
  max-width: 36ch;
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  color: rgba(242, 240, 235, 0.8);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.hero__badge {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  top: 42%;
  display: grid;
  place-items: center;
  width: clamp(112px, 10.5vw, 164px);
  aspect-ratio: 1;
  border-radius: 50%;
}
.hero__badge-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: var(--white);
  font-family: var(--f-mono); font-size: 11.4px; letter-spacing: 0.2em; text-transform: uppercase;
  animation: spin 22s linear infinite;
}
.hero__badge-mark { width: 30%; fill: var(--white); transition: transform 0.8s var(--ease); }
@media (hover: hover) and (pointer: fine) { .hero__badge:hover .hero__badge-mark { transform: rotate(180deg); } }

.hero__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(242, 240, 235, 0.2);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.8);
}
.rating { display: inline-flex; align-items: center; gap: 0.7rem; }
.rating__stars { letter-spacing: 0.12em; color: var(--white); }
.rating b { color: var(--white); font-weight: 500; }
.rating:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.hero__pager { display: flex; align-items: center; gap: 0.8rem; }
.hero__bars { display: flex; gap: 6px; }
.hero__bars i { position: relative; width: 38px; height: 2px; background: rgba(242, 240, 235, 0.25); overflow: hidden; }
.hero__bars i::after { content: ''; position: absolute; inset: 0; background: var(--white); transform: scaleX(var(--p, 0)); transform-origin: left; }
.hero__scroll { display: inline-flex; align-items: center; gap: 0.7rem; }
.hero__scroll i { position: relative; width: 1px; height: 28px; background: rgba(242, 240, 235, 0.25); overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; inset: 0; background: var(--white); animation: scroll-line 2s var(--ease-in-out) infinite; }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.wordmark { fill: currentColor; }
.hero__wordmark {
  position: relative;
  z-index: 1;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(1600px - 2 * var(--gutter));
  margin: 0 auto clamp(0.8rem, 2vw, 1.8rem);
  color: var(--white);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: clamp(1.6rem, 3vw, 2.6rem);
  border-bottom: 1px solid var(--line);
  user-select: none;
}
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group span {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding-inline: clamp(1rem, 2vw, 2rem);
}
.marquee__group span.is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.marquee__group svg { width: clamp(1.8rem, 4vw, 3.6rem); fill: currentColor; flex-shrink: 0; }
html:not(.js) .marquee__track { animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Estudio ---------- */
.about__text {
  max-width: 1400px;
  font-family: var(--f-display);
  font-stretch: 108%;
  font-weight: 500;
  font-size: clamp(1.55rem, 3.5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-indent: clamp(0rem, 14vw, 16rem);
}
.about__text em { font-size: 1.12em; }
.about__text .w { text-indent: 0; }

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  margin-top: clamp(4rem, 8vw, 8rem);
  align-items: end;
}
.about__img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main { grid-column: 1 / 8; aspect-ratio: 4 / 3; }
.about__side { grid-column: 9 / 13; display: grid; gap: 2rem; }
.about__img--small { aspect-ratio: 4 / 5; width: 78%; }
.about__copy { color: var(--fg-dim); max-width: 38ch; }
[data-parallax] { height: 118% !important; margin-top: -9%; will-change: transform; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  margin-top: clamp(4rem, 8vw, 7rem);
}
.stats li { display: grid; gap: 0.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.stats b {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stats__tiempo small { font-size: 0.42em !important; vertical-align: 0.15em !important; letter-spacing: 0; }
.stats b small { font-size: 0.55em; font-weight: 700; margin-left: 0.08em; vertical-align: 0.55em; }
.stats li > span { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-dim); }

/* ---------- Imágenes con revelado ---------- */
html.js .reveal-img { clip-path: inset(100% 0 0 0); }
html.js .reveal-img.is-in { clip-path: inset(0); transition: clip-path 1.4s var(--ease-in-out); }
html.js .reveal-img > img:first-child { transform: scale(1.25); transition: transform 1.8s var(--ease); }
html.js .reveal-img.is-in > img:first-child { transform: scale(1); }
html.js .reveal-img > img[data-parallax] { transform: none; transition: none; }

/* Vídeos IA sobre las fotos: la foto queda debajo y el vídeo aparece
   con un fundido en cuanto empieza a reproducirse (su primer fotograma es la foto). */
.viva {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  pointer-events: none;
}
.viva.is-on { opacity: 1; }

/* Foto principal del Estudio: solo un zoom muy leve y progresivo */
@keyframes zoom-lento { from { scale: 1; } to { scale: 1.07; } }
html.js .zoom-lento { animation: zoom-lento 22s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { html.js .zoom-lento { animation: none; } }

/* Fotos vivas: respiración lenta tipo cine mientras están en pantalla.
   Usa scale/translate (no transform) para sumarse al parallax y al hover. */
@keyframes respira {
  from { scale: 1.02; translate: -1.2% 0.6%; }
  to { scale: 1.1; translate: 1.2% -0.6%; }
}
html.js .vivo { animation: respira 16s ease-in-out infinite alternate paused; }
html.js .vivo.is-vivo { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { html.js .vivo { animation: none; } }

/* ---------- Servicios ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter {
  height: 40px;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, scale 0.16s var(--ease-out);
}
.filter:hover { border-color: var(--fg); }
.filter.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter sup { font-family: var(--f-mono); font-size: 10px; margin-left: 2px; opacity: 0.6; }

.svc-list { border-top: 1px solid var(--line); }
.svc a {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 7rem 6.5rem 3.2rem;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.2rem, 2vw, 1.8rem) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: color 0.45s var(--ease), padding 0.5s var(--ease);
}
.svc a::before {
  content: '';
  position: absolute;
  inset: 0 calc(-1 * var(--gutter) / 2);
  z-index: -1;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
@media (hover: hover) {
  .svc a:hover { color: var(--bg); }
  .svc a:hover::before { transform: scaleY(1); }
  .svc a:hover .svc__main { transform: translateX(0.8rem); }
  .svc a:hover .svc__arrow { background: var(--bg); color: var(--fg); border-color: var(--bg); transform: rotate(45deg); }
}
.svc__n { font-family: var(--f-mono); font-size: 12px; opacity: 0.55; }
.svc__main { display: grid; gap: 0.35rem; transition: transform 0.5s var(--ease); }
.svc__name {
  font-family: var(--f-display);
  font-stretch: 120%;
  font-weight: 750;
  font-size: clamp(1.25rem, 2.3vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.svc__desc { font-size: 15px; opacity: 0.62; }
.svc__time { font-family: var(--f-mono); font-size: 13px; opacity: 0.62; }
.svc__price {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.svc__arrow {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.5s var(--ease), background-color 0.4s, color 0.4s, border-color 0.4s;
}
.svc__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tag {
  display: inline-block;
  margin-left: 0.6em;
  padding: 0.3em 0.65em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: 0.06em;
  line-height: 1;
  vertical-align: 0.4em;
}
.tag--soft { opacity: 0.6; }
.svc.is-hidden { display: none; }
.services__note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 1.6rem;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.services__note span::before { content: '✦'; margin-right: 0.6em; }

.svc-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: clamp(200px, 18vw, 290px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  visibility: hidden;
}
.svc-preview__inner { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius); clip-path: inset(50% 50% 50% 50%); transition: clip-path 0.6s var(--ease); }
.svc-preview.is-visible .svc-preview__inner { clip-path: inset(0); }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity 0.4s, transform 0.8s var(--ease); }
.svc-preview img.is-active { opacity: 1; transform: none; }

/* ---------- Experiencia (scroll horizontal) ---------- */
.process { position: relative; }
.process__pin { overflow: hidden; }
@media (min-width: 901px) {
  html.js .process__pin { height: 100vh; height: 100svh; display: flex; align-items: center; }
  html.js .process__track { padding-block: calc(var(--header-h) * 0.5) 0; }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  html.js .process__pin { height: auto; overflow-x: auto; }
}
.process__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  width: max-content;
}
.process__intro { width: min(34vw, 500px); flex-shrink: 0; }
.process__intro p { margin-top: 1.4rem; color: var(--fg-dim); max-width: 34ch; }
.process__progress { position: relative; height: 2px; margin-top: 2.4rem; background: var(--line); overflow: hidden; max-width: 320px; }
.process__progress i { position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: left; }
.step { width: min(50vw, 780px); flex-shrink: 0; display: grid; gap: 1.4rem; }
.step__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.step__img :is(img, video) { width: 116%; max-width: none; height: 100%; object-fit: cover; margin-left: -8%; filter: grayscale(0.25); }
.step__body { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.6rem; align-items: baseline; }
.step__n {
  grid-row: span 2;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.6rem, 4.4vw, 4.4rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--fg);
}
.step h3 {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.step p { color: var(--fg-dim); max-width: 46ch; }

/* ---------- Equipo ---------- */
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); }
.barber--offset { margin-top: clamp(4rem, 12vw, 12rem); }
.barber__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 28px; background: var(--ink-2); transform: translateZ(0); will-change: transform; }
.barber__img :is(img, video) { scale: 1.08; }
.barber__img :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.barber__alt { clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path 0.9s var(--ease); }
.barber__img:hover .barber__alt { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.barber__img .viva.barber__alt { transition: clip-path 0.9s var(--ease), opacity 0.9s var(--ease); }
.barber__info { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.4rem; margin-top: 1.6rem; }
.barber__n { font-family: var(--f-mono); font-size: 12px; color: var(--fg-dim); padding-top: 0.6rem; }
.barber h3 {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.barber__role { margin-top: 0.4rem; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-dim); }
.barber__bio { grid-column: 2; max-width: 44ch; color: var(--fg-dim); }
.barber__bio em { font-size: 1.15em; color: var(--fg); }

/* ---------- Sublime AI ---------- */
.ai { overflow: hidden; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.55; }
.ai .container { position: relative; z-index: 1; }
.lab {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}
.lab__panel {
  display: grid;
  align-content: start;
  gap: 1.4rem;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(16, 16, 16, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.lab__step { transition: opacity 0.4s; }
.lab__step + .lab__step { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.lab__step.is-locked { opacity: 0.38; pointer-events: none; }
.lab__step-head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1rem; }
.lab__step-head span { font-family: var(--f-mono); font-size: 12px; color: var(--fg-dim); }
.lab__step-head h3 { font-family: var(--f-display); font-stretch: 120%; font-weight: 750; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.01em; }
.lab__hint { font-size: 14px; color: var(--fg-dim); margin-bottom: 0.9rem; }

.drop {
  display: grid;
  place-items: center;
  min-height: 168px;
  padding: 1rem;
  border: 1px dashed rgba(242, 240, 235, 0.3);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}
.drop:hover, .drop.is-drag { border-color: var(--fg); background: rgba(255, 255, 255, 0.04); }
.drop:focus-within { border-color: var(--fg); }
.drop__empty { display: grid; justify-items: center; gap: 0.35rem; }
.drop__empty svg { width: 34px; height: 34px; margin-bottom: 0.4rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.drop__empty b { font-weight: 600; }
.drop__empty small { font-size: 13px; color: var(--fg-dim); }
.drop__full { display: flex; align-items: center; gap: 1rem; width: 100%; }
.drop__full img { width: 72px; height: 108px; object-fit: cover; border-radius: 10px; }
.drop__full span { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--fg-dim); }

.check { display: grid; grid-template-columns: 18px 1fr; gap: 0.7rem; margin-top: 0.9rem; font-size: 13px; line-height: 1.45; color: var(--fg-dim); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--white); }
.check a { text-decoration: underline; text-underline-offset: 2px; }

.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.style-opt {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.15rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, scale 0.16s var(--ease-out);
}
.style-opt:hover { border-color: rgba(242, 240, 235, 0.45); }
.style-opt:has(input:checked) { border-color: var(--fg); background: rgba(255, 255, 255, 0.08); }
.style-opt:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 2px; }
.style-opt input { position: absolute; opacity: 0; pointer-events: none; }
.style-opt img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 0.45rem; filter: grayscale(1); }
.style-opt:has(input:checked) img { filter: none; }
.style-opt b { font-size: 13px; font-weight: 600; line-height: 1.2; }
.style-opt small { display: none; }
.style-desc { min-height: 2.9em; margin: -0.2rem 0 1rem; font-size: 13px; }
.style-opt.is-rec::after {
  content: 'IA';
  position: absolute;
  top: 6px; right: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.switch { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; font-size: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch__ui { position: relative; width: 40px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); transition: background-color 0.3s; flex-shrink: 0; }
.switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform 0.35s var(--ease); }
.switch input:checked + .switch__ui { background: #3ddc84; }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--fg); outline-offset: 2px; }

.advice { display: grid; gap: 0.6rem; margin-top: 1rem; }
.advice__face { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-dim); }
.advice__face b { color: var(--fg); font-weight: 500; }
.advice__sum { font-size: 14px; }
.rec {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  transition: border-color 0.3s, background-color 0.3s;
}
.rec:hover { border-color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.rec__top { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 14px; }
.rec__top span { font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.rec p { font-size: 13px; color: var(--fg-dim); }
.advice__beard { font-size: 13px; color: var(--fg-dim); padding-top: 0.4rem; }
.advice__beard b { color: var(--fg); font-weight: 600; }

.lab__stage {
  position: relative;
  display: grid;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    rgba(12, 12, 12, 0.7);
}
.lab__stage > [data-view] { grid-area: 1 / 1; }
.lab__stage > [hidden] { display: none !important; }
.stage__idle, .stage__loading, .stage__error {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
  padding: 2rem;
  text-align: center;
}
.stage__mark { width: 120px; fill: rgba(242, 240, 235, 0.1); margin-bottom: 1rem; animation: spin 30s linear infinite; }
.stage__idle p { font-family: var(--f-display); font-stretch: 120%; font-weight: 700; font-size: 1.3rem; text-transform: uppercase; }
.stage__idle small, .stage__loading small { color: var(--fg-dim); font-size: 13px; }
.scan { position: relative; width: min(260px, 60vw); aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--ink-2); margin-bottom: 0.8rem; }
.scan img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.7); }
.scan i {
  position: absolute; left: 0; right: 0; height: 28%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28) 85%, #fff 100%);
  mix-blend-mode: screen;
  animation: scan 2.2s var(--ease-in-out) infinite alternate;
}
@keyframes scan { from { top: -28%; } to { top: 100%; } }
.stage__msg { font-family: var(--f-display); font-stretch: 120%; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; min-height: 1.5em; }
.stage__bar { position: relative; width: 220px; height: 2px; background: var(--line); overflow: hidden; }
.stage__bar i { position: absolute; inset: 0; width: 40%; background: var(--fg); animation: bar 1.6s var(--ease-in-out) infinite; }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.stage__result { display: grid; grid-template-rows: 1fr auto; }
.compare {
  --pos: 50%;
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 400px);
  aspect-ratio: 2 / 3;
  margin: 1.4rem;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  background: var(--ink-2);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.compare__handle i {
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.compare__handle i::before, .compare__handle i::after {
  content: ''; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border: solid var(--ink); border-width: 0 0 2px 2px;
}
.compare__handle i::before { left: 12px; transform: rotate(45deg); }
.compare__handle i::after { right: 12px; transform: rotate(-135deg); }
.compare input[type='range'] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare__tag {
  position: absolute; top: 12px;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  pointer-events: none;
}
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; }
.result__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.6);
}
.result__name { font-family: var(--f-display); font-stretch: 120%; font-weight: 750; font-size: 1.1rem; text-transform: uppercase; }
.result__bar small { font-family: var(--f-mono); font-size: 12px; color: var(--fg-dim); }
.result__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.stage__error p { max-width: 36ch; }
.lab__legal { margin-top: 1.2rem; max-width: 80ch; font-size: 12px; color: var(--fg-faint); }

/* ---------- Galería ---------- */
.gallery__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.6rem, 1.2vw, 1.2rem); align-items: start; }
.gcol { display: grid; gap: clamp(0.6rem, 1.2vw, 1.2rem); will-change: transform; }
.gcol:nth-child(2) { margin-top: clamp(3rem, 8vw, 9rem); }
.gitem { display: block; width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); cursor: zoom-in; }
.gitem img { width: 100%; transition: transform 1.1s var(--ease), filter 0.8s var(--ease); }
@media (hover: hover) {
  .gitem img { filter: grayscale(1) contrast(1.05); }
  .gitem:hover img { filter: none; transform: scale(1.045); }
}

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(8, 8, 8, 0.96);
  color: var(--white);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: fade 0.3s var(--ease-out); }
@keyframes fade { from { opacity: 0; } }
.lightbox[open] img, .vmodal[open] .vmodal__video { animation: entra 0.4s var(--ease-out); }
@keyframes entra { from { opacity: 0; transform: scale(0.96) translateY(10px); } }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border: 1px solid rgba(242, 240, 235, 0.3);
  border-radius: 50%;
  font-size: 18px;
  transition: background-color 0.3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.12); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; margin-top: -26px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: rgba(242, 240, 235, 0.6); }

/* ---------- Reseñas ---------- */
.reviews__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.reviews__score { display: grid; justify-items: start; gap: 1rem; }
.reviews__num {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(7rem, 18vw, 17rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.reviews__stars { font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: 0.2em; }
.reviews__stars i { font-style: normal; }
.reviews__stars span { display: inline-block; }
.reviews__score p { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-dim); }
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin: 2.4rem 0; }
.themes li { display: grid; gap: 0.3rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.themes b { font-family: var(--f-display); font-stretch: 120%; font-weight: 750; font-size: 1.05rem; text-transform: uppercase; }
.themes span { font-size: 15px; color: var(--fg-dim); }

/* ---------- Visítanos ---------- */
.visit__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.visit__title { font-size: clamp(2.4rem, 5.4vw, 5.6rem); }
.visit__addr { margin-top: 1rem; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-dim); }
.status--big { margin: 2rem 0 0.6rem; font-size: 12px; }
.hours { width: 100%; border-collapse: collapse; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours th, .hours td { padding: 0.85rem 0; text-align: left; font-weight: 500; }
.hours td { text-align: right; font-family: var(--f-mono); font-size: 13px; color: var(--fg-dim); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--fg); font-weight: 700; }
.hours tr.is-today th::after {
  content: 'Hoy';
  margin-left: 0.7em;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}
.visit__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 2.2rem 0; }
.visit__links li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; border-top: 1px solid var(--line); }
.visit__links span { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-dim); }
.visit__links a { font-weight: 600; }
.visit__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.visit__map { position: sticky; top: calc(var(--header-h) + 2rem); }
.map { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #d8d6cf; }
.map img, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.map iframe { filter: grayscale(1) contrast(1.08); }
.map__over {
  position: absolute; inset: auto 0 0;
  display: grid; justify-items: start; gap: 0.6rem;
  padding: 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  color: var(--white);
}
.map__over small { font-size: 12px; opacity: 0.75; }

/* ---------- CTA final ---------- */
.cta { position: relative; padding-block: clamp(7rem, 15vw, 15rem); text-align: center; overflow: hidden; }
.cta .container { position: relative; z-index: 1; }
.cta__title {
  margin-top: 1.4rem;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.cta__btn {
  display: inline-grid;
  place-items: center;
  width: clamp(140px, 13vw, 196px);
  aspect-ratio: 1;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), scale 0.16s var(--ease-out);
}
.cta__btn:hover { box-shadow: 0 20px 80px -20px rgba(242, 240, 235, 0.5); }

/* ---------- Footer ---------- */
.footer { position: relative; padding-top: clamp(4rem, 8vw, 7rem); background: transparent; color: var(--white); overflow: hidden; border-top: 1px solid rgba(242, 240, 235, 0.12); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand svg { width: 52px; fill: var(--white); margin-bottom: 1.4rem; }
.footer__brand p { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1; text-transform: uppercase; letter-spacing: -0.02em; }
.footer__col { display: grid; gap: 0.6rem; align-content: start; }
.footer__col .eyebrow { color: rgba(242, 240, 235, 0.5); margin-bottom: 0.4rem; }
.footer__col a { color: rgba(242, 240, 235, 0.78); transition: color 0.3s; width: fit-content; }
.footer__col a:hover { color: var(--white); }
.footer__wordmark {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(1600px - 2 * var(--gutter));
  margin: clamp(3.5rem, 7vw, 7rem) auto 0;
  color: var(--white);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: 1.4rem calc(1.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(242, 240, 235, 0.12);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.55);
}
.footer__bottom nav { display: flex; gap: 1.4rem; }
.footer__bottom a:hover { color: var(--white); }

/* ---------- Barra móvil ---------- */
.mobile-bar { display: none; }

/* ---------- La Colección (cada corte, una obra) ---------- */
/* Fondo topográfico en negativo (líneas oscuras sobre el fondo claro), fijo mientras se recorre la sala */
.coleccion__fondo { position: absolute; inset: 0; pointer-events: none; }
.coleccion__fondo .topo { position: sticky; inset: auto; top: 0; width: 100%; height: 100vh; height: 100svh; opacity: 0.7; }
.coleccion .container { position: relative; z-index: 1; }
.coleccion__ticket {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem;
  margin-top: 1.2rem;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-dim);
}
.coleccion__ticket span + span::before { content: '·'; margin-right: 1.2rem; }
.coleccion__muro { columns: 4 230px; column-gap: clamp(0.6rem, 1.2vw, 1.2rem); }
.obra { display: grid; gap: 0.7rem; margin: 0 0 clamp(1.4rem, 2.6vw, 2.2rem); break-inside: avoid; }
.coleccion__muro > .obra:nth-child(4n + 2) { padding-top: clamp(1rem, 3vw, 3rem); }
.coleccion__muro.is-js { columns: auto; display: flex; align-items: flex-start; gap: clamp(0.6rem, 1.2vw, 1.2rem); }
.coleccion__col { flex: 1 1 0; min-width: 0; }
.coleccion__col:nth-child(even) { padding-top: clamp(1.8rem, 4.5vw, 4.5rem); }
.obra__marco { display: block; width: 100%; overflow: hidden; border-radius: 18px; background: #1a1a1a; cursor: zoom-in; transform: translateZ(0); }
.obra__media { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.96); transition: transform 1.4s var(--ease), filter 0.8s var(--ease); }
.obra__marco--foto .obra__media { aspect-ratio: 4 / 5; }
.obra__marco:hover .obra__media, .obra__marco:focus-visible .obra__media, .obra.is-color .obra__media { filter: none; }
@media (hover: hover) and (pointer: fine) { .obra__marco:hover .obra__media { transform: scale(1.04); } }
.cartela__n { transition: color 0.4s; }
.obra:hover .cartela__n, .obra.is-color .cartela__n { color: var(--fg); }
.cartela { display: grid; gap: 0.3rem; }
.cartela__titulo { display: flex; align-items: baseline; gap: 0.7rem; }
.cartela__titulo em { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.3rem, 1.6vw, 1.55rem); line-height: 1.1; }
.cartela__n { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--fg-dim); }
.cartela__meta { font-size: 13px; color: var(--fg-dim); }
.cartela__ia {
  display: inline-flex; align-items: center; gap: 0.35em; width: fit-content;
  margin-top: 0.25rem;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.3s;
}
.cartela__ia:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.cartela__ia svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.style-opt.is-flash { animation: flash 1.2s var(--ease) 2; }
@keyframes flash { 50% { background: rgba(255, 255, 255, 0.2); border-color: var(--fg); } }

/* ---------- Visor de vídeo ---------- */
.vmodal {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(8, 8, 8, 0.97);
  color: var(--white);
}
.vmodal::backdrop { background: transparent; }
.vmodal[open] { display: grid; place-items: center; animation: fade 0.3s var(--ease-out); }
.vmodal__video { height: min(88dvh, 1100px); max-width: 92vw; aspect-ratio: 9 / 16; border-radius: 16px; background: #000; object-fit: contain; }
.vmodal__title {
  position: absolute; left: 24px; bottom: 24px; max-width: 30ch;
  font-family: var(--f-display); font-stretch: 118%; font-weight: 750; font-size: 1.1rem; line-height: 1.15; text-transform: uppercase;
}

/* ---------- Reseñas de Yeasy ---------- */
.reviews__lead { margin: 1.3rem 0 1.8rem; max-width: 44ch; color: var(--fg-dim); }
.reviews__rows {
  display: grid;
  gap: 1rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.rev-row { display: flex; gap: 1rem; width: max-content; animation: rev var(--dur, 90s) linear infinite; }
.rev-row--b { animation-direction: reverse; }
.reviews__rows:hover .rev-row { animation-play-state: paused; }
@keyframes rev { to { transform: translateX(-50%); } }
.rev {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  width: clamp(280px, 26vw, 400px);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.rev__stars { font-size: 13px; letter-spacing: 0.18em; }
.rev blockquote { margin: 0; font-size: 1.02rem; line-height: 1.5; }
.rev figcaption { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-dim); }
.rev figcaption b { color: var(--fg); font-weight: 500; }

/* ---------- CTA con el neón ---------- */
.cta__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.cta__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(11, 11, 11, 0.45) 0%, rgba(11, 11, 11, 0.86) 75%, var(--ink) 100%),
    linear-gradient(180deg, var(--ink) 0%, transparent 16%, transparent 84%, var(--ink) 100%);
}

@media (max-width: 900px) {
  .rev { width: 80vw; }
}
@media (max-width: 600px) {
  .coleccion__muro { columns: 2; column-gap: 0.9rem; }
  .coleccion__muro.is-js { gap: 0.55rem; }
  .coleccion__col:nth-child(even) { padding-top: 2.2rem; }
  .coleccion__muro > .obra:nth-child(4n + 2) { padding-top: 0; }
  .coleccion__muro > .obra:nth-child(2) { padding-top: 2.5rem; }
  .obra { gap: 0.55rem; margin-bottom: 1.2rem; }
  .obra__marco { border-radius: 12px; }
  .cartela__titulo em { font-size: 1.12rem; }
  .cartela__meta { font-size: 12px; }
  .vmodal__video { width: 100vw; height: auto; max-width: none; max-height: 100dvh; border-radius: 0; }
  .vmodal__title { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rev-row { animation: none; }
  .reviews__rows { overflow-x: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .header .status { display: none; }
}

@media (max-width: 1080px) {
  .header__nav { display: none; }
  .burger { display: block; }
  .lab { grid-template-columns: 1fr; }
  .lab__stage { min-height: 560px; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .section-head--split { grid-template-columns: 1fr; align-items: start; }

  .hero__badge { top: auto; bottom: calc(clamp(0.8rem, 2vw, 1.8rem) + 12vw + 5.4rem); right: var(--gutter); width: 96px; }
  .hero__pager { display: none; }

  .about__text { text-indent: 0; }
  .about__grid { grid-template-columns: 1fr; }
  .about__img--main, .about__side { grid-column: auto; }
  .about__side { grid-template-columns: 1fr 1fr; align-items: end; gap: 1.2rem; }
  .about__img--small { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 2rem; }

  .svc a { grid-template-columns: 2.2rem minmax(0, 1fr) auto; grid-template-areas: 'n main price' 'n main time'; row-gap: 0.2rem; }
  .svc__n { grid-area: n; align-self: start; padding-top: 0.4rem; }
  .svc__main { grid-area: main; }
  .svc__price { grid-area: price; }
  .svc__time { grid-area: time; text-align: right; }
  .svc__arrow { display: none; }
  .svc__desc { font-size: 14px; }

  .process__track { flex-direction: column; align-items: stretch; width: auto; gap: 3.5rem; padding-block: clamp(5rem, 11vw, 7rem); }
  .process__intro, .step { width: 100%; }
  .process__progress { display: none; }
  .step__img :is(img, video) { width: 100%; margin-left: 0; }

  .team__grid { grid-template-columns: 1fr; }
  .barber--offset { margin-top: 0; }
  .barber__bio { grid-column: 1 / -1; }
  .barber__img { border-radius: 20px; }

  .gallery__cols { grid-template-columns: 1fr 1fr; }
  .gcol:nth-child(2) { margin-top: 3rem; }
  .gcol:nth-child(3) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }

  .reviews__grid, .visit__grid { grid-template-columns: 1fr; }
  .visit__map { position: static; }
  .map { aspect-ratio: 4 / 3; }

  .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 2.6rem; }
  .footer__brand { grid-column: 1 / -1; }

  .mobile-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 80;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 11, 11, 0.84);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(242, 240, 235, 0.12);
    transform: translateY(110%);
    transition: transform 0.6s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  body.menu-open .mobile-bar { transform: translateY(110%); }
  .mobile-bar .btn { flex: 1; --h: 50px; }
  .mobile-bar__call { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(242, 240, 235, 0.3); color: var(--white); flex-shrink: 0; }
  .mobile-bar__call svg { width: 20px; height: 20px; fill: currentColor; }
  .footer { padding-bottom: 70px; }
}

@media (max-width: 600px) {
  .hero__title { font-size: 9.4vw; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; }
  .header__cta { display: none; }
  .header__word { width: 118px; }
  .hero__inner { padding-bottom: 1.2rem; }
  .hero__lead { max-width: 30ch; }
  .hero__ctas .btn { --h: 50px; }
  .hero__scroll { display: none; }
  .hero__badge { display: none; }
  .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes { grid-template-columns: 1fr; }
  .compare { margin: 1rem; }
  .result__actions { width: 100%; }
  .result__actions .btn { flex: 1; }
  .lightbox__nav { top: auto; bottom: 14px; margin: 0; }
  .lightbox__count { bottom: 30px; }
}

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