/* Ayoub Lahmany Barber Shop — negro y dorado, la identidad del local */

@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #0b0a08;
  --bg-2: #13110d;
  --bg-3: #1c1913;
  --gold: #d4a852;
  --gold-hi: #f0cf86;
  --gold-deep: #9c7a33;
  --ivory: #f2ebdc;
  --muted: #b8ad97;
  --line: rgba(212, 168, 82, 0.24);
  --line-strong: rgba(212, 168, 82, 0.55);

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Jost", "Futura", system-ui, sans-serif;
  --gutter: clamp(18px, 4vw, 56px);
  --max: 1320px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --space-3: 20px;
  --space-4: 32px;
  --space-5: 56px;
  --space-6: clamp(72px, 9vw, 124px);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--gold-deep) var(--bg);
  scroll-padding-top: 90px;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--gold);
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg); }

a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; text-decoration-color: var(--gold); }
a:hover { color: var(--gold-hi); }

:focus-visible {
  outline: 1.5px solid var(--gold-hi);
  outline-offset: 4px;
}

img, svg, canvas { display: block; }
svg { fill: currentColor; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 200;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 16px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */

.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--h);
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ivory);
  font: inherit;
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: color 300ms var(--ease-out), transform 160ms var(--ease-out), border-color 300ms var(--ease-out), background-color 300ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 300ms var(--ease-out); }

/* Secundario: hilo dorado con esquinas marcadas */
.btn--line {
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 10px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 1px 10px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 10px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px 10px no-repeat,
    rgba(11, 10, 8, 0.25);
}
@media (hover: hover) and (pointer: fine) {
  .btn--line:hover, a.btn--line:hover { color: var(--gold-hi); border-color: var(--gold); background-color: rgba(212, 168, 82, 0.1); }
  .btn:hover svg { transform: translateX(3px); }
}

/* Principal: oro pulido, con un marco fino alrededor y un brillo que lo cruza */
.btn--gold, a.btn--gold, a.btn--gold:hover {
  color: #1b1307;
  font-weight: 600;
  border-color: #7d5c20;
  background-image:
    linear-gradient(105deg, transparent 40%, rgba(255, 250, 230, 0.7) 50%, transparent 60%),
    linear-gradient(118deg, #9a7329 0%, #e3bf72 24%, #f7e2a6 40%, #d2a957 58%, #a37b2e 80%, #c9a04f 100%);
  background-size: 250% 100%, 180% 100%;
  background-position: 160% 0, 0% 0;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 214, 0.75),
    inset 0 -1px 0 rgba(70, 46, 10, 0.55),
    0 12px 32px -14px rgba(212, 168, 82, 0.7);
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.45);
  transition: background-position 700ms var(--ease-out), box-shadow 400ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn--gold::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(212, 168, 82, 0.4);
  pointer-events: none;
  transition: inset 400ms var(--ease-out), border-color 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover {
    background-position: -60% 0, 100% 0;
    transition: background-position 900ms var(--ease-out), box-shadow 400ms var(--ease-out), transform 160ms var(--ease-out);
    box-shadow:
      inset 0 1px 0 rgba(255, 246, 214, 0.85),
      inset 0 -1px 0 rgba(70, 46, 10, 0.55),
      0 16px 40px -12px rgba(212, 168, 82, 0.85);
  }
  .btn--gold:hover::before { inset: -3px; border-color: rgba(240, 207, 134, 0.75); }
}
/* El botón de reservar de la portada brilla solo de vez en cuando */
@media (prefers-reduced-motion: no-preference) {
  .btn--glint { animation: glint 6.5s var(--ease-in-out) 2.5s infinite; }
}
@keyframes glint {
  0%, 82% { background-position: 160% 0, 0% 0; }
  100% { background-position: -60% 0, 0% 0; }
}

.btn--sm { --h: 42px; padding: 0 18px; font-size: 0.76rem; }
.btn--sm.btn--gold::before { inset: -4px; }
.btn--lg { --h: 64px; padding: 0 36px; font-size: 0.92rem; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ---------- Cabecera ---------- */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: 14px var(--gutter);
  transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out), transform 500ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 10, 8, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__logo img { width: 138px; height: auto; }
.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
}
.nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
  transition: color 250ms var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ivory); }
  .nav a:hover::after { transform: scaleX(1); }
}

/* Estado del local: abierto o cerrado, con la próxima hora */
.hours {
  display: grid;
  justify-items: end;
  gap: 3px;
  margin: 0;
  text-align: right;
  line-height: 1.1;
}
.hours[hidden] { display: none; }
.hours__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 12;
  font-size: 1.05rem;
  color: var(--ivory);
}
.hours__next {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hours__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
/* Cerrado: rojo encendido, con luz propia y sin moverse */
.hours__dot {
  background: radial-gradient(circle at 40% 35%, #ffb3a8 0%, #ff5a46 45%, #d23a2a 100%);
  box-shadow: 0 0 4px 1px rgba(255, 90, 70, 0.85), 0 0 12px 3px rgba(255, 70, 50, 0.45);
}
/* Abierto: verde encendido que parpadea despacio */
.hours.is-open .hours__dot {
  background: radial-gradient(circle at 40% 35%, #e2ffd6 0%, #7ee05f 45%, #3fae2c 100%);
  box-shadow: 0 0 4px 1px rgba(126, 224, 95, 0.85), 0 0 12px 3px rgba(110, 220, 80, 0.45);
}
.hours.is-open .hours__state { color: var(--gold-hi); }
@media (prefers-reduced-motion: no-preference) {
  .hours.is-open .hours__dot { animation: hours-blink 2.6s ease-in-out infinite; }
}
@keyframes hours-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; box-shadow: 0 0 2px 0 rgba(126, 224, 95, 0.4), 0 0 4px 0 rgba(110, 220, 80, 0.15); }
}

/* ---------- Portada: vídeo a pantalla completa ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000 url("../video/hero.jpg") center / cover no-repeat;
  transform-origin: 50% 0;
  will-change: transform, border-radius;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(11, 10, 8, 0.2), rgba(11, 10, 8, 0.7) 100%),
    linear-gradient(180deg, rgba(11, 10, 8, 0.55) 0%, rgba(11, 10, 8, 0.1) 30%, rgba(11, 10, 8, 0.2) 65%, var(--bg) 100%);
}
/* Bandas de cine que se abren al cargar */
.hero__bars span {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  background: var(--bg);
  transform-origin: top;
}
.hero__bars span:first-child { top: 0; }
.hero__bars span:last-child { bottom: 0; transform-origin: bottom; }
.hero__bars span { transform: scaleY(0); }
.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
  padding: 110px var(--gutter) 90px;
}
.hero__logo {
  margin: 0;
  width: min(600px, 80vw);
  position: relative;
}
.hero__logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 50px rgba(0, 0, 0, 0.9));
  -webkit-mask-image: linear-gradient(105deg, #000 calc(var(--reveal, 120%) - 18%), rgba(0,0,0,0) var(--reveal, 120%));
  mask-image: linear-gradient(105deg, #000 calc(var(--reveal, 120%) - 18%), rgba(0,0,0,0) var(--reveal, 120%));
}
.hero__logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 240, 200, 0.75) 50%, transparent 60%);
  background-size: 260% 100%;
  background-position: var(--shine, 160%) 0;
  -webkit-mask: url("../img/logo-ayoub-lahmany.webp") center / contain no-repeat;
  mask: url("../img/logo-ayoub-lahmany.webp") center / contain no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero__line {
  margin: 0;
  max-width: 30ch;
  font-family: var(--serif);
  font-variation-settings: "opsz" 12;
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  color: var(--ivory);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
  text-wrap: balance;
}
.hero__rating {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.85;
}
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars svg { width: 14px; height: 14px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}
.hero__actions .btn--line { background: rgba(11, 10, 8, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------- Interludio: las herramientas, el texto se enciende al leer ---------- */

.interlude { padding: var(--space-5) 0 var(--space-6); }
.interlude__frame {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  clip-path: inset(0 var(--inset-x, 6%) 0 var(--inset-x, 6%) round var(--inset-r, 4px));
  background: #000 url("../video/herramientas.jpg") center / cover no-repeat;
}
.interlude__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.interlude__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 10, 8, 0.88), rgba(11, 10, 8, 0.55) 60%, rgba(11, 10, 8, 0.35));
}
.statement__text {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 1180px;
  padding: var(--space-6) var(--gutter);
  font-family: var(--serif);
  font-variation-settings: "opsz" 12;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ivory);
  text-wrap: balance;
}
.statement__text .sw { opacity: 0.18; }
.statement__text .sw.is-gold { color: var(--gold); font-style: italic; }

/* ---------- Secciones ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-6) var(--gutter) 0;
}
.section__head { margin-bottom: var(--space-5); }
.title {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 12;
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ivory);
  text-wrap: balance;
}
.title--xl { font-size: clamp(3rem, 8vw, 6rem); }
.title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0 0.24em; margin: -0.06em 0 -0.24em; }
.title .w > span { display: inline-block; transform-origin: 0 100%; }
.title em { color: var(--gold); }
.lead {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.6;
}

/* Línea de corte con tijeras */
.cutline {
  position: relative;
  height: 28px;
  margin: 0 0 var(--space-5);
}
.cutline__rule {
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px dashed var(--line-strong);
}
.cutline__scissors {
  position: absolute;
  top: 50%;
  left: 0;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  color: var(--gold);
  background: var(--bg);
  transform: rotate(180deg);
  padding: 2px;
}

/* ---------- Servicios ---------- */

.menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) clamp(40px, 6vw, 96px);
}
.menu__cat {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li {
  display: grid;
  grid-template-columns: auto minmax(20px, 1fr) auto auto;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 300ms var(--ease-out);
}
.menu__name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 12;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.25;
}
.menu__name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.menu__dots { border-bottom: 1px dotted rgba(212, 168, 82, 0.4); transform: translateY(-5px); }
.menu__time { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.06em; white-space: nowrap; }
.menu__price {
  font-family: var(--serif);
  font-variation-settings: "opsz" 12;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums;
  min-width: 3.2ch;
  text-align: right;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .menu li:hover { padding-left: 10px; }
}
.services__cta { margin-top: var(--space-5); }

/* ---------- Trabajos: carrusel infinito ---------- */

.works { padding-top: var(--space-6); overflow: hidden; }
.works__head {
  max-width: var(--max);
  margin: 0 auto var(--space-5);
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
}
.reel__nav { display: flex; gap: 10px; }
.reel__btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-hi);
  cursor: pointer;
  transition: border-color 250ms var(--ease-out), background-color 250ms var(--ease-out), transform 160ms var(--ease-out);
}
.reel__btn svg { width: 18px; height: 18px; }
.reel__btn[data-reel="-1"] svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .reel__btn:hover { border-color: var(--gold); background: rgba(212, 168, 82, 0.1); }
}
.reel__btn:active { transform: scale(0.94); }
.reel {
  position: relative;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reel.is-dragging { cursor: grabbing; }
.reel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
  width: max-content;
  will-change: transform;
}
.reel__item {
  position: relative;
  flex: none;
  width: clamp(220px, 21vw, 320px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-2);
}
.reel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 900ms var(--ease-out), filter 600ms var(--ease-out);
  filter: saturate(0.92);
}
.reel__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .reel:not(.is-dragging) .reel__item:hover img { transform: scale(1.05); filter: saturate(1.05); }
}

/* ---------- Preguntas frecuentes ---------- */

.faq__list { border-top: 1px solid var(--line); max-width: 900px; margin-top: var(--space-5); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 12;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.3;
  color: var(--ivory);
  transition: color 250ms var(--ease-out);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 300ms var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
@media (hover: hover) and (pointer: fine) {
  .faq__item summary:hover { color: var(--gold-hi); }
}
/* Abrir y cerrar con altura animada donde el navegador lo permite; la respuesta entra suave en todos */
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq__item { interpolate-size: allow-keywords; }
    .faq__item::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 380ms var(--ease-out), content-visibility 380ms allow-discrete;
    }
    .faq__item[open]::details-content { block-size: auto; }
  }
  .faq__item[open] p { animation: faq-in 420ms var(--ease-out); }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.faq__item[open] summary { color: var(--gold-hi); }
.faq__item p {
  margin: 0;
  padding: 0 0 24px;
  max-width: 62ch;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
}

/* ---------- Dónde ---------- */

.where__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: start;
  margin-top: var(--space-4);
}
.where__addr { font-style: normal; display: grid; gap: 4px; color: var(--muted); }
.where__street {
  font-family: var(--serif);
  font-variation-settings: "opsz" 12;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  color: var(--ivory);
  margin-bottom: 8px;
}
.where__label {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.where__hours dl { margin: 0; display: grid; gap: 10px; }
.where__hours dl > div { display: grid; gap: 2px; }
.where__hours dt { color: var(--muted); font-size: 0.86rem; letter-spacing: 0.04em; }
.where__hours dd {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 12;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ivory);
}
.where__links { display: grid; gap: 12px; }

/* ---------- Cierre: el vídeo se abre al llegar ---------- */

.close { padding: var(--space-6) 0 0; }
.close__frame {
  position: relative;
  height: 88vh;
  min-height: 520px;
  overflow: hidden;
  display: grid;
  place-items: center;
  clip-path: inset(0 var(--inset-x, 6%) 0 var(--inset-x, 6%) round var(--inset-r, 4px));
  background: #000 url("../video/hero.jpg") center / cover no-repeat;
}
.close__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.close__shade { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(11, 10, 8, 0.4), rgba(11, 10, 8, 0.85)); }
.close__text {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: 0 var(--gutter);
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-4) var(--gutter) var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.foot img { width: 160px; height: auto; }
.foot__credits {
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  cursor: pointer;
  transition: color 200ms var(--ease-out), text-decoration-color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .foot__credits:hover { color: var(--gold-hi); text-decoration-color: var(--gold); }
}
.foot__credits:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* Ventanita de créditos */
.credits {
  width: min(92vw, 420px);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ivory);
  overflow: visible;
}
.credits::backdrop { background: rgba(6, 5, 4, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.credits__card {
  position: relative;
  padding: 28px 28px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.credits__title {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.credits__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.credits__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-hi);
  cursor: pointer;
}
.credits__close svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .credits[open] { animation: credits-in 220ms var(--ease-out); }
  .credits[open]::backdrop { animation: credits-fade 220ms var(--ease-out); }
}
@keyframes credits-in { from { opacity: 0; transform: translateY(6px) scale(0.97); } }
@keyframes credits-fade { from { opacity: 0; } }

.dock { display: none; }

/* ---------- Estados de entrada (solo con JS y movimiento) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .motion .hero__logo img { --reveal: 0%; }
  .motion .hero__bars span { transform: scaleY(1); }
  .motion [data-hero] { opacity: 0; transform: translateY(16px); }
  .motion .header:not(.is-in) { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {

}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .where__grid { grid-template-columns: 1fr 1fr; }
  .where__links { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); font-size: 16px; }
  .header { grid-template-columns: auto 1fr; padding: 12px var(--gutter); }
  .header__logo img { width: 112px; }
  .nav { display: none; }
  .hours { justify-self: end; }
  .hours__state { font-size: 0.98rem; }
  .hours__next { font-size: 0.62rem; letter-spacing: 0.12em; }
  .hero__content { padding: 110px var(--gutter) 120px; gap: 18px; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .hero__rating { font-size: 0.7rem; letter-spacing: 0.14em; }
  .menu { grid-template-columns: 1fr; }
  .menu li { grid-template-columns: minmax(0, auto) minmax(12px, 1fr) auto; }
  .menu__time { display: none; }
  .reel__item { width: 62vw; }
  .reel__nav { display: none; }
  .where__grid { grid-template-columns: 1fr; }
  .where__links { grid-auto-flow: row; }
  .section__head { margin-bottom: var(--space-4); }
  .faq__list { margin-top: var(--space-4); }
  .cutline { margin-bottom: var(--space-4); }
  /* en móvil el botón de reservar ya está siempre en la barra de abajo */
  .services__cta { display: none; }
  .interlude__frame { min-height: 80vh; }
  .interlude__shade { background: rgba(11, 10, 8, 0.7); }
  .close__frame { height: 80vh; }
  .close .btn { width: 100%; }

  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    background: rgba(11, 10, 8, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 10px 4px 9px;
    text-decoration: none;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    -webkit-user-select: none;
    user-select: none;
  }
  .dock svg { width: 22px; height: 22px; color: var(--gold); transition: transform 300ms var(--ease-out); }
  .dock a { position: relative; transition: color 250ms var(--ease-out); }
  .dock a:not(.dock__book)::before {
    content: "";
    position: absolute;
    top: -1px; left: 26%; right: 26%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 320ms var(--ease-out);
  }
  .dock a[aria-current]:not(.dock__book) { color: var(--gold-hi); }
  .dock a[aria-current]:not(.dock__book)::before { transform: scaleX(1); }
  .dock a:active svg { transform: scale(0.9); }
  .dock__book {
    color: #1b1307 !important;
    background: linear-gradient(118deg, #9a7329 0%, #e3bf72 26%, #f7e2a6 44%, #d2a957 62%, #a37b2e 100%);
    box-shadow: inset 0 1px 0 rgba(255, 246, 214, 0.7);
  }
  .dock__book svg { color: var(--bg); }
}
