/* ═══════════════════════════════════════════════════════════════
   ROUX — Hoja de estilos compartida
   by Martín Rebaudino · Recoleta, Buenos Aires
   Web Argentina — 2026
   ═══════════════════════════════════════════════════════════════ */

/* ─── RESET & VARIABLES ──────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #f5f0e8;
  --dark: #1a1714;
  --gold: #b89d6e;
  --gold-light: #d4b98a;
  --warm-white: #faf7f2;
  --text: #2c2620;
  --text-light: #6b5f55;
  --terracota: #b85c2a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
}

/* ─── SITE WRAPPER (se empuja con el sidebar en desktop) ─────── */
#site-wrapper {
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
  position: relative;
}
#site-wrapper.sidebar-open { transform: translateX(-380px); }


/* ─── NAVBAR ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 48px;
  height: 72px;
  background: transparent;
  transition: background 0.4s, transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}
/* Variante de nav siempre con fondo (para páginas internas: menu, carta) */
nav.nav-solid {
  background: rgba(26, 23, 20, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 157, 110, 0.1);
}
/* Cuando hace scroll en index, mismo fondo */
nav.scrolled {
  background: rgba(26, 23, 20, 0.96);
  backdrop-filter: blur(10px);
}
nav.sidebar-open { transform: translateX(-380px); }

/* LEFT */
.nav-left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-socials {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.nav-socials a:hover { color: var(--gold-light); }
.nav-socials svg { width: 16px; height: 16px; fill: currentColor; }

.nav-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
}

.nav-reservar {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.nav-reservar:hover { border-color: var(--gold); }

/* Logo chiquito que aparece a la izquierda en MOBILE */
.nav-logo-mobile {
  display: none;
  align-items: center;
}
.nav-logo-mobile img {
  height: 28px;
  display: block;
}
/* Reservar a la derecha — solo mobile */
.nav-reservar-mobile { display: none; }

/* CENTER: logo grande del navbar — flex item central, no se encoje */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-logo a { display: block; line-height: 0; }
.nav-logo img {
  height: 36px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
/* En el home aparece al scrollear, en el resto siempre visible */
nav.scrolled .nav-logo img,
nav.nav-solid .nav-logo img {
  opacity: 1;
  transform: translateY(0);
}

/* RIGHT */
.nav-right {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  outline: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ─── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100vh;
  background: #0f0d0b;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  border-left: 1px solid rgba(184, 157, 110, 0.12);
}
.sidebar.open { right: 0; }

.sidebar-label {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
  display: block;
}

.sidebar ul {
  list-style: none;
  margin-bottom: 56px;
}
.sidebar ul li {
  border-bottom: 1px solid rgba(245, 240, 232, 0.07);
}
.sidebar ul li a {
  display: block;
  padding: 18px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.85);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s, padding-left 0.2s;
}
.sidebar ul li a:hover {
  color: var(--gold-light);
  padding-left: 8px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid rgba(245, 240, 232, 0.07);
}
.sidebar-footer p {
  font-size: 11px;
  color: rgba(245, 240, 232, 0.3);
  line-height: 1.9;
  font-weight: 300;
}
.sidebar-socials {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}
.sidebar-socials a {
  color: rgba(245, 240, 232, 0.4);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-socials a:hover { color: var(--gold); }

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}


/* ─── PAGE HERO (menu / carta) ───────────────────────────────── */
.page-hero {
  padding-top: 72px;
  background: var(--dark);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184, 157, 110, 0.4), transparent);
}
.page-hero-ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  height: 460px;
  border: 1px solid rgba(184, 157, 110, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-ornament::after {
  content: '';
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(184, 157, 110, 0.04);
  border-radius: 50%;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 56px 48px;
}
.page-hero-est {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(184, 157, 110, 0.55);
  display: block;
  margin-bottom: 16px;
}
.page-hero-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 10vw, 96px);
  font-weight: 300;
  letter-spacing: 16px;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 8px;
}
.page-hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 3px;
  color: rgba(245, 240, 232, 0.38);
  margin-bottom: 4px;
}
.page-hero-chef {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.3);
}


/* ─── CARTA / MENÚ — layout común ────────────────────────────── */
.carta-bg { background: var(--warm-white); }

.carta-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 48px 100px;
}

.carta-footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid rgba(44, 38, 32, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.carta-footer-ornament {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin-bottom: 14px;
  opacity: 0.4;
}
.carta-footer-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  color: rgba(44, 38, 32, 0.35);
  letter-spacing: 0.5px;
}


/* ─── BOTONES ────────────────────────────────────────────────── */
.btn-reserva {
  display: inline-block;
  margin-top: 28px;
  padding: 16px 56px;
  background: var(--gold);
  color: var(--dark);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.btn-reserva:hover { background: var(--gold-light); }


/* ─── SLIDESHOW (index — platos / salón) ─────────────────────── */
.slideshow {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
}
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 8, 0.2);
}
.slide-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slide-dot {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.slide-dot::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--gold);
}
.slide-dot.active::after {
  animation: dotFill var(--dur, 4s) linear forwards;
}
@keyframes dotFill {
  from { width: 0%; }
  to   { width: 100%; }
}
.slide-counter {
  position: absolute;
  bottom: 30px;
  right: 48px;
  z-index: 10;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.35);
  font-family: 'Montserrat', sans-serif;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(26, 23, 20, 0.45);
  border: 1px solid rgba(184, 157, 110, 0.35);
  color: rgba(245, 240, 232, 0.75);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
  backdrop-filter: blur(6px);
}
.slide-arrow:hover {
  background: rgba(184, 157, 110, 0.18);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}
.slide-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.slide-arrow-prev { left: 36px; }
.slide-arrow-next { right: 36px; }


/* ─── FOOTER (común a todas las páginas) ─────────────────────── */
footer {
  background: #0f0d0b;
  padding: 72px 56px 40px;
  border-top: 1px solid rgba(184, 157, 110, 0.2);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 56px;
}
.footer-logo img {
  height: 36px;
  opacity: 0.75;
  margin-bottom: 16px;
  display: block;
}
.footer-logo p {
  font-size: 11px;
  color: rgba(245, 240, 232, 0.4);
  line-height: 1.8;
  font-weight: 300;
}

.footer-col h5 {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 12px;
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 300;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-col p {
  font-size: 12px;
  color: rgba(245, 240, 232, 0.5);
  line-height: 1.9;
  font-weight: 300;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(245, 240, 232, 0.08);
}
.footer-bottom p {
  font-size: 10px;
  color: rgba(245, 240, 232, 0.25);
  letter-spacing: 1px;
}


/* ═══════════════════════════════════════════════════════════════
   TABLET — hasta 1024px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  nav { padding: 0 28px; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE — hasta 768px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Navbar ── */
  nav {
    padding: 0 20px;
    height: 64px;
  }
  /* En mobile el sidebar NO empuja el sitio (overlay simple) */
  #site-wrapper.sidebar-open { transform: none; }
  nav.sidebar-open { transform: none; }
  .sidebar { width: 86vw; right: -86vw; padding: 72px 36px; }
  .sidebar ul li a { font-size: 24px; padding: 16px 0; }

  /* Ocultar redes, separador y reservar de la izquierda */
  .nav-socials,
  .nav-sep,
  .nav-reservar-desktop { display: none; }

  /* Mostrar reservar a la derecha */
  .nav-reservar-mobile { display: inline-block; }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  /* Mostrar logo chiquito a la izquierda */
  .nav-logo-mobile { display: flex; }
  .nav-logo-mobile img {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  /* aparece al scrollear (en index) o siempre (en menu/carta) */
  nav.scrolled .nav-logo-mobile img,
  nav.nav-solid .nav-logo-mobile img {
    opacity: 1;
    transform: translateY(0);
  }
  /* Logo central → ocultar en mobile */
  .nav-logo { display: none; }

  .nav-left { gap: 14px; }
  .nav-reservar { font-size: 9px; letter-spacing: 2px; }

  /* ── Page hero ── */
  .page-hero-content { padding: 40px 24px; }

  /* ── Carta wrapper ── */
  .carta-wrapper { padding: 48px 22px 72px; }

  /* ── Slideshow ── */
  .slideshow {
    /* en mobile usamos dvh donde está disponible para evitar el bug
       de la URL bar de iOS Safari que recorta el contenido */
    height: 100svh;
    min-height: 520px;
  }
  .slide-arrow {
    width: 40px;
    height: 40px;
  }
  .slide-arrow svg { width: 14px; height: 14px; }
  .slide-arrow-prev { left: 14px; }
  .slide-arrow-next { right: 14px; }
  .slide-counter {
    right: 20px;
    bottom: 22px;
    font-size: 9px;
  }
  .slide-dots { bottom: 24px; gap: 6px; }
  .slide-dot { width: 24px; }

  /* ── Footer ── */
  footer { padding: 56px 20px 32px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}


/* ═══════════════════════════════════════════════════════════════
   SMALL MOBILE — hasta 420px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
  nav { padding: 0 14px; }
  .nav-logo-mobile img { height: 24px; }
  .nav-reservar { font-size: 8.5px; letter-spacing: 1.6px; }
  .nav-right { gap: 12px; }
  .footer-logo img { height: 30px; }
}