/* ========== Reset / base ========== */
:root { --app-height: 100vh; }
@supports (height: 100dvh) {
  :root { --app-height: 100dvh; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: var(--app-height); }
body {
  font-family: 'Nunito', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #fff;
  background: #111;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body, button, input, textarea, select {
  font-family: 'Nunito', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ========== Hero (landing) ========== */
.hero {
  position: relative;
  width: 100%;
  height: var(--app-height);
  min-height: var(--app-height);
  max-height: var(--app-height);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Capa con la foto del menu - se desvanece encima de la principal */
.hero-bg-alt {
  opacity: 0;
  z-index: 1;
  transition: opacity .5s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity;
}
body.menu-open .hero-bg-alt { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: transparent;
  pointer-events: none;
}

/* Contenido abajo, centrado horizontal */
.hero-content {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4rem;
  padding: 2.5rem 2rem max(3rem, env(safe-area-inset-bottom));
  text-align: center;
  max-width: 100vw;
  transition: opacity .35s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity;
}
/* Cuando el menu esta abierto, ocultamos el contenido del hero */
body.menu-open .hero-content {
  opacity: 0;
  pointer-events: none;
}

.logo-link { display: inline-block; }
.logo {
  max-width: 150px;
  width: 35vw;
  max-height: 90px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.45));
  display: block;
}

.address {
  font-size: 1.85rem;
  letter-spacing: .04em;
  font-weight: 500;
  color: #000;
  text-shadow: none;
  border: 0;
  padding-bottom: 0;
}

/* Reservar como texto plano - mismo estilo que la direccion */
.btn-primary {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 1.85rem;
  font-weight: 500;
  color: #000;
  text-shadow: none;
}

/* ========== Hover: circulo "a lapiz" ========== */
.circle-target {
  position: relative;
  display: inline-block;
}
/* Wrapper de la palabra "reservas" - solo aca aparece el subrayado */
.reservas-word {
  position: relative;
  display: inline-block;
}
/* El SVG y el path se posicionan/dimensionan via JS (ver updateScribbleCircles
   en app.js) para que el trazo se adapte al tamaño real de cada elemento y no
   se distorsione cuando el elemento es muy ancho (como la direccion). */
.hover-circle {
  position: absolute;
  pointer-events: none;
  overflow: visible;
  color: #000;
  transform: rotate(-1deg);
}
.hover-circle path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset .75s cubic-bezier(.55, .15, .25, 1);
}
.circle-target:hover .hover-circle path,
.circle-target:focus-visible .hover-circle path {
  stroke-dashoffset: 0;
}

/* Modo multi-path (corchetes): cada trazo se dibuja entero antes que el siguiente */
.hover-circle.multi-path path {
  transition-duration: .18s;
  transition-timing-function: cubic-bezier(.5, 0, .5, 1);
}
.hover-circle.multi-path path:nth-child(1) { transition-delay: 0s; }
.hover-circle.multi-path path:nth-child(2) { transition-delay: .18s; }
.hover-circle.multi-path path:nth-child(3) { transition-delay: .36s; }
.hover-circle.multi-path path:nth-child(4) { transition-delay: .54s; }

/* ========== Hamburguesa ========== */
.hamburger {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top)); left: 1rem;
  width: 46px; height: 46px;
  z-index: 30;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  cursor: pointer;
  display: block;
  padding: 0;
}
.hamburger span {
  display: block;
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #000;
  border-radius: 999px;
  transform-origin: center;
  transition: transform .28s ease, opacity .14s ease;
}
.hamburger span:nth-child(1) { transform: translateY(-7px); }
.hamburger span:nth-child(2) { transform: translateY(0); }
.hamburger span:nth-child(3) { transform: translateY(7px); }
.hamburger.is-open span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: translateY(0) scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(0) rotate(-45deg); }
.hamburger:focus { outline: none; }
.hamburger:focus-visible {
  outline: 2px solid rgba(0,0,0,.35);
  outline-offset: 3px;
}

/* ========== Menu overlay ========== */
.menu-overlay {
  position: fixed; inset: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity;
}
.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.menu-close {
  position: absolute; top: 1.4rem; right: 1.4rem;
  background: transparent; border: 0; color: #000;
  font-size: 2.4rem; line-height: 1; cursor: pointer;
  display: none;
}
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.menu-list a {
  font-size: 2.6rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
  color: #000;
  position: relative;
  padding: .25rem .5rem;
  transition: opacity .2s ease;
}
.menu-list a:hover { opacity: .65; }

.menu-hours {
  position: absolute;
  bottom: 4.6rem;
  color: #000;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  padding: 0 1rem;
}

.lang-switch {
  position: absolute;
  bottom: 2.4rem;
  display: flex;
  gap: .6rem;
  align-items: center;
  font-size: .9rem;
  letter-spacing: .04em;
}
.lang-btn {
  background: transparent;
  border: 0;
  color: #000;
  cursor: pointer;
  opacity: .5;
  padding: .25rem .5rem;
  letter-spacing: .04em;
  font-weight: 500;
  transition: opacity .2s ease;
}
.lang-btn.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang-btn:hover { opacity: 1; }
.lang-sep { opacity: .4; color: #000; }

/* ========== Overlays (carta, acerca) ========== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  padding: 4rem 1.5rem 2rem;
}
.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 6px 32px rgba(0,0,0,.5);
}
.overlay-close {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  background: transparent; border: 0;
  color: #fff;
  font-size: 2.4rem; line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.overlay-text-inner {
  max-width: 640px;
  text-align: left;
  line-height: 1.7;
  font-size: 1.05rem;
  font-weight: 300;
}
.overlay-text-inner h2 {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: .7;
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
  .menu-list a { font-size: 1.9rem; }
  .menu-list { gap: 1.2rem; }
  .hero-content {
    padding: clamp(1rem, 3vh, 1.6rem) 1.35rem max(1.25rem, env(safe-area-inset-bottom));
    gap: clamp(.55rem, 1.5vh, .85rem);
  }
  .logo {
    width: clamp(92px, 30vw, 120px);
    max-width: 120px;
    max-height: 75px;
  }
  .address,
  .btn-primary {
    font-size: clamp(1.15rem, 5.2vw, 1.45rem);
    line-height: 1.16;
  }
}
