/* =========================================================
   ENCABEZADO Y PORTADA
   - Barra superior transparente sobre la foto; blanca con efecto vidrio al bajar
   - Menú de celular a pantalla completa
   - Portada con fotos que se funden, botones y datos del restaurante
========================================================= */

/* ---------- Barra superior ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1300px;
  height: 88px;
  margin: 0 auto;
  padding: 0 32px;
  transition: height 0.35s ease;
}
.topbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}
.topbar.scrolled .topbar-inner {
  height: 70px;
}

/* Logo: blanco sobre la foto, a color sobre la barra blanca */
.topbar-logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  height: 50px;
}
.topbar-logo img {
  height: 100%;
  width: auto;
  transition: opacity 0.35s ease;
}
.topbar-logo .logo-color {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.topbar.scrolled .topbar-logo {
  height: 44px;
}
.topbar.scrolled .logo-blanco,
html.menu-movil-abierto .topbar .logo-color {
  opacity: 0;
}
.topbar.scrolled .logo-color,
html.menu-movil-abierto .topbar .logo-blanco {
  opacity: 1;
}
html.menu-movil-abierto .topbar.scrolled .logo-color {
  opacity: 0;
}

/* Enlaces */
.topbar-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.topbar-nav a {
  position: relative;
  padding: 10px 14px;
  color: #ffffff;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  transition: color 0.25s ease;
}
.topbar-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: #a8e6b8;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.topbar-nav a:hover,
.topbar-nav a:focus {
  color: #ffffff;
  text-decoration: none;
}
.topbar-nav a:hover::after,
.topbar-nav a.activo::after {
  transform: scaleX(1);
}
.topbar.scrolled .topbar-nav a {
  color: #353031;
  text-shadow: none;
}
.topbar.scrolled .topbar-nav a::after {
  background: #3E9E58;
}
.topbar.scrolled .topbar-nav a.activo,
.topbar.scrolled .topbar-nav a:hover {
  color: #3E9E58;
}

/* Idioma + Reservar */
.topbar-acciones {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-idioma {
  display: inline-flex;
  padding: 3px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 700;
}
.topbar-idioma a,
.topbar-idioma span {
  padding: 4px 10px;
  border-radius: 30px;
  line-height: 1;
}
.topbar-idioma a {
  color: rgba(255, 255, 255, 0.85);
}
.topbar-idioma a:hover {
  color: #ffffff;
  text-decoration: none;
}
.topbar-idioma .activo {
  background: #ffffff;
  color: #16301f;
}
.topbar.scrolled .topbar-idioma {
  border-color: rgba(0, 0, 0, 0.12);
}
.topbar.scrolled .topbar-idioma a {
  color: #666;
}
.topbar.scrolled .topbar-idioma .activo {
  background: #3E9E58;
  color: #ffffff;
}
.topbar-reservar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 50px;
  background: #3E9E58;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(62, 158, 88, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
}
.topbar-reservar i {
  font-size: 17px;
}
.topbar-reservar:hover,
.topbar-reservar:focus {
  background: #2d7a43;
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Botón ☰ que se convierte en ✕ */
.topbar-hamburguesa {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}
.topbar-hamburguesa span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.35s ease, opacity 0.25s ease, top 0.35s ease, background 0.35s ease;
}
.topbar-hamburguesa span:nth-child(1) { top: 15px; }
.topbar-hamburguesa span:nth-child(2) { top: 21px; }
.topbar-hamburguesa span:nth-child(3) { top: 27px; }
.topbar.scrolled .topbar-hamburguesa {
  background: rgba(62, 158, 88, 0.1);
}
.topbar.scrolled .topbar-hamburguesa span {
  background: #353031;
}
html.menu-movil-abierto .topbar-hamburguesa {
  background: rgba(255, 255, 255, 0.14);
}
html.menu-movil-abierto .topbar-hamburguesa span {
  background: #ffffff;
}
html.menu-movil-abierto .topbar-hamburguesa span:nth-child(1) { top: 21px; transform: rotate(45deg); }
html.menu-movil-abierto .topbar-hamburguesa span:nth-child(2) { opacity: 0; }
html.menu-movil-abierto .topbar-hamburguesa span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Con el menú de celular abierto, la barra queda transparente sobre el verde */
html.menu-movil-abierto .topbar,
html.menu-movil-abierto .topbar.scrolled {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.menu-movil-abierto {
  overflow: hidden;
}

/* ---------- Menú de celular ---------- */
.menu-movil {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px 32px 36px;
  background: radial-gradient(circle at 80% 0%, #1f4a30 0%, #16301f 60%, #0e2015 100%);
  clip-path: circle(0% at calc(100% - 52px) 44px);
  visibility: hidden;
  transition: clip-path 0.6s cubic-bezier(.7, 0, .3, 1), visibility 0s linear 0.6s;
}
html.menu-movil-abierto .menu-movil {
  clip-path: circle(150% at calc(100% - 52px) 44px);
  visibility: visible;
  transition: clip-path 0.6s cubic-bezier(.7, 0, .3, 1), visibility 0s;
}
.menu-movil-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-movil-links a {
  font-family: "Lora", Georgia, serif;
  font-size: 32px;
  line-height: 1.5;
  color: #ffffff;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s ease;
}
html.menu-movil-abierto .menu-movil-links a {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.25s + var(--i) * 0.06s);
}
.menu-movil-links a:hover,
.menu-movil-links a:focus,
.menu-movil-links a.activo {
  color: #a8e6b8;
  text-decoration: none;
}
.menu-movil-pie {
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  transition: opacity 0.4s ease 0.55s;
}
html.menu-movil-abierto .menu-movil-pie {
  opacity: 1;
}
.menu-movil-reservar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 50px;
  background: #25D366;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}
.menu-movil-reservar:hover,
.menu-movil-reservar:focus {
  color: #ffffff;
  text-decoration: none;
}
.menu-movil-reservar i {
  font-size: 20px;
}
.menu-movil-redes {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-movil-redes > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.menu-movil-redes .topbar-idioma {
  margin-left: auto;
}

/* ---------- Portada ---------- */
.portada {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #0e2015;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-fotos,
.hero-foto,
.hero-velo {
  position: absolute;
  inset: 0;
}
.hero-foto {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.6s ease, transform 7.5s ease-out;
}
.hero-foto.activa {
  opacity: 1;
  transform: scale(1);
}
.hero-velo {
  background:
    linear-gradient(to bottom, rgba(10, 25, 15, 0.55) 0%, rgba(10, 25, 15, 0.15) 30%, rgba(10, 25, 15, 0.25) 60%, rgba(10, 25, 15, 0.85) 100%),
    radial-gradient(ellipse at center, rgba(10, 25, 15, 0.35) 0%, transparent 70%);
}

/* Contenido */
.hero-contenido {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: 90px 24px 60px;
  color: #ffffff;
}
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-entrar 0.9s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(0.2s + var(--d) * 0.15s);
}
html.intro-activa .hero-anim {
  animation-play-state: paused;
}
@keyframes hero-entrar {
  to { opacity: 1; transform: none; }
}
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.25s ease;
}
.hero-rating:hover,
.hero-rating:focus {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
}
.hero-rating .stars {
  color: #f4b400;
  letter-spacing: 1px;
}
.hero-titulo {
  font-family: 'Kristi', cursive;
  font-size: clamp(58px, 9vw, 124px);
  font-weight: 400;
  line-height: 0.95;
  color: #ffffff;
  text-transform: none;
  margin: 22px 0 18px;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero-botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.hero-btn i {
  font-size: 17px;
}
.hero-btn:hover,
.hero-btn:focus {
  transform: translateY(-2px);
  text-decoration: none;
}
.hero-btn-principal,
.hero-btn-principal:focus {
  background: #3E9E58;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(62, 158, 88, 0.45);
}
.hero-btn-principal:hover {
  background: #2d7a43;
  color: #ffffff;
}
.hero-btn-whatsapp,
.hero-btn-whatsapp:focus {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
}
.hero-btn-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: #ffffff;
}
.hero-datos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-datos li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-datos i {
  color: #a8e6b8;
}
.hero-datos a {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}
.hero-datos a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Barras de progreso de las fotos */
.hero-barras {
  position: absolute;
  left: 40px;
  bottom: 38px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-barra {
  width: 42px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero-barra span {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.hero-barra span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero-barra.vista span::after {
  transform: scaleX(1);
}
.hero-barra.activa span::after {
  animation: hero-barra-llenar 6s linear forwards;
}
html.intro-activa .hero-barra.activa span::after {
  animation-play-state: paused;
}
@keyframes hero-barra-llenar {
  to { transform: scaleX(1); }
}

/* Indicador para bajar */
.hero-bajar {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-bajar:hover,
.hero-bajar:focus {
  color: #ffffff;
  text-decoration: none;
}
.hero-bajar i {
  animation: hero-rebote 1.8s ease-in-out infinite;
}
@keyframes hero-rebote {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Tablet y celular ---------- */
@media (max-width: 1100px) {
  .topbar-nav a {
    padding: 10px 9px;
    font-size: 13px;
  }
  .topbar-nav a::after {
    left: 9px;
    right: 9px;
  }
  .topbar-inner {
    gap: 18px;
  }
}
@media (max-width: 991px) {
  .topbar-nav {
    display: none;
  }
  .topbar-acciones {
    margin-left: auto;
  }
  .topbar-acciones > .topbar-idioma {
    display: none;
  }
  .topbar-hamburguesa {
    display: block;
  }
  .topbar-inner {
    height: 74px;
    padding: 0 18px;
  }
  .topbar.scrolled .topbar-inner {
    height: 64px;
  }
  .topbar-logo {
    height: 42px;
  }
  .topbar.scrolled .topbar-logo {
    height: 38px;
  }
}
@media (max-width: 767px) {
  .topbar-reservar {
    padding: 10px 14px;
  }
  .topbar-reservar span {
    display: none;
  }
  .topbar-reservar i {
    font-size: 20px;
  }
  .hero-contenido {
    padding: 80px 20px 90px;
  }
  .hero-titulo {
    font-size: clamp(54px, 15vw, 80px);
    margin: 18px 0 14px;
  }
  .hero-sub {
    font-size: 15.5px;
    margin-bottom: 26px;
  }
  .hero-botones {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero-btn {
    justify-content: center;
    padding: 15px 20px;
  }
  .hero-datos {
    font-size: 13px;
    gap: 6px 16px;
  }
  .hero-barras {
    left: 50%;
    transform: translateX(-50%);
    bottom: 22px;
  }
  .hero-barra {
    width: 30px;
  }
  .hero-bajar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-foto {
    transition: opacity 1s ease;
    transform: none;
  }
  .hero-anim {
    animation-duration: 0.01s;
  }
}

/* Los botones flotantes no hacen falta sobre la portada (ya tiene botones de reservar)
   ni con el menú de celular abierto */
.whatsapp-reservar,
.social-toggle {
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
html.en-portada .whatsapp-reservar,
html.menu-movil-abierto .whatsapp-reservar,
html.menu-movil-abierto .social-toggle {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
}
