/* =====================================================================
   BARBERÍA PREMIUM · styles.css
   Los colores se controlan desde config.js (sobrescriben estas variables).
   ===================================================================== */

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --gold: #c9a45c;
  --gold-soft: #e2c88f;
  --text: #f4f1ea;
  --muted: #a19d95;
  --line: rgba(255, 255, 255, .08);
  --on-gold: #0b0b0b;

  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-btn: 12px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; color: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--on-gold); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.muted { color: var(--muted); }
[hidden] { display: none !important; }
.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-link {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  background: var(--gold); color: var(--on-gold);
  padding: 12px 18px; font-weight: 700; border-radius: 4px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }
.section { padding-block: clamp(48px, 8vw, 100px); }
.section--tight-top { padding-top: clamp(4px, 2vw, 24px); }

/* Solo visible en modo demo */
.demo-precios, .demo-fotos { display: none !important; }
.is-demo-precios .demo-precios, .is-demo-fotos .demo-fotos { display: block !important; }
.is-demo-fotos .tag.demo-fotos { display: inline-block !important; }

/* ---------- Tipografía de secciones ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }

.title {
  margin: 0 0 18px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  line-height: .95; letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.title em, .hero__title em {
  font-family: var(--font-accent); font-style: italic; font-weight: 500;
  text-transform: none; letter-spacing: 0;
  color: var(--gold); font-size: 1.04em;
}
.lead { margin: 0; max-width: 56ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.125rem); }

.section-head { max-width: 680px; margin-bottom: clamp(24px, 4vw, 48px); }
.section-head--split { max-width: none; display: grid; gap: 20px; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 60px; }
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.note {
  margin: 28px 0 0;
  padding: 14px 16px;
  font-size: .85rem; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 8px;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  transition: color .3s, border-color .3s;
}
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--ease), background-color .35s, color .35s, border-color .35s, box-shadow .35s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.98); }

.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn--gold:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--gold) 80%, transparent);
}
.btn--gold:hover::after { transform: translateX(120%); }
.btn--gold:hover svg[aria-hidden] { transform: translateX(3px); }
.btn svg { transition: transform .35s var(--ease); }

.btn--ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .08); transform: translateY(-2px); }

.btn--line { color: var(--gold); background: transparent; border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.btn--line:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }

/* Luz que recorre el borde de los botones + resplandor en los dorados */
@property --btn-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn--gold::before, .btn--ghost::before, .btn--line::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--btn-a), transparent 0 62%, rgba(255, 255, 255, .95) 78%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: btn-spin 3s linear infinite;
}
.btn--line::before, .btn--ghost::before {
  background: conic-gradient(from var(--btn-a), transparent 0 62%, var(--gold-soft) 78%, transparent 90%);
}
@keyframes btn-spin { to { --btn-a: 360deg; } }
.btn--gold { animation: btn-glow 2.6s ease-in-out infinite; }
.btn--gold:hover { animation-play-state: paused; }
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 0%, transparent); }
  50%      { box-shadow: 0 0 22px 2px color-mix(in srgb, var(--gold) 38%, transparent); }
}

.btn--sm { min-height: 44px; padding: 0 18px; font-size: .68rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .4s;
}
/* El desenfoque va en un pseudo-elemento para no romper el menú móvil (position: fixed) */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  opacity: 0; transition: opacity .4s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header.is-scrolled::before { opacity: 1; }

.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { position: relative; z-index: 102; display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  flex: none; width: 42px; height: 42px;
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--gold); border-radius: 50%;
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .06em; color: var(--gold);
}
.brand__mark.has-logo { border: 0; border-radius: 0; width: auto; max-width: 120px; }
.brand__mark img { width: auto; height: 42px; object-fit: contain; }
.brand__name {
  font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .12em; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* En el encabezado, los nombres largos pasan a dos líneas en vez de cortarse */
.header .brand__name {
  white-space: normal; text-overflow: clip;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: clamp(1.1rem, 4.2vw, 1.45rem); letter-spacing: .1em; line-height: 1.02;
  max-width: 14em; text-wrap: balance;
}
@media (min-width: 960px) and (max-width: 1199px) {
  .header .brand { flex: none; }
  .nav__list { gap: 20px; }
  .nav__link { letter-spacing: .14em; }
}
/* Entre 960 y 1099 px se oculta "Inicio" (el logo ya lleva al inicio) para dar espacio al nombre */
@media (min-width: 960px) and (max-width: 1099px) {
  .nav__list li:first-child { display: none; }
  .nav__list { gap: 14px; }
  .nav__link { letter-spacing: .08em; font-size: .7rem; }
  .header__inner { gap: 12px; }
  .header__cta { padding: 0 14px; }
  .header .brand__name { font-size: 1.3rem; }
}

.header__actions { position: relative; z-index: 102; display: flex; align-items: center; gap: 12px; flex: none; }
.header__cta { display: none; }
@media (min-width: 480px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  width: 46px; height: 46px;
  display: grid; place-content: center; gap: 7px;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; transition: border-color .3s;
}
.menu-toggle:hover { border-color: var(--gold); }
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text); transition: transform .45s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* Menú móvil (pantalla completa) */
.nav {
  position: fixed; inset: 0; z-index: 101;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) 28px calc(40px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 55%),
    var(--bg);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
.nav.is-open { opacity: 1; visibility: visible; }
.nav__list { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nav__link {
  display: block; padding: 4px 0;
  font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 3.4rem); letter-spacing: .04em; line-height: 1.1;
  opacity: 0; transform: translateY(16px);
  transition: color .3s, opacity .5s var(--ease), transform .5s var(--ease);
}
.nav.is-open .nav__link { opacity: 1; transform: none; }
.nav__list li:nth-child(2) .nav__link { transition-delay: .05s; }
.nav__list li:nth-child(3) .nav__link { transition-delay: .1s; }
.nav__list li:nth-child(4) .nav__link { transition-delay: .15s; }
.nav__list li:nth-child(5) .nav__link { transition-delay: .2s; }
.nav__link:hover, .nav__link.is-active { color: var(--gold); }
.nav__mobile-extra { display: grid; gap: 16px; }
.nav__mobile-note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }

@media (min-width: 960px) {
  .nav {
    position: static; inset: auto; z-index: auto;
    display: block; padding: 0; background: none;
    opacity: 1; visibility: visible; overflow: visible;
  }
  .nav__list { flex-direction: row; gap: 36px; margin: 0; }
  .nav__link {
    position: relative; padding: 8px 0;
    font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: color-mix(in srgb, var(--text) 78%, transparent);
    opacity: 1; transform: none; transition: color .3s;
  }
  .nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: right;
    transition: transform .45s var(--ease);
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav__mobile-extra, .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 28px) 0 clamp(84px, 12vh, 130px);
}
@media (min-width: 960px) { .hero { align-items: center; padding-bottom: 120px; } }

.hero__media {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 70% 30%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%),
    var(--surface);
}
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.1s ease, transform 2.4s var(--ease);
}
.hero__img.is-loaded { opacity: 1; transform: scale(1); }
.hero__media.is-missing .hero__img { display: none; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 32%, rgba(0,0,0,.55) 68%, var(--bg) 100%),
    linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 70%);
}

/* Computador: la foto (vertical) ocupa la mitad derecha completa y el texto queda a la izquierda */
@media (min-width: 960px) {
  .hero__media { left: auto; width: min(52%, 820px); }
  .hero__overlay {
    background:
      linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 22%, transparent 55%),
      linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
  }
  .hero__content > * { max-width: 600px; }
  .hero .hero__title { font-size: clamp(4.5rem, 7.4vw, 7rem); }
}

.hero__title {
  margin: 0 0 24px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.4rem, 14vw, 8rem);
  line-height: .9; letter-spacing: .005em; text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--gold); }
.hero__text { margin: 0 0 32px; max-width: 54ch; color: rgba(255, 255, 255, .82); font-size: clamp(.98rem, 1.5vw, 1.1rem); line-height: 1.6; }
.hero__text p { margin: 0; }
.hero__text p + p { margin-top: 12px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 479px) { .hero__actions .btn { flex: 1 1 100%; } }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.js [data-anim] { opacity: 0; animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px;
  font-size: .6rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue__line { position: relative; width: 1px; height: 44px; overflow: hidden; background: rgba(255,255,255,.14); }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--gold); animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }
@media (max-height: 640px) { .scroll-cue { display: none; } }

/* ---------- Franja de servicios ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--bg); }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group span {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .08em;
  color: color-mix(in srgb, var(--text) 85%, transparent); white-space: nowrap;
}
.marquee__group i { font-style: normal; color: var(--gold); margin: 0 clamp(20px, 3vw, 40px); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .services { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(3, 1fr); } }

.service {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 26px 26px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s, opacity .9s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .5s;
}
.service:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--gold) 35%, transparent);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85);
}
.service:hover::before { opacity: 1; }
.service--featured { border-color: color-mix(in srgb, var(--gold) 38%, transparent); }
.service--featured::before { opacity: 1; }

.service__flag {
  position: absolute; top: 22px; right: 22px;
  padding: 5px 10px; border-radius: 6px;
  background: var(--gold); color: var(--on-gold);
  font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.service__index { font-family: var(--font-accent); font-style: italic; font-size: 1.3rem; color: var(--gold); line-height: 1; margin-bottom: 20px; }
.service__name { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: .03em; line-height: 1; }
.service__desc { margin: 0 0 20px; color: var(--muted); font-size: .95rem; }
.service__time { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: .8rem; letter-spacing: .06em; color: var(--muted); }
.service__time svg { width: 16px; height: 16px; color: var(--gold); }
.service__foot {
  margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.service__price { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.service__amount { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; letter-spacing: .02em; }
.service__amount small { display: block; margin-bottom: 6px; font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.service--cta {
  justify-content: center; text-align: left;
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%),
    var(--surface);
  border-style: dashed; border-color: color-mix(in srgb, var(--gold) 35%, transparent);
}
.service--cta .service__name { font-size: 2.2rem; }
.service--cta .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 699px) {
  .service { padding: 22px 20px 20px; }
  .service__index { margin-bottom: 10px; }
  .service__name { font-size: 1.8rem; margin-bottom: 8px; }
  .service__desc { margin-bottom: 14px; }
  .service__foot { padding-top: 14px; }
  .service__flag { top: 18px; right: 18px; }
  .option--agenda { margin-top: 22px; }
  .contact { gap: 14px; }
  .map { min-height: 260px; }
  .fader .fader__frame { aspect-ratio: 1 / 1; }
  .fader .fader__head { margin-bottom: 12px; }
  .fader .carousel__controls { margin-top: 8px; }
}
@media (min-width: 700px) and (max-width: 1099px) { .service--cta { grid-column: span var(--span2, 1); } }
@media (min-width: 1100px) { .service--cta { grid-column: span var(--span3, 1); } }

/* ---------- Galería ---------- */
.gallery {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(150px, 42vw, 240px);
  grid-auto-flow: dense;
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(220px, 22vw, 300px); gap: 16px; }
}
.gallery__item {
  position: relative; margin: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.gallery__item--alto { grid-row: span 2; }
.gallery__item--ancho { grid-column: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.88) contrast(1.05);
  transition: transform 1.4s var(--ease), filter .8s, opacity .8s;
  opacity: 0;
}
.gallery__item img.is-loaded { opacity: 1; }
.gallery__item:hover img { transform: scale(1.045); filter: none; }
.gallery__cap {
  position: absolute; inset: auto 0 0;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 10px;
  padding: 44px 14px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
@media (min-width: 900px) { .gallery__cap { padding: 50px 18px 16px; font-size: .78rem; } }

/* ---------- Galería: carruseles con desvanecido ---------- */
.galleries { display: grid; gap: 32px 24px; }
@media (min-width: 900px) { .galleries { grid-template-columns: 1fr 1fr; } }
.fader { min-width: 0; }
.fader__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.fader__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.3rem); letter-spacing: .04em; line-height: 1; }
.fader__sub { margin: 0; font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.fader__frame {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; max-width: 100%; max-height: 78vh; width: 100%;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  touch-action: pan-y;
}
.fader__frame:focus-visible { outline-offset: 4px; }
.fader__frame .fader__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity .45s ease;
}
.fader__frame .fader__slide.is-active { opacity: 1; z-index: 1; }
.fader__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.fader__meta {
  position: absolute; z-index: 3; inset: auto 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 48px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  pointer-events: none;
}
.fader__count { font-family: var(--font-accent); font-style: italic; font-size: 1.15rem; color: #fff; font-variant-numeric: tabular-nums; }
.fader__progress {
  position: absolute; z-index: 4; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--gold); transform-origin: left; transform: scaleX(0);
  animation: fader-progress var(--t, 1000ms) linear forwards;
}
.fader.is-paused .fader__progress { animation-play-state: paused; }
.fader.is-static .fader__progress { display: none; }
@keyframes fader-progress { to { transform: scaleX(1); } }

.carousel__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.carousel__dots { display: flex; flex-wrap: wrap; justify-content: center; }
.carousel__dot {
  width: 28px; height: 44px; padding: 0; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
}
.carousel__dot span {
  display: block; width: 8px; height: 2px; border-radius: 2px;
  background: color-mix(in srgb, var(--text) 30%, transparent);
  transition: width .35s var(--ease), background-color .35s;
}
.carousel__dot.is-active span { width: 22px; background: var(--gold); }
.carousel__btn {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  transition: border-color .3s, color .3s;
}
.carousel__btn:hover { border-color: var(--gold); color: var(--gold); }
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__btn--prev svg { transform: rotate(180deg); }

/* Imagen que no cargó / pendiente */
.media { position: relative; }
.media.is-missing { background: repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--surface-2) 14px 28px); }
.media.is-missing img { display: none; }
.media.is-missing::after {
  content: attr(data-missing);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Nosotros ---------- */
.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 1.05fr; gap: 64px 88px; } }

.about__visual { min-width: 0; }
.about__place { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.about__place svg { flex: none; width: 38px; height: 38px; padding: 9px; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); border-radius: 50%; }
.about__place > span { display: grid; gap: 2px; }
.about__place-label { font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.about__place-name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .05em; line-height: 1.1; }
/* La foto del local va dentro de su marco dorado, alineada (foto cuadrada → marco cuadrado) */
.about__media { position: relative; margin: 0; padding: 8px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: calc(var(--radius) + 8px); }
.about__frame { position: relative; aspect-ratio: 1 / 1; max-width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.about__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s, transform 1.4s var(--ease); }
.about__frame img.is-loaded { opacity: 1; }
.about__media:hover .about__frame img { transform: scale(1.03); }
.about__tag { position: absolute; top: 16px; left: 16px; }

.about__text p { margin: 0 0 16px; max-width: 58ch; color: var(--muted); }
/* Cualidades: tarjetas con ícono */
.qualities {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
}
@media (min-width: 760px) { .qualities { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 960px) { .qualities { grid-column: 1 / -1; } }
.quality {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 16px;
  padding: 24px 22px;
  border: 1px solid var(--line); border-radius: 16px;
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s, opacity .9s var(--ease);
}
.quality::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .55;
}
.quality:hover {
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--gold) 12%, transparent);
}
.js .quality.reveal.is-visible:hover { transform: translateY(-4px); }
.quality__icon {
  width: 50px; height: 50px; display: grid; place-items: center; flex: none;
  border-radius: 14px; color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.quality__icon svg { width: 24px; height: 24px; }
.quality__title { margin: 2px 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: .04em; line-height: 1.05; }
.quality__text { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
@media (min-width: 760px) {
  .quality { grid-template-columns: 1fr; gap: 18px; padding: 28px 26px; }
}

/* ---------- Reservas ---------- */
.booking {
  display: grid; gap: 24px;
  padding: clamp(20px, 5vw, 64px);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 55%),
    var(--surface);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9);
}
@media (min-width: 960px) { .booking { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }

/* (pasos antiguos, sin uso) */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.steps span {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); border-radius: 50%;
  font-family: var(--font-accent); font-style: italic; color: var(--gold);
}

.form { display: grid; gap: 16px; }
/* Dos opciones de reserva */
.booking { align-items: start; }
.option {
  padding: clamp(22px, 3.5vw, 32px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.option--agenda { margin-top: 32px; border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.option__label {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.option__label span {
  padding: 3px 8px; border-radius: 6px;
  background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-soft);
}
.option__title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; letter-spacing: .04em; line-height: 1; }
.option__text { margin: 0 0 20px; color: var(--muted); font-size: .95rem; }
.option__foot { margin: 12px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.form.option .option__title { margin-bottom: 4px; }
.form__status {
  margin: 0; padding: 12px 14px; border-radius: 10px; font-size: .88rem;
  background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold-soft);
}
.hero__alt {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 6px 0;
  font-size: .9rem; color: rgba(255, 255, 255, .78); transition: color .3s;
}
.hero__alt svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.hero__alt u { text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); }
.hero__alt:hover { color: var(--gold-soft); }
.form__row { display: grid; gap: 16px; }
@media (min-width: 520px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%; min-width: 0; min-height: 52px; padding: 0 16px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem; /* 16px evita el zoom automático en iPhone */
  -webkit-appearance: none; appearance: none;
  color-scheme: dark;
  transition: border-color .3s, box-shadow .3s;
}
.field select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23c9a45c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent);
}
.form__note { display: flex; gap: 10px; margin: 4px 0 0; font-size: .82rem; color: var(--muted); }
.form__note svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 2px; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 20px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.15fr; } }

.card { padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.info-block + .info-block { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.info-label {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.info-label svg { width: 18px; height: 18px; }
.address { font-style: normal; font-size: 1.1rem; line-height: 1.55; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.hours li:last-child { border-bottom: 0; }
.hours li span:first-child { color: var(--muted); }
.hours li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours li.is-closed span:last-child { color: var(--muted); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact__actions .btn { flex: 1 1 auto; }

.map {
  position: relative; min-height: 360px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--surface);
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) invert(.92) contrast(.9) brightness(.95);
}
.map__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px;
  padding: 24px; text-align: center; color: var(--muted);
}
.map__placeholder svg { width: 40px; height: 40px; color: var(--gold); }
.map__placeholder p { margin: 0; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .06em; color: var(--text); }
.map__placeholder small { max-width: 32ch; }
.map__placeholder .map__open { margin-top: 14px; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: 0 0 calc(40px + env(safe-area-inset-bottom)); }
.footer__word {
  /* El tamaño se adapta al largo del nombre (--chars lo calcula script.js) */
  font-family: var(--font-display); font-size: max(2.4rem, min(15rem, calc(205vw / var(--chars, 12)))); line-height: .9;
  white-space: nowrap; text-align: center; text-transform: uppercase; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
  padding-top: clamp(28px, 5vw, 64px); margin-bottom: clamp(16px, 3vw, 40px);
  user-select: none;
}
.footer__inner { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (min-width: 900px) { .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer__brand p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a {
  padding: 6px 0; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); transition: color .3s;
}
.footer__links a:hover { color: var(--gold); }
.footer__copy { margin: 0; font-size: .8rem; color: var(--muted); }
.footer__copy a { color: var(--gold); }

/* ---------- Botón flotante ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90;
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 50%; background: var(--gold); color: var(--on-gold);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .75);
  opacity: 0; transform: translateY(24px) scale(.85); pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease), background-color .3s;
}
.fab::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid var(--gold); animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.fab svg { width: 26px; height: 26px; }
.fab:hover { background: var(--gold-soft); }
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
body.menu-open .fab { opacity: 0; pointer-events: none; }
@media (min-width: 960px) { .fab { right: 28px; bottom: 28px; } }

/* ---------- Aparición al desplazarse ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .service.reveal { transition: opacity .9s var(--ease), transform .6s var(--ease), border-color .5s, box-shadow .5s; transition-delay: var(--d, 0ms); }
.js .service.reveal.is-visible:hover { transform: translateY(-6px); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  .js .reveal, .js [data-anim] { opacity: 1; transform: none; animation: none; }
  .marquee__track { animation: none; }
  .hero__img { transform: none; }
  .fab::before { display: none; }
}
