/* Puertito Don Anselmo — "Del cartel, escalera abajo"
   Color: azul del arco (marca y momentos de reserva) · blanco de cal (letras pintadas) ·
   niebla fría para leer · celeste de los marcos para detalles · naranja de atardecer solo para lo "en vivo". */

:root {
  --wall: #1B4C8C;
  --wall-d: #123766;
  --paint: #F6F7F3;
  --fog: #EEF2F1;
  --ink: #10233F;
  --mute: #4A5A6E;
  --teal: #2F6E7B;
  --celeste: #8CC7C4;
  --frame: #E9ECE6;
  --sun: #E8793F;
  --night: #0D1B30;
  --serif: 'Young Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 4.5vw, 64px);
  --nav: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: clip; background: var(--fog); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

.kicker { font: 600 .76rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--teal); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.h2 { font: 400 clamp(2.2rem, 4.6vw, 4.4rem)/1.04 var(--serif); letter-spacing: -.01em; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 1.5em; border-radius: 999px; border: 1.5px solid transparent; font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 1.1em; font-size: .9rem; }
.btn--paint { background: var(--paint); color: var(--wall); }
.btn--paint:hover { background: #fff; }
.btn--line { border-color: rgba(246,247,243,.7); color: var(--paint); }
.btn--line:hover { background: var(--paint); color: var(--wall); }
.btn--wall { background: var(--wall); color: var(--paint); }
.btn--wall:hover { background: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav); display: flex; align-items: center; gap: 24px; padding: 0 var(--pad); color: var(--paint); transition: background .35s, color .35s, box-shadow .35s; }
.nav.is-solid { background: rgba(238,242,241,.94); color: var(--ink); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(16,35,63,.12); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.1rem/1 var(--serif); }
.brand b { font-weight: 400; }
.fish { width: 38px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: .92rem; font-weight: 500; }
.nav__links a { text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav__links a:hover { border-color: currentColor; }
.nav__end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1.5px solid currentColor; border-radius: 999px; overflow: hidden; }
.lang button { min-width: 38px; min-height: 34px; border: 0; background: none; font-size: .74rem; font-weight: 700; letter-spacing: .06em; cursor: pointer; opacity: .75; }
.lang button[aria-pressed="true"] { background: currentColor; opacity: 1; }
.lang button[aria-pressed="true"] { color: var(--wall); background: var(--paint); }
.nav.is-solid .lang button[aria-pressed="true"] { color: var(--paint); background: var(--ink); }
.nav.is-solid .nav__cta { background: var(--wall); color: var(--paint); }

/* ---------- HERO: el arco ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--wall); color: var(--paint); isolation: isolate; }
.hero__view { position: absolute; inset: 0; }
.hero__view img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,27,48,.05) 50%, rgba(13,27,48,.55)); }
.hero__wall { position: absolute; inset: 0; will-change: transform; }
.wall { display: block; width: 100%; height: 100%; }
.wall__trim { fill: none; stroke: var(--paint); stroke-width: 11; }
.wall__s { font: 400 26px var(--serif); letter-spacing: .3em; fill: var(--paint); }
.wall__l { font: 400 74px var(--serif); fill: var(--paint); }
.wall__cava text { fill: var(--paint); font-family: var(--serif); }
.cava__s { font-size: 15px; letter-spacing: .3em; }
.cava__l { font-size: 33px; }
.hero__kicker { position: absolute; top: calc(var(--nav) + 22px); left: 0; right: 0; text-align: center; font: 600 .76rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: rgba(246,247,243,.85); }
.hero__cta { position: absolute; left: var(--pad); bottom: clamp(28px, 5vh, 52px); display: flex; flex-wrap: wrap; gap: 10px; z-index: 2; }
.board {
  position: absolute; left: var(--pad); bottom: calc(clamp(28px, 5vh, 52px) + 76px); z-index: 2; width: 270px; padding: 18px 20px 16px;
  background: #1C2422; color: #F1F3EE; border: 6px solid var(--wall-d); box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.board__k { font: 400 1.5rem/1 var(--serif); margin-bottom: 10px; }
.board__now { font-size: .98rem; line-height: 1.35; font-weight: 500; }
.board__now b { color: #F5B486; font-weight: 600; }
.board__more { font-size: .82rem; line-height: 1.4; opacity: .8; margin-top: 8px; }
.board__g { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(241,243,238,.3); font-size: .82rem; }
.board__g span[aria-hidden] { color: #F5B486; }
.hero__after { display: none; }
.gsap .hero__after {
  display: block; position: absolute; left: var(--pad); right: var(--pad); bottom: 14vh; text-align: center; z-index: 2;
  font: 400 clamp(1.8rem, 3.6vw, 3.4rem)/1.12 var(--serif); text-shadow: 0 2px 30px rgba(0,0,0,.45); opacity: 0;
  max-width: 22ch; margin: 0 auto;
}

/* ---------- frase ---------- */
.lede { padding: clamp(90px, 13vw, 190px) var(--pad) clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: end; }
.lede__title { font: 400 clamp(2.6rem, 6.4vw, 6.6rem)/1.02 var(--serif); letter-spacing: -.015em; color: var(--wall); }
.lede__title .w { display: inline-block; }
.lede__body { display: grid; gap: 18px; max-width: 46ch; color: #2A3B52; }
.lede__acc { font-size: .9rem; color: var(--teal); font-weight: 500; padding-top: 14px; border-top: 1.5px solid rgba(16,35,63,.15); }

/* ---------- un día por la ventana ---------- */
.day { --bg: #D5E6EA; --fg: var(--ink); background: var(--bg); color: var(--fg); }
.day__pin { padding: clamp(70px, 9vw, 120px) var(--pad); display: grid; gap: 36px; }
.day .kicker { color: currentColor; opacity: .8; }
.day__title { font: 400 clamp(1.8rem, 3.2vw, 3rem)/1.08 var(--serif); margin-top: 14px; max-width: 20ch; }
.live { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.55); color: var(--ink); font-size: .88rem; font-weight: 600; }
.live__dot { width: 9px; height: 9px; border-radius: 50%; background: #8C97A6; }
.live.is-open .live__dot { background: var(--sun); box-shadow: 0 0 0 0 rgba(232,121,63,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(232,121,63,0); } }
.day__clock { display: none; }
.day__window { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.day__window img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 8px solid var(--frame); }
.mullion { display: none; }
.day__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step__t { font: 400 1.3rem/1.2 var(--serif); }
.step__h { display: block; font-size: 2.2rem; color: var(--wall); margin-bottom: 4px; }
.step__d { font-size: .95rem; margin-top: 6px; opacity: .85; }
.ruler { display: grid; gap: 8px; }
.ruler__track { position: relative; height: 10px; border-radius: 99px; background: rgba(16,35,63,.14); }
.ruler__open { position: absolute; top: 0; bottom: 0; left: calc((var(--a) - 12) / 12 * 100%); width: calc((var(--b) - var(--a)) / 12 * 100%); border-radius: 99px; background: var(--wall); }
.ruler__open--sat { background: repeating-linear-gradient(135deg, var(--wall) 0 6px, transparent 6px 10px); box-shadow: inset 0 0 0 1.5px var(--wall); }
.ruler__sun { position: absolute; top: 50%; left: calc(0.5 / 12 * 100%); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 6px rgba(232,121,63,.25); }
.ruler__ticks { display: flex; justify-content: space-between; font-size: .74rem; font-weight: 600; letter-spacing: .06em; opacity: .7; }

/* layout fijado (solo con GSAP activo) */
.gsap .day__pin { height: 100vh; height: 100svh; padding: calc(var(--nav) + 24px) var(--pad) 34px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr auto auto; column-gap: clamp(32px, 6vw, 96px); row-gap: 0; }
.gsap .day__head { grid-column: 1; grid-row: 1; }
.gsap .day__stage { display: contents; }
.gsap .day__clock { display: grid; grid-column: 1; grid-row: 2; align-self: center; }
.gsap .day__clock .t { grid-area: 1 / 1; font: 400 clamp(5rem, 13vw, 13rem)/.9 var(--serif); letter-spacing: -.03em; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s cubic-bezier(.2,.7,.2,1); }
.gsap .day__clock .t.is-on { opacity: 1; transform: none; }
.gsap .day__window { grid-column: 2; grid-row: 1 / 4; display: block; position: relative; border: 14px solid var(--frame); box-shadow: inset 0 0 0 3px var(--celeste), 0 30px 60px rgba(13,27,48,.25); overflow: hidden; background: var(--night); }
.gsap .day__window img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border: 0; opacity: 0; transform: scale(1.08); transition: opacity .8s, transform 1.6s cubic-bezier(.2,.7,.2,1); }
.gsap .day__window img.is-on { opacity: 1; transform: none; }
.gsap .mullion { display: block; position: absolute; inset: 0; pointer-events: none; }
.gsap .mullion::before, .gsap .mullion::after { content: ""; position: absolute; background: var(--frame); box-shadow: 0 0 0 2px var(--celeste); }
.gsap .mullion::before { left: 50%; top: 0; bottom: 0; width: 12px; margin-left: -6px; }
.gsap .mullion::after { left: 0; right: 0; top: 42%; height: 12px; }
.gsap .day__steps { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: 1fr; }
.gsap .step { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; pointer-events: none; }
.gsap .step.is-on { opacity: 1; transform: none; }
.gsap .step__h { display: none; }
.gsap .step__t { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.gsap .step__d { font-size: 1rem; max-width: 40ch; }
.gsap .ruler { grid-column: 1; grid-row: 4; margin-top: 26px; }
.day.is-night .ruler__track { background: rgba(255,255,255,.18); }
.day.is-night .ruler__open { background: var(--celeste); }
.day.is-night .ruler__open--sat { background: repeating-linear-gradient(135deg, var(--celeste) 0 6px, transparent 6px 10px); box-shadow: inset 0 0 0 1.5px var(--celeste); }

/* ---------- carta ---------- */
.carta { padding: clamp(90px, 11vw, 160px) var(--pad); background: var(--fog); }
.carta__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.carta__head .kicker { grid-column: 1 / -1; }
.carta__intro { max-width: 40ch; color: var(--mute); }
.panes { display: flex; gap: 12px; height: clamp(460px, 68vh, 680px); }
.pane { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border: 8px solid var(--frame); box-shadow: inset 0 0 0 2px var(--celeste); background: var(--night); color: var(--paint); cursor: pointer; transition: flex-grow .7s cubic-bezier(.2,.7,.2,1); outline-offset: -6px; }
.pane.is-open { flex-grow: 4.2; cursor: default; }
.pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.75) brightness(.8); }
.pane.is-open img { filter: none; transform: scale(1.03); }
.pane::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,27,48,0) 40%, rgba(13,27,48,.85)); }
.pane__txt { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px; }
.pane__n { font: 600 .74rem/1 var(--sans); letter-spacing: .2em; color: var(--celeste); }
.pane__t { font: 400 clamp(1.5rem, 2.4vw, 2.4rem)/1.05 var(--serif); margin-top: 8px; white-space: nowrap; }
.pane__d { max-width: 36ch; margin-top: 10px; font-size: .98rem; line-height: 1.5; opacity: 0; transform: translateY(10px); transition: opacity .4s .2s, transform .4s .2s; }
.pane.is-open .pane__d { opacity: 1; transform: none; }
.pane:not(.is-open) .pane__t { position: absolute; left: 22px; bottom: 56px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.5rem; }
.carta__note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1.5px solid rgba(16,35,63,.15); font: 400 1.25rem/1.3 var(--serif); }

/* ---------- cómo llegar ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: #fff; }
.visit__pic { position: relative; min-height: 100%; overflow: hidden; }
.visit__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.visit__info { padding: clamp(70px, 9vw, 130px) var(--pad); display: grid; gap: 22px; align-content: start; }
.visit__addr { font: 400 1.3rem/1.35 var(--serif); color: var(--wall); }
.hours { width: 100%; max-width: 520px; border-collapse: collapse; font-size: 1rem; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid rgba(16,35,63,.14); font-weight: 500; }
.hours th { font-weight: 600; width: 44%; }
.hours td { font-variant-numeric: tabular-nums; }
.hours .is-closed { color: #6A7685; }
.hours tr.is-today th::after { content: attr(data-today); margin-left: 10px; padding: 3px 8px; border-radius: 99px; background: var(--sun); color: #fff; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.hours tr.is-today th { position: relative; }
.visit__note { font-size: .9rem; color: var(--mute); }
.visit__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.map iframe { display: block; width: 100%; height: 320px; border: 8px solid var(--frame); box-shadow: inset 0 0 0 2px var(--celeste); }

/* ---------- reservas ---------- */
.book { background: var(--wall); color: var(--paint); text-align: center; padding: clamp(100px, 13vw, 200px) var(--pad) clamp(90px, 11vw, 160px); position: relative; overflow: hidden; }
.book::before { content: ""; position: absolute; left: 50%; bottom: -2px; width: min(420px, 60vw); height: min(480px, 70vw); transform: translateX(-50%); border: 11px solid var(--paint); border-bottom: 0; border-radius: 50% 50% 0 0 / 38% 38% 0 0; opacity: .12; }
.book__title { font: 400 clamp(5rem, 18vw, 17rem)/.85 var(--serif); letter-spacing: -.02em; position: relative; }
.book__p { max-width: 36ch; margin: 24px auto 0; font-size: 1.1rem; opacity: .9; position: relative; }
.book__phone { position: relative; display: inline-grid; gap: 8px; margin-top: 44px; padding: 22px 40px 26px; border: 2px solid var(--paint); border-radius: 999px; text-decoration: none; transition: background .3s, color .3s; }
.book__phone:hover { background: var(--paint); color: var(--wall); }
.book__k { font: 600 .74rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.book__n { font: 400 clamp(2.4rem, 5.4vw, 4.6rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.book__alt { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; font-size: .98rem; }
.book__alt a { text-decoration: none; border-bottom: 1px solid rgba(246,247,243,.45); padding-bottom: 3px; }
.book__alt a:hover { border-color: var(--paint); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: #C7CFD8; padding: 54px var(--pad) 34px; display: grid; grid-template-columns: auto 1fr; gap: 30px 40px; align-items: center; font-size: .9rem; }
.seal { width: 104px; height: 104px; }
.seal__ring { fill: none; stroke: rgba(246,247,243,.5); stroke-width: 1; }
.seal__txt { fill: var(--paint); font: 600 7.6px var(--sans); letter-spacing: .14em; }
.seal__txt--s { font-size: 7px; letter-spacing: .2em; fill: rgba(246,247,243,.8); }
.seal__fish { fill: none; stroke: var(--paint); stroke-width: 1.5; stroke-linecap: square; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot__cols b { color: #fff; font-weight: 600; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__base { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

.dock { display: none; }

/* ---------- estados de animación ---------- */
.js .hx, .js .rv { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__end { margin-left: auto; }
}
@media (max-width: 860px) {
  :root { --nav: 58px; }
  .brand span { display: none; }
  .nav__cta { display: none; }
  .lang button { min-width: 40px; min-height: 36px; }

  .hero { min-height: 560px; }
  .hero__kicker { font-size: .66rem; letter-spacing: .2em; }
  .wall__l { font-size: 52px; }
  .wall__cava { display: none; }
  .wall__s { font-size: 22px; }
  .hero__view img { object-position: 54% 48%; }
  .hero__cta { left: var(--pad); right: var(--pad); bottom: 92px; justify-content: center; }
  .hero__cta .btn { flex: 1; padding: 0 1em; }
  .board { display: none; }
  .gsap .hero__after { bottom: 120px; }

  .lede { grid-template-columns: 1fr; }

  .day__window { grid-template-columns: repeat(2, 1fr); }
  .day__steps { grid-template-columns: 1fr 1fr; }
  .gsap .day__pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto auto auto; padding: calc(var(--nav) + 12px) var(--pad) 88px; row-gap: 14px; }
  .gsap .day__head { grid-column: 1; grid-row: 1; }
  .gsap .day__title { font-size: 1.45rem; margin-top: 10px; }
  .gsap .live { margin-top: 10px; font-size: .8rem; padding: 6px 12px; }
  .gsap .day__window { grid-column: 1; grid-row: 2; border-width: 10px; }
  .gsap .day__clock { grid-column: 1; grid-row: 3; }
  .gsap .day__clock .t { font-size: 3.6rem; }
  .gsap .day__steps { grid-column: 1; grid-row: 4; }
  .gsap .step__t { font-size: 1.25rem; }
  .gsap .step__d { font-size: .9rem; }
  .gsap .ruler { grid-column: 1; grid-row: 5; margin-top: 4px; }
  .gsap .day.is-night .live, .gsap .live { background: rgba(255,255,255,.7); }

  .carta__head { grid-template-columns: 1fr; }
  .panes { flex-direction: column; height: auto; gap: 10px; }
  .pane, .pane.is-open { flex: none; height: 300px; }
  .pane:not(.is-open) .pane__t { position: static; writing-mode: horizontal-tb; transform: none; font-size: 1.6rem; }
  .pane__d { opacity: 1; transform: none; }
  .pane img { filter: none; }

  .visit { grid-template-columns: 1fr; }
  .visit__pic { height: 62vh; min-height: 380px; }

  .foot { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr; }

  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .dock { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); background: var(--wall); box-shadow: 0 -10px 30px rgba(13,27,48,.25); }
  .dock__b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(246,247,243,.6); color: var(--paint); text-decoration: none; font-weight: 600; font-size: .95rem; }
  .dock__b--main { flex: 1; background: var(--paint); color: var(--wall); border-color: var(--paint); }
  .dock__b svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
