/* La Olada — noche de José Ignacio: azul mar oscuro, luz ámbar de farol y el coral gastado del salvavidas */
:root {
  --night: #0d1113;
  --sea: #122029;
  --amber: #e7a55a;
  --coral: #d0705f;
  --cream: #f3ebe0;
  --sand: #cdbb9f;
  --line: rgba(243, 235, 224, .18);
  --g: clamp(16px, 4vw, 56px);
  --serif: 'Gloock', 'Didot', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 17px/1.6 var(--sans); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
em { font-style: normal; color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--amber); color: var(--night); padding: 10px 16px; }
.skip:focus { left: 10px; }
.label { font: 600 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--amber); }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent; font: 600 15px/1.1 var(--sans); letter-spacing: .02em; text-decoration: none; transition: background-color .2s, color .2s, transform .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--amber { background: var(--amber); color: var(--night); }
.btn--amber:hover { background: var(--cream); }
.btn--line { border-color: rgba(243, 235, 224, .5); color: var(--cream); }
.btn--line:hover { border-color: var(--cream); background: rgba(243, 235, 224, .08); }
.btn--text { padding: 0 6px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 26px; padding: 18px var(--g); transition: background-color .3s, padding .3s; }
.top.is-stuck { background: rgba(13, 17, 19, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 400 24px/1 var(--serif); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--amber); }

/* ---------- hero: tríptico ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--night); }
.tri { position: absolute; inset: 92px var(--g) 168px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tri__p { position: relative; overflow: hidden; border-radius: 3px; background: #1a1f22; }
.tri__p img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.tri__p img:first-child { opacity: 1; }
.kb .tri__p img { opacity: 0; }
.kb .tri__p img.is-on { opacity: 1; animation: kb 8s linear both; }
@keyframes kb { from { transform: scale(1.03); } to { transform: scale(1.16) translate(-2%, -1.5%); } }
.tri::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 17, 19, .1) 30%, rgba(13, 17, 19, .55) 100%); pointer-events: none; }
.hero__ui { position: relative; z-index: 2; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 92px var(--g) 34px; }
.hero__kicker { position: absolute; top: 120px; left: 50%; translate: -50% 0; font: 600 13px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; white-space: nowrap; background: var(--night); padding: 10px 18px; border-radius: 999px; }
.hero__title { align-self: center; text-align: center; font: 400 clamp(92px, 17vw, 270px)/.86 var(--serif); letter-spacing: -.02em; text-shadow: 0 10px 60px rgba(0, 0, 0, .55); padding-top: 30px; }
.hero__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; padding-top: 22px; }
.hero__when { display: flex; align-items: end; gap: 26px; flex-wrap: wrap; }
.hero__hours { font: 400 clamp(24px, 2.4vw, 34px)/1.1 var(--serif); }
.hero__hours b { font-weight: 400; color: var(--amber); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(13, 17, 19, .6); }
.status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.status.is-open::before { background: #5fd38d; box-shadow: 0 0 0 4px rgba(95, 211, 141, .22); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- intro ---------- */
.intro { background: var(--sea); padding: clamp(90px, 12vw, 180px) var(--g); display: grid; justify-items: center; gap: 40px; text-align: center; }
.intro__ring { width: 110px; border-radius: 50%; animation: spin 40s linear infinite; box-shadow: 0 0 0 1px var(--line), 0 0 60px rgba(231, 165, 90, .15); }
@keyframes spin { to { rotate: 360deg; } }
.intro__big { max-width: 1060px; font: 400 clamp(32px, 4.2vw, 64px)/1.14 var(--serif); letter-spacing: -.01em; }

/* ---------- carta ---------- */
.carta { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 6vw, 100px); padding: 0 var(--g); }
.carta__media { position: relative; }
.carta__frame { position: sticky; top: 12vh; height: 76vh; margin: 12vh 0; border-radius: 999px 999px 6px 6px; overflow: hidden; background: #1a1f22; }
.carta__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s ease, transform 1.2s ease; }
.carta__frame img.is-on { opacity: 1; transform: scale(1); }
.carta__list { padding: clamp(80px, 10vw, 140px) 0 10vh; }
.carta__head { display: grid; gap: 18px; margin-bottom: 8vh; }
.carta__head h2, .noche__head h2, .res__head h2 { font: 400 clamp(46px, 6vw, 96px)/.95 var(--serif); letter-spacing: -.02em; }
.dish { min-height: 64vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; border-top: 1px solid var(--line); padding: 40px 0; opacity: .35; transition: opacity .5s; }
.dish.is-on { opacity: 1; }
.dish__n { font: 400 28px/1 var(--serif); color: var(--amber); }
.dish h3 { font: 400 clamp(44px, 5vw, 80px)/.95 var(--serif); letter-spacing: -.01em; }
.dish p:not(.dish__n) { font-size: 19px; color: var(--sand); max-width: 460px; }
.dish__img { display: none; }

/* ---------- la noche ---------- */
.noche { padding: clamp(80px, 10vw, 150px) var(--g); background: var(--night); }
.noche__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 70px); }
.noche__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 26vw, 380px); gap: 16px; }
.noche__grid figure { border-radius: 3px; overflow: hidden; }
.noche__grid img { width: 100%; height: 100%; object-fit: cover; }
.n1 { grid-column: span 2; }
.n2 { grid-row: span 2; }

/* ---------- reservar ---------- */
.res { background: var(--sea); padding: clamp(80px, 10vw, 150px) var(--g); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 100px); align-items: start;
  background-image: repeating-radial-gradient(circle at 100% 120%, rgba(243, 235, 224, .05) 0 1px, transparent 1px 26px); }
.res__head { display: grid; gap: 18px; position: sticky; top: 120px; }
.res__head p:last-child { color: var(--sand); max-width: 400px; }
.res__card { display: grid; gap: 26px; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: 28px; background: rgba(13, 17, 19, .55); }
.res__step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.res__step legend, .res__name span { padding: 0; margin-bottom: 12px; font: 600 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--amber); }
.res__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.res__times { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { font: inherit; color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 14px; min-height: 48px; padding: 8px 14px; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.opt:hover:not(:disabled) { border-color: var(--amber); }
.opt[aria-checked="true"] { background: var(--amber); border-color: var(--amber); color: var(--night); }
.opt:disabled { opacity: .3; cursor: not-allowed; }
.res__days .opt { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; font-size: 12px; line-height: 1.1; }
.res__days .opt b { font: 400 22px/1 var(--serif); }
.res__times .opt { font-variant-numeric: tabular-nums; min-width: 80px; }
.res__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: end; }
.res__pax { display: flex; align-items: center; gap: 14px; }
.res__pax button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--cream); font: 400 24px/1 var(--sans); cursor: pointer; }
.res__pax button:hover { border-color: var(--amber); }
.res__pax output { font: 400 34px/1 var(--serif); min-width: 2ch; text-align: center; }
.res__name { display: grid; }
.res__name input { font: inherit; color: var(--cream); background: rgba(243, 235, 224, .06); border: 1px solid var(--line); border-radius: 14px; min-height: 52px; padding: 0 16px; width: 100%; }
.res__sum { font: 400 clamp(22px, 2.2vw, 30px)/1.25 var(--serif); padding-top: 22px; border-top: 1px solid var(--line); }
.res__go { justify-self: start; }
.res__go[aria-disabled="true"] { opacity: .5; }

/* ---------- dónde ---------- */
.donde { padding: clamp(80px, 10vw, 150px) var(--g); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.donde__txt { display: grid; gap: 26px; justify-items: start; }
.donde h2 { font: 400 clamp(64px, 9.4vw, 150px)/.9 var(--serif); letter-spacing: -.02em; }
.donde h2 span { display: block; margin-top: 16px; font: 600 14px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--amber); }
.donde__data { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 16px 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.donde__data dt { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); margin-bottom: 4px; }
.donde__data dd { font-size: 18px; }
.donde__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.donde__img { border-radius: 999px 999px 4px 4px; overflow: hidden; max-width: 380px; justify-self: end; }
.donde__img img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; }

.foot { border-top: 1px solid var(--line); padding: 32px var(--g) 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; font-size: 14px; color: var(--sand); }
.foot b { font-family: var(--serif); font-weight: 400; color: var(--cream); font-size: 17px; }
.mbar { display: none; }

.js .reveal { opacity: 0; transform: translateY(36px); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .res { grid-template-columns: 1fr; }
  .res__head { position: static; }
  .donde { grid-template-columns: 1fr; }
  .donde__img { justify-self: start; max-width: 300px; }
  .donde__data { grid-template-columns: repeat(2, minmax(0, auto)); }
}
@media (max-width: 760px) {
  body { padding-bottom: 76px; font-size: 16px; }
  .top .btn { display: none; }
  .tri { inset: 78px 16px 250px; grid-template-columns: 1fr; }
  .tri__p:nth-child(n + 2) { display: none; }
  .hero__kicker { top: 100px; font-size: 11px; letter-spacing: .24em; }
  .hero__title { font-size: 25vw; line-height: .9; }
  .hero__ui { padding: 78px 16px 24px; }
  .hero__when { gap: 12px; }
  .hero__hours { font-size: 26px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn--amber, .hero__cta .btn--line { flex: 1; padding: 0 14px; }
  .hero__cta .btn--text { width: 100%; }
  .intro__big { font-size: 30px; }
  .carta { grid-template-columns: 1fr; }
  .carta__media { display: none; }
  .carta__list { padding-block: 80px 40px; }
  .dish { min-height: 0; opacity: 1; padding: 30px 0; }
  .dish__img { display: block; order: -1; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 180px 180px 4px 4px; margin-bottom: 10px; }
  .dish p:not(.dish__n) { font-size: 17px; }
  .noche__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 46vw; gap: 10px; }
  .noche__grid figure:last-child { grid-column: span 2; }
  .res__days .opt { font-size: 10px; padding: 6px 0; }
  .res__days .opt b { font-size: 18px; }
  .res__times .opt { min-width: 0; flex: 1 0 28%; }
  .res__row { grid-template-columns: 1fr; }
  .res__go { justify-self: stretch; }
  .donde__data { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .donde__cta .btn { flex: 1 1 auto; }
  .mbar { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 6px; position: fixed; z-index: 60; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 6px; background: rgba(13, 17, 19, .94); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .mbar a { display: grid; place-items: center; min-height: 48px; border-radius: 999px; text-decoration: none; font: 600 14px/1 var(--sans); white-space: nowrap; }
  .mbar__main { background: var(--amber); color: var(--night); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro__ring, .kb .tri__p img.is-on { animation: none; }
  .tri__p img, .carta__frame img, .btn, .opt, .dish { transition: none; }
}
