:root {
  --brand-1: #004572; /* azul oscuro */
  --brand-2: #21b8e8; /* cian */
  --brand-3: #ffd500; /* dorado */
  --brand-4: #00243b; /* azul más profundo */
  --text: #0b1930;
  --muted: #5c7088;
  --glass-bg: 255 255 255; /* white */
}
html,
body {
  height: 100%;
  scroll-behavior: smooth;
  background: #f7fafc;
  color: var(--text);
}

/* Añádelo a tu <style> */
#langToggle {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
    "Twemoji Mozilla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* NAVBAR */
.navbar {
  backdrop-filter: saturate(160%) blur(10px);
  background: rgba(255, 255, 255, 0.6) !important;
}
.navbar-brand {
  font-weight: 800;
  letter-spacing: 0.3px;
}
.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1ea955;
  color: #fff;
}

/* ===================================
   Estilos Hover y Active para Nav Links
   =================================== */
.navbar .nav-link {
  border-radius: 8px; /* Esquinas redondeadas para el efecto */
  transition: all 0.3s ease; /* Transición suave */
}

/* Efecto "glass" al pasar el cursor */
.navbar .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Estilo para el enlace activo (negrita) */
.navbar .nav-link.active {
  font-weight: 700; /* O puedes usar 'bold' */
  color: var(--brand-1) !important;
}

/* HERO / CAROUSEL */
.hero {
  position: relative;
  height: 100vh;
}
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  height: 100%;
  position: relative;
  z-index: 1;
}
.hero .carousel-item > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: brightness(0.75);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
  pointer-events: none;
}
.hero-card {
  max-width: 980px;
  width: 92%;
  background: rgba(var(--glass-bg) / 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  border-radius: 24px;
  backdrop-filter: blur(10px) saturate(140%);
  padding: clamp(1rem, 3vw, 2rem);
  color: #fff;
}
.gradient-title {
  background: linear-gradient(135deg, #fff 0%, #cdefff 30%, var(--brand-2) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(33, 184, 232, 0.25);
}

/* PARALLAX SECTIONS */
.parallax {
  position: relative;
  overflow: hidden;
}
.parallax::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(
      1200px 600px at 10% 10%,
      rgba(33, 184, 232, 0.12),
      transparent 60%
    ),
    radial-gradient(
      800px 400px at 90% 20%,
      rgba(255, 213, 0, 0.14),
      transparent 60%
    );
  z-index: 0;
}
.parallax .container {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* AMENITIES */
.amenity-card {
  border-radius: 20px;
  padding: 22px;
  background: #fff;
  border: 1px solid #e9eef5;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.amenity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* GALLERY */
.gallery-item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  height: 260px;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

/* LOCATION */
.map-embed {
  border: 0;
  width: 100%;
  min-height: 420px;
  border-radius: 16px;
  filter: grayscale(0.1) contrast(1.05);
}

/* CTA STRIP */
.cta-strip {
  background: linear-gradient(90deg, var(--brand-4), var(--brand-1));
  color: #fff;
}

/* CHATBOT (floating) */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab .btn-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.chatbox {
  position: fixed;
  right: 18px;
  bottom: 90px;
  width: min(360px, 92vw);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e7edf5;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px) saturate(150%);
  display: none;
  overflow: hidden;
  z-index: 1040;
}
.chatbox-header {
  padding: 12px 14px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand-1));
  color: #fff;
}
.chatbox-body {
  max-height: 56vh;
  overflow: auto;
  padding: 14px;
}
.chat-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.chat-msg .bubble {
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 80%;
  font-size: 0.95rem;
}
.chat-msg.user {
  justify-content: flex-end;
}
.chat-msg.user .bubble {
  background: #e6f7ff;
}
.chat-msg.bot .bubble {
  background: #fff;
  border: 1px solid #e9eef5;
}
.chatbox-footer {
  padding: 10px;
  background: #fbfdff;
  border-top: 1px solid #e9eef5;
}
.chip {
  border: 1px solid #e3edf8;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  margin: 4px;
  cursor: pointer;
}

/* STICKY MOBILE CTA */
.sticky-cta {
  position: sticky;
  bottom: 0;
  z-index: 1030;
}

/* Small helpers */
.shadow-soft {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}
.text-brand {
  color: var(--brand-1) !important;
}
.bg-brand {
  background: var(--brand-1) !important;
}

/* Smooth transforms */
.tilt {
  will-change: transform;
}

/* Footer */
footer {
  background: #0b1930;
  color: #cfe2ff;
}
footer a {
  color: #9ad8ff;
}
/* Mantener la tarjeta visible por encima del carrusel y controles encima de todo */
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
  z-index: 0;
}
.hero .carousel-control-prev,
.hero .carousel-control-next {
  z-index: 3;
}
.hero-overlay {
  z-index: 2;
}

/* Barra de preguntas rápidas fija dentro del chat */
.chat-quickbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid #e7edf5;
  margin: -14px -14px 12px;
  padding: 10px 12px;
}
/* Permitir clics dentro de la tarjeta aunque el overlay no reciba eventos */
.hero-card {
  pointer-events: auto;
}

/* Botón con bandera: un pelín más pequeño */
#langToggle.btn-circle {
  width: 46px;
  height: 46px;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}
/* Tarjetas de reseñas */
.review-card {
  background: #fff;
  border: 1px solid #e9eef5;
  border-radius: 18px;
  padding: 20px;
  height: 100%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.review-stars {
  color: #f5b301;
}
.reviews-swiper {
  padding: 10px 8px 44px;
}
.reviews-swiper .swiper-slide {
  height: auto;
}

/* ===================================
   Estilos para la bandera en el botón
   =================================== */
#langToggle img {
  width: 26px; /* Ajusta el tamaño a tu gusto */
  height: 26px;
  object-fit: cover; /* Evita que la imagen se deforme */
}
