@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Playfair+Display:wght@700&family=Raleway:wght@400;600;700&display=swap');

/* === MAIN NAVBAR (for secondary pages) === */
.main-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus {
  background-color: var(--dorado);
  color: var(--azul-marino);
  transform: translateY(-3px);
}

.main-navbar .nav-link.active {
  color: var(--dorado);
  font-weight: 700;
}

/* === RESET Y BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Raleway', sans-serif;
  background-color: #faf6eb;
  color: #222;
  line-height: 1.6;
}

h1, h2 {
  font-family: 'Lobster', cursive;
}

h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

:root {
  --azul-marino: #0a2140;
  --dorado: #d4af37;
  --gris-fondo: #f2f2f2;
  --blanco: #fff;
  --sombra: rgba(0, 0, 0, 0.08);
}

/* === HEADER / NAVBAR OVERRIDES === */
/* Bootstrap handles the layout; keep brand sizing */
.navbar-brand img { height:48px; }


/* Carousel adjustments */
#inicio {
  height: 100vh;
  padding: 0 !important;
  margin: 0 !important;
}

/* Make the hero section a positioning context for the floating nav */
#inicio { position: relative; }

/* Hero floating nav centered */
.hero-nav {
  position: absolute;
  top: 15%; /* subida: ahora está más arriba */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1060;
  pointer-events: auto;
  min-width: 320px;
}

.hero-nav .nav {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap; /* evitar que las opciones bajen de fila */
  align-items: center;
}

.hero-nav .nav-link {
  color: rgba(255,255,255,0.95);
  padding: 8px 12px; /* reducir padding para ayudar a mantener todo en la misma fila */
  border-radius: 10px;
  background: transparent;
  transition: background-color 180ms ease, transform 160ms ease, box-shadow 180ms ease, color 160ms ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap; /* evitar salto de línea dentro del enlace */
}

.hero-nav .nav-link:hover,
.hero-nav .nav-link:focus {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

/* Styled hero-nav container: navy background with dorado accents */
.hero-nav {
  background: linear-gradient(180deg, rgba(10,33,64,0.92), rgba(10,33,64,0.78));
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.12);
  box-shadow: 0 18px 40px rgba(10,33,64,0.5);
  backdrop-filter: blur(6px);
}

.hero-nav .nav-link {
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  background: transparent;
  transition: background-color 180ms ease, transform 160ms ease, box-shadow 180ms ease, color 160ms ease;
}

.hero-nav .nav-link:hover,
.hero-nav .nav-link:focus {
  background: var(--dorado);
  color: var(--azul-marino);
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(10,33,64,0.45);
}

/* Accent for CTA link (ASESORÍA) */
.hero-nav .nav-link[target] {
  background: linear-gradient(90deg, rgba(212,175,55,0.95), rgba(212,175,55,0.85));
  color: var(--azul-marino);
  font-weight: 700;
}

/* Slight size tweak on very large screens */
@media (min-width:1400px) {
  .hero-nav { padding: 12px 18px; }
  .hero-nav .nav-link { padding: 12px 18px; font-size: 1.02rem; }
}

/* Ajustes en el punto entre lg y xl para evitar wrapping en pantallas medias */
@media (min-width: 992px) and (max-width: 1399px) {
  .hero-nav { left: 50%; top: 34%; transform: translate(-50%, -50%); }
  .hero-nav .nav { gap: 10px; }
  .hero-nav .nav-link { padding: 8px 10px; font-size: 0.96rem; }
}

/* Estilos para el menú de hamburguesa y el colapso en móvil */
@media (max-width: 991.98px) {
  .hero-nav {
    top: 10px; /* Ajusta la posición vertical en móvil */
    left: 10px;
    right: 10px;
    transform: none;
    width: auto;
    min-width: 0;
  }

  .hero-nav .navbar-collapse {
    background: linear-gradient(180deg, rgba(10,33,64,0.92), rgba(10,33,64,0.88));
    border-radius: 0 0 12px 12px;
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid rgba(212,175,55,0.12);
  }

  .hero-nav .navbar-nav {
    align-items: center;
  }
}

.navbar-toggler {
  border: 2px solid rgba(255,255,255,0.7);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Slightly stronger accent for the 'ASESORÍA' link */
.hero-nav .nav-link[target] {
  background: rgba(0,0,0,0.18);
  color: #fff;
}

/* Logo profesional en esquina superior derecha del hero */
.hero-logo {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 1070;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.logo-img {
  height: 160px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-wrap {
  position: relative;
  display: inline-block;
  border-radius: 6px;
  overflow: visible;
  z-index: 1060;
  /* gentle pulse */
  animation: logo-pulse 6s ease-in-out infinite;
  padding: 6px 10px; /* espacio interior para que la órbita no sobresalga del borde */
}

/* shimmer overlay (on the wrapper, not the img itself) */
.logo-wrap::after {
  content: "";
  position: absolute;
  left: -10%;
  top: 0;
  height: 100%;
  width: 120%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(212,175,55,0.28) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-120%);
  pointer-events: none;
  mix-blend-mode: overlay;
  animation: logo-shine 2.8s linear infinite;
  border-radius: 6px;
}

@media (max-width: 1199px) {
  .hero-logo {
    top: 20px;
    right: 20px;
  }
  .logo-img {
    height: 140px;
  }
}

@media (max-width: 991px) {
  .hero-logo {
    top: 15px;
    right: 15px;
  }
  .logo-img {
    height: 100px;
  }
}

/* Animación de la órbita del avión sobre el logo */
.logo-orbit {
  position: absolute;
  inset: 0; /* cubrir el contenedor del logo */
  pointer-events: none;
  z-index: 1065; /* por encima del logo */
}

.logo-orbit .orbiter {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  /* radio de la órbita (px) -- preferible definir inline en HTML con un valor menor */
  --r: 56px;
  animation: orbit 5.6s cubic-bezier(.2,.9,.3,1) infinite;
}

.logo-orbit .plane {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  color: var(--dorado);
  /* mueve el avión hacia la derecha desde el centro (radio) */
  transform: translateX(var(--r));
  transform-origin: center center;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35));
  will-change: transform;
  /* animación compuesta: balanceo + pequeño bob vertical para mayor dinamismo */
  animation: plane-tilt 5.6s ease-in-out infinite;
}

@keyframes orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Plane banks subtly while orbiting so it looks more like a real aircraft */
@keyframes plane-tilt {
  0%   { transform: translateX(var(--r)) translateY(0px) rotate(0deg) scale(1); }
  15%  { transform: translateX(var(--r)) translateY(-3px) rotate(-12deg) scale(1.03); }
  35%  { transform: translateX(var(--r)) translateY(-6px) rotate(-6deg) scale(1.02); }
  55%  { transform: translateX(var(--r)) translateY(0px) rotate(6deg) scale(1); }
  75%  { transform: translateX(var(--r)) translateY(2px) rotate(10deg) scale(0.99); }
  100% { transform: translateX(var(--r)) translateY(0px) rotate(0deg) scale(1); }
}

@keyframes logo-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes logo-shine {
  0% { transform: translateX(-120%); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateX(120%); opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* Removed separate plane-spin animation; plane-tilt handles dynamic motion. */

/* Pausar animación si el usuario prefiere reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .logo-orbit .orbiter { animation: none; }
}

/* Pausar al pasar el ratón (opcional) */
.hero-logo:hover .logo-orbit .orbiter { animation-play-state: paused; }



.carousel {
  height: 100%;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
  min-height: 100vh;
}

.carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}


/* === SECCIONES GENERALES === */
section {
  padding: 70px 30px;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--azul-marino);
  margin-bottom: 30px;
  position: relative;
}

section h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--dorado);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

section p,
section ul,
section ol {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* === SECCIÓN CON FONDO DIFERENTE === */
#paquetes,
#contacto,
#destinos {
  background-color: var(--gris-fondo);
}

/* === BENEFICIOS (círculos) === */
.benefits-row {
  gap: 20px;
}

.benefit-item {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--azul-marino);
  border: 2px solid var(--dorado);
  box-shadow: 0 8px 18px rgba(10,33,64,0.18);
  transition: transform 0.28s cubic-bezier(.2,.9,.3,1), box-shadow 0.28s ease, background 0.28s ease;
  background-image: radial-gradient(circle at 30% 30%, rgba(212,175,55,0.06), transparent 35%);
}

.icon-circle svg { display: block; width: 36px; height: 36px; color: var(--dorado); }
.icon-circle svg path { stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Icon fonts inside circles */
.icon-circle i {
  font-size: 32px;
  color: var(--dorado);
  line-height: 1;
  display: inline-block;
}

@media (max-width: 768px) {
  .icon-circle i { font-size: 24px; }
}

.benefit-label {
  color: var(--azul-marino);
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 120px;
  text-align: center;
}

@media (max-width: 768px) {
  .benefit-item { width: 110px; }
  .icon-circle { width: 76px; height: 76px; }
  .benefit-label { font-size: 0.9rem; max-width: 90px; }
}

/* Hover / Focus effects to make circles more vistosos */
.benefit-item {
  transition: transform 0.28s cubic-bezier(.2,.9,.3,1);
  will-change: transform;
}

.benefit-item:hover,
.benefit-item:focus-within,
.benefit-item:focus {
  transform: translateY(-6px);
}

.benefit-item:hover .icon-circle,
.benefit-item:focus-within .icon-circle,
.benefit-item:focus .icon-circle {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 14px 30px rgba(10,33,64,0.25), 0 0 20px rgba(212,175,55,0.12);
}

.benefit-item:hover .benefit-label,
.benefit-item:focus-within .benefit-label,
.benefit-item:focus .benefit-label {
  transform: translateY(-4px);
  color: var(--azul-marino);
  font-weight: 700;
}

.benefit-item:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(212,175,55,0.08);
  border-radius: 10px;
}

/* === CATÁLOGOS ENLACES === */
.catalogos {
  list-style: none;
  padding-left: 0;
  text-align: center;
}

.catalogos li {
  margin: 12px 0;
}

.catalogos a {
  text-decoration: none;
  color: var(--azul-marino);
  font-weight: bold;
  border: 2px solid var(--dorado);
  padding: 10px 20px;
  display: inline-block;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.catalogos a:hover {
  background: var(--dorado);
  color: var(--azul-marino);
}

/* === DESTINOS (GALERÍA) === */
.destino-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px;
  max-width: 300px;
}

.destinos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.destino-item img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.destino-item img:hover {
  transform: scale(1.03);
}

.catalogo-btn {
  margin-top: 10px;
  background-color: #001f3f; /* Azul marino */
  color: #ffffff; /* Texto blanco */
  padding: 10px 20px;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.catalogo-btn:hover,
.catalogo-btn:focus {
  background-color: #FFD700; /* Dorado */
  color: #001f3f; /* Texto azul marino */
}


/* === VISAS AMERICANAS & SCHENGEN SECTION === */
.visa-section {
  background-color: #f9f9f9;
  padding: 60px 30px;
}

.visa-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.visa-img img {
  width: 100%;
  max-width: 460px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.visa-text {
  flex: 1;
  font-size: 1.05rem;
  color: #222;
}

.visa-text h2 {
  color: #0a2140;
  font-size: 2rem;
  margin-bottom: 15px;
}

.visa-text h3 {
  font-size: 1.2rem;
  margin-top: 25px;
  color: #d4af37;
}

.visa-text ul.visa-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.visa-text ul.visa-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.visa-text ul.visa-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #d4af37;
  font-weight: bold;
}

/* Responsive ajustes */
@media (max-width: 768px) {
  .visa-container {
    flex-direction: column;
    text-align: left;
  }

  .visa-img img {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

/* === FORMULARIO DE CONTACTO === */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: #fff;
}

.contact-form button {
  background-color: var(--azul-marino);
  color: var(--blanco);
  font-size: 1rem;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--dorado);
  color: var(--azul-marino);
}

/* === BOTÓN WHATSAPP === */
.whatsapp-btn {
  display: inline-block;
  margin-top: 20px;
  background-color: #25d366;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #1ebd5a;
}

/* === FOOTER === */
footer {
  color: var(--blanco);
  padding: 30px 0 !important;
}

footer .container {
  max-width: 800px;
}

footer a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Copyright section styling */
footer .copyright-section {
  background-color: #fff;
  color: var(--azul-marino);
  padding: 20px;
  border-radius: 8px;
  margin-top: 15px;
}

footer .copyright-section p {
  margin: 0;
  font-weight: 500;
}

footer .copyright-section .tagline {
  color: var(--dorado);
  font-style: italic;
  margin-top: 8px;
}

/* HR before copyright */
footer hr {
  display: none;
}

/* Map container responsivo */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Compact map for footer */
.map-container-compact {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 ratio para versión compacta */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.map-container-compact iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Smaller compact map for footer */
.map-container-compact-small {
  position: relative;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.map-container-compact-small iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

 .social-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 50px;
      height: 50px;
      background: rgba(212, 175, 55, 0.1);
      border: 2px solid #d4af37;
      border-radius: 50%;
      color: #d4af37;
      transition: all 0.3s ease;
      text-decoration: none;
    }

    .social-icon:hover {
      background: #d4af37;
      color: #0a2140;
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    }

    .social-icon svg {
      width: 24px;
      height: 24px;
    }

/* Footer socials: white by default, optional brand colors via .footer-socials--brand */
.footer-socials .social-icon {
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.footer-socials--white .social-icon {
  color: #ffffff; /* icon color */
}

.footer-socials--white .social-icon svg { fill: currentColor; }

.footer-socials--white .social-icon:hover { transform: translateY(-4px); }

/* Brand-colored variant (opt-in): use brand colors and subtle background */
.footer-socials--brand .social-icon.instagram { color: #E1306C; }
.footer-socials--brand .social-icon.tiktok { color: #000000; }
.footer-socials--brand .social-icon.facebook { color: #1877F2; }
.footer-socials--brand .social-icon.whatsapp { color: #25D366; }

.footer-socials--brand .social-icon svg { fill: currentColor; }

.footer-socials--brand .social-icon { background: transparent; }

/* Ensure specific fills for multi-path SVGs so they render correctly both in white and brand variants */
.footer-socials--white .social-icon.tiktok svg path { fill: #ffffff !important; }
.footer-socials--white .social-icon.whatsapp svg * { fill: #ffffff !important; }

.footer-socials--brand .social-icon.tiktok svg path:nth-child(1) { fill: #010101 !important; }
.footer-socials--brand .social-icon.tiktok svg path:nth-child(2) { fill: #69C9D0 !important; }
.footer-socials--brand .social-icon.tiktok svg path:nth-child(3) { fill: #EE1D52 !important; }
.footer-socials--brand .social-icon.whatsapp svg circle { fill: #25D366 !important; }
.footer-socials--brand .social-icon.whatsapp svg path { fill: #ffffff !important; }

/* Permisos list and footer social list styling */
.permisos-list {
  color: #ffffff;
  margin-top: 6px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.permisos-list li:first-child {
  margin-bottom: 6px;
  color: #ffffff;
  font-weight: 600;
}

.permisos-list li {
  color: rgba(255,255,255,0.92);
}

.footer-socials-list {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.footer-socials-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Small spacing tweak for stacked mobile layout */
@media (max-width: 768px) {
  .permisos-list { text-align: left; }
  .footer-socials-list { gap: 10px; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  #inicio {
    height: 60vh !important; /* Adjust hero section height for mobile */
  }

  .carousel-item {
    height: 100% !important; /* Ensure item fills the new hero height */
    min-height: 0 !important; /* Remove the large min-height */
  }

  .navbar-brand img { height:40px; }
  section { padding: 40px 16px; }
  
  /* Footer responsivo */
  footer .row {
    gap: 10px !important;
  }
  
  footer .col-auto {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  footer {
    padding: 20px 0 !important;
  }
  
  .map-container-compact-small {
    width: 160px;
    height: 160px;
    margin: 0 auto;
  }
}

/* === BURBUJA DE CHAT FLOTANTE (profesional, accesible) === */
.whatsapp-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 300ms cubic-bezier(.2,.9,.3,1), opacity 220ms ease, bottom 220ms ease;
    will-change: transform, bottom, opacity;
}

.whatsapp-text-above {
    background-color: #075E54;
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: text-pop 2s ease-in-out infinite;
    transform-origin: bottom center;
    position: relative;
}

.whatsapp-text-above::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #075E54;
}

.chat-bubble {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: linear-gradient(135deg, var(--azul-marino), #07203a);
  color: var(--dorado);
  box-shadow: 0 12px 30px rgba(10,33,64,0.25);
  border: 2px solid rgba(212,175,55,0.12);
  z-index: 9999 !important;
  cursor: pointer;
}

.chat-bubble.whatsapp {
    animation: pulse 2s ease-in-out infinite;
}

.chat-bubble svg { width: 28px; height: 28px; color: var(--dorado); }
.chat-bubble .chat-label {
  display: none; /* visible on wider screens */
  font-weight: 700;
  color: var(--dorado);
  font-size: 0.92rem;
  margin-left: 8px;
}

.whatsapp-container.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

/* Ensure bubble is always visible unless explicitly hidden */
.chat-bubble[hidden="false"], .chat-bubble[aria-hidden="false"] {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* When the bubble needs to sit above the footer we will update its inline bottom, but keep a helper class */
.chat-bubble.above-footer {
  box-shadow: 0 18px 36px rgba(10,33,64,0.32);
}

@media (min-width: 992px) {
  .chat-bubble { width: 72px; height: 72px; }
  .chat-bubble .chat-label { display: inline-block; }
}

@media (max-width: 480px) {
  .chat-bubble { right: 12px; bottom: 12px; width: 56px; height: 56px; }
}

/* Variante específica para WhatsApp: fondo verde oficial y SVG blanco */
.chat-bubble.whatsapp {
  background: #25D366;
  color: #ffffff;
  border-color: rgba(0,0,0,0.06);
}

.chat-bubble.whatsapp svg { width: 28px; height: 28px; color: #fff; }

/* pequeño ajuste visual en pantallas grandes */
@media (min-width:1200px) {
  .chat-bubble.whatsapp { right: 32px; bottom: 28px; }
}

@keyframes text-pop {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Efecto de Paquetes */
.card {
  transition: box-shadow 0.5s ease;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
}

.card .card-img-top {
  transition: transform 0.5s ease;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card .btn-primary {
  background-color: var(--azul-marino);
  border-color: var(--azul-marino);
  color: var(--blanco);
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.card:hover .btn-primary {
  background-color: #ffc107;
  border-color: #ffc107;
  color: var(--azul-marino);
  transform: scale(1.1);
}

/* Custom dropdown item hover effect */

#destinos .dropdown-item:hover,

#destinos .dropdown-item:focus {

  background-color: var(--dorado);

  color: var(--azul-marino);

  transform: scale(1.05);

  transition: all 0.2s ease-in-out;

}



/* === SHOPPING CART === */

#cart-icon {

    position: fixed;

    bottom: 100px; /* Positioned above the WhatsApp bubble */

    right: 20px;

    width: 64px;

    height: 64px;

    background: var(--dorado);

    color: var(--azul-marino);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    z-index: 1001; /* Above whatsapp container */

    box-shadow: 0 8px 20px rgba(0,0,0,0.2);

    transition: transform 0.3s ease;

}



#cart-icon:hover {

    transform: scale(1.1);

}



.cart-count {

    position: absolute;

    top: -5px;

    right: -5px;

    background-color: var(--azul-marino);

    color: var(--blanco);

    border-radius: 50%;

    width: 24px;

    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    font-weight: bold;

    border: 2px solid var(--dorado);

}



#cart-sidebar {

    position: fixed;

    top: 0;

    right: -400px; /* Hidden by default */

    width: 400px;

    height: 100%;

    background-color: #fff;

    box-shadow: -4px 0 15px rgba(0,0,0,0.15);

    z-index: 1003;

    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);

    display: flex;

    flex-direction: column;

}



#cart-sidebar.open {

    right: 0;

}



#cart-overlay {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(0,0,0,0.5);

    z-index: 1002;

    opacity: 0;

    visibility: hidden;

    transition: opacity 0.4s ease, visibility 0.4s ease;

}



#cart-overlay.open {

    opacity: 1;

    visibility: visible;

}



#cart-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px;

    background-color: var(--azul-marino);

    color: var(--blanco);

}



#cart-header h3 {

    margin: 0;

    font-family: 'Raleway', sans-serif;

}



#close-cart {

    background: none;

    border: none;

    color: var(--blanco);

    font-size: 28px;

    cursor: pointer;

}



#cart-items {

    flex-grow: 1;

    overflow-y: auto;

    padding: 15px;

}



.cart-item {

    display: flex;

    align-items: center;

    margin-bottom: 15px;

    border-bottom: 1px solid #eee;

    padding-bottom: 15px;

}



.cart-item img {

    width: 80px;

    height: 80px;

    object-fit: cover;

    border-radius: 8px;

    margin-right: 15px;

}



.cart-item-info {

    flex-grow: 1;

}



.cart-item-name {

    font-weight: bold;

    margin: 0 0 5px 0;

}



.cart-item-price {

    color: #555;

    margin: 0;

}



.cart-item-quantity {

    display: flex;

    align-items: center;

}



.cart-item-quantity button {

    width: 25px;

    height: 25px;

    border: 1px solid #ccc;

    background-color: #f9f9f9;

    cursor: pointer;

}



.cart-item-quantity span {

    padding: 0 10px;

}



.remove-item {

    background: none;

    border: none;

    color: #ff4d4d;

    font-size: 20px;

    cursor: pointer;

    margin-left: 15px;

}



.cart-empty-msg {

    text-align: center;

    margin-top: 40px;

    color: #777;

}



#cart-footer {

    padding: 20px;

    border-top: 1px solid #eee;

}



#cart-total {

    display: flex;

    justify-content: space-between;

    font-size: 1.2rem;

    margin-bottom: 15px;

}



#checkout-btn, #clear-cart-btn {

    width: 100%;

    padding: 12px;

    border: none;

    border-radius: 5px;

    font-weight: bold;

    cursor: pointer;

    transition: background-color 0.3s ease;

}



#checkout-btn {

    background-color: var(--dorado);

    color: var(--azul-marino);

    margin-bottom: 10px;

}



#clear-cart-btn {

    background-color: #e0e0e0;

    color: #333;

}



#checkout-btn:hover {

    background-color: #cba02a;

}



#clear-cart-btn:hover {

    background-color: #d1d1d1;

}



.add-to-cart-btn {

    background-color: var(--azul-marino);

    color: white;

    border: none;

    padding: 10px 15px;

    border-radius: 5px;

    cursor: pointer;

    margin-top: 10px;

    transition: background-color 0.3s ease;

}



.add-to-cart-btn:hover {

    background-color: var(--dorado);

    color: var(--azul-marino);

}



.cart-notification {

    position: fixed;

    bottom: 20px;

    left: 50%;

    transform: translateX(-50%) translateY(150%);

    background-color: var(--azul-marino);

    color: var(--blanco);

    padding: 15px 25px;

    border-radius: 8px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.2);

    z-index: 1005;

    transition: transform 0.3s ease-in-out;

    opacity: 0;

}



.cart-notification.show {

    transform: translateX(-50%) translateY(0);

    opacity: 1;

}
