/* ⚜ César Alcudia — Tattoo & Barber Studio
   Mobile-first. Paleta: obsidiana, mármol y oro viejo. */

@font-face { font-family: 'Cinzel'; src: url(../assets/fonts/cinzel.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(../assets/fonts/cormorant.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(../assets/fonts/cormorant-italic.woff2) format('woff2'); font-style: italic; font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(../assets/fonts/manrope.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #0b0a08;
  --bg-2: #12100c;
  --bg-3: #1a1712;
  --line: rgba(236, 226, 206, .12);
  --line-gold: rgba(201, 161, 74, .35);
  --marble: #efe8da;
  --text: #d8d0c1;
  --muted: #a0978a;
  --gold: #c9a14a;
  --gold-hi: #f3dc9a;
  --gold-lo: #8a6a26;
  --gold-grad: linear-gradient(115deg, #8a6a26 0%, #c9a14a 22%, #f6e4a8 42%, #c9a14a 58%, #a8822f 78%, #f0d891 100%);

  --f-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --f-serif: 'Cormorant', Georgia, serif;
  --f-sans: 'Manrope', system-ui, -apple-system, sans-serif;

  --gutter: max(20px, env(safe-area-inset-left));
  --nav-h: 64px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--bg); padding: 10px 16px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

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

/* ---------- Grano de película (estático, sin coste de animación) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  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");
}

/* ---------- Tipos ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 600 12px/1.2 var(--f-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.kicker .rule { width: 28px; height: 1px; background: currentColor; }
.numeral { font: 500 13px/1 var(--f-display); letter-spacing: .1em; color: var(--gold-hi); padding: 6px 8px; border: 1px solid var(--line-gold); }
.numeral--big { display: inline-block; border: 0; padding: 0; font-size: 15px; color: var(--gold); margin-bottom: 10px; }
.h2 {
  margin: 0; font: 500 clamp(34px, 9.4vw, 76px)/1.02 var(--f-display); letter-spacing: -.01em; color: var(--marble);
  text-wrap: balance;
}
.h3 { margin: 0 0 10px; font: 500 clamp(28px, 7vw, 40px)/1.05 var(--f-display); color: var(--marble); }
.lead { font: italic 400 clamp(21px, 5.4vw, 26px)/1.35 var(--f-serif); color: var(--text); margin: 18px 0 0; max-width: 34ch; text-wrap: pretty; }
p { text-wrap: pretty; }
.gold-text { background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--gold-hi); position: relative; }
.link::after { content: ''; position: absolute; left: 0; right: 22px; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.link b { font-weight: 400; transition: transform .35s var(--ease-out); }
@media (hover: hover) {
  .link:hover::after { transform: scaleX(1); transform-origin: left; }
  .link:hover b { transform: translateX(4px); }
}

/* ---------- Botones ---------- */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; overflow: hidden; isolation: isolate;
  font: 700 13px/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  border-radius: 2px; user-select: none; -webkit-user-select: none;
  transition: transform .18s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .4s;
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 11px; }
.btn--lg { --h: 58px; padding: 0 34px; }
.btn--block { width: 100%; }
.btn--gold { color: #1a1408; background: var(--gold-grad); background-size: 220% 100%; background-position: 0% 0; box-shadow: 0 0 0 1px rgba(243, 220, 154, .25) inset, 0 10px 24px -12px rgba(0, 0, 0, .7); transition: background-position .9s var(--ease-out), transform .18s var(--ease-out), box-shadow .4s; }
/* destello que cruza el botón */
.btn--gold::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 250, 230, .55) 50%, transparent 70%); transform: translateX(-120%); }
.btn--gold.shine::after { animation: shine 1.1s var(--ease-in-out) both; }
@keyframes shine { to { transform: translateX(120%); } }
@media (hover: hover) {
  .btn--gold:hover { background-position: 100% 0; box-shadow: 0 0 0 1px rgba(243, 220, 154, .45) inset, 0 16px 32px -12px rgba(0, 0, 0, .8); }
  .btn--gold:hover::after { animation: shine 1.1s var(--ease-in-out) both; }
}
.btn--ghost { color: var(--marble); border: 1px solid var(--line-gold); }
@media (hover: hover) { .btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(201, 161, 74, .06); } }
.btn--wa { color: #0b0a08; background: var(--marble); }
.btn--wa svg { width: 20px; height: 20px; }
@media (hover: hover) { .btn--wa:hover { background: #fff; } }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: var(--bg); pointer-events: none; }
.intro__laurel { width: min(46vw, 220px); color: var(--gold); }
.intro__mark { position: absolute; font-size: 34px; color: var(--gold-hi); opacity: 0; animation: introMark .6s .55s var(--ease-out) both; }
@keyframes introMark { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.js .intro { animation: introOut .9s 1.15s var(--ease-in-out) both; }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.intro-seen .intro, .no-js .intro { display: none; }
.intro__laurel .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Cursor (solo ratón) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor { display: block; position: fixed; inset: 0; z-index: 140; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold-hi); }
  .cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(243, 220, 154, .55); transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, border-color .35s; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(201, 161, 74, .1); border-color: var(--gold); }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 12px;
  height: calc(var(--nav-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  transition: background-color .4s, border-color .4s, transform .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(11, 10, 8, .94); border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; }
.fleur { width: 22px; height: 22px; color: var(--gold); }
.nav__name { font: 600 14px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--marble); }
.nav__links { display: none; }
.nav__cta { display: none; }
.nav__menu { position: relative; width: 44px; height: 44px; margin-right: -10px; }
.nav__menu i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--marble); transition: transform .45s var(--ease-out); }
.nav__menu i:nth-of-type(1) { top: 18px; }
.nav__menu i:nth-of-type(2) { top: 25px; right: 17px; }
.nav__menu[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-3.5px) rotate(-45deg); right: 11px; }

.menu {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 32px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--bg); clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out); overscroll-behavior: contain;
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: inset(0); visibility: visible; }
.menu nav { display: grid; }
.menu nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 500 clamp(34px, 10vw, 56px)/1.05 var(--f-display); color: var(--marble);
  opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease-out);
}
.menu nav a em { font: italic 400 18px var(--f-serif); color: var(--gold); width: 28px; }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: .06s; } .menu.is-open nav a:nth-child(3) { transition-delay: .12s; } .menu.is-open nav a:nth-child(4) { transition-delay: .18s; } .menu.is-open nav a:nth-child(5) { transition-delay: .24s; }
.menu__foot { display: grid; gap: 14px; }
.menu__ig { text-align: center; color: var(--muted); font-size: 14px; min-height: 44px; display: grid; place-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; min-height: max(100svh, 620px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: -17% 0 17% 0; z-index: -2; will-change: transform; overflow: hidden;
  /* la foto se desvanece a transparente: sin borde visible cuando el parallax la desplaza */
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); }
.hero__media picture { display: block; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 0%; filter: grayscale(1) sepia(.18) contrast(1.18) brightness(.72); transform: scale(1.12); }
.js .hero__media img { animation: heroIn 2.4s var(--ease-out) both; animation-delay: var(--intro-delay, 1.2s); }
.intro-seen .hero__media img { --intro-delay: .05s; }
@keyframes heroIn { from { transform: scale(1.22); filter: grayscale(1) sepia(.18) contrast(1.18) brightness(.15); } to { transform: scale(1.06); } }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 25%, transparent 30%, rgba(11, 10, 8, .55) 75%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(11, 10, 8, .7) 0%, transparent 18%, transparent 38%, rgba(11, 10, 8, .88) 70%, var(--bg) 100%);
}
/* el polvo dorado vive en la mitad superior: nunca encima del texto */
.hero__dust { position: absolute; inset: 0 0 45% 0; z-index: -1; width: 100%; height: 55%; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }

.hero__content { position: relative; padding: 0 var(--gutter) calc(36px + env(safe-area-inset-bottom)); }
.hero__kicker { margin-bottom: 14px; }
.hero__title { margin: 0; display: grid; font-family: var(--f-display); font-weight: 500; line-height: .86; letter-spacing: -.02em; color: var(--marble); }
.hero__line { display: block; font-size: clamp(60px, 18vw, 190px); }
.hero__line--gold { overflow: hidden; padding: .04em 0 .08em; }
.hero__line--gold .gl { display: block; background: var(--gold-grad); background-size: 220% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .hero__line--gold .gl { animation: goldUp 1.2s var(--ease-out) both, goldSweep 3.2s var(--ease-in-out) both; animation-delay: calc(var(--intro-delay, 1.2s) + .3s), calc(var(--intro-delay, 1.2s) + .6s); }
@keyframes goldUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes goldSweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.hero__amp { font: italic 400 clamp(44px, 12vw, 120px)/.6 var(--f-serif); color: var(--gold); margin: .06em 0 .02em .1em; }
.hero__sub { margin: 18px 0 0; max-width: 30ch; font: italic 400 clamp(20px, 5.6vw, 28px)/1.3 var(--f-serif); color: var(--text); }
.hero__actions { display: grid; gap: 14px; margin-top: 26px; }
.hero__actions .btn { width: 100%; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick__chip { min-height: 44px; border: 1px solid var(--line); background: rgba(11, 10, 8, .55); font-size: 14px; font-weight: 600; color: var(--marble); border-radius: 2px; transition: border-color .3s, color .3s, transform .18s var(--ease-out); }
.quick__chip:active { transform: scale(.96); }
@media (hover: hover) { .quick__chip:hover { border-color: var(--gold); color: var(--gold-hi); } }

/* letras del título: suben una a una */
.char { display: inline-block; will-change: transform; }
.js [data-split] .char { transform: translateY(105%) rotate(4deg); opacity: 0; animation: charUp 1.1s var(--ease-out) forwards; animation-delay: calc(var(--intro-delay, 1.2s) + var(--d)); }
.intro-seen [data-split] .char { --intro-delay: 0s; }
.hero__line[data-split] { overflow: hidden; padding-top: .04em; }
@keyframes charUp { to { transform: none; opacity: 1; } }
.js .hero__kicker, .js .hero__sub, .js .hero__actions, .js .hero__amp { animation: fadeUp 1s var(--ease-out) both; }
.js .hero__kicker { animation-delay: calc(var(--intro-delay, 1.2s) + .1s); }
.js .hero__amp { animation-delay: calc(var(--intro-delay, 1.2s) + .35s); }
.js .hero__sub { animation-delay: calc(var(--intro-delay, 1.2s) + .6s); }
.js .hero__actions { animation-delay: calc(var(--intro-delay, 1.2s) + .75s); }
.intro-seen .hero__kicker, .intro-seen .hero__sub, .intro-seen .hero__actions, .intro-seen .hero__amp, .intro-seen .hero__line--gold .gl { --intro-delay: 0s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__seal { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + env(safe-area-inset-top) + 18px); width: 92px; height: 92px; display: grid; place-items: center; color: var(--gold); }
.hero__seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero__seal text { font: 600 9.6px var(--f-display); letter-spacing: .32em; fill: currentColor; }
.hero__seal span { font-size: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll { display: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-gold); background: var(--bg-2); padding: 16px 0; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 28px; animation: marquee 32s linear infinite; }
.marquee span { font: 500 clamp(22px, 6vw, 40px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; color: var(--marble); white-space: nowrap; }
.marquee span:nth-of-type(even) { font: italic 400 clamp(26px, 7vw, 46px)/1 var(--f-serif); text-transform: none; letter-spacing: 0; color: var(--gold); }
.marquee i { display: grid; place-items: center; color: var(--gold); }
.marquee i svg { width: clamp(30px, 8vw, 44px); height: clamp(30px, 8vw, 44px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(88px, 22vw, 160px) 0; }
.head { margin-bottom: clamp(40px, 10vw, 72px); }
.head--split .lead { margin-top: 20px; }

/* revelado de titulares: cada línea sube desde una máscara */
.js [data-reveal-text] .rl { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-reveal-text] .rl > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--l) * 90ms); }
.js [data-reveal-text].in .rl > span { transform: none; }

/* arcos romanos: el marco de todas las fotos */
.arch { position: relative; overflow: hidden; border-radius: 9999px 9999px 0 0; aspect-ratio: 4 / 5; background: var(--bg-3); }
.arch img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.9) sepia(.15) contrast(1.1) brightness(.88); transition: transform 1.2s var(--ease-out), filter .8s; }
.arch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-gold); pointer-events: none; }
.arch--gold img { filter: contrast(1.08) saturate(.9); }
.arch--work img { filter: grayscale(.2) contrast(1.05); object-position: 50% 45%; }

/* iris: la foto se abre desde abajo y se asienta */
.js [data-iris] { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-in-out); }
.js [data-iris] img { transform: scale(1.25); transition: transform 1.8s var(--ease-out), filter .8s; }
.js [data-iris].in { clip-path: inset(0 0 0 0); }
.js [data-iris].in img { transform: scale(1); }

/* ---------- Dos oficios: cartas apiladas ---------- */
.stack { display: grid; gap: 24px; }
.stack__card { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top) + 16px + var(--i) * 14px); transform-origin: 50% 0; will-change: transform; }
.stack__link {
  display: grid; gap: 22px; padding: 18px 18px 26px;
  background: var(--bg-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .018' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .89 0 0 0 0 .82 0 0 0 -1.4 .62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.12'/%3E%3C/svg%3E");
  border: 1px solid var(--line); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .8);
  transition: border-color .4s, transform .4s var(--ease-out);
}
.stack__card .arch { aspect-ratio: 5 / 4; }
.stack__body p { margin: 0 0 6px; color: var(--text); }
@media (hover: hover) {
  .stack__link:hover { border-color: var(--line-gold); }
  .stack__link:hover .arch img { transform: scale(1.03); filter: grayscale(.4) sepia(.1) contrast(1.1); }
  .stack__link:hover .link::after { transform: scaleX(1); transform-origin: left; }
  .stack__link:hover .link b { transform: translateX(4px); }
}

/* ---------- Barbería ---------- */
.barber__grid { display: grid; gap: 48px; }
.barber__media { position: relative; }
.barber__media .arch--tall { aspect-ratio: 3 / 4; }
.barber__media .arch--tall img { object-position: 50% 30%; filter: contrast(1.08) saturate(.9); }
.barber__thumb { position: absolute; right: -6px; bottom: -28px; width: 44%; aspect-ratio: 1; overflow: hidden; border: 6px solid var(--bg); }
.barber__thumb img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.2) contrast(1.05); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row button {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; width: 100%;
  padding: 18px 0; text-align: left; position: relative;
}
.row__name { font: 500 21px/1.2 var(--f-display); color: var(--marble); transition: color .3s, transform .45s var(--ease-out); }
.row__price { font: 500 22px/1 var(--f-serif); font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.row__price small { font-size: 14px; color: var(--muted); margin-right: 4px; font-family: var(--f-sans); }
.row__desc { font-size: 15px; color: var(--muted); }
.row__add { align-self: end; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); line-height: 1.9; }
.row button::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.row button:active { background: rgba(201, 161, 74, .05); }
@media (hover: hover) {
  .row button:hover::before { transform: scaleX(1); }
  .row button:hover .row__name { color: var(--gold-hi); transform: translateX(6px); }
}

/* ---------- Manifiesto ---------- */
.statement { position: relative; padding: clamp(110px, 28vw, 220px) 0; overflow: hidden; isolation: isolate; border-block: 1px solid var(--line); }
.statement__bg { position: absolute; inset: -10% 0; z-index: -1; }
.statement__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(.32); }
.statement__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--bg), rgba(11, 10, 8, .55) 30%, rgba(11, 10, 8, .55) 70%, var(--bg)); }
.meander { display: block; width: 200px; height: 20px; color: var(--gold); margin-bottom: 32px; }
.statement__text { margin: 0; max-width: 22ch; font: 400 clamp(30px, 8.2vw, 72px)/1.14 var(--f-serif); color: var(--marble); letter-spacing: -.01em; }
.statement__text .w { opacity: .16; transition: opacity .35s linear; }
.statement__text .w.on { opacity: 1; }
.no-js .statement__text .w { opacity: 1; }
.statement__sign { margin: 34px 0 0; font: 600 13px var(--f-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }

/* ---------- Tatuajes ---------- */
.motifs { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; }
.motifs::-webkit-scrollbar { display: none; }
.motif { scroll-snap-align: start; padding: 22px 22px 24px; border: 1px solid var(--line); background: var(--bg-2); transition: border-color .4s, transform .4s var(--ease-out); }
.motif svg { width: 100%; aspect-ratio: 1; color: var(--marble); margin-bottom: 14px; }
.motif svg .accent { color: var(--gold); stroke: var(--gold); }
.motif h3 { margin: 0 0 4px; font: 500 20px/1.2 var(--f-display); color: var(--marble); }
.motif p { margin: 0; font: italic 400 19px/1.3 var(--f-serif); color: var(--muted); }
@media (hover: hover) { .motif:hover { border-color: var(--line-gold); transform: translateY(-2px); } }
/* trazo que se dibuja (pathLength = 1) */
.js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-in-out); transition-delay: var(--dd, 0s); }
.js .in .draw, .js .draw.in { stroke-dashoffset: 0; }

.tattoo__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.tattoo__photo { margin: 0; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-3); position: relative; }
.tattoo__photo::after { content: '+'; position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--marble); background: rgba(11, 10, 8, .8); border: 1px solid var(--line-gold); }
.tattoo__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: transform .9s var(--ease-out), filter .6s; }
@media (hover: hover) { .tattoo__photo:hover img { transform: scale(1.03); filter: none; } }
.tattoo__cta { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 18px; }
.tattoo__from { margin: 0 0 6px; font: italic 400 22px var(--f-serif); color: var(--text); }
.tattoo__from strong { font-style: normal; font-weight: 500; color: var(--gold-hi); }
.tattoo__cta .link { justify-self: start; }

/* ---------- Estudio ---------- */
.emperor { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.emperor__grid { display: grid; gap: 56px; }
.emperor__media { position: relative; padding: 0 8%; margin-bottom: 70px; }
.emperor__media .arch img { object-position: 50% 40%; }
.emperor__media .arch { aspect-ratio: 3 / 4; }
.emperor__laurel { position: absolute; left: 50%; top: 100%; width: 70%; transform: translate(-50%, -58%); color: var(--gold); pointer-events: none; }
.emperor__text p:not(.kicker):not(.lead) { color: var(--text); max-width: 46ch; }
.emperor__text .lead { margin-bottom: 18px; }
.tenets { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.tenets li { display: flex; align-items: center; gap: 18px; min-height: 56px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--marble); }
.tenets span { width: 28px; font: 500 14px var(--f-display); color: var(--gold); }

/* ---------- Reserva + visita ---------- */
.book__grid { display: grid; gap: 20px; }
.book__panel { display: grid; gap: 20px; }
.book__choices { display: grid; gap: 12px; }
.choice {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; width: 100%;
  padding: 20px; text-align: left; border: 1px solid var(--line-gold); background: var(--bg-2);
  transition: border-color .3s, background-color .3s, transform .18s var(--ease-out);
}
.choice:active { transform: scale(.98); }
.choice svg { width: 40px; height: 40px; color: var(--gold); }
.choice strong { display: block; font: 500 22px/1.15 var(--f-display); color: var(--marble); }
.choice small { font-size: 14px; color: var(--muted); }
.choice b { font-weight: 400; color: var(--gold); font-size: 20px; transition: transform .35s var(--ease-out); }
@media (hover: hover) { .choice:hover { border-color: var(--gold); background: var(--bg-3); } .choice:hover b { transform: translateX(4px); } }
.book__direct { display: grid; gap: 10px; }
.visit { padding: 28px 22px; border: 1px solid var(--line); }
.visit__open { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--marble); margin-bottom: 14px; }
.visit__open::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.visit__open.is-open::before { background: #7fcf8a; }
.visit__place { margin: 0; font: 500 clamp(28px, 8vw, 40px)/1.1 var(--f-display); color: var(--marble); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; margin: 18px 0 0; border-top: 1px solid var(--line); }
.hours dt, .hours dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.hours dt { color: var(--muted); }
.hours dd { text-align: right; white-space: pre-line; font-variant-numeric: tabular-nums; color: var(--marble); }
.hours .today { color: var(--gold-hi); }

/* ---------- Pie ---------- */
.footer { padding: clamp(88px, 22vw, 150px) 0 calc(110px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer__close { display: grid; justify-items: start; gap: 6px; }
.footer__ask { margin: 0 0 22px; font: italic 400 clamp(48px, 14vw, 120px)/1 var(--f-serif); color: var(--marble); }
.footer__name { display: grid; margin: 72px 0 40px; font: 500 clamp(50px, 16.5vw, 240px)/.85 var(--f-display); letter-spacing: -.02em; background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.footer__name span:last-child { padding-left: .3em; }
.footer__row { display: flex; flex-wrap: wrap; gap: 4px 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.footer__row a { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--marble); transition: color .3s; }
.footer__row svg { width: 20px; height: 20px; color: var(--gold); transition: transform .35s var(--ease-out); }
@media (hover: hover) { .footer__row a:hover svg { transform: translateY(-2px); } }
@media (hover: hover) { .footer__row a:hover { color: var(--gold-hi); } }
.footer__legal { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Barra de acción (móvil) ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-template-columns: 1fr 52px 52px; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 10, 8, .96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .5s var(--ease-out);
}
.actionbar.is-visible { transform: none; }
.actionbar .btn { --h: 52px; }
.actionbar__icon { display: grid; place-items: center; border: 1px solid var(--line-gold); color: var(--gold-hi); border-radius: 2px; }
.actionbar__icon svg { width: 22px; height: 22px; }
.actionbar__icon:active { transform: scale(.94); }

/* ---------- Hoja de reserva ---------- */
.sheet { padding: 0; margin: 0; border: 0; max-width: 100vw; max-height: 100dvh; width: 100%; height: 100%; background: transparent; color: var(--text); overflow: hidden; }
.sheet::backdrop { background: rgba(5, 4, 3, .72); opacity: 0; transition: opacity .45s; }
.sheet.is-open::backdrop { opacity: 1; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--bg-2); border-top: 1px solid var(--line-gold); border-radius: 18px 18px 0 0;
  transform: translateY(100%); transition: transform .5s var(--ease-sheet);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.is-open .sheet__panel { transform: translateY(var(--drag, 0px)); }
.sheet.is-dragging .sheet__panel { transition: none; }
.sheet__grab { display: grid; place-items: center; height: 26px; touch-action: none; cursor: grab; }
.sheet__grab span { width: 40px; height: 4px; border-radius: 4px; background: rgba(236, 226, 206, .25); }
.sheet__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 0 12px 12px 20px; touch-action: none; }
.sheet__back, .sheet__close { width: 44px; height: 44px; display: grid; place-items: center; font-size: 26px; line-height: 1; color: var(--marble); }
.sheet__back[hidden] { display: none; }
.sheet__step { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.sheet__title:focus, .gallery__title:focus { outline: none; }
.sheet__title { margin: 2px 0 0; font: 500 24px/1.15 var(--f-display); color: var(--marble); }
.sheet__progress { height: 2px; background: var(--line); margin: 0 20px; }
.sheet__progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(.25); transition: transform .5s var(--ease-out); }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 20px 20px; -webkit-overflow-scrolling: touch; }
.step { animation: stepIn .45s var(--ease-out) both; }
.step.back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.opt-grid { display: grid; gap: 10px; }
.opt-grid--2 { grid-template-columns: 1fr 1fr; }
.opt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.opt span {
  display: grid; gap: 2px; min-height: 52px; padding: 14px 16px; align-content: center;
  border: 1px solid var(--line); background: var(--bg); border-radius: 2px; cursor: pointer;
  transition: border-color .25s, background-color .25s, transform .18s var(--ease-out);
}
.opt span:active { transform: scale(.98); }
.opt strong { font-weight: 600; color: var(--marble); font-size: 16px; }
.opt small { font-size: 14px; color: var(--muted); }
.opt em { font-style: normal; color: var(--gold-hi); font-family: var(--f-serif); font-size: 19px; }
.opt--row span { grid-template-columns: 1fr auto; align-items: baseline; }
.opt--row small { grid-column: 1 / -1; }
.opt input:checked + span { border-color: var(--gold); background: rgba(201, 161, 74, .1); }
.opt input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.opt--big span { min-height: 120px; justify-items: start; align-content: end; padding: 18px; }
.opt--big svg { width: 36px; height: 36px; color: var(--gold); margin-bottom: auto; }
.opt--big strong { font: 500 22px var(--f-display); }

.field-label { display: block; margin: 22px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field-label:first-child { margin-top: 0; }
.input, .textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; font: 16px/1.4 var(--f-sans); color: var(--marble);
  background: var(--bg); border: 1px solid var(--line); border-radius: 2px; transition: border-color .25s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--gold); }

.days { display: grid; grid-auto-flow: column; grid-auto-columns: 68px; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 8px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.days::-webkit-scrollbar { display: none; }
.day { scroll-snap-align: start; }
.day span { min-height: 80px; justify-items: center; text-align: center; padding: 10px 4px; }
.day small { text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.day strong { font: 500 24px/1 var(--f-display); }
.day input:disabled + span { opacity: .3; cursor: not-allowed; }

.summary { margin: 22px 0 0; padding: 16px; border: 1px dashed var(--line-gold); font-size: 15px; color: var(--text); white-space: pre-line; }
.sheet__foot { display: grid; gap: 10px; padding: 14px 20px calc(14px); border-top: 1px solid var(--line); background: var(--bg-2); }
.sheet__foot .btn { width: 100%; }
.sheet__foot .btn[disabled] { opacity: .4; pointer-events: none; }
.field-error { margin: 8px 0 0; font-size: 14px; color: #e8a08a; }
.input[aria-invalid="true"] { border-color: #c9775f; }
.note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* ======================= Tablet / escritorio ======================= */
@media (min-width: 640px) {
  .hero__actions { grid-template-columns: auto 1fr; align-items: center; max-width: 620px; }
  .hero__actions .btn { width: auto; }
  .motifs { grid-auto-columns: 44%; }
  .tattoo__row { grid-template-columns: 1fr 1fr 1fr; align-items: end; }
  .tattoo__cta { grid-column: auto; margin: 0; }
  .book__direct { grid-template-columns: 1fr 1fr; }
  .sheet__panel { left: 50%; right: auto; bottom: 50%; width: min(560px, 92vw); max-height: min(780px, 90dvh); border: 1px solid var(--line-gold); border-radius: 4px; transform: translate(-50%, 54%) scale(.97); opacity: 0; transition: transform .5s var(--ease-out), opacity .35s; }
  .sheet.is-open .sheet__panel { transform: translate(-50%, 50%); opacity: 1; }
  .sheet__grab { display: none; }
  .sheet__head { padding-top: 18px; }
  .actionbar { display: none; }
  .footer { padding-bottom: 48px; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --nav-h: 76px; }
  .nav__links { display: flex; gap: 6px; margin: 0 auto; }
  .nav__links a { position: relative; padding: 12px 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text); transition: color .3s; }
  .nav__links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
  .nav__links a:hover { color: var(--marble); }
  .nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
  .nav__brand { margin-right: 0; }
  .nav__cta { display: inline-flex; }
  .nav__menu { display: none; }
  .nav { justify-content: space-between; }

  .hero { justify-content: center; }
  .hero__media { inset: 0 0 0 42%; }
  .hero__media::after {
    background:
      linear-gradient(to right, var(--bg) 0%, rgba(11, 10, 8, .6) 22%, transparent 55%),
      linear-gradient(to bottom, rgba(11, 10, 8, .5), transparent 25%, transparent 70%, var(--bg));
  }
  .hero__media img { object-position: 50% 22%; }
  .hero__dust { inset: 0; height: 100%; -webkit-mask-image: linear-gradient(to right, transparent 38%, #000 62%); mask-image: linear-gradient(to right, transparent 38%, #000 62%); }
  .hero__content { width: 100%; max-width: 1240px; margin: 0 auto; padding: calc(var(--nav-h) + 40px) var(--gutter) 80px; }
  .hero__line { font-size: clamp(96px, 11.5vw, 190px); }
  .hero__seal { width: 128px; height: 128px; right: 48px; top: auto; bottom: 56px; }
  .hero__seal text { font-size: 9.6px; }
  .hero__scroll { display: block; position: absolute; left: 50%; bottom: 28px; width: 1px; height: 64px; background: var(--line); overflow: hidden; }
  .hero__scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--gold); animation: scrollCue 2.2s var(--ease-in-out) infinite; }
  @keyframes scrollCue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

  .head--split { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 48px; }
  .head--split .lead { margin: 0; justify-self: end; }

  .stack { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stack__card { position: relative; top: 0; }
  .stack__link { padding: 22px 22px 32px; height: 100%; }
  .stack__card .arch { aspect-ratio: 16 / 10; }

  .barber__grid { grid-template-columns: 5fr 6fr; gap: 96px; align-items: start; }
  .barber__media { position: sticky; top: calc(var(--nav-h) + 40px); }
  .barber__thumb { right: -40px; bottom: -40px; width: 42%; }

  .motifs { margin: 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .tattoo__row { margin-top: 64px; gap: 24px; }
  .tattoo__cta { padding-left: 24px; }

  .emperor__grid { grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
  .emperor__media { padding: 0 6%; margin-bottom: 0; }

  .book__grid { grid-template-columns: 7fr 5fr; gap: 24px; align-items: stretch; }
  .book__choices { grid-template-columns: 1fr 1fr; }
  .choice { grid-template-columns: 1fr auto; grid-template-rows: auto auto; min-height: 220px; align-content: space-between; padding: 28px; }
  .choice svg { width: 48px; height: 48px; grid-column: 1 / -1; }
  .visit { padding: 36px; }

  .footer__close { grid-template-columns: 1fr auto; align-items: end; }
  .footer__close .kicker { grid-column: 1 / -1; }
  .footer__ask { margin: 0; }
}


/* ---------- Reseñas ---------- */
.score { display: inline-flex; align-items: center; gap: 16px; margin-top: 28px; min-height: 44px; }
.score__num { font: 500 clamp(64px, 18vw, 104px)/.9 var(--f-display); background: var(--gold-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.score__meta { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.score__stars { font-size: 18px; letter-spacing: .18em; color: var(--gold); }
@media (hover: hover) { .score:hover .score__meta > span:last-child { color: var(--gold-hi); } }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.quote { display: flex; flex-direction: column; gap: 18px; padding: 28px 24px 24px; background: var(--bg-2); border: 1px solid var(--line); position: relative; }
.quote::before { content: '“'; position: absolute; top: 4px; right: 18px; font: 400 96px/1 var(--f-serif); color: var(--gold); opacity: .35; pointer-events: none; }
.quote__stars { font-size: 14px; letter-spacing: .2em; color: var(--gold); }
.quote blockquote { margin: 0; flex: 1; }
.quote blockquote p { margin: 0; font: italic 400 clamp(21px, 5.6vw, 24px)/1.35 var(--f-serif); color: var(--marble); }
.quote__who { margin: 0; display: grid; gap: 2px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.quote__who strong { font-weight: 600; color: var(--marble); }
.quote__who span { color: var(--muted); }
.reviews__all { margin-top: 20px; }

/* ---------- Mapa ---------- */
.visit__full { margin: 6px 0 4px; font-size: 15px; color: var(--muted); }
.map { position: relative; margin: 20px 0 0; aspect-ratio: 4 / 5; max-height: 72svh; width: 100%; overflow: hidden; border: 1px solid var(--line-gold); background: var(--bg-3); }
.map iframe { display: block; width: 100%; height: 100%; border: 0;
  /* mapa claro → nocturno, virado a sepia para que case con el oro */
  filter: invert(.92) hue-rotate(180deg) grayscale(.55) sepia(.35) contrast(.92) brightness(.92); }
.map::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px 10px rgba(11, 10, 8, .55); }
.map__chip { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: rgba(11, 10, 8, .92); border: 1px solid var(--line-gold); font-size: 14px; font-weight: 600; color: var(--marble); transition: border-color .3s, color .3s; }
.map__chip .fleur { width: 18px; height: 18px; }
@media (hover: hover) { .map__chip:hover { border-color: var(--gold); color: var(--gold-hi); } }

@media (min-width: 640px) {
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .quote:first-child { grid-column: 1 / -1; }
  .map { aspect-ratio: 16 / 9; }
}
@media (min-width: 900px) {
  .reviews .head--split { align-items: end; }
  .score { margin: 0; justify-self: end; }
  .quotes { grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
  .quote:first-child { grid-column: auto; }
  .quote { padding: 36px 32px 28px; }
  .map { aspect-ratio: 21 / 8; margin-top: 24px; }
  .map__chip { left: 20px; bottom: 20px; }
}


/* ---------- Lettering dibujado ---------- */
.draw-text { font: italic 500 56px var(--f-serif); fill: none; stroke: currentColor; stroke-width: .9; stroke-dasharray: 220; stroke-dashoffset: 220; }
.js .in .draw-text { animation: drawText 2.6s var(--ease-in-out) .2s forwards; }
.no-js .draw-text, .js .draw-text.done { stroke-dashoffset: 0; }
@keyframes drawText { 70% { fill: transparent; } to { stroke-dashoffset: 0; fill: currentColor; fill-opacity: .9; } }

/* ---------- Galería (popup) ---------- */
.gallery { padding: 0; margin: 0; border: 0; width: 100%; height: 100%; max-width: 100vw; max-height: 100dvh; background: transparent; color: var(--text); overflow: hidden; }
.gallery::backdrop { background: rgba(5, 4, 3, .82); opacity: 0; transition: opacity .45s; }
.gallery.is-open::backdrop { opacity: 1; }
.gallery__panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg);
  padding-top: env(safe-area-inset-top);
  clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease-in-out);
}
.gallery.is-open .gallery__panel { clip-path: inset(0); }
.gallery__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px var(--gutter) 18px; border-bottom: 1px solid var(--line); }
.gallery__head .kicker { margin-bottom: 10px; }
.gallery__title { margin: 0; font: 500 clamp(28px, 7.5vw, 48px)/1.05 var(--f-display); color: var(--marble); }
.gallery__grid { list-style: none; margin: 0; padding: 16px var(--gutter) 24px; flex: 1; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; }
.gallery__grid li { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(.25s + var(--i) * 45ms); }
.gallery.is-open .gallery__grid li { opacity: 1; transform: none; }
.gallery__item { display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-3); position: relative; }
.gallery__item::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line-gold); opacity: 0; transition: opacity .4s; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); transition: transform .8s var(--ease-out), filter .5s; }
.gallery__item:active img { transform: scale(.98); }
@media (hover: hover) { .gallery__item:hover img { transform: scale(1.03); filter: none; } .gallery__item:hover::after { opacity: 1; } }
.gallery__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }
.gallery__foot .btn { padding: 0 12px; }

.viewer { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: 1fr auto; background: #080706; opacity: 0; transition: opacity .3s; padding-top: env(safe-area-inset-top); }
.viewer.is-open { opacity: 1; }
.viewer[hidden] { display: none; }
.viewer__x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 3; background: rgba(11, 10, 8, .85); border: 1px solid var(--line-gold); }
.gallery__head .sheet__close { flex: none; border: 1px solid var(--line); transition: border-color .3s, color .3s; }
@media (hover: hover) { .gallery__head .sheet__close:hover, .viewer__x:hover { border-color: var(--gold); color: var(--gold-hi); } }
.gallery__item { cursor: zoom-in; }
.viewer__fig { margin: 0; min-height: 0; display: grid; place-items: center; padding: 64px var(--gutter) 8px; }
.viewer__fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border: 1px solid var(--line-gold); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.viewer__fig img.in-r { animation: slideR .45s var(--ease-out); }
.viewer__fig img.in-l { animation: slideL .45s var(--ease-out); }
@keyframes slideR { from { opacity: 0; transform: translateX(40px); } }
@keyframes slideL { from { opacity: 0; transform: translateX(-40px); } }
.viewer__nav { position: absolute; top: 45%; width: 48px; height: 48px; display: grid; place-items: center; font-size: 22px; color: var(--marble); background: rgba(11, 10, 8, .85); border: 1px solid var(--line-gold); transition: border-color .3s, color .3s; }
.viewer__nav--prev { left: 8px; } .viewer__nav--next { right: 8px; }
@media (max-width: 639px) {
  .viewer__fig { padding-bottom: 76px; }
  .viewer__nav { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .viewer__nav--prev { left: calc(50% - 56px); } .viewer__nav--next { right: calc(50% - 56px); }
}
@media (hover: hover) { .viewer__nav:hover { border-color: var(--gold); color: var(--gold-hi); } }
.viewer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.viewer__count { font: 500 15px var(--f-display); letter-spacing: .14em; color: var(--gold); }
.viewer__close { min-height: 44px; font-size: 14px; font-weight: 600; color: var(--marble); }

@media (min-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gallery__foot { display: flex; justify-content: flex-end; }
  .gallery__foot .btn { padding: 0 26px; }
}
@media (min-width: 900px) {
  .gallery__panel { inset: 4vh 4vw; border: 1px solid var(--line-gold); }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 24px var(--gutter) 32px; }
  .viewer__nav { top: 50%; transform: translateY(-50%); } .viewer__nav--prev { left: 24px; } .viewer__nav--next { right: 24px; }
  .viewer__fig { padding: 40px 96px 12px; }
  .viewer__x { top: 16px; right: 16px; }
}


/* ---------- Horas (agenda) ---------- */
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time span { min-height: 48px; padding: 10px 4px; justify-items: center; text-align: center; }
.time strong { font: 500 16px var(--f-sans); font-variant-numeric: tabular-nums; }
.time input:disabled + span { opacity: .28; cursor: not-allowed; text-decoration: line-through; }
.confirm { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 12px 0 4px; }
.confirm__mark { width: 44px; height: 44px; color: var(--gold); margin-bottom: 8px; animation: sealIn .8s var(--ease-out) both; }
@keyframes sealIn { from { opacity: 0; transform: scale(.5) rotate(-20deg); } }
.confirm__when { margin: 0; font: italic 400 24px/1.25 var(--f-serif); color: var(--text); }
.confirm__when::first-letter { text-transform: uppercase; }
.confirm__when strong { display: block; font: 500 52px/1.1 var(--f-display); font-style: normal; color: var(--gold-hi); }
.confirm__what { margin: 8px 0 0; color: var(--muted); }
@media (min-width: 640px) { .times { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px) and (max-width: 1180px) { .nav__links a { padding: 12px 9px; letter-spacing: .1em; } }

/* ---------- Movimiento reducido: todo quieto y visible ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .intro { display: none; }
  .js [data-iris] { clip-path: none; }
  .js [data-iris] img, .hero__media img { transform: none; }
  .statement__text .w { opacity: 1; }
  .hero__dust { display: none; }
  .draw-text { stroke-dashoffset: 0; fill: currentColor; }
  .gallery__panel { clip-path: none; }
  .gallery__grid li { opacity: 1; transform: none; }
}

/* sombra de la carta tapada (la controla main.js con --dim) */
.stack__link { position: relative; }
.stack__link::after { content: ''; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; }
