/* Pantalla de inicio (titular) estilo reservas.php */

.page-with-hero .navbar:not(.scrolled) {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: none;
}

.page-with-hero .navbar:not(.scrolled) .nav-title,
.page-with-hero .navbar:not(.scrolled) .nav-link {
  color: #fff;
}

.page-with-hero .navbar:not(.scrolled) .nav-link::after {
  background: #fff;
}

.page-with-hero .navbar:not(.scrolled) .nav-toggle span {
  background: #fff;
}

.page-with-hero .navbar:not(.scrolled) .language-current {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.page-with-hero .navbar:not(.scrolled) .language-current:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.page-titular {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  padding-top: 80px;
  box-sizing: border-box;
  overflow: hidden;
}

.page-titular__bg {
  position: absolute;
  inset: 0;
  background: url('../img/entrada-roja2-w.jpg') center center / cover no-repeat;
  backface-visibility: hidden;
  will-change: transform;
  transform: translateZ(0) scale(1.05);
  animation: growTitular 60s linear 10ms infinite;
}

.page-titular__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}

.page-titular__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 1rem;
  text-align: center;
}

.page-titular__logo {
  position: absolute;
  left: clamp(16px, 4vw, 30px);
  top: clamp(16px, 4vw, 30px);
  display: inline-block;
  width: min(60vw, 720px);
  max-width: 720px;
}

.page-titular__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.page-titular__title {
  margin: 0;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
  position: absolute;
  bottom: clamp(3.5rem, 10vh, 7rem);
}

.page-titular__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.page-titular__scroll span {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
  margin-top: -4px;
}

#start {
  scroll-margin-top: 110px;
}

/* Imágenes de fondo por página */
.page-home .page-titular__bg { background-image: url('../img/entrada-roja2-w.jpg'); }
.page-carta .page-titular__bg { background-image: url('../img/paellas-carta-w.jpg'); }
.page-nosotros .page-titular__bg { background-image: url('../img/detalle-fachada-roja-w.jpg'); }
.page-contacto .page-titular__bg { background-image: url('../img/terraza2-w.jpg'); }

@media (max-width: 768px) {
  .page-titular {
    height: 100vh;
    min-height: 480px;
    padding-top: 72px;
  }

  .page-titular__logo {
    width: min(80vw, 420px);
  }

  #start {
    scroll-margin-top: 100px;
  }
}

@keyframes growTitular {
  0% { transform: translateZ(0) scale(1.05); }
  50% { transform: translateZ(0) scale(1.2); }
  100% { transform: translateZ(0) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .page-titular__bg {
    animation: none;
  }
}
