/* layout.css — estructura general */

/* --- NAV --- */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: env(safe-area-inset-top, 0px) 3rem 0;
  height: var(--nav-height);
  background: var(--black);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-logo {
  justify-self: start;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
  text-decoration: none;
}

.nav-logo .logo-accent {
  color: var(--red);
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

/* --- REVIEWS LAYOUT --- */
.section-reviews {
  background: #f4f4f4;
  padding: 5rem 8%;
  position: relative;
  z-index: 2; /* desliza por encima del hero sticky */
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- BOOKING LAYOUT --- */
.section-booking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 2;
}

/* --- FOOTER LAYOUT --- */
.footer {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 4rem 8%;
}

/* --- PAGE HERO (páginas interiores) --- */
.page-hero {
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 3rem) 8% 4rem;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.9) 40%, rgba(0,0,0,0.6) 100%),
    url('../assets/images/textura-parrila.jpg');
  background-size: cover;
  background-position: center;
}

/* --- MENU LAYOUT --- */
.menu-section {
  background: var(--black);
  padding: 3rem 8% 5rem;
}

.menu-category {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.menu-category:first-child {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.menu-category-title {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0.5rem 0 1.75rem;
}

/* --- CONTACT LAYOUT --- */
.contact-section {
  background: #fff;
  padding: 5rem 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
  .reviews-grid        { grid-template-columns: 1fr 1fr; }
  .footer-grid         { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section-booking     { grid-template-columns: 1fr; }
  .contact-section     { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .reviews-grid        { grid-template-columns: 1fr; }
  .footer-grid         { grid-template-columns: 1fr; }
  .menu-section        { padding: 1.5rem 5% 3rem; }

  :root                { --nav-height: calc(84px + env(safe-area-inset-top, 0px)); }
  .nav                 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    row-gap: 0.4rem;
    padding: calc(env(safe-area-inset-top, 0px) + 0.6rem) 1rem 0.6rem;
  }
  .nav-logo            { justify-self: center; font-size: 1.05rem; }
  .nav-links           { flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.9rem; }
  .nav-links a         { font-size: 0.58rem; letter-spacing: 0.03em; }
}
