/* ==========================================================================   
   Hotel María Gloria – Estilos completos (Optimizado)
   ========================================================================== */

/* ===== Variables de color ===== */
:root {
  --color-primario:       #082C6C;   /* Azul principal */
  --color-acento:         #FFD700;   /* Amarillo principal */
  --color-acento-oscuro:  #E6BE00;   /* Amarillo hover */
  --color-boton:          var(--color-primario);
  --color-boton-hover:    #06408D;
}

/* ===== Reset y tipografía ===== */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: var(--color-primario);
  line-height: 1.6;
}

/* ===== Header y navegación ===== */
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  height: 70px;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 999;
}
header nav .logo img {
  height: 50px;
  width: auto;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--color-primario);
  font-weight: bold;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--color-acento);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: var(--color-primario);
  margin: 4px 0;
  border-radius: 2px;
}
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px; left: 0;
    width: 100%;
    display: none;
    padding: 1rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  .nav-links.show { display: flex; }
  .nav-links a {
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
    width: 100%;
  }
  .nav-links a:last-child { border-bottom: none; }
  .menu-toggle { display: flex; }
}

/* Empuja contenido bajo el header */
main { padding-top: 70px; }

/* Colores de fondo */
.bg-white { background-color: #fff !important; }
.bg-light { background-color: #f8f9fa !important; }

/* ==========================================================================   
   Hero parcial al inicio (unificado)
   ========================================================================== */
/* HERO */
#main-hero.hero {
 background-image: url('/assets/img/hero-1600.webp');
  background-size: cover;
  background-position: center 95%;
  height: 70vh;
  position: relative;
  display: flex;
  align-items: flex-end;

  /* nuevo: borde curvo inferior */
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0,0,0,0.08); /* opcional suave */
}

@media (max-width: 768px) {
  #main-hero.hero {
    background-image: url('/assets/img/hero-768.webp');
    height: 40vh;
  }
}

@media (min-width: 1600px), 
       (min-resolution: 2dppx) and (min-width: 1024px) {
  #main-hero.hero {
    background-image: url('/assets/img/hero-2000.webp');
  }
}

@media (max-width: 768px) {
  #main-hero.hero {
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }
}


.hero-text {
  position: absolute;
  top: 110px;          /* ⬅ ajusta entre 90–130px según gusto */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  padding: 0 1.5rem;

  background: none;
  text-align: center;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-align: center;

  /* sombra elegante para legibilidad */
  text-shadow: 
    0 2px 6px rgba(0,0,0,0.55),
    0 0 20px rgba(0,0,0,0.35);
}

.hero-subtitle {
  font-size: 1rem;
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .hero-img-container, .section-hero { height: 30vh; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.9rem; }
}

/* ==========================================================================   
   Botones genéricos
   ========================================================================== */
.btn, .btn-primary {
  background-color: var(--color-boton) !important;
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.btn:hover, .btn-primary:hover {
  background-color: var(--color-boton-hover) !important;
}

/* ==========================================================================   
   Títulos de sección
   ========================================================================== */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primario);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primario);
  margin: 0.5rem auto 0;
}

/* Imagen ajustada */
.img-ajustada {
  width: 100%;
  border-radius: 8px;
}
.justificado { text-align: justify; }

/* ==========================================================================   
   Tarjetas y hover effects
   ========================================================================== */
.card, .room-card, .f-hotel, .testimony, .project-card {
  border: none;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover, .room-card:hover, .f-hotel:hover, .testimony:hover, .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Habitaciones */
.room-card .card-img-top {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
.room-card .price {
  font-size: 0.9rem;
  color: #555;
}
.room-card .price span {
  display: block;
  font-size: 1.2rem;
  color: var(--color-primario);
}

/* Eventos – Salones */
.f-hotel {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}
.f-hotel .image {
  width: 100%; height: 200px;
  background-size: cover;
  background-position: center;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
.f-hotel .desc {
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .f-hotel { flex-direction: row; }
  .f-hotel .image { width: 40%; height: auto; border-radius: 1rem 0 0 1rem; }
  .f-hotel .desc { width: 60%; padding: 2rem; }
}

/* Galería fotográfica */
.gallery-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
}
.gallery-container img {
  max-height: 180px;
  margin-right: 15px;
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
}
.gallery-container img:hover {
  transform: scale(1.05);
}
.gallery-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 35px; height: 35px;
  border-radius: 50%;
  cursor: pointer;
}
.gallery-control.left { left: 10px; }
.gallery-control.right { right: 10px; }

/* Ubicación */
#location iframe {
  width: 100%;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.contact-info li i {
  margin-right: 10px;
  color: var(--color-primario);
}

/* Testimonios */
.testimony {
  background: #f9f9f9;
  padding: 1.5rem;
  text-align: center;
}
.testimony blockquote {
  font-style: italic;
  margin-bottom: 1rem;
  color: #555;
}
.testimony .author {
  font-weight: bold;
  color: var(--color-primario);
}

/* Proyectos y diferenciales */
.differentials-container, .projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.differential-card i {
  font-size: 2.25rem;
  color: var(--color-acento);
}
.project-card img {
  width: 100%; height: auto;
}
.project-card h3 {
  margin: 1rem 0 0.5rem;
}

/* CTA final */
.cta-final {
  padding: 4rem 2rem;
  background: linear-gradient(to right, var(--color-primario), #0f3d91);
  color: #fff;
  text-align: center;
}

/* Botones de idioma */
.footer-languages .btn {
  font-size: 0.8rem;
  border-radius: 20px;
  padding: 3px 12px;
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
  transition: all 0.3s ease;
}

.footer-languages .btn:hover {
  background-color: #FFD700;
  color: #082C6C;
  border-color: #FFD700;
}

/* WhatsApp flotsante */
.whatsapp-float {
  position: fixed;
  bottom: 90px;              /* ya lo habíamos subido */
  right: 20px;

  width: 56px;               /* ⬅️ MISMO tamaño que el chat */
  height: 56px;

  background: #25D366;
  color: #fff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;           /* ⬅️ icono equilibrado */
  line-height: 1;

  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  z-index: 1000;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }
  .footer .mt-3 a {
    margin: 0 5px;
  }
  .footer-languages {
    margin-top: 10px;
  }
}


/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Secciones específicas con padding */
#rooms { padding: 60px 0; }
#events { padding: 60px 0; }
#restaurant { padding: 60px 0; }
#gallery { padding: 60px 0; }
#location { padding: 60px 0; }
#testimonials { padding: 60px 0; }

/* Wrapper diferenciales y proyectos */
.differentials { padding: 4rem 2rem; background-color: #f9f9f9; text-align: center; }
.projects { padding: 4rem 2rem; background-color: #fff; text-align: center; }

/* Responsive adicionales */
@media (max-width: 768px) {
  .projects-container,
  .differentials-container,
  .testimonials-container {
    gap: 1rem;
  }
}



/* Override sólo en la primera sección después del hero */
#hotel-info {
  padding-top: 2rem !important;   /* menos espacio antes del título */
}


/* ================================
   Cards de detalle de habitaciones
   ================================ */
.room-detail-card {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

/* Imagen arriba */
.room-detail-card .card-img-top {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Cuerpo de la card */
.room-detail-card .card-body {
  padding: 1.5rem;
}

/* Título */
.room-detail-card .card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-primario);
}

/* Lista de prestaciones */
/* Antes: flex-wrap, pills… */
/* Nuevo: lista vertical */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;   /* espacio tras la lista */
}

.features-list li {
  margin-bottom: 0.75rem;
  background: var(--color-boton);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  display: flex;             /* ← deja solo este */
  align-items: center;
  gap: 0.5rem;
}



/* Iconos más pequeñitos */
.features-list li i {
  font-size: 1rem;
}

/* Botón de reserva al fondo */
.room-detail-card .btn-primary {
  align-self: start;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  margin-top: auto;
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .features-list {
    gap: 0.4rem;
  }
  .features-list li {
    flex: 1 1 calc(50% - 0.5rem);
  }
}


/* Divider: línea de acento más oscura y centrada */
.divider {
  border: 0;
  border-top: 2px solid var(--color-acento-oscuro); /* amarillo más oscuro */
  width: 40px;           /* largo de la línea */
  margin: 1.5rem auto;   /* centrado horizontal, espacio arriba/abajo */
  display: block;
}

/* Centrar el botón dentro de la card-body */
.room-detail-card .card-body {
  position: relative; /* para control de márgenes */
}

/* Asegura que el enlace de reserva esté centrado */
.room-detail-card .btn-primary {
  display: block;
  margin: 0 auto;      /* lo centra */
}

/* ----------------------------------------------------------
   Sección “Verificar Reserva”
   ---------------------------------------------------------- */
#verificar-reserva {
  background-color: #f2f2f2;      /* ligero gris de fondo */
  padding-top: 4rem;              /* espaciado vertical */
  padding-bottom: 4rem;
}

#verificar-reserva h1,
#verificar-reserva p {
  color: var(--color-primario);   /* tu azul principal */
  text-align: center;
}

#verificar-reserva .form-control {
  border-radius: 0.25rem;
  box-shadow: none;
}

#verificar-reserva .btn-primary {
  background-color: var(--color-primario);
  border-color: var(--color-primario);
  padding: 0.6rem 1.5rem;
  font-weight: 500;
}

#verificar-reserva .btn-primary:hover {
  background-color: var(--color-boton-hover);
  border-color: var(--color-boton-hover);
}

.pdf-frame-wrap {
  width: 100%;
  height: min(80vh, 900px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #fff;
}

.pdf-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.pdf-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
}

@media (max-width: 600px) {
  .pdf-frame-wrap {
    height: 65vh;
  }
}

/* Controlar altura y recorte de imágenes en tarjetas de servicios */
.room-detail-card .card-img-top {
  width: 100%;
  height: 220px;        /* altura fija, ajusta según tu diseño */
  object-fit: cover;    /* recorta manteniendo proporción */
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
@media (max-width: 768px) {
  .room-detail-card .card-img-top {
    height: 180px;
  }
}
.cap-table{
  border-radius:.75rem;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  border:1px solid #eaeaea;
}
.cap-row{
  display:grid;
  grid-template-columns: 1fr 120px;
  padding:.75rem 1rem;
  align-items:center;
}
.cap-row:nth-child(odd){ background:#fafafa; }
.cap-head{
  background: var(--color-primario);
  color:#fff;
  font-weight:600;
}
.cap-row div:first-child{ display:flex; align-items:center; gap:.5rem; }
.cap-row div:last-child{ text-align:center; font-weight:600; }




/* ==== Carrito de Reservas ==== */
#cart-info {
  padding: 4rem 0;
}

#cart-info .fas {
  color: var(--color-primario);
}

#cart-info h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primario);
}

#cart-info p.lead {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #555;
}

/* Botón Volver al inicio */
#cart-info .btn-primary {
  background-color: var(--color-primario);
  border-color: var(--color-primario);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}

#cart-info .btn-primary:hover {
  background-color: var(--color-boton-hover);
  border-color: var(--color-boton-hover);
}

/* ==== Responsive ==== */
@media (max-width: 576px) {
  #cart-info h2 {
    font-size: 1.5rem;
  }
}
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap; /* <-- aquí */
}

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: swap; /* <-- aquí */
}


/* ===== Footer ===== */
.footer {
  background-color: #082C6C !important; /* Azul corporativo */
  color: #fff;
  font-size: 0.95rem;
  padding-top: 40px;
  padding-bottom: 20px;
}

.footer h5 {
  font-weight: 600;
  font-size: 1.1rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links a {
  color: #fff;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #FFD700; /* Amarillo acento */
}

.footer .fa-lg {
  transition: transform 0.3s ease, color 0.3s ease;
  color: #fff;
}

.footer .fa-lg:hover {
  transform: scale(1.2);
  color: #FFD700;
}

/* Línea separadora */
.footer hr {
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

/* =========================================================
   RESERVA – DEFINICIÓN FINAL LIMPIA (SIN bottom)
   ========================================================= */

/* El hero es el contenedor */
#main-hero {
  position: relative;
}

/* ===== FORMULARIO (COMPACTO SIEMPRE) ===== */
.reservation-form {
  position: absolute;
  top: calc(100% - 64px);
    /* sale del hero */
  left: 50%;
  transform: translateX(-50%);

  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);

  display: flex;
  gap: 0.75rem;
  align-items: center;

  width: auto;
  max-width: 90%;
  z-index: 20;
}

/* Campos */
.reservation-form .form-group {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.reservation-form label {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.reservation-form input {
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  min-width: 6rem;
}

/* Botón */
.reservation-form .btn-reserve {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
  background: var(--color-primario);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ================================
   ESTADO STICKY (SOLO POSICIÓN)
   ================================ */
.reservation-form.sticky {
  position: fixed;
  top: 70px;                 /* justo debajo del navbar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
}

/* ===== MÓVIL ===== */
@media (max-width: 600px) {
  .reservation-form {
    display: none;
  }
}

/* =====================================================
   Redes sociales flotantes – Estilo PRO
   ===================================================== */

.social-float {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998; /* debajo del nav */
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-float a {
  width: 46px;
  height: 46px;
  background: #fff;
  color: var(--color-primario);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

/* Hover premium */
.social-float a:hover {
  background: var(--color-primario);
  color: #fff;
  transform: scale(1.15);
}

/* Micro feedback al click */
.social-float a:active {
  transform: scale(1.05);
}

/* Ocultar en móvil */
@media (max-width: 768px) {
  .social-float {
    display: none;
  }
}

/* =====================================================
   Redes sociales flotantes – PREMIUM PLUS
   ===================================================== */

.social-float {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translate(-20px, -50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Visible */
.social-float.social-visible {
  opacity: 1;
  transform: translate(0, -50%);
}

/* Botones */
.social-float a {
  width: 46px;
  height: 46px;
  background: #fff;
  color: var(--color-primario);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  position: relative;
  transition: all 0.25s ease;
}

/* Hover base */
.social-float a:hover {
  transform: scale(1.15);
  color: #fff;
}

/* Colores por red */
.social-float a:hover .fa-facebook-f { color: #fff; }
.social-float a:hover { background: var(--color-primario); }

.social-float a[href*="facebook"]:hover { background: #1877F2; }
.social-float a[href*="instagram"]:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-float a[href*="tiktok"]:hover { background: #000; }

/* Tooltip */
.social-float a::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 56px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-5px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Mostrar tooltip */
.social-float a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* =====================================================
   Redes sociales – Comportamiento móvil PRO
   ===================================================== */

@media (max-width: 768px) {
  .social-float {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: 16px;
    top: auto;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 18px;
    background: rgba(255,255,255,0.92);
    padding: 10px 18px;
    border-radius: 40px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 998;
    opacity: 1;
  }

  .social-float a {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  /* Ocultar tooltip en móvil */
  .social-float a::after {
    display: none;
  }
}

/* =====================================================
   Redes sociales – Móvil alineadas a la izquierda
   ===================================================== */

@media (max-width: 768px) {
  .social-float {
    display: flex;
    position: fixed;
    left: 12px;
    top: 60%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 12px;
    background: none;
    padding: 0;
    box-shadow: none;
    z-index: 998;
    opacity: 1;
  }

  .social-float a {
    width: 42px;
    height: 42px;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }

  /* Sin tooltips en móvil */
  .social-float a::after {
    display: none;
  }
}


/* =====================================================
   Instagram Feed – Estilo PRO
   ===================================================== */

#instagram-feed {
  text-align: center;
}

.instagram-embed {
  max-width: 540px;
  margin: 0 auto;
}

/* En desktop un poco más grande */
@media (min-width: 992px) {
  .instagram-embed {
    max-width: 600px;
  }
}

/* =====================================================
   Instagram Feed – Grid 3 publicaciones
   ===================================================== */

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

/* Limitar ancho de cada embed */
.instagram-grid .instagram-media {
  width: 100% !important;
  min-width: unset !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* Tablet */
@media (max-width: 991px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Móvil */
@media (max-width: 600px) {
  .instagram-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CHATBOT ===== */
.chatbot {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-height: 450px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform .3s ease;
  z-index: 999;
}

.chatbot.active {
  transform: scale(1);
}

.chatbot-header {
  background: #082C6C;
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.chatbot-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.chatbot-messages {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
  font-size: 0.9rem;
}

.bot-message,
.user-message {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.bot-message {
  background: #f1f3f5;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  max-width: 90%;
}

.user-message {
  background: #082C6C;
  color: #fff;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  margin-left: auto;
  max-width: 90%;
}

.chatbot-input {
  display: flex;
  border-top: 1px solid #eee;
}

.chatbot-input input {
  flex: 1;
  border: none;
  padding: 0.6rem;
  font-size: 0.9rem;
}

.chatbot-input input:focus {
  outline: none;
}

.chatbot-input button {
  background: #082C6C;
  color: #fff;
  border: none;
  padding: 0 1rem;
  cursor: pointer;
}

/* Botón flotante */
.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #082C6C;
  color: #fff;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  z-index: 998;
}

/* Móvil */
@media (max-width: 600px) {
  .chatbot {
    width: 90%;
    right: 5%;
    bottom: 80px;
  }
}

/* ================================
   CHATBOT – POSICIÓN FINAL PRO
   ================================ */

/* Contenedor general */
.chatbot-wrapper {
  position: fixed;
  right: 24px;
  bottom: 110px; /* separa del WhatsApp */
  z-index: 998;
  font-family: 'Segoe UI', sans-serif;
}

/* Botón flotante */
.chatbot-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #082C6C;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  transition: transform .25s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

/* Caja del chat */
.chatbot-box {
  width: 320px;
  height: 420px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  overflow: hidden;
  display: none;
  flex-direction: column;
  margin-bottom: 12px;
}

/* Mostrar */
.chatbot-wrapper.open .chatbot-box {
  display: flex;
}

/* Header */
.chatbot-header {
  background: #082C6C;
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mensajes */
.chatbot-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f5f6f8;
}

/* Input */
.chatbot-input {
  border-top: 1px solid #eaeaea;
  padding: 10px;
  display: flex;
  gap: 8px;
}

.chatbot-input input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.chatbot-input button {
  background: #082C6C;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 14px;
  cursor: pointer;
}

/* ================================
   MÓVIL
   ================================ */
@media (max-width: 768px) {

  .chatbot-wrapper {
    right: 16px;
    bottom: 90px;
  }

  .chatbot-box {
    width: 95vw;
    height: 70vh;
    border-radius: 16px;
  }
}
/* ================================
   CHATBOT – VISIBILIDAD REAL
   ================================ */

.chatbot {
  position: fixed;
  bottom: 90px;              /* encima del botón WhatsApp */
  right: 20px;
  width: 320px;
  max-height: 480px;

  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);

  display: flex;
  flex-direction: column;

  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all .3s ease;

  z-index: 1001;
}

/* CUANDO ESTÁ ABIERTO */
.chatbot.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ================================
   BOTÓN FLOTANTE
   ================================ */

.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: var(--color-primario);
  color: #fff;
  font-size: 24px;

  border: none;
  cursor: pointer;

  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  z-index: 1000;
}


/* ===== Logo con texto ===== */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-wrap img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primario);
  line-height: 1;
  white-space: nowrap;
}

/* Ajuste en móvil */
@media (max-width: 768px) {
  .logo-text {
    font-size: 0.95rem;
  }
}


/* ===== Logo dentro del Hero ===== */
.hero-brand {
  position: absolute;
  top: 120px;              /* ⬅️ ajusta verticalmente */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  background: rgba(255, 255, 255, 0.85); /* legibilidad */
  padding: 0.75rem 1.25rem;
  border-radius: 16px;

  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.hero-brand img {
  height: 90px;            /* 🔑 CONTROL DEL TAMAÑO */
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero-brand {
    top: 80px;
    padding: 0.6rem 1rem;
  }

  .hero-brand img {
    height: 65px;
  }
}


/* =========================
   LOGO HERO – VERSIÓN FINAL
   ========================= */

.hero-logo {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none; /* evita clicks accidentales */
}

.hero-logo img {
  width: 380px;              /* un pelín más grande */
  max-width: 90vw;
  height: auto;

  /* HALO BLANCO INTENSO + PROFUNDIDAD */
  filter:
    drop-shadow(0 0 6px rgba(255,255,255,0.95))
    drop-shadow(0 0 14px rgba(255,255,255,0.85))
    drop-shadow(0 0 26px rgba(255,255,255,0.65))
    drop-shadow(0 14px 26px rgba(0,0,0,0.35));

  transition: transform 0.3s ease;
}

#main-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.07); /* casi imperceptible */
  z-index: 1;
}


/* Tablet */
@media (max-width: 992px) {
  .hero-logo img {
    width: 280px;
  }
}

/* Móvil */
@media (max-width: 600px) {
  .hero-logo {
    top: 16%;
  }

  .hero-logo img {
    width: 220px;
  }
}
/* ===== NAV ACTIVE (premium) ===== */
.nav-links a.active {
  color: var(--color-acento); /* Amarillo corporativo */
  position: relative;
  font-weight: 600;
}

/* Subrayado animado */
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--color-acento); /* Amarillo */
  border-radius: 2px;
}

/* Hover mantiene coherencia */
.nav-links a:hover {
  color: var(--color-acento);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-acento);
  transition: width 0.3s ease;
}

.nav-links a.active::after {
  width: 100%;
}

/* ================================
   CHATBOT – BOTONES DE OPCIONES
   ================================ */

.chatbot-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chatbot-options button {
  background: #fff;
  color: var(--color-primario);
  border: 1px solid var(--color-primario);
  border-radius: 999px;      /* estilo chip premium */
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

/* Hover */
.chatbot-options button:hover {
  background: var(--color-primario);
  color: #fff;
  transform: translateY(-1px);
}

/* Click */
.chatbot-options button:active {
  transform: scale(0.96);
}


/* ========================================================================== 
   V5 - Control de imágenes subidas desde el panel
   Mantiene proporciones visuales aunque el cliente suba fotos muy grandes.
   ========================================================================== */
.room-card .card-img-top,
.room-detail-card .card-img-top,
#services .card-img-top {
  width: 100%;
  height: 235px;
  object-fit: cover;
  object-position: center;
  display: block;
}

#services .card-img-top {
  height: 245px;
}

.gallery-container img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
}

#hotel-info img,
#restaurant img,
#events-detail img.img-fluid {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  object-position: center;
}

#events-detail img.img-fluid {
  height: 330px;
}

@media (max-width: 768px) {
  .room-card .card-img-top,
  .room-detail-card .card-img-top,
  #services .card-img-top {
    height: 200px;
  }

  .gallery-container img {
    width: 230px;
    height: 155px;
  }

  #hotel-info img,
  #restaurant img,
  #events-detail img.img-fluid {
    max-height: 300px;
  }

  #events-detail img.img-fluid {
    height: 240px;
  }
}

/* ========================================================================== 
   V6 - Carrito / reserva hotelera completa
   ========================================================================== */
.reservation-form .reservation-mini-field input {
  min-width: 4.4rem;
  max-width: 5.2rem;
}

@media (max-width: 1100px) {
  .reservation-form .reservation-mini-field {
    display: none;
  }
}

.booking-page {
  background:
    radial-gradient(circle at top left, rgba(8,44,108,.06), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.booking-search-card,
.booking-summary-card,
.booking-room-card {
  border: 1px solid rgba(8,44,108,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(8,44,108,.09);
  border-radius: 24px;
}

.booking-search-card {
  padding: 1.25rem;
  max-width: 1120px;
}

.booking-search-title {
  margin-bottom: 1rem;
}

.booking-search-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .85rem;
  align-items: end;
}

.booking-search-grid label,
.booking-page .form-label,
.booking-page label {
  font-weight: 700;
  color: var(--color-primario);
  font-size: .88rem;
}

.booking-search-action {
  margin-bottom: 0;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
}

.booking-room-list {
  display: grid;
  gap: 1rem;
}

.booking-room-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.booking-room-card.is-selected {
  border-color: rgba(8,44,108,.42);
  box-shadow: 0 22px 55px rgba(8,44,108,.15);
}

.booking-room-card:hover {
  transform: translateY(-2px);
}

.booking-room-image img {
  width: 100%;
  height: 100%;
  min-height: 235px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.booking-room-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.booking-room-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.booking-room-header h3 {
  color: var(--color-primario);
  margin: 0 0 .35rem;
  font-size: 1.25rem;
}

.booking-room-header p {
  margin: 0;
  color: #5d6675;
  line-height: 1.45;
}

.booking-room-badge {
  background: rgba(38, 130, 77, .10);
  color: #177245;
  border: 1px solid rgba(38,130,77,.18);
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.booking-room-badge.disabled {
  background: rgba(150, 0, 0, .08);
  color: #a01818;
  border-color: rgba(150,0,0,.16);
}

.booking-room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  color: #334155;
  font-size: .92rem;
}

.booking-room-meta span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(8,44,108,.06);
  border-radius: 999px;
  padding: .45rem .7rem;
}

.booking-room-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(8,44,108,.16);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.qty-control .qty-btn {
  border: 0;
  background: rgba(8,44,108,.07);
  color: var(--color-primario);
  width: 38px;
  height: 38px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.qty-control .qty-btn:disabled {
  opacity: .35;
}

.qty-control input {
  border: 0;
  width: 58px;
  text-align: center;
  font-weight: 800;
  color: var(--color-primario);
  background: #fff;
}

.qty-control input:focus {
  outline: none;
  box-shadow: none;
}

.booking-remove {
  color: #a01818 !important;
  text-decoration: none;
  font-weight: 700;
}

.booking-item-subtotal {
  margin-left: auto;
  color: var(--color-primario);
  font-weight: 800;
}

.booking-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.booking-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(8,44,108,.08);
  color: var(--color-primario);
  border: 1px solid rgba(8,44,108,.12);
  border-radius: 999px;
  padding: .45rem .75rem;
  font-weight: 800;
  font-size: .86rem;
}

.booking-summary-card {
  position: sticky;
  top: 98px;
  overflow: hidden;
}

.booking-summary-inner {
  padding: 1.2rem;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: .65rem;
}

.summary-line span {
  color: #64748b;
}

.summary-line strong,
.summary-total strong {
  color: var(--color-primario);
}

.summary-items {
  display: grid;
  gap: .65rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: .85rem;
  border: 1px solid rgba(8,44,108,.10);
  border-radius: 16px;
  padding: .75rem;
  background: rgba(8,44,108,.035);
}

.summary-item small {
  display: block;
  color: #64748b;
  margin-top: .2rem;
}

.summary-item button {
  border: 0;
  background: transparent;
  color: #a01818;
  font-weight: 800;
  align-self: flex-start;
}

.summary-empty,
.summary-warning {
  border-radius: 14px;
  padding: .8rem;
  font-size: .92rem;
}

.summary-empty {
  color: #64748b;
  background: rgba(100,116,139,.08);
}

.summary-warning {
  color: #8a4b00;
  background: rgba(255, 193, 7, .16);
  border: 1px solid rgba(255,193,7,.25);
  margin: .8rem 0;
}

.summary-total {
  border-top: 1px solid rgba(8,44,108,.12);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 1.15rem;
}

.booking-success {
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(8,44,108,.09);
}

@media (max-width: 992px) {
  .booking-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-summary-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .booking-room-card {
    grid-template-columns: 1fr;
  }

  .booking-room-image img {
    height: 220px;
    min-height: 220px;
  }

  .booking-room-header {
    flex-direction: column;
  }

  .booking-item-subtotal {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .booking-search-grid {
    grid-template-columns: 1fr;
  }

  .booking-search-card,
  .booking-summary-inner,
  .booking-room-body {
    padding: 1rem;
  }
}

/* V7 - Galería controlada por habitación */
.room-gallery-card{position:relative;background:#f6f8fb}
.room-gallery-card > .card-img-top{width:100%;height:240px;object-fit:cover;display:block}
.room-gallery-thumbs{
  display:flex;
  gap:.38rem;
  overflow-x:auto;
  padding:.45rem;
  background:rgba(255,255,255,.92);
  border-top:1px solid rgba(0,0,0,.06);
}
.room-gallery-thumb{
  flex:0 0 auto;
  width:58px;
  height:46px;
  padding:0;
  border:2px solid transparent;
  border-radius:11px;
  overflow:hidden;
  background:#fff;
  cursor:pointer;
  opacity:.78;
  transition:opacity .2s ease,border-color .2s ease,transform .2s ease;
}
.room-gallery-thumb:hover,.room-gallery-thumb.active{opacity:1;transform:translateY(-1px);border-color:#082C6C}
.room-gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:768px){
  .room-gallery-card > .card-img-top{height:220px}
  .room-gallery-thumb{width:54px;height:42px}
}

/* V9 - Ofertas públicas y descuentos en habitaciones/carrito */
.public-old-price,
.booking-old-price{
  color:#8a94a6;
  text-decoration:line-through;
  font-weight:600;
  margin-left:.35rem;
}
.public-offer-pill,
.booking-offer-badge{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  width:max-content;
  max-width:100%;
  border-radius:999px;
  padding:.45rem .75rem;
  background:rgba(8,44,108,.08);
  color:var(--color-primario);
  font-weight:700;
  font-size:.88rem;
}
.booking-offer-badge{
  margin:.35rem 0 .8rem;
  background:#fff8e8;
  color:#8a5a00;
}
.offers-page .offer-empty-card,
.offer-card{
  border-radius:1.2rem;
  border:1px solid rgba(8,44,108,.10);
  background:#fff;
  box-shadow:0 12px 32px rgba(8,44,108,.09);
}
.offer-empty-card{padding:2rem;}
.offer-card{
  display:flex;
  flex-direction:column;
  gap:.85rem;
  padding:1.35rem;
  overflow:hidden;
  position:relative;
}
.offer-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:5px;
  background:linear-gradient(90deg,var(--color-primario),#4da8ff);
}
.offer-card h2{
  color:var(--color-primario);
  font-size:1.35rem;
  margin:.25rem 0 0;
}
.offer-badge{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  width:max-content;
  max-width:100%;
  border-radius:999px;
  padding:.5rem .75rem;
  color:#fff;
  background:var(--color-primario);
  font-weight:800;
  box-shadow:0 8px 20px rgba(8,44,108,.18);
}
.offer-meta li{
  display:flex;
  gap:.55rem;
  align-items:flex-start;
  margin:.45rem 0;
  color:#526071;
}
.offer-meta i{color:var(--color-primario);margin-top:.2rem;}
.service-pdf-cta{
  border-radius:1.1rem;
  border:1px solid rgba(8,44,108,.10);
  background:#f8fbff;
  padding:1.5rem;
}
@media(max-width:576px){
  .service-pdf-cta .btn,
  .offers-page .btn{width:100%;margin:.25rem 0!important;}
}

/* V12 - Reserva: edades de niños y recargos */
.child-ages-field {
  grid-column: span 2;
}
.child-age-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .55rem;
}
.child-ages-field[hidden] {
  display: none !important;
}
.summary-extra {
  border-radius: 14px;
  padding: .8rem;
  margin: .8rem 0;
  background: rgba(8,44,108,.06);
  border: 1px solid rgba(8,44,108,.10);
  color: #082C6C;
  font-size: .92rem;
  line-height: 1.45;
}
@media (max-width: 992px) {
  .child-ages-field { grid-column: 1 / -1; }
}


/* ========================================================================== 
   V13 - Edades de niños desde el buscador del hero
   ========================================================================== */
.reservation-form-hero {
  flex-wrap: wrap;
  justify-content: center;
}

.reservation-form-hero .hero-child-ages-field {
  flex: 1 1 100%;
  width: 100%;
  padding-top: .45rem;
  border-top: 1px solid rgba(8,44,108,.10);
}

.reservation-form-hero .hero-child-ages-field[hidden] {
  display: none !important;
}

.hero-child-age-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: .45rem;
  align-items: center;
}

.hero-child-age-grid input {
  width: 100%;
  min-width: 0 !important;
  border: 1px solid #d8e1ef;
  border-radius: 8px;
}

.hero-child-help {
  margin: .35rem 0 0;
  font-size: .72rem;
  line-height: 1.2;
  color: #64748b;
}

.reservation-form-hero.has-children {
  max-width: min(980px, 92vw);
}

@media (max-width: 1100px) {
  .reservation-form-hero.has-children .hero-child-ages-field {
    display: flex;
    flex-direction: column;
  }
}

/* V16 - Edades de niños sin empujar ni ocultar el botón Reservar ahora */
.reservation-form-hero{position:relative;overflow:visible;align-items:flex-end}
.reservation-form-hero .hero-child-ages-field{
  position:absolute;
  z-index:80;
  right:clamp(.5rem,3vw,1.5rem);
  top:calc(100% + .65rem);
  flex:none;
  width:min(420px,calc(100vw - 2rem));
  padding:.85rem;
  border:1px solid rgba(8,44,108,.14);
  border-radius:18px;
  background:rgba(255,255,255,.94);
  box-shadow:0 20px 48px rgba(8,44,108,.18), inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.reservation-form-hero.has-children{max-width:min(1040px,94vw)}
.reservation-form-hero .btn-reserve{position:relative;z-index:2;white-space:nowrap}
.hero-child-age-grid{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}
@media(max-width:760px){
  .reservation-form-hero .hero-child-ages-field{
    position:static;
    order:20;
    width:100%;
    margin-top:.55rem;
  }
  .reservation-form-hero .btn-reserve{order:30;width:100%}
}

/* ========================================================================== 
   V17 - Disponibilidad visible desde el hero y ajuste seguro del formulario
   ========================================================================== */
#main-hero.hero {
  min-height: 520px;
  overflow: visible;
}

.reservation-form.reservation-form-hero {
  top: auto;
  bottom: clamp(18px, 4.5vh, 42px);
  z-index: 40;
  visibility: visible;
  opacity: 1;
}

.reservation-form.reservation-form-hero.sticky {
  top: 70px;
  bottom: auto;
  z-index: 998;
}

@media (max-width: 992px) {
  #main-hero.hero {
    min-height: 500px;
    height: 62vh;
  }
  .reservation-form.reservation-form-hero {
    max-width: min(94vw, 900px);
  }
}

@media (max-width: 760px) {
  #main-hero.hero {
    overflow: hidden;
  }
}

/* ==========================================================================
   V20 - Botón "Reservar" del menú (lleva al motor de reservas SiteMinder)
   ========================================================================== */
@media (min-width: 769px) {
  .nav-links a.nav-book {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: -.45rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    background: var(--color-primario);
    color: #fff;
    transition: background .2s ease, transform .2s ease;
  }
  .nav-links a.nav-book:hover {
    background: var(--color-acento);
    color: var(--color-primario);
    transform: translateY(-1px);
  }
  .nav-links a.nav-book::after { display: none; }
}

/* ==========================================================================
   V21 - Aviso de cookies y contenido externo (Instagram / Google Maps)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 2000;
  width: min(420px, calc(100vw - 40px));
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 18px 48px rgba(8, 44, 108, .22);
  border: 1px solid rgba(8, 44, 108, .08);
  font-size: .92rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-title { margin: 0 0 .35rem; font-weight: 700; color: var(--color-primario); }
.cookie-text { margin: 0 0 .9rem; line-height: 1.5; color: #4b5563; }
.cookie-text a { color: var(--color-primario); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-btn {
  flex: 1 1 auto;
  padding: .6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  border: 1px solid var(--color-primario);
}
.cookie-btn-primary { background: var(--color-primario); color: #fff; }
.cookie-btn-secondary { background: #fff; color: var(--color-primario); }
.cookie-btn:hover { filter: brightness(1.08); }
@media (max-width: 576px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; }
}

.consent-embed { position: relative; min-height: 300px; border-radius: .5rem; overflow: hidden; background: #eef3f9; }
.consent-embed iframe { display: block; min-height: 300px; border: 0; }
.consent-embed:not(.is-loaded) iframe { visibility: hidden; }
.consent-embed.is-loaded .consent-placeholder { display: none; }
.consent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.5rem;
  text-align: center;
  color: #4b5563;
}
.consent-embed .consent-placeholder { position: absolute; inset: 0; }
.consent-placeholder i { font-size: 2rem; color: var(--color-primario); }
.consent-placeholder p { margin: 0; max-width: 340px; font-size: .92rem; }
.consent-instagram { max-width: 520px; margin: 0 auto; border-radius: 14px; background: #fff; border: 1px dashed rgba(8, 44, 108, .2); }
#instagram-feed:not(.is-consented) .instagram-grid { display: none; }
#instagram-feed.is-consented .consent-instagram { display: none; }

/* Menú compacto en tablets y portátiles pequeños (para que quepa en una sola línea) */
@media (min-width: 769px) and (max-width: 1100px) {
  header nav .logo img { height: 40px; }
  .nav-links { gap: .85rem; }
  .nav-links a { font-size: .85rem; white-space: nowrap; }
  .nav-links a.nav-book { padding: .4rem .8rem; }
}
@media (min-width: 769px) and (max-width: 900px) {
  .nav-links { gap: .6rem; }
  .nav-links a { font-size: .8rem; }
  .nav-links #lang-toggle .menu-text { display: none; }
}
