/* ───────────────────────────────────────────────
   PUB DEJAVU · Punta Arenas — sistema visual
   "La esquina de la diversión en el fin del mundo"
   ─────────────────────────────────────────────── */
:root {
  /* tinta: negro-ciruela, nunca negro puro */
  --ink: oklch(0.155 0.028 320);
  --ink-2: oklch(0.205 0.034 320);
  --ink-3: oklch(0.27 0.04 318);
  --ink-4: oklch(0.36 0.04 318);
  /* papel: crema tibia para la carta */
  --paper: oklch(0.965 0.018 85);
  --paper-2: oklch(0.925 0.028 80);
  --paper-3: oklch(0.86 0.035 78);
  --cream: oklch(0.95 0.022 85);
  --cream-2: oklch(0.82 0.03 85);
  --cream-3: oklch(0.66 0.03 80);
  /* acentos: brasa (cóctel/hamburguesa) y neón (noche) */
  /* un solo acento cálido, solo para precios y "hoy" */
  --ember: oklch(0.76 0.15 62);
  --ember-deep: oklch(0.52 0.15 45);

  --display: "Big Shoulders Display", "Archivo Narrow", Impact, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.paper { background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: 0.92; letter-spacing: -0.005em; }
p { margin: 0; }
::selection { background: var(--cream); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.9; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-3); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.paper .eyebrow { color: var(--ink-4); }

/* ─── Botones ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 4px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em; line-height: 1;
  transition: transform .35s var(--ease-out), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: .08s; }
.btn-ember { background: var(--cream); color: var(--ink); }
.btn-ember:hover { background: oklch(1 0 0); }
.paper .btn-ember { background: var(--ink); color: var(--cream); }
.paper .btn-ember:hover { background: var(--ink-3); }
.btn-ghost { border: 1.5px solid oklch(from var(--cream) l c h / 0.35); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.paper .btn-ghost { border-color: oklch(from var(--ink) l c h / 0.25); color: var(--ink); }
.paper .btn-ghost:hover { border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-3); }
.btn-wa { background: var(--cream); color: var(--ink); }
.btn-wa:hover { background: oklch(1 0 0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ─── Nav ─── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav.solid { background: oklch(from var(--ink) l c h / 0.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 oklch(from var(--cream) l c h / 0.08); }
.paper .nav.solid { background: oklch(from var(--paper) l c h / 0.86); box-shadow: 0 1px 0 oklch(from var(--ink) l c h / 0.1); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 46px; width: auto; }
.paper .nav-logo img { filter: invert(1) brightness(0.2); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 10px 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  opacity: 0.7; transition: opacity .2s; border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { border-bottom-color: currentColor; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta .btn-ghost { display: none; } }

/* barra inferior móvil */
.mobar {
  position: fixed; inset: auto 0 0 0; z-index: 50; display: none;
  padding: 10px max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-bottom));
  background: oklch(from var(--ink) l c h / 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -1px 0 oklch(from var(--cream) l c h / 0.1);
}
.mobar-inner { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
.mobar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 4px; font-weight: 700; font-size: 14px; border: 1px solid oklch(from var(--cream) l c h / 0.25); color: var(--cream); }
.mobar a.wa { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.mobar svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .mobar { display: block; } body { padding-bottom: 76px; } }

/* ─── WhatsApp flotante (desktop) ─── */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 12px; border-radius: 4px; background: var(--cream); color: var(--ink);
  font-weight: 700; font-size: 14px; box-shadow: 0 12px 40px oklch(0 0 0 / 0.4);
  transition: transform .35s var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 860px) { .wa-float { display: none; } }

/* ─── Marquee ─── */
.marquee { overflow: hidden; background: var(--ink); color: var(--cream); padding: 14px 0; border-block: 1px solid oklch(from var(--cream) l c h / 0.18); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 700; font-size: clamp(16px, 2vw, 22px); text-transform: uppercase; letter-spacing: 0.02em; padding-inline: 18px; white-space: nowrap; }
.marquee span::after { content: "·"; margin-left: 36px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Revelado ─── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s } .reveal[data-delay="2"] { transition-delay: .2s } .reveal[data-delay="3"] { transition-delay: .3s } .reveal[data-delay="4"] { transition-delay: .4s }

/* ─── Footer ─── */
.footer { background: var(--ink); color: var(--cream); padding: clamp(56px, 8vw, 110px) 0 0; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h3 { font-family: var(--display); font-size: clamp(44px, 7vw, 96px); text-transform: uppercase; line-height: .88; }
.footer h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--cream-2); }
.footer h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3); font-weight: 600; margin-bottom: 18px; }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid oklch(from var(--cream) l c h / 0.1); font-size: 15px; }
.hours li span:last-child { font-variant-numeric: tabular-nums; color: var(--cream-2); }
.hours li.today { color: var(--ember); }
.hours li.today span:last-child { color: var(--ember); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 15px; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-list strong { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 3px; font-weight: 600; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 4px; border: 1px solid oklch(from var(--cream) l c h / 0.2); font-size: 13px; font-weight: 600; transition: border-color .2s, background .2s; }
.socials a:hover { border-color: var(--cream); }
.socials svg { width: 16px; height: 16px; }
.map { margin-top: 36px; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--ink-2); filter: grayscale(1) contrast(1.05); }
.map iframe { width: 100%; height: 100%; border: 0; }
.footer-bottom { margin-top: clamp(48px, 6vw, 80px); padding: 26px 0 32px; border-top: 1px solid oklch(from var(--cream) l c h / 0.1); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--cream-3); }
.badges { display: flex; gap: 14px; }
.badges img { width: 54px; height: 54px; opacity: .85; }
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
