/* =========================================================
   Iamai Cafe · recorrido en vídeo
   Estética de iamaicafe.org: negro, naranja #ff6b00 e Inter.
   Colores y tipografía: aquí arriba, en :root
   ========================================================= */
:root {
  --negro: #000;
  --fondo: #0a0a0a;
  --zinc-950: #09090b;
  --zinc-900: #18181b;
  --zinc-800: #27272a;
  --zinc-600: #52525b;
  --zinc-500: #71717a;
  --zinc-400: #a1a1aa;
  --zinc-300: #d4d4d8;
  --blanco: #fff;
  --acento: #ff6b00;
  --acento-fuerte: #f54a00;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --borde: clamp(20px, 5vw, 96px);
  --curva: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--acento) var(--fondo); }
html:has(dialog[open]) { overflow: hidden; }   /* con la ficha de un plato abierta, la página no se mueve */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--fondo); }
::-webkit-scrollbar-thumb { background: var(--acento); border-radius: 4px; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--blanco);
  font: 400 16px/1.5 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img, canvas { display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }

.saltar {
  position: absolute; left: 12px; top: -64px; z-index: 50;
  padding: 10px 14px; border-radius: 10px;
  background: var(--acento); color: var(--blanco);
  font-weight: 700;
}
.saltar:focus { top: 12px; }

.raya { display: block; width: 80px; height: 4px; background: var(--acento); }
.mayus { text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--acento); color: var(--blanco);
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(126, 42, 12, 0.2), 0 4px 6px -4px rgba(126, 42, 12, 0.2);
  transition: background-color 0.2s, border-color 0.2s, transform 0.3s var(--curva);
}
.boton--gris { background: var(--zinc-800); box-shadow: none; border-radius: 12px; }
.boton--borde { background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: none; }
.boton:active { transform: scale(0.97); }

/* ---------- Cabecera ---------- */
.cabecera {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "marca enlace" "barra barra";
  align-items: center;
  gap: 8px 16px;
  padding: calc(env(safe-area-inset-top) + 16px) 20px 6px;
  transition: background-color 0.3s, padding 0.3s;
}
.cabecera.solida {
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.marca {
  grid-area: marca;
  font-size: 24px; font-weight: 700; line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.marca span { color: var(--acento); }
.cabecera__enlace {
  grid-area: enlace;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--acento);
  font-size: 13px; font-weight: 700; line-height: 1;
  transition: background-color 0.2s, transform 0.3s var(--curva);
}
.capitulos, .menu { grid-area: barra; transition: opacity 0.3s, visibility 0.3s; }
.capitulos { display: flex; gap: 5px; }
.capitulos li { flex: 1; }
.capitulos button {
  all: unset;
  display: block; width: 100%;
  padding: 8px 0;
  cursor: pointer;
}
.capitulos button::before {
  content: "";
  display: block; height: 3px; border-radius: 3px;
  background:
    linear-gradient(var(--acento), var(--acento)) left / calc(var(--f, 0) * 100%) 100% no-repeat,
    rgba(255, 255, 255, 0.26);
}
.capitulos button:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 4px; }
/* Pasado el recorrido, la barra de progreso deja su sitio a los enlaces */
.menu {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 2px 0 8px;
  font-size: 14px; font-weight: 500;
  opacity: 0; visibility: hidden;
}
.menu a { padding: 4px 2px; transition: color 0.15s; }
.cabecera.solida .capitulos { opacity: 0; visibility: hidden; }
.cabecera.solida .menu { opacity: 1; visibility: visible; }

/* ---------- Recorrido ---------- */
.recorrido { position: relative; height: 620vh; background: var(--fondo); }

.escena {
  position: sticky; top: 0;
  height: 100vh;
  height: 100lvh;              /* el vídeo llena también lo que tapa la barra del navegador en el móvil */
  overflow: hidden;
  background: var(--fondo) url("../recorrido/poster.jpg") center / cover no-repeat;
}
.escena__marco { position: absolute; inset: 0; overflow: hidden; }
/* El vídeo llena la pantalla y flota un poco aunque no se haga scroll, como un dron parado en el aire */
.escena__video {
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s;
  animation: flotar 14s ease-in-out infinite;
}
.escena.lista .escena__video { opacity: 1; }
@keyframes flotar {
  0%, 100% { transform: scale(1.04) translate3d(-0.4%, 0.3%, 0) rotate(-0.12deg); }
  33% { transform: scale(1.04) translate3d(0.35%, -0.35%, 0) rotate(0.1deg); }
  66% { transform: scale(1.04) translate3d(0.1%, 0.4%, 0) rotate(-0.04deg); }
}
/* Velos: el vídeo se funde con el negro de la página por arriba y por abajo */
.escena__velo {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0) 22%),
    linear-gradient(to top, var(--fondo) 0%, rgba(10, 10, 10, 0.82) 26%, rgba(10, 10, 10, 0) 62%);
}

.paradas { position: absolute; inset: 0; }
.parada {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 0 22px calc(36px + env(safe-area-inset-bottom));
  visibility: hidden;
  pointer-events: none;
}
/* Sube el texto lo que tapa la barra del navegador para que siempre se lea */
@supports (height: 100svh) {
  .parada { padding-bottom: calc(100lvh - 100svh + 34px + env(safe-area-inset-bottom)); }
}
html:not(.js) .parada:first-child { visibility: visible; }

.parada__antetitulo {
  margin-bottom: 16px;
  color: var(--acento);
  font-size: 12px; font-weight: 900; line-height: 1.2;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.parada__titulo {
  max-width: 12ch;
  font-size: clamp(42px, 12vw, 64px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.parada__titulo--marca { max-width: none; font-size: clamp(60px, 18vw, 96px); line-height: 0.9; }
.parada__titulo em, .final h2 em { font-style: normal; color: var(--acento); }
.parada__texto {
  max-width: 34ch;
  margin-top: 18px;
  color: var(--zinc-300);
  font-size: 18px; font-weight: 300; line-height: 1.5;
  text-wrap: pretty;
}

/* Cada palabra del título sube desde detrás de una máscara */
.p {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.06em 0.06em 0.14em;
  margin: -0.06em -0.06em -0.14em;
}
.p > span { display: inline-block; }

.parada__lista {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 32em;
  margin-top: 20px;
}
.parada__lista li {
  padding: 8px 14px;
  border: 1px solid var(--zinc-800);
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.72);
  font-size: 14px; font-weight: 500; line-height: 1.2;
}

.parada__pista {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px;
  color: var(--zinc-400);
  font-size: 12px; font-weight: 600; line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.parada__pista i {
  position: relative; overflow: hidden;
  width: 2px; height: 34px;
  background: rgba(255, 255, 255, 0.2);
}
.parada__pista i::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--acento);
  transform: translateY(-100%);
  animation: gota 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes gota { to { transform: translateY(250%); } }
.parada .boton { margin-top: 26px; }

.carga { position: absolute; left: 0; right: 0; top: 0; height: 2px; transition: opacity 0.8s 0.3s; }
.carga i { display: block; height: 100%; width: calc(var(--c, 0) * 100%); background: var(--acento); }
.carga.fin { opacity: 0; }

/* Pantalla horizontal (ordenador, tablet tumbada): vídeo apaisado a pantalla completa y el texto a la izquierda */
@media (min-aspect-ratio: 1/1) {
  .recorrido { height: 700vh; }
  .escena { background-image: url("../recorrido/poster-pc.jpg"); }
  .escena__velo {
    background:
      linear-gradient(to bottom, rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0) 20%),
      linear-gradient(to top, var(--fondo) 0%, rgba(10, 10, 10, 0) 26%),
      linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.66) 32%, rgba(10, 10, 10, 0) 66%),
      radial-gradient(ellipse 85% 85% at 62% 50%, rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, 0.62) 100%);
  }
  .paradas { right: auto; width: min(56vw, 860px); }
  .parada { justify-content: center; padding: 72px 0 0 var(--borde); }
  .parada__titulo { font-size: clamp(46px, 5.6vw, 96px); }
  .parada__titulo--marca { font-size: clamp(64px, 8.4vw, 150px); }
  .parada__texto { font-size: clamp(18px, 1.5vw, 24px); }
  .parada__lista li { font-size: 15px; padding: 9px 16px; }
}
@media (min-width: 760px) {
  .cabecera {
    grid-template-columns: minmax(max-content, 1fr) minmax(0, 480px) minmax(max-content, 1fr);
    grid-template-areas: "marca barra enlace";
    padding: 24px clamp(20px, 4vw, 48px);
  }
  .cabecera.solida { padding-block: 16px; }
  .cabecera__enlace { justify-self: end; }
  .menu { justify-content: center; gap: 32px; padding: 0; }
}
/* Pantallas bajitas (móvil tumbado) */
@media (min-aspect-ratio: 1/1) and (max-height: 560px) {
  .parada { padding-top: 56px; }
  .parada__titulo { font-size: clamp(30px, 5vw, 44px); }
  .parada__titulo--marca { font-size: clamp(44px, 8vw, 64px); }
  .parada__texto { margin-top: 10px; font-size: 15px; }
  .parada__antetitulo { margin-bottom: 10px; }
  .parada__pista { display: none; }
}

/* ---------- Secciones ---------- */
.seccion {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(96px, 11vw, 150px) var(--borde) clamp(40px, 5vw, 64px);
  scroll-margin-top: 40px;
}
.seccion--estrecha { max-width: 1100px; }
.seccion__cabeza {
  display: grid; justify-items: center; gap: 16px;
  margin-bottom: clamp(40px, 6vw, 64px);
  text-align: center;
}
.seccion__cabeza h2 {
  font-size: clamp(30px, 5vw, 48px); font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.seccion__cabeza h2.mayus { letter-spacing: 0.1em; }
.seccion__cabeza p { max-width: 36rem; color: var(--zinc-400); text-wrap: pretty; }

/* ---------- Pintxos ---------- */
.pintxos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(76vw, 320px);
  gap: 16px;
  margin: 0 calc(var(--borde) * -1);
  padding: 4px var(--borde) 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--borde);
  scrollbar-width: none;
}
.pintxos::-webkit-scrollbar { display: none; }
.pintxo {
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--zinc-800);
  border-radius: 16px;
  background: var(--zinc-900);
  transition: border-color 0.2s;
}
.pintxo__foto { aspect-ratio: 4 / 5; overflow: hidden; background: var(--zinc-800); }
.pintxo__foto img, .plato__foto img, .cafe__fotos img, .tira img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pintxo__foto img { transition: transform 0.7s var(--curva); }
.pintxo__texto { padding: 20px 22px 24px; }
.pintxo__cabeza { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.pintxo h3 { font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.precio { color: var(--acento); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pintxo p { margin-top: 8px; color: var(--zinc-400); font-size: 14px; }
@media (min-width: 900px) {
  .pintxos {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0; padding: 0;
    overflow: visible;
  }
}

/* ---------- Tira de fotos ---------- */
.tira { overflow: hidden; margin-top: clamp(48px, 7vw, 96px); }
/* Se mueve sola hacia la izquierda, sin parar. Las fotos están tres veces seguidas (las repite app.js):
   al avanzar una tanda entera vuelve al principio y no se nota el salto. */
.tira__pista {
  display: flex; width: max-content;
  animation: tira 50s linear infinite;
  will-change: transform;
}
@keyframes tira { to { transform: translate3d(calc(-100% / 3), 0, 0); } }
.tira img {
  width: auto; height: clamp(190px, 30vw, 380px);
  aspect-ratio: 3 / 4;
  margin-right: 14px;          /* margen y no «gap»: así un tercio de la pista es justo una tanda */
  border-radius: 16px;
  border: 1px solid var(--zinc-800);
}
@media (hover: hover) { .tira:hover .tira__pista { animation-play-state: paused; } }

/* ---------- Carta ---------- */
.grupo + .grupo { margin-top: clamp(44px, 6vw, 72px); }
.grupo__titulo {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 28px;
  color: var(--zinc-500);
  font-size: 13px; font-weight: 900; line-height: 1;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.grupo__titulo::before, .grupo__titulo::after { content: ""; flex: 1; height: 1px; background: var(--zinc-800); }
.platos { display: grid; gap: 14px; }
@media (min-width: 760px) { .platos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.platos > li { display: flex; }
.plato {
  display: flex; gap: 18px; align-items: flex-start;
  width: 100%;
  padding: 20px;
  border: 1px solid rgba(39, 39, 42, 0.6);
  border-radius: 16px;
  background: rgba(24, 24, 27, 0.4);
  transition: border-color 0.2s, background-color 0.2s;
}
.plato--foto { cursor: pointer; }
.plato__foto {
  flex: none;
  width: 84px; aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--zinc-800);
}
.plato__foto img { transition: transform 0.6s var(--curva); }
.plato__texto { flex: 1; min-width: 0; }
.plato__cabeza { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.plato h4 { font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; transition: color 0.2s; }
.plato h4 small { margin-right: 8px; color: var(--acento); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; }
.plato .precio { font-size: 17px; font-weight: 700; }
.plato p { margin-top: 8px; color: var(--zinc-500); font-size: 14px; line-height: 1.6; }
.plato__ver {
  all: unset;
  display: inline-block; margin-top: 12px;
  color: var(--zinc-500);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}
.plato__ver:focus-visible { outline: 2px solid var(--acento); outline-offset: 4px; border-radius: 4px; }

/* ---------- Café ---------- */
.cafe { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
.cafe__fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cafe__fotos figure { overflow: hidden; border-radius: 16px; border: 1px solid var(--zinc-800); aspect-ratio: 4 / 5; background: var(--zinc-900); }
.cafe__fotos figure:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.cafe__lista {
  padding: 12px 26px;
  border: 1px solid var(--zinc-800);
  border-radius: 24px;
  background: var(--zinc-900);
}
.cafe__lista li { padding: 16px 0; }
.cafe__lista li + li { border-top: 1px solid var(--zinc-800); }
.cafe__fila { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.cafe__fila strong { font-size: 17px; font-weight: 600; }
.cafe__lista p { margin-top: 2px; color: var(--zinc-500); font-size: 14px; }
@media (min-width: 900px) { .cafe { grid-template-columns: 1.1fr 1fr; } }

/* ---------- Cinta ---------- */
.cinta {
  overflow: hidden;
  margin-top: clamp(64px, 9vw, 120px);
  padding: 26px 0;
  border-block: 1px solid var(--zinc-800);
  background: var(--zinc-950);
}
.cinta__pista {
  display: flex; width: max-content;
  white-space: nowrap;
  font-size: clamp(40px, 7vw, 96px); font-weight: 700; line-height: 1.05;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  will-change: transform;
}
.cinta__pista span, .cinta__pista b { padding-right: 0.36em; }
.cinta__pista span:nth-of-type(even) { color: var(--zinc-600); }
.cinta__pista b { align-self: center; color: var(--acento); font-size: 0.45em; font-weight: 400; }

/* ---------- Contacto ---------- */
.contacto { display: grid; gap: 20px; }
.tarjeta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--zinc-800);
  border-radius: 24px;
  background: var(--zinc-900);
}
.tarjeta h3 { color: var(--acento); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.tarjeta .grande { font-size: 18px; line-height: 1.5; }
.tarjeta .grande a { transition: color 0.15s; }
.tarjeta .nota { color: var(--zinc-500); font-size: 14px; font-style: italic; }
.tarjeta .boton { margin-top: auto; }
.tarjeta .boton--gris { width: 100%; }
.tarjeta--centro .boton { border-radius: 12px; min-height: 48px; padding: 0 24px; }
.horario { display: grid; gap: 14px; width: 100%; }
.horario div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--zinc-800); }
.horario div:last-child { padding-bottom: 0; border-bottom: 0; }
.horario dt { color: var(--zinc-400); white-space: nowrap; }
.horario dd { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sello {
  justify-self: center; align-self: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 176px; height: 176px;
  border: 2px solid var(--acento);
  border-radius: 50%;
  background: var(--zinc-900);
  text-align: center;
  transition: transform 0.3s var(--curva);
}
.sello__arriba { color: var(--acento); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.sello__anio { margin: 6px 0; font-size: 30px; font-weight: 700; line-height: 1.2; }
.sello__nombre { font-size: 14px; font-weight: 600; }
.sello__abajo { margin-top: 8px; color: var(--zinc-400); font-size: 12px; }
.sello { margin-top: 12px; }
@media (min-width: 760px) {
  .contacto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sello { grid-column: 1 / -1; }
}
@media (min-width: 1100px) { .contacto { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Final ---------- */
.final {
  position: relative; overflow: hidden;
  margin-top: clamp(72px, 10vw, 140px);
  background: var(--negro);
}
.final__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.final::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--negro), rgba(0, 0, 0, 0.2) 50%, var(--fondo));
}
.final__dentro {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: 26px;
  padding: clamp(120px, 16vw, 220px) var(--borde);
  text-align: center;
}
.final h2 {
  font-size: clamp(46px, 9vw, 112px); font-weight: 700; line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.final p { max-width: 40ch; color: var(--zinc-300); font-size: 18px; font-weight: 300; }
.botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ---------- Pie ---------- */
.pie {
  display: grid; justify-items: center; gap: 14px;
  padding: 48px var(--borde) calc(48px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--zinc-900);
  background: var(--zinc-950);
  text-align: center;
}
.pie__marca { font-size: 20px; font-weight: 700; letter-spacing: 0.05em; }
.pie__insta { padding: 8px; color: var(--zinc-400); transition: color 0.15s; }
.pie__legal { color: var(--zinc-500); font-size: 14px; }
.pie__lema { color: var(--zinc-600); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Ventana del plato ---------- */
.detalle {
  width: min(100% - 32px, 820px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--zinc-800);
  border-radius: 24px;
  background: var(--zinc-950);
  color: var(--blanco);
  overflow: auto;
  box-shadow: 0 25px 50px -12px rgba(255, 107, 0, 0.1);
}
.detalle::backdrop { background: rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.detalle[open] { display: grid; animation: crecer 0.4s var(--curva); }
@keyframes crecer { from { opacity: 0; transform: scale(0.95); } }
.detalle__foto { aspect-ratio: 4 / 5; background: var(--zinc-900); }
.detalle__foto img { width: 100%; height: 100%; object-fit: cover; }
.detalle__texto { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(26px, 4vw, 40px); }
.detalle__cat { margin-bottom: 14px; color: var(--acento); font-size: 12px; font-weight: 900; letter-spacing: 0.3em; text-transform: uppercase; }
.detalle h3 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.detalle .raya { width: 48px; margin: 22px 0; }
.detalle p { color: var(--zinc-400); font-size: 18px; line-height: 1.6; }
.detalle__precio { margin-top: 28px; font-size: clamp(36px, 5vw, 48px); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.detalle__cerrar {
  all: unset;
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: color 0.15s;
}
.detalle__cerrar:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
@media (min-width: 760px) {
  .detalle[open] { grid-template-columns: 1fr 1fr; }
  .detalle__foto { aspect-ratio: auto; min-height: 460px; }
}

/* ---------- Ratón encima ---------- */
@media (hover: hover) {
  .boton:hover { background: var(--acento-fuerte); transform: scale(1.05); }
  .boton--gris:hover { background: var(--acento); transform: none; }
  .boton--borde:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--blanco); }
  .cabecera__enlace:hover { background: var(--acento-fuerte); transform: scale(1.05); }
  .menu a:hover, .tarjeta .grande a:hover, .pie__insta:hover, .detalle__cerrar:hover { color: var(--acento); }
  .pintxo:hover { border-color: var(--acento); }
  .pintxo:hover .pintxo__foto img { transform: scale(1.1); }
  .plato--foto:hover { border-color: rgba(255, 107, 0, 0.5); background: var(--zinc-900); }
  .plato--foto:hover h4, .plato--foto:hover .plato__ver { color: var(--acento); }
  .plato--foto:hover .plato__foto img { transform: scale(1.12); }
  .sello:hover { transform: scale(1.05); }
}

/* Aparición de las secciones al llegar a ellas (solo con JavaScript) */
.js [data-revela] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 1s var(--curva), transform 1s var(--curva);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-revela].visto { opacity: 1; transform: none; }

/* Con «reducir movimiento» el vídeo salta de parada en parada y los textos solo se funden */
@media (prefers-reduced-motion: reduce) {
  .parada__pista i::after { animation: none; transform: none; height: 100%; }
  .js [data-revela] { transform: none; }
  .escena__video { transition: none; animation: none; }
  .detalle[open] { animation: none; }
  .boton, .pintxo__foto img, .plato__foto img, .sello { transition: none; }
  .tira { overflow-x: auto; }
  .tira__pista { animation: none; }
}
