/* ============================================================
   BARBACHOS — Estilos
   Paleta: carbón, grafito, grises cálidos, nogal, roble y latón
   ============================================================ */

:root {
  --carbon: #0e0d0c;
  --carbon-2: #151412;
  --grafito: #1d1b19;
  --linea: rgba(237, 230, 220, 0.12);
  --linea-2: rgba(237, 230, 220, 0.22);
  --gris: #8b857e;
  --gris-claro: #b9b2a8;
  --hueso: #ede6dc;
  --nogal: #4a3222;
  --nogal-2: #6b4a32;
  --roble: #a47551;
  --laton: #c29a6b;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--carbon);
  color: var(--hueso);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
em { font-style: italic; font-family: var(--serif); font-weight: 300; color: var(--laton); }
::selection { background: var(--laton); color: var(--carbon); }

/* ---------- Grano ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.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 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(3%, -6%); }
  60% { transform: translate(-7%, 2%); }
  80% { transform: translate(4%, 5%); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--carbon);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
}
.loader__center { position: relative; width: 120px; height: 150px; }
.loader__mark { width: 100%; height: 100%; }
.loader__arch {
  stroke: var(--laton); stroke-width: 1;
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: draw 1.8s var(--ease) forwards;
}
.loader__arch--inner { stroke: var(--linea-2); animation-delay: 0.25s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader__logo {
  position: absolute; left: 50%; top: 60%; width: 74px; height: 74px;
  transform: translate(-50%, -50%);
  opacity: 0; animation: fadeUp 1s 0.6s var(--ease-out) forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translate(-50%, -30%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
.loader__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + 18px);
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gris);
}
.loader__count { font-family: var(--serif); font-size: clamp(48px, 9vw, 120px); line-height: 0.8; letter-spacing: 0; color: var(--hueso); font-weight: 300; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--linea); }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--laton); transition: width 0.2s linear; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center;
    position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
    width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: var(--hueso); mix-blend-mode: difference;
    transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out);
  }
  .cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .cursor.has-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; background: var(--laton); }
  .cursor__label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--carbon); opacity: 0; transition: opacity 0.2s; }
  .cursor.has-label .cursor__label { opacity: 1; }
}

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
}
.btn span, .btn i { position: relative; z-index: 1; font-style: normal; transition: color 0.5s var(--ease); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--laton); transform: translateY(101%);
  transition: transform 0.6s var(--ease); border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover span, .btn:hover i { color: var(--carbon); }

.btn--pill { padding: 12px 22px; border: 1px solid var(--linea-2); border-radius: 999px; }
.btn--line { padding: 16px 26px; border: 1px solid var(--linea-2); border-radius: 999px; }
.btn--line i { transition: transform 0.5s var(--ease), color 0.5s var(--ease); }
.btn--line:hover i { transform: translateX(4px); }
.btn--solid { padding: 18px 28px; background: var(--hueso); color: var(--carbon); border-radius: 999px; }
.btn--solid::before { background: var(--laton); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--pad);
  transition: transform 0.6s var(--ease), background 0.4s, padding 0.4s;
}
.nav.is-scrolled {
  background: rgba(14, 13, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--linea);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__word { font-family: var(--serif); font-size: 22px; letter-spacing: 0.04em; }
.nav__word i { font-style: normal; color: var(--laton); }
.nav__logo-img { width: 46px; height: 46px; display: block; }
.nav__links { display: flex; gap: 34px; font-size: 13px; letter-spacing: 0.08em; }
.nav__links a { position: relative; color: var(--gris-claro); transition: color 0.3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--laton); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--hueso); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--hueso); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 26px; }
.menu-open .nav__burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--carbon-2);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--pad) 40px;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.9s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); line-height: 1.1; font-weight: 300;
  display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.menu__links a i { font-family: var(--sans); font-style: normal; font-size: 11px; color: var(--laton); letter-spacing: 0.1em; }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(1) { transition-delay: 0.25s; }
.menu-open .menu__links a:nth-child(2) { transition-delay: 0.3s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: 0.35s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: 0.4s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: 0.45s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: 0.5s; }
.menu__foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--gris-claro); }

/* ---------- Tipografía común ---------- */
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gris);
}
.title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(42px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.01em;
}
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-mask > span { display: block; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(96px, 14vw, 200px) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.section__head { margin-bottom: clamp(48px, 7vw, 96px); }
.section__head--split { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
.section__head--split .eyebrow { padding-top: 1.2em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--pad) 72px; max-width: calc(var(--maxw) + 20vh); margin: 0 auto;
}
/* Foto de fondo a todo el ancho, oscurecida y fundida con el gris de abajo */
.hero { isolation: isolate; }
.hero__bg {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw;
  z-index: -1; overflow: hidden; pointer-events: none;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
  filter: saturate(0.9) brightness(0.68); transform: scale(1.08); will-change: transform;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 40%, rgba(14, 13, 12, 0.15) 0%, rgba(14, 13, 12, 0.7) 100%),
    linear-gradient(180deg, rgba(14, 13, 12, 0.75) 0%, rgba(14, 13, 12, 0.35) 30%, rgba(14, 13, 12, 0.55) 65%, var(--carbon) 100%);
}
.hero__meta {
  position: absolute; top: 110px; left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gris);
}
.hero__meta b { font-weight: 500; color: var(--hueso); }
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(64px, min(17vw, 34vh), 380px); line-height: 0.82; letter-spacing: -0.035em;
  text-align: center; white-space: nowrap;
  position: relative; z-index: 2; pointer-events: none;
}
.split-letters .char { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0 0.12em; }
.split-letters .char > span { display: inline-block; will-change: transform; }

.hero__grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(24px, 4vw, 64px); align-items: end;
  margin-top: calc(-1 * clamp(16px, 4vh, 48px));
}
.hero__lead { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; font-weight: 300; }
.hero__side { justify-self: end; max-width: 300px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; color: var(--gris-claro); font-size: 15px; }
.hero__arch { position: relative; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gris);
}

/* ---------- Arcos (marcos neoclásicos para fotos) ---------- */
.arch {
  position: relative; overflow: hidden;
  border-radius: 999px 999px 4px 4px;
  background: var(--grafito);
  isolation: isolate;
}
.arch--hero { width: clamp(180px, min(20vw, 30vh), 360px); aspect-ratio: 3 / 4.2; }
.hero__scroll i { width: 1px; height: 28px; background: linear-gradient(var(--laton), transparent); }
.arch--tall { width: 100%; aspect-ratio: 3 / 4; }
.arch__img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover;
  filter: saturate(0.9) contrast(1.04); will-change: transform;
}
.arch:has(.arch__img)::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,13,12,0) 45%, rgba(14,13,12,0.55) 100%);
}
.arch:has(.arch__img) .arch__mono, .arch:has(.arch__img) .arch__caption { display: none; }
.arch .arch:has(.arch__img) .arch__wood {
  position: absolute; inset: -10%;
  background:
    repeating-linear-gradient(92deg, rgba(0,0,0,0) 0 7px, rgba(0,0,0,0.16) 7px 8px, rgba(0,0,0,0) 8px 19px, rgba(255,220,180,0.05) 19px 20px),
    repeating-radial-gradient(ellipse 160% 30% at 30% 120%, rgba(0,0,0,0) 0 14px, rgba(0,0,0,0.18) 15px 17px),
    linear-gradient(170deg, var(--roble) 0%, var(--nogal-2) 38%, var(--nogal) 70%, #24170f 100%);
  will-change: transform;
}
.arch__wood--light { background:
    repeating-linear-gradient(88deg, rgba(0,0,0,0) 0 9px, rgba(0,0,0,0.14) 9px 10px, rgba(0,0,0,0) 10px 23px),
    repeating-radial-gradient(ellipse 140% 26% at 70% -20%, rgba(0,0,0,0) 0 16px, rgba(0,0,0,0.16) 17px 19px),
    linear-gradient(200deg, #3a3633 0%, #24211e 55%, #141210 100%); }
.arch__shine {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 210, 0.22) 48%, transparent 62%);
  transform: translateX(-120%); animation: shine 7s 3s var(--ease) infinite;
}
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.arch::after { content: ""; position: absolute; inset: 10px; z-index: 2; border: 1px solid rgba(237, 230, 220, 0.22); border-radius: inherit; pointer-events: none; }
.arch__mono {
  position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%);
  font-family: var(--serif); font-weight: 300; font-size: clamp(80px, 9vw, 140px); line-height: 1;
  color: rgba(237, 230, 220, 0.85); mix-blend-mode: overlay;
}
.arch__caption {
  position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(237, 230, 220, 0.45);
}

/* ---------- Badge circular ---------- */
.badge {
  position: absolute; right: -54px; bottom: 22%;
  width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--carbon); color: var(--hueso);
  border: 1px solid var(--linea-2);
  transition: background 0.4s, color 0.4s;
}
.badge:hover { background: var(--laton); color: var(--carbon); }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge__ring text { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; fill: currentColor; font-family: var(--sans); }
.badge__arrow { width: 26px; height: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea);
  overflow: hidden; padding: 22px 0; white-space: nowrap;
}
.marquee__track { display: inline-flex; align-items: center; gap: 40px; animation: marquee 32s linear infinite; padding-left: 40px; }
.marquee__track span { font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); font-weight: 300; font-style: italic; }
.marquee__track b { color: var(--laton); font-size: 18px; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Historia ---------- */
.historia__text {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 4.4vw, 64px); line-height: 1.12; letter-spacing: -0.005em;
  max-width: 1200px;
}
.split-words .word { display: inline-block; opacity: 0.16; will-change: opacity; }
.historia__grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 8vw, 140px);
  margin-top: clamp(80px, 10vw, 160px); align-items: center;
}
.historia__arch { max-width: 440px; }
.tl { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--linea); }
.tl__year { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--laton); font-weight: 300; }
.tl h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin-bottom: 8px; }
.tl p { color: var(--gris-claro); max-width: 440px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 40px; border-top: 1px solid var(--linea); }
.stats b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; }
.stats span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris); }

/* ---------- Servicios ---------- */
.services { list-style: none; border-top: 1px solid var(--linea); }
.price-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.price-tabs:empty { display: none; }
.price-tab {
  padding: 12px 22px; border: 1px solid var(--linea-2); border-radius: 999px;
  font-size: 13px; letter-spacing: 0.08em; color: var(--gris-claro);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.price-tab:hover { border-color: var(--hueso); color: var(--hueso); }
.price-tab.is-active { background: var(--hueso); border-color: var(--hueso); color: var(--carbon); }
.price-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.price-card { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--linea); border-radius: 24px; background: var(--carbon-2); }
.price-card ul { list-style: none; margin-top: 18px; }
.price-card li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; font-size: 15px; color: var(--gris-claro); }
.price-card li + li { border-top: 1px solid var(--linea); }
.price-card li i { flex: 1; }
.price-card li small { display: block; font-size: 12px; color: var(--gris); margin-top: 2px; }
.service__price em { font-family: var(--sans); font-style: normal; font-size: 12px; color: var(--gris); margin-right: 6px; letter-spacing: 0.06em; }
.price-card li b { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--hueso); white-space: nowrap; }
.service {
  position: relative; display: grid; grid-template-columns: 70px 1fr auto auto; gap: 24px; align-items: center;
  padding: 30px 8px; border-bottom: 1px solid var(--linea); overflow: hidden; cursor: default;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(164, 117, 81, 0.16), rgba(164, 117, 81, 0));
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease);
}
.service:hover::before { transform: scaleY(1); }
.service__num { font-size: 12px; color: var(--gris); letter-spacing: 0.1em; }
.service__name { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 46px); font-weight: 300; line-height: 1.05; transition: transform 0.6s var(--ease); }
.service:hover .service__name { transform: translateX(14px); }
.service__desc {
  display: block; font-family: var(--sans); font-size: 14px; color: var(--gris-claro); letter-spacing: 0;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.4s, margin 0.6s var(--ease);
}
.service:hover .service__desc { max-height: 60px; opacity: 1; margin-top: 8px; }
.service__dur { font-size: 13px; color: var(--gris); letter-spacing: 0.08em; }
.service__price { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); font-weight: 300; min-width: 90px; text-align: right; }
.service__price small { font-size: 0.55em; color: var(--laton); margin-left: 2px; }

/* ---------- Galería de trabajos ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense;
  gap: clamp(10px, 1.4vw, 20px);
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: 18px; background: var(--grafito);
  aspect-ratio: 4 / 5; cursor: zoom-in; padding: 0;
}
.gallery__item--ancha { grid-column: span 2; aspect-ratio: 33 / 20; }
.gallery__item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.8s;
  filter: saturate(0.85);
}
.gallery__item:hover img { transform: scale(1.06); filter: saturate(1.05); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 13, 12, 0.75));
  opacity: 0; transition: opacity 0.5s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__caption {
  position: absolute; left: 20px; bottom: 18px; z-index: 1;
  font-family: var(--serif); font-size: 22px; color: var(--hueso); text-align: left;
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.6s var(--ease-out);
}
.gallery__item:hover .gallery__caption { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 190; display: grid; place-items: center;
  padding: clamp(16px, 4vw, 64px);
  background: rgba(10, 9, 8, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lightbox img {
  max-width: min(1200px, 100%); max-height: 80vh; object-fit: contain; border-radius: 14px;
  transform: scale(0.97); transition: transform 0.6s var(--ease-out);
}
.lightbox.is-open img { transform: none; }
.lightbox figcaption { font-family: var(--serif); font-size: 22px; color: var(--gris-claro); }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--linea-2); color: var(--hueso); font-size: 22px; line-height: 1;
  background: rgba(14, 13, 12, 0.6); transition: background 0.3s, color 0.3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--hueso); color: var(--carbon); }
.lightbox__close { top: 20px; right: 20px; font-size: 28px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ---------- Fundadores ---------- */
.founders {
  display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr));
  gap: clamp(32px, 6vw, 120px); max-width: 1180px; margin: 0 auto;
}
.founder { display: flex; flex-direction: column; gap: 32px; }
.founder:nth-child(even) { margin-top: clamp(64px, 10vw, 160px); }
.founder .arch { aspect-ratio: 4 / 5; }
.founder .arch__wood { transition: transform 1.2s var(--ease-out); }
.founder:hover .arch__wood { transform: scale(1.06); }
.founder .arch__img { transition: filter 0.8s; filter: saturate(0.7) contrast(1.05); }
.founder:hover .arch__img { filter: saturate(1) contrast(1.05); }
.founder__initial {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 2;
  font-family: var(--serif); font-size: clamp(100px, 12vw, 200px); font-weight: 300; line-height: 1;
  color: rgba(237, 230, 220, 0.18);
}
.arch:has(.arch__img) .founder__initial { display: none; }
.founder__pending {
  position: absolute; left: 0; right: 0; top: 55%; z-index: 2; text-align: center;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(237, 230, 220, 0.55);
}
.founder--pending h3 { color: var(--gris-claro); font-size: clamp(32px, 3vw, 44px); }
.founder__role { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--laton); }
.founder h3 { font-family: var(--serif); font-size: clamp(44px, 4.4vw, 68px); font-weight: 300; line-height: 1; margin: 12px 0 20px; }
.founder blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.25;
  padding-left: 20px; border-left: 1px solid var(--laton); margin-bottom: 18px;
}
.founder p { color: var(--gris-claro); max-width: 460px; }
.founder blockquote cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gris); }

/* ---------- Horario ---------- */
.hours {
  display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(32px, 5vw, 80px); align-items: start;
  margin-top: clamp(64px, 8vw, 120px); padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--linea);
}
.hours__head { display: flex; flex-direction: column; gap: 14px; }
.hours__live {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 10px 16px; border: 1px solid var(--linea-2); border-radius: 999px; font-size: 13px;
}
.hours__live::before, .book__status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #7fb37a; box-shadow: 0 0 0 4px rgba(127, 179, 122, 0.15); animation: pulse 2s infinite;
}
.hours__live.is-closed::before, .book__status.is-closed::before { background: var(--gris); box-shadow: 0 0 0 4px rgba(139, 133, 126, 0.18); animation: none; }
.hours__note { font-size: 13px; color: var(--gris); }
.hours__list { display: flex; flex-direction: column; gap: 36px; }
.hours__sede { display: block; font-family: var(--serif); font-size: 24px; margin-bottom: 4px; }
.hours__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.hours__cell {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 22px 0 0 22px; border-left: 1px solid var(--linea);
}
.hours__cell::before {
  content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 0;
  background: var(--laton); transition: height 0.8s var(--ease);
}
.hours__cell.is-today::before { height: 100%; }
.hours__days {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gris);
}
.hours__days i { font-style: normal; letter-spacing: 0.12em; padding: 3px 8px; border-radius: 999px; background: var(--laton); color: var(--carbon); font-size: 10px; }
.hours__time {
  display: flex; align-items: baseline; gap: 8px; white-space: nowrap;
  font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 38px); line-height: 1;
}
.hours__time span { color: var(--laton); font-size: 0.6em; }
.hours__cell.is-today .hours__days { color: var(--hueso); }

/* ---------- Reserva (botones a Booksy) ---------- */
.book { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.book__item {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
  min-height: 440px; padding: 36px 32px; overflow: hidden; isolation: isolate;
  border-right: 1px solid var(--linea);
}
.book__item:last-child { border-right: 0; }
.book__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(170deg, var(--roble), var(--nogal-2) 45%, var(--nogal) 80%, #24170f);
  clip-path: inset(100% 0 0 0); transition: clip-path 0.9s var(--ease);
}
.book__item.is-open:hover::before { clip-path: inset(0 0 0 0); }
.book__top { display: flex; justify-content: space-between; align-items: flex-start; }
.book__num { font-family: var(--serif); font-size: clamp(72px, 8vw, 128px); font-weight: 300; line-height: 0.8; color: var(--laton); transition: color 0.6s; }
.book__item.is-open:hover .book__num { color: var(--hueso); }
.book__arrow {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--linea-2); transition: transform 0.7s var(--ease-out), background 0.5s, color 0.5s, border-color 0.5s;
}
.book__arrow svg { width: 22px; height: 22px; }
.book__item.is-open:hover .book__arrow { transform: rotate(45deg); background: var(--hueso); color: var(--carbon); border-color: var(--hueso); }
.book__item h3 { font-family: var(--serif); font-size: clamp(30px, 2.8vw, 42px); font-weight: 400; line-height: 1.02; margin: 14px 0 6px; }
.book__item p { color: var(--gris-claro); font-size: 15px; transition: color 0.6s; }
.book__item.is-open:hover p { color: var(--hueso); }
.book__cta::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.book__cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
}
.book__cta::after { content: ""; width: 34px; height: 1px; background: currentColor; transition: width 0.6s var(--ease); }
.book__item.is-open:hover .book__cta::after { width: 64px; }
.book__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gris-claro);
}
.book__item--soon .book__status::before { background: var(--laton); box-shadow: 0 0 0 4px rgba(194, 154, 107, 0.18); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.book__links { position: relative; z-index: 1; display: flex; gap: 20px; margin-top: 18px; font-size: 13px; color: var(--gris-claro); }
.book__links a { border-bottom: 1px solid var(--linea-2); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.book__links a:hover { color: var(--hueso); border-color: var(--hueso); }
.book__item--soon { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(237,230,220,0.025) 14px 28px); cursor: default; }
.book__item--soon .book__num { color: var(--gris); }
.book__item--soon .book__arrow { border-style: dashed; color: var(--gris); }
.book__item--soon .book__cta { color: var(--laton); }
.book__item--soon .book__cta::after { display: none; }
.book__note { margin-top: 28px; font-size: 14px; color: var(--gris); text-align: center; }

/* ---------- Reseñas ---------- */
.resenas { max-width: none; padding-left: 0; padding-right: 0; }
.resenas .section__head { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding: 0 var(--pad); }
.rating { display: flex; align-items: center; gap: 24px; }
.rating > b { font-family: var(--serif); font-size: clamp(80px, 10vw, 150px); font-weight: 300; line-height: 0.8; }
.rating div { display: flex; flex-direction: column; gap: 6px; color: var(--gris-claro); font-size: 14px; }
.stars { color: var(--laton); letter-spacing: 0.2em; font-size: 18px; }
.reviews { display: flex; flex-direction: column; gap: 20px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.reviews__row { display: flex; gap: 20px; width: max-content; animation: marquee 60s linear infinite; }
.reviews__row--rev { animation-direction: reverse; animation-duration: 70s; }
.reviews:hover .reviews__row { animation-play-state: paused; }
.review {
  flex: 0 0 auto; width: clamp(280px, 30vw, 420px); padding: 30px;
  border: 1px solid var(--linea); border-radius: 20px; background: var(--carbon-2);
  display: flex; flex-direction: column; gap: 22px; justify-content: space-between;
}
.review p { font-family: var(--serif); font-size: 22px; line-height: 1.3; font-weight: 300; }
.review footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--gris-claro); }
.review .stars { font-size: 13px; }

.write-review {
  display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap;
  max-width: calc(var(--maxw) - 2 * var(--pad)); margin: clamp(48px, 6vw, 80px) auto 0;
  padding: clamp(28px, 4vw, 44px); border: 1px solid var(--linea-2); border-radius: 28px;
  background: linear-gradient(135deg, var(--carbon-2), var(--grafito));
}
.write-review__text { display: flex; align-items: center; gap: 24px; max-width: 620px; }
.write-review__g {
  flex: none; width: 64px; height: 64px; padding: 14px; border-radius: 50%;
  background: var(--hueso);
}
.write-review h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; margin-bottom: 6px; }
.write-review p { font-size: 15px; color: var(--gris-claro); }
.write-review__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.write-review .btn i { font-size: 12px; }
@media (max-width: 640px) {
  .write-review { margin-left: var(--pad); margin-right: var(--pad); }
  .write-review__text { flex-direction: column; align-items: flex-start; gap: 16px; }
  .write-review__btns, .write-review__btns .btn { width: 100%; }
}

/* ---------- Botón de reservar al final de cada sección ---------- */
.section-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--linea);
}
.section-cta p { font-size: 16px; color: var(--gris-claro); }
.section-cta p em { font-size: 26px; margin-right: 6px; }
.reservar { padding-top: clamp(64px, 8vw, 120px); }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(80px, 12vw, 180px) var(--pad); border-top: 1px solid var(--linea); }
.cta .eyebrow { display: block; }
.cta__big {
  display: inline-flex; flex-direction: column; align-items: center; margin-top: 20px;
  font-family: var(--serif); font-weight: 300; line-height: 0.9; letter-spacing: -0.03em;
  font-size: clamp(64px, 13vw, 200px);
}
.cta__big span { transition: transform 0.8s var(--ease-out); }
.cta__big em { transition: transform 0.8s var(--ease-out); }
.cta__big:hover span { transform: translateX(-4%); }
.cta__big:hover em { transform: translateX(4%); }

/* ---------- Footer ---------- */
.footer { padding: 80px var(--pad) 28px; border-top: 1px solid var(--linea); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: var(--maxw); margin: 0 auto; }
.footer__grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer__grid .eyebrow { margin-bottom: 10px; }
.footer__grid a, .footer__grid p { color: var(--gris-claro); font-size: 15px; transition: color 0.3s; }
.footer__grid a:hover { color: var(--laton); }
.footer__word {
  font-family: var(--serif); font-weight: 300; text-align: center; line-height: 0.8; letter-spacing: -0.04em;
  font-size: 21vw; margin: 60px 0 24px; white-space: nowrap;
  background: linear-gradient(180deg, var(--grafito), var(--carbon) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(237, 230, 220, 0.08);
}
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; max-width: var(--maxw); margin: 0 auto; font-size: 12px; color: var(--gris); }

/* ---------- Estados de animación (sin JS = visible) ---------- */
.js .reveal-up { opacity: 0; transform: translateY(40px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
  }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .section__head--split { grid-template-columns: 1fr; gap: 16px; }
  .section__head--split .eyebrow { padding-top: 0; }

  .hero { justify-content: center; padding-top: 140px; padding-bottom: 80px; }
  .hero__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 36px; margin-top: -14px; }
  .hero__arch { order: -1; }
  .hero__side { justify-self: center; align-items: center; }
  .badge { right: -48px; width: 96px; height: 96px; }

  .historia__grid { grid-template-columns: 1fr; }
  .historia__arch { max-width: 360px; width: 100%; margin: 0 auto; }

  .hours { grid-template-columns: 1fr; align-items: start; }
  .hours__grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .book { grid-template-columns: 1fr; }
  .book__item { min-height: 0; gap: 40px; border-right: 0; border-bottom: 1px solid var(--linea); }
  .book__item:last-child { border-bottom: 0; }
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gallery__caption { opacity: 1; transform: none; font-size: 17px; left: 14px; bottom: 12px; }
  .gallery__item::after { opacity: 1; }
  .lightbox__nav { top: auto; bottom: 24px; transform: none; }
}
@media (max-width: 640px) {
  .hero__meta { top: 92px; font-size: 10px; }
  .service { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 24px 0; }
  .service__num { display: none; }
  .service__dur { grid-column: 1; grid-row: 2; }
  .service__price { grid-row: 1 / span 2; grid-column: 2; }
  .service__desc { max-height: none; opacity: 1; margin-top: 6px; }
  .service:hover .service__name { transform: none; }
  .founders { grid-template-columns: 1fr; gap: 72px; }
  .founder:nth-child(even) { margin-top: 0; }
  .tl { grid-template-columns: 1fr; gap: 8px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .stats span { font-size: 10px; letter-spacing: 0.08em; }
  .book__item { padding: 28px 4px; }
  .book__arrow { width: 52px; height: 52px; }
  .rating { gap: 16px; }
  .review { padding: 24px; }
  .review p { font-size: 19px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal-up { opacity: 1; transform: none; }
  .split-words .word { opacity: 1; }
}
