/* Lonja, cocina de mar — demo DevEps (ver DISENO.md) */

:root {
  --mar: #10202B;
  --mar-2: #172C3A;
  --sal: #F4F4F1;
  --limon: #F3D34A;
  --musgo: #7E9B4A;
  --red: #9AA7AE;
  --tinta: #10202B;
  --linea-o: rgba(244, 244, 241, .16);
  --linea-c: rgba(16, 32, 43, .14);
  --wrap: 1200px;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --text: 'Instrument Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: 72px; }
body { margin: 0; background: var(--mar); color: var(--sal); font: 400 1.0625rem/1.6 var(--text); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 4.6vw, 4.2rem); }
h2 { font-size: clamp(2.4rem, 4.4vw, 4rem); }
h3 { font-size: 1.6rem; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
:focus-visible { outline: 2.5px solid var(--limon); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.2rem); color: var(--red); max-width: 46ch; margin-top: 16px; }
.muted { color: var(--red); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--limon); color: var(--mar); border-radius: 8px; }
.skip:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid transparent; background: transparent; font-weight: 600; text-decoration: none; cursor: pointer;
  transition-property: transform, background-color, border-color; transition-duration: 150ms; transition-timing-function: ease-out;
}
.btn:active { transform: scale(.97); }
.btn-lemon { background: var(--limon); color: var(--mar); }
.btn-lemon:hover { background: #F7E07A; }
.btn-ghost { border-color: rgba(244, 244, 241, .4); }
.btn-ghost:hover { border-color: var(--sal); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.ribbon { position: relative; z-index: 31; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; padding: 8px 20px; background: var(--sal); color: var(--mar); font-size: .875rem; }
.ribbon a { font-weight: 600; text-underline-offset: 3px; }
.header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px max(20px, 4vw); background: linear-gradient(to bottom, rgba(16, 32, 43, .75), rgba(16, 32, 43, 0)); margin-bottom: -66px;
}
.brand { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; line-height: 1; }
.header nav { display: flex; align-items: center; gap: 22px; }
.header nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.header nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }

/* ── El paseo ── */
.walk { position: relative; height: 520vh; }
.walk-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #2B3A40 url("frames/h/001.webp") center / cover; }
.shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 32, 43, .0) 40%, rgba(16, 32, 43, .35) 100%), linear-gradient(to top, rgba(16, 32, 43, .7), rgba(16, 32, 43, 0) 30%); pointer-events: none; }
.panel {
  position: absolute; right: max(20px, 4vw); top: 50%; translate: 0 -46%; width: min(460px, 38vw); min-height: 58vh;
  display: grid; align-items: center; padding: clamp(26px, 3vw, 40px); border-radius: 28px;
  background: rgba(16, 32, 43, .58); -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1);
  border: 1px solid var(--linea-o);
}
.chapter { grid-area: 1 / 1; opacity: 0; visibility: hidden; translate: 0 14px; transition: opacity 320ms ease-out, translate 320ms ease-out, visibility 0s 320ms; }
.chapter.on { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 420ms ease-out, translate 420ms ease-out, visibility 0s; }
.chapter p { margin-top: 18px; color: rgba(244, 244, 241, .82); font-size: 1.125rem; }
.rail { position: absolute; left: max(20px, 4vw); bottom: 28px; display: flex; gap: 6px; }
.rail button {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linea-o); cursor: pointer;
  background: rgba(16, 32, 43, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .875rem; font-weight: 500;
  transition-property: background-color, color, border-color; transition-duration: 200ms;
}
.rail button[aria-current="step"] { background: var(--limon); border-color: var(--limon); color: var(--mar); }
.loading { position: absolute; left: max(20px, 4vw); bottom: 80px; font-size: .8125rem; color: rgba(244, 244, 241, .7); }

/* ── La carta ── */
.carta { background: var(--sal); color: var(--tinta); padding: clamp(80px, 11vw, 140px) 0; }
.carta-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; padding-bottom: 28px; border-bottom: 3px solid var(--tinta); }
.carta-head p { color: #4C5B64; max-width: 40ch; }
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 72px; margin-top: 44px; }
.board h3 { margin-bottom: 10px; }
.board li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linea-c); }
.board b { font-family: var(--display); font-size: 1.75rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.board b:not(.sm)::after { content: ' €'; font-size: 1.125rem; }
.board b.sm { font-family: var(--text); font-size: .9375rem; font-weight: 600; color: #4C5B64; }
.allergens { margin-top: 32px; color: #4C5B64; font-size: .9375rem; }

/* ── Reserva ── */
.reserva { padding: clamp(80px, 11vw, 140px) 0; background: var(--mar-2); }
.reserva-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.open { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.open::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.open[data-open="true"]::before { background: var(--musgo); box-shadow: 0 0 0 4px rgba(126, 155, 74, .25); }
.res-form { padding: clamp(20px, 3vw, 32px); border-radius: 24px; border: 1px solid var(--linea-o); background: var(--mar); }
fieldset { border: 0; margin: 0 0 20px; padding: 0; }
legend, .field label { font-weight: 600; margin-bottom: 10px; padding: 0; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 14px; border-radius: 12px; border: 1.5px solid var(--linea-o); transition-property: border-color, background-color, color; transition-duration: 150ms; }
.chip small { font-size: .75rem; color: var(--red); }
.chip:hover span { border-color: var(--red); }
.chip input:checked + span { background: var(--limon); border-color: var(--limon); color: var(--mar); }
.chip input:checked + span small { color: rgba(16, 32, 43, .7); }
.chip input:disabled + span { opacity: .35; }
.chip input:focus-visible + span { outline: 2.5px solid var(--limon); outline-offset: 2px; }
.res-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: start; }
.field { display: grid; }
.field.grow { flex: 1 1 180px; }
.field input { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--linea-o); background: var(--mar-2); }
.field input:focus-visible { outline: none; border-color: var(--limon); }
.error { color: #FF9C8A; font-size: .8125rem; min-height: 1.2em; margin-top: 4px; }
.stepper { display: inline-flex; align-items: center; min-height: 48px; border: 1.5px solid var(--linea-o); border-radius: 12px; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.25rem; cursor: pointer; }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; }
.res-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--linea-o); }
.summary { color: var(--red); font-size: .9375rem; }
.summary b { color: var(--sal); }
.res-ok { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--limon); color: var(--mar); font-weight: 600; }

/* ── Dónde, DevEps y pie ── */
.donde { padding: clamp(80px, 11vw, 140px) 0; }
.donde-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
address { font-style: normal; font-size: 1.375rem; font-weight: 600; margin: 22px 0 10px; }
.donde a { font-weight: 600; }
.hours { margin-top: 12px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linea-o); }
.hours li[aria-current="date"] { color: var(--limon); font-weight: 600; }
.devs { padding: clamp(80px, 11vw, 140px) 0; background: var(--sal); color: var(--tinta); }
.devs .lead { color: #4C5B64; }
.devs .btn-ghost { border-color: var(--linea-c); }
.devs .btn-ghost:hover { border-color: var(--tinta); }
.devs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; align-content: start; }
.feats dt { font-weight: 700; }
.feats dd { color: #4C5B64; font-size: .9375rem; margin-top: 4px; }
.footer { padding: 28px 0 40px; font-size: .875rem; color: var(--red); background: var(--sal); }
.footer p { border-top: 1px solid var(--linea-c); padding-top: 20px; color: #4C5B64; }

/* ── Móvil: vídeo vertical y panel abajo ── */
@media (max-aspect-ratio: 4/5), (max-width: 760px) {
  .header nav a:not(.btn) { display: none; }
  #film { background-image: url("frames/v/001.webp"); }
  .panel { left: 14px; right: 14px; top: auto; bottom: 74px; translate: none; width: auto; min-height: 0; padding: 22px; border-radius: 22px; }
  .chapter p { font-size: 1rem; margin-top: 12px; }
  h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  .chapter h2 { font-size: 2.2rem; }
  .rail { left: 14px; right: 14px; bottom: 18px; overflow-x: auto; scrollbar-width: none; }
  .rail button { white-space: nowrap; }
  .loading { display: none; }
}
@media (max-width: 860px) {
  .board, .reserva-grid, .donde-grid, .devs-grid, .feats { grid-template-columns: 1fr; }
}

/* Sin animaciones: una imagen fija y los textos en orden */
@media (prefers-reduced-motion: reduce) {
  .walk { height: auto; }
  .walk-sticky { position: relative; height: auto; min-height: 100vh; padding: 120px max(20px, 4vw) 60px; }
  #film { position: absolute; }
  .panel { position: relative; right: auto; top: auto; left: auto; bottom: auto; translate: none; margin-left: auto; width: min(560px, 100%); min-height: 0; display: grid; gap: 34px; }
  .chapter { grid-area: auto; opacity: 1; visibility: visible; translate: none; transition: none; }
  .rail, .loading { display: none; }
  .btn { transition: none; }
}
