/* ==========================================================
   Casa Pascualillo — estilos globales
   Escritorio (≥1024px): diseño dividido con navegación flotante.
   Tablet y móvil (<1024px): experiencia tipo app nativa con
   barra superior compacta y barra de pestañas inferior.
   ========================================================== */

:root {
  --bg: #000;
  --panel: #111;
  --panel-2: #1a1a1a;
  --border: #2a2a2a;
  --text: #f2f2f2;
  --muted: #bdbdbd;
  --gold: #e8c46a;
  --cream: #f6e9c3;
  --cream-btn: #fdf1cc;
  --radius: 14px;
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --appbar-h: 56px;
  
  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a, button { touch-action: manipulation; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--cream-btn);
  color: #111;
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* ==========================================================
   Transiciones entre páginas
   ========================================================== */

/* Navegadores con View Transitions entre documentos (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }

/* La navegación y la barra de pestañas se quedan quietas mientras cambia la página */
.nav { view-transition-name: site-nav; }
::view-transition-group(site-nav) { animation-duration: 0s; }

@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Alternativa para navegadores sin View Transitions (p. ej. Firefox) */
.no-vt .page { animation: vt-in .45s var(--ease) both; }
.no-vt body.is-leaving .page { opacity: 0; transform: scale(.985); transition: opacity .22s var(--ease), transform .22s var(--ease); }

/* ==========================================================
   Titulares que aparecen letra a letra
   ========================================================== */
/* Oculto hasta que JS separa las letras (evita un parpadeo del texto completo).
   Si JS fallara, el titular aparece igualmente a los 2 s. */
.js [data-reveal]:not(.is-split) { opacity: 0; animation: reveal-failsafe 0s 2s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; } }

[data-reveal] .word { display: inline-block; white-space: nowrap; }
[data-reveal] .char {
  display: inline-block;
  animation: char-in .6s var(--ease) both;
  animation-delay: calc(var(--reveal-start, .2s) + var(--d, 0s));
}
@keyframes char-in {
  from { opacity: 0; filter: blur(10px); transform: translateY(.3em); }
}

/* La dirección y el sello de la portada entran cuando termina el titular */
.js .hero__find { animation: fade-up .8s var(--ease) both; animation-delay: var(--after-reveal, 1.4s); }
.js .badge { animation: fade-in .8s var(--ease) both; animation-delay: calc(var(--after-reveal, 1.4s) + .15s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade-in { from { opacity: 0; } }

/* ==========================================================
   Navegación flotante (escritorio)
   ========================================================== */
.nav {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px;
  background: rgba(20, 20, 20, .92);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
  white-space: nowrap;
}
.split .nav { left: 25%; }

.nav__burger {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #0c0c0c;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav__burger span { display: block; width: 20px; height: 1.5px; background: #fff; }

.nav__brand {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.home .nav__brand { color: var(--gold); }

.nav__links {
  display: flex;
  gap: 4px;
  background: #0c0c0c;
  border-radius: 999px;
  padding: 4px 6px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 999px;
  transition: color .2s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--gold); }

/* ---------- Icono hamburguesa → X ---------- */
.nav__burger span { transition: transform .45s var(--spring), opacity .25s var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav__burger { transition: background .25s, transform .15s; }
.nav__burger:active { transform: scale(.92); }
.menu-open .nav__burger { background: rgba(255,255,255,.14); }

/* ---------- Menú modal "liquid glass" ---------- */
.menu-open .nav { z-index: 70; } /* la X queda por encima del modal */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .5s;
}
.drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }

.drawer__panel {
  --glass-bg: rgba(28, 28, 30, .42);
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border-radius: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 42%, rgba(255,255,255,0) 60%, rgba(255,255,255,.07)),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(28px) saturate(185%) brightness(1.05);
  backdrop-filter: blur(28px) saturate(185%) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(255,255,255,.06),
    inset 0 0 22px rgba(255,255,255,.05),
    0 30px 80px rgba(0, 0, 0, .55);
  transform-origin: 50% 0;
  transform: translate(-50%, -50%) scale(.9) translateY(-14px);
  opacity: 0;
  filter: blur(6px);
  transition: transform .5s var(--spring), opacity .3s var(--ease), filter .35s var(--ease);
}
.drawer.is-open .drawer__panel {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: none;
}
/* Brillo de cristal en el borde superior */
.drawer__panel::before {
  content: "";
  position: absolute;
  inset: 0 18% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  pointer-events: none;
}

.drawer__nav { display: grid; gap: 4px; }
.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 6px 16px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background .2s, color .2s;
}
.drawer__nav a svg { opacity: .45; transition: transform .25s var(--ease), opacity .2s; }
.drawer__nav a[aria-current="page"] { color: var(--gold); background: rgba(255,255,255,.07); }
.drawer__nav a[aria-current="page"] svg { opacity: 1; }
.drawer__nav a:active { background: rgba(255,255,255,.12); }

.drawer__foot {
  margin-top: 14px;
  padding: 16px 6px 4px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid;
  gap: 14px;
}
.drawer__info { font-style: normal; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.6; padding: 0 10px; }
.drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer__actions .btn { border-radius: 14px; min-height: 48px; }
.btn.btn--glass {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}

/* Entrada escalonada de las opciones */
.drawer__nav a,
.drawer__foot {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .45s var(--spring), background .2s, color .2s;
}
.drawer.is-open .drawer__nav a,
.drawer.is-open .drawer__foot {
  opacity: 1;
  transform: none;
  transition-delay: calc(.08s + var(--i) * .04s), calc(.08s + var(--i) * .04s), 0s, 0s;
}

/* Sin backdrop-filter: cristal más opaco para mantener la legibilidad */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .drawer__panel { --glass-bg: rgba(24, 24, 26, .96); }
  .drawer__backdrop { background: rgba(0, 0, 0, .7); }
}

/* ==========================================================
   HOME
   ========================================================== */
.hero {
  position: relative;
  /* lvh = pantalla completa aunque la barra del navegador esté visible:
     el negro de abajo solo aparece al hacer scroll */
  height: 100vh;
  height: 100lvh;
  min-height: 560px;
  /* Hueco que ocupan las barras del navegador cuando están visibles */
  --bars: 0px;
  overflow: hidden;
  background: #000;
}
.hero__img,
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.35) 60%, rgba(0,0,0,.65));
}
.hero__title {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 50%;
  top: 50svh;
  transform: translateY(-50%);
  text-align: center;
  padding: 0 20px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.35;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
  text-wrap: balance;
}
.hero__find {
  position: absolute;
  z-index: 2;
  left: 113px;
  bottom: 36px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  font-style: normal;
}
.hero__find h2 {
  font-family: var(--font-body);
  font-size: 15px;
  color: #d8d8d8;
  font-weight: 300;
  margin-bottom: 14px;
}
.badge {
  position: absolute;
  z-index: 2;
  right: 110px;
  bottom: 28px;
  width: 80px;
  height: 80px;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.05;
  background: #1b1b1b;
  transform: rotate(-12deg);
  clip-path: polygon(50% 0%, 61% 4%, 72% 3%, 79% 11%, 89% 15%, 92% 26%, 99% 35%, 97% 46%, 100% 57%, 94% 66%, 93% 78%, 84% 84%, 78% 94%, 67% 95%, 57% 100%, 46% 97%, 35% 99%, 26% 92%, 15% 90%, 11% 79%, 3% 71%, 4% 60%, 0% 50%, 4% 39%, 3% 28%, 11% 21%, 15% 10%, 26% 7%, 35% 1%, 45% 3%);
}
.badge::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
}

/* Bloque de texto bajo la portada (contenido para SEO local) */
.intro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.intro h2 { font-size: clamp(26px, 3vw, 36px); color: var(--cream); line-height: 1.2; }
.intro p { margin: 0 0 14px; color: #dcdcdc; font-size: 16.5px; }
.intro__links { display: grid; gap: 12px; }
.intro__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s var(--ease);
}
.intro__link strong { font-family: var(--font-display); font-weight: 400; font-size: 20px; text-transform: uppercase; color: var(--cream); display: block; }
.intro__link span { color: var(--muted); font-size: 14px; }
.intro__link svg { flex: none; }

/* En escritorio la portada va directa al pie, sin este bloque */
@media (min-width: 1024px) {
  .intro,
  .home .footer { display: none; }
}

/* ---------- Pie de página ---------- */
.footer {
  border-top: 1px solid #1d1d1d;
  padding: 28px 24px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  text-align: center;
}
.footer strong { color: var(--text); font-weight: 600; }
.footer a:hover { color: var(--gold); }
.split .footer { border-top: 0; padding: 12px 4px 0; text-align: left; }

/* ==========================================================
   PÁGINAS DIVIDIDAS (Carta, Conócenos, Reservación)
   ========================================================== */
.split .page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.split .page > * { min-width: 0; }

.split__media {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0 24px;
  background: #000;
}
.split__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }
.split__media h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
.split__content {
  border-left: 1px solid #1d1d1d;
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.card h2 { font-size: 22px; color: var(--cream); margin-bottom: 8px; }

/* ---------- Carta ---------- */
.menu-intro { margin: 0; color: var(--muted); font-size: 14.5px; }

.menu-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 12px 20px;
  margin: 0 -20px;
  background: linear-gradient(#000 78%, rgba(0,0,0,0));
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs a {
  flex: none;
  scroll-snap-align: start;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  -webkit-user-select: none;
  user-select: none;
  transition: color .2s, border-color .2s, background .2s, transform .15s;
}
.menu-tabs a[aria-selected="true"] {
  color: #111;
  background: var(--cream-btn);
  border-color: var(--cream-btn);
}
.menu-tabs a:active { transform: scale(.96); }

.menu-section { scroll-margin-top: 70px; }
.menu-section[hidden] { display: none; }
.menu-section.is-entering { animation: section-in .38s var(--ease) both; }
.menu-section.is-entering .menu-item { animation: item-in .4s var(--ease) both; }
.menu-section.is-entering .menu-item:nth-child(2) { animation-delay: .03s; }
.menu-section.is-entering .menu-item:nth-child(3) { animation-delay: .06s; }
.menu-section.is-entering .menu-item:nth-child(4) { animation-delay: .09s; }
.menu-section.is-entering .menu-item:nth-child(5) { animation-delay: .12s; }
.menu-section.is-entering .menu-item:nth-child(n+6) { animation-delay: .15s; }
@keyframes section-in { from { opacity: 0; } }
@keyframes item-in { from { opacity: 0; transform: translateY(10px); } }

.menu-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 12px;
}
.menu-section h2 { font-size: 22px; color: var(--cream); }
.menu-section__count { color: var(--muted); font-size: 13px; }

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 10px 10px 10px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s, transform .2s var(--ease);
}
.menu-item__name {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  line-height: 1.3;
}
.menu-item__price {
  flex: none;
  font-size: 16px;
  font-weight: 600;
  padding: 6px 10px;
  background: var(--panel-2);
  border: 1px solid #333;
  border-radius: 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.menu-item--featured { border-color: rgba(232,196,106,.45); }
.menu-item--featured .menu-item__price { color: var(--gold); }

/* ---------- Conócenos ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.about-intro p,
.goal p { margin: 0; color: #e6e6e6; font-size: 15.5px; line-height: 1.5; }
.about-intro img {
  width: 100%;
  aspect-ratio: 16 / 9.2;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.hours dl { margin: 0; font-size: 15px; }
.hours dt { font-weight: 700; margin-top: 10px; }
.hours dd { margin: 0; line-height: 1.55; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.goal img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}
.goal strong { font-weight: 600; color: #fff; }
.photo-tile { border-radius: var(--radius); overflow: hidden; min-height: 280px; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }

.reviews {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
}
.reviews h2 { margin-bottom: 6px; }
.reviews__google { font-family: Arial, sans-serif; font-size: 38px; font-weight: 500; letter-spacing: -1px; line-height: 1; }
.reviews__google span:nth-child(1), .reviews__google span:nth-child(4) { color: #4285f4; }
.reviews__google span:nth-child(2), .reviews__google span:nth-child(6) { color: #ea4335; }
.reviews__google span:nth-child(3) { color: #fbbc05; }
.reviews__google span:nth-child(5) { color: #34a853; }
.stars { color: #fbbc05; font-size: 28px; letter-spacing: 2px; margin-top: 34px; }
.scan {
  position: relative;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.5;
  text-transform: uppercase;
  transform: rotate(-12deg);
  padding-top: 20px;
}
.scan svg { position: absolute; top: -14px; right: -20px; }
.qr { padding: 8px; background: var(--panel-2); border: 1px solid #333; border-radius: 10px; }
.qr img { width: 128px; height: 128px; background: #fff; border-radius: 2px; }

.follow { display: flex; align-items: center; justify-content: space-between; }
.follow h2 { margin: 0; }
.follow__links { display: flex; gap: 12px; margin-right: 60px; }
.follow__links a {
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background .2s;
}

/* ---------- Reservación ---------- */
.reserva-page .split__content { padding: 60px 20px 24px; gap: 26px; }
.reserva-card { text-align: center; padding: 28px 20px 38px; }
.reserva-card h2 { font-size: 22px; margin-bottom: 22px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--cream-btn);
  color: #111;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background .2s, transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); margin-top: 12px; }

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px 16px;
  margin-bottom: 24px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
  font-style: normal;
}
.contact-row > * { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.map-wrap {
  position: relative;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel-2);
}
.map { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Página 404 ---------- */
.notfound { min-height: 100dvh; display: grid; place-content: center; gap: 20px; text-align: center; padding: 24px; }
.notfound h1 { font-size: clamp(40px, 8vw, 80px); color: var(--cream); }
.notfound p { color: var(--muted); margin: 0; }
.notfound .btn { width: auto; justify-self: center; padding-inline: 28px; }

/* ==========================================================
   Efectos hover solo en dispositivos con ratón
   ========================================================== */
@media (hover: hover) and (pointer: fine) {
  .menu-tabs a:not([aria-selected="true"]):hover { color: var(--gold); border-color: rgba(232,196,106,.5); }
  .menu-item:hover { border-color: #3a3a3a; transform: translateX(2px); }
  .btn:hover { background: #fff; transform: translateY(-1px); }
  .btn--ghost:hover { background: var(--panel-2); }
  .contact-row a:hover { color: var(--gold); }
  .follow__links a:hover { background: #222; }
  .intro__link:hover { border-color: #3a3a3a; transform: translateY(-2px); }
  .drawer__nav a:not([aria-current]):hover { background: rgba(255,255,255,.08); }
  .drawer__nav a:hover svg { opacity: 1; transform: translateX(3px); }
  .btn.btn--glass:hover { background: rgba(255,255,255,.18); }
}

/* ==========================================================
   MODO APP — tablet y móvil (<1024px)
   ========================================================== */
@media (max-width: 1023px) {
  /* Barra superior compacta: marca a la izquierda, hamburguesa a la derecha */
  .nav,
  .split .nav {
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    height: calc(var(--appbar-h) + var(--safe-top));
    padding: var(--safe-top) calc(10px + var(--safe-right)) 0 calc(18px + var(--safe-left));
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0));
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: background .25s, box-shadow .25s;
  }
  .nav.is-scrolled {
    background: rgba(10, 10, 10, .82);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    box-shadow: 0 1px 0 rgba(255,255,255,.07);
  }
  .menu-open .nav { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__links { display: none; }
  .nav__brand { font-size: 16px; color: var(--text); }
  .home .nav__brand { color: var(--gold); }
  .nav__burger {
    order: 2;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  /* El modal se abre desde la esquina superior derecha */
  .drawer__panel {
    top: calc(var(--appbar-h) + var(--safe-top) + 6px);
    left: auto;
    right: calc(12px + var(--safe-right));
    width: min(400px, calc(100vw - 24px - var(--safe-left) - var(--safe-right)));
    max-height: calc(100dvh - var(--appbar-h) - var(--safe-top) - var(--safe-bottom) - 24px);
    border-radius: 28px;
    padding: 12px;
    transform-origin: calc(100% - 22px) 0;
    transform: scale(.72) translateY(-10px);
  }
  .drawer.is-open .drawer__panel { transform: none; }
  .drawer__nav a { min-height: 48px; font-size: 18px; }

  /* Portada */
  .hero { min-height: 480px; }
  @supports (height: 100lvh) {
    .hero { --bars: calc(100lvh - 100svh); }
  }
  .hero__find { left: calc(20px + var(--safe-left)); bottom: calc(24px + var(--bars)); }
  .badge { right: calc(20px + var(--safe-right)); bottom: calc(22px + var(--bars)); }
  .intro { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 32px; }
  .intro__link:active { transform: scale(.98); }

  /* Páginas divididas → cabecera con imagen + contenido */
  .split .page { grid-template-columns: 1fr; min-height: 0; }
  .split__media {
    position: relative;
    height: 44vh;
    min-height: 300px;
    max-height: 460px;
    padding-top: calc(var(--appbar-h) + var(--safe-top));
  }
  .split__media::after { background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.3) 50%, #000); }
  .split__content {
    border-left: 0;
    position: relative;
    z-index: 1;
    margin-top: -28px;
    padding: 20px calc(16px + var(--safe-right)) 28px calc(16px + var(--safe-left));
    background: #000;
    border-radius: 22px 22px 0 0;
  }
  .reserva-page .split__content { padding-top: 24px; gap: 16px; }

  .menu-tabs {
    top: calc(var(--appbar-h) + var(--safe-top));
    margin: 0 calc(-16px - var(--safe-right)) 0 calc(-16px - var(--safe-left));
    padding: 10px calc(16px + var(--safe-right)) 12px calc(16px + var(--safe-left));
    scroll-padding-inline: 16px;
  }
  .menu-section { scroll-margin-top: calc(var(--appbar-h) + var(--safe-top) + 70px); }
  .menu-item:active { transform: scale(.985); border-color: #3a3a3a; }

  .map-wrap { height: 260px; }
  .footer { padding-bottom: 12px; }
}

/* Tablet (600–1023px): aprovechar el ancho con dos columnas */
@media (min-width: 600px) and (max-width: 1023px) {
  .split__content { padding-inline: calc(28px + var(--safe-left)); gap: 20px; }
  .menu-tabs { margin-inline: -28px; padding-inline: 28px; }
  .menu-list { grid-template-columns: 1fr 1fr; }
  .card h2, .menu-section h2 { font-size: 24px; }
  .hero__find { left: 40px; bottom: calc(36px + var(--bars)); }
  .badge { right: 40px; bottom: calc(32px + var(--bars)); }
  .intro { padding: 56px 40px 40px; }
  .intro__links { grid-template-columns: 1fr 1fr 1fr; }
  .intro__link { flex-direction: column; align-items: flex-start; }
}

/* Móvil (<600px) */
@media (max-width: 599px) {
  .hero__title { font-size: clamp(26px, 7.4vw, 34px); }
  .hero__title br { display: none; }
  .split__media h1 { text-wrap: balance; }
  .hero__find { font-size: 13px; }
  .badge { width: 70px; height: 70px; font-size: 15px; }

  .about-intro,
  .about-grid,
  .contact-row { grid-template-columns: 1fr; }
  .about-intro img { order: -1; }
  .photo-tile { min-height: 220px; aspect-ratio: 4 / 3; }
  .reviews { grid-template-columns: 1fr auto; }
  .reviews > div:first-child { grid-column: 1 / -1; }
  .stars { margin-top: 12px; }
  .follow__links { margin-right: 0; }
  .menu-item__name { font-size: 16px; }
  .reserva-card { padding: 22px 16px 24px; }
  .contact-row { gap: 20px; }
}

/* Móvil en horizontal: cabecera más baja */
@media (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
  .split__media { height: 60vh; min-height: 200px; }
  .hero { min-height: 320px; }
  .hero__find, .badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after,
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; }
}
