html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.58)),
    url("images/fondo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* HERO */
.hero {
  text-align: center;
  padding: 48px 20px 60px;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0.95) 0%,
    rgba(20, 20, 20, 0.75) 45%,
    rgba(20, 20, 20, 0.25) 80%,
    rgba(20, 20, 20, 0) 100%
  );
}

.hero h1 {
  margin: 0;
  font-size: 3.4rem;
  line-height: 1.05;
}

.subtitle {
  margin: 12px 0 0;
  font-size: 1.35rem;
  opacity: 0.9;
}

/* GRID PRINCIPAL */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 270px);
  justify-content: center;
  gap: 28px;
  max-width: 1400px;
  margin: 10px auto 48px;
  padding: 0 24px;
}

.menu-item {
  position: relative;
  display: block;
  text-decoration: none;
  color: white;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.menu-item img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.menu-item:hover img {
  transform: scale(1.03);
}

.menu-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.62);
  text-align: center;
  padding: 18px 14px;
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.2px;
}

/* CONTACTO */
.contact {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 28px 24px 34px;
  text-align: center;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 16px;
}

.contact h2 {
  margin: 0 0 18px;
  font-size: 2rem;
}

.contact p {
  margin: 8px 0;
  font-size: 1.1rem;
}

/* PÁGINAS INTERNAS */
.page-section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.gallery {
  display: grid;
  gap: 20px;
  margin: 0 auto;
}

.gallery-rect {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
}

.gallery-rect img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-square {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}

.gallery-square video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery img:hover,
.gallery video:hover {
  transform: scale(1.03);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
}

.lightbox-content,
.lightbox-video {
  display: block;
  margin: 60px auto;
  max-width: 85%;
  max-height: 80vh;
  border-radius: 12px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 42px;
  cursor: pointer;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 10px;
}

.prev { left: 30px; }
.next { right: 30px; }

/* RESPONSIVE */
@media (max-width: 1280px) {
  .menu-grid {
    grid-template-columns: repeat(2, 270px);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .subtitle {
    font-size: 1.05rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    gap: 22px;
  }

  .menu-item img {
    height: 460px;
  }

  .gallery-rect,
  .gallery-square {
    grid-template-columns: 1fr;
    max-width: 92%;
  }
}
/* ===== PORTADA ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 270px);
  justify-content: center;
  gap: 28px;
  max-width: 1400px;
  margin: 10px auto 48px;
  padding: 0 24px;
}

.menu-item {
  position: relative;
  display: block;
  text-decoration: none;
  color: white;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.menu-item img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.menu-item:hover img {
  transform: scale(1.03);
}

.menu-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.62);
  text-align: center;
  padding: 18px 14px;
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.2px;
}

.contact {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 28px 24px 34px;
  text-align: center;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 16px;
}

.contact h2 {
  margin: 0 0 18px;
  font-size: 2rem;
}

.contact p {
  margin: 8px 0;
  font-size: 1.1rem;
}
@media (max-width: 1280px) {
  .menu-grid {
    grid-template-columns: repeat(2, 270px);
  }
}

@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    gap: 22px;
  }

  .menu-item img {
    height: 460px;
  }
}
