/* =================================================================
   PALETA Y AJUSTES GLOBALES
   (cambia estos colores para personalizar la marca)
   ================================================================= */
:root {
  --color-primario: #0a6cff;   /* azul */
  --color-acento:   #ff7a18;   /* naranja */
  --color-oscuro:   #0f1b33;
  --color-texto:    #2a2f3a;
  --color-suave:    #f5f7fb;
  --radio:          16px;
  --sombra:         0 10px 30px rgba(15, 27, 51, 0.12);
  --sombra-fuerte:  0 20px 45px rgba(15, 27, 51, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-texto);
  line-height: 1.6;
  background: #fff;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =================================================================
   NAVBAR
   ================================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eef1f6;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-oscuro);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primario);
}
.logo-icon svg { width: 100%; height: 100%; display: block; }
.logo-img { height: 40px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  text-decoration: none;
  color: var(--color-texto);
  font-weight: 600;
  position: relative;
  transition: color .2s;
}
/* Subrayado animado al pasar el mouse */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--color-primario);
  transition: width .25s;
}
.nav-links a:hover { color: var(--color-primario); }
.nav-links a:hover::after { width: 100%; }

/* Botón hamburguesa (oculto en escritorio, se muestra en celular) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-oscuro);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
/* Animación a "X" cuando está abierto */
.nav-toggle.activo span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.activo span:nth-child(2) { opacity: 0; }
.nav-toggle.activo span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
/* Imagen de fondo separada para poder animarla (zoom lento) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,108,255,.82), rgba(15,27,51,.9)),
              url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80")
              center/cover no-repeat;
  z-index: -1;
  animation: zoomLento 18s ease-in-out infinite alternate;
}
@keyframes zoomLento {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
.hero-inner { padding: 130px 20px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero p {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  max-width: 640px;
  margin: 0 auto 30px;
  opacity: .95;
}
/* Entrada animada del texto del hero al cargar */
.hero-title { animation: subir .8s ease both; }
.hero-text  { animation: subir .8s .2s ease both; }
.hero-cta   { animation: subir .8s .4s ease both; }
@keyframes subir {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Flechita animada para bajar */
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 2.4rem;
  text-decoration: none;
  opacity: .85;
  animation: rebote 1.8s infinite;
}
@keyframes rebote {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}

/* =================================================================
   BOTONES
   ================================================================= */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s;
}
.btn-primary {
  background: var(--color-acento);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255,122,24,.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(255,122,24,.5); }

/* =================================================================
   SECCIONES
   ================================================================= */
.section { padding: 78px 0; }
.section-alt { background: var(--color-suave); }
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--color-oscuro);
  text-align: center;
  margin-bottom: 10px;
}
.section-title.left { text-align: left; }
.section-subtitle {
  text-align: center;
  color: #66708a;
  margin-bottom: 40px;
}

/* =================================================================
   DESTINOS POPULARES (tarjetas con foto)
   ================================================================= */
.destinos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.destino-card {
  position: relative;
  height: 220px;
  border: 0;
  border-radius: var(--radio);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  box-shadow: var(--sombra);
  transition: transform .25s, box-shadow .25s;
}
.destino-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,27,51,.78), rgba(15,27,51,0) 70%);
  transition: background .25s;
}
.destino-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--sombra-fuerte);
}
.destino-card:hover::before {
  background: linear-gradient(to top, rgba(10,108,255,.78), rgba(15,27,51,.15) 80%);
}
.destino-nombre {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 18px 20px;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* =================================================================
   BOTONES DE DESTINOS (pestañas)
   ================================================================= */
.destinos-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.tab-btn {
  border: 2px solid #e3e8f2;
  background: #fff;
  color: var(--color-texto);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all .18s;
}
.tab-btn:hover { border-color: var(--color-primario); color: var(--color-primario); transform: translateY(-2px); }
.tab-btn.activo {
  background: var(--color-primario);
  border-color: var(--color-primario);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10,108,255,.35);
}

/* =================================================================
   IFRAME (buscador Megatravel) + animación de carga
   ================================================================= */
.iframe-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  background: #fff;
}
.iframe-wrapper iframe {
  width: 100%;
  height: 820px;   /* sube o baja este valor si el buscador se ve cortado */
  border: 0;
  display: block;
}
.iframe-loader {
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #66708a;
  font-weight: 600;
  z-index: 2;
  transition: opacity .4s;
}
.iframe-loader.oculto { opacity: 0; pointer-events: none; }
.spinner {
  width: 46px;
  height: 46px;
  border: 5px solid #e3e8f2;
  border-top-color: var(--color-primario);
  border-radius: 50%;
  animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* =================================================================
   NOSOTROS
   ================================================================= */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.nosotros-grid p { margin-bottom: 14px; color: #4b5263; }
.features { list-style: none; display: grid; gap: 14px; }
.features li {
  background: #fff;
  padding: 18px 20px;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  font-weight: 500;
  color: var(--color-oscuro);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .2s;
}
.features li:hover { transform: translateX(6px); }
.feature-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  color: var(--color-primario);
}
.feature-icon svg { width: 100%; height: 100%; display: block; }

/* =================================================================
   CONTACTO
   ================================================================= */
.contacto-inner { text-align: center; }
.contacto-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}
.contacto-card {
  background: var(--color-suave);
  border-radius: var(--radio);
  padding: 30px 18px;
  text-decoration: none;
  color: var(--color-texto);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform .18s, box-shadow .2s;
}
.contacto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-fuerte);
}
.contacto-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primario);
  margin-bottom: 4px;
}
.contacto-icon svg { width: 100%; height: 100%; display: block; }
.contacto-card strong { color: var(--color-oscuro); }

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  background: var(--color-oscuro);
  color: #cdd5e6;
  padding: 30px 0;
  text-align: center;
}
.footer-social { margin-top: 10px; display: flex; gap: 20px; justify-content: center; }
.footer-social a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-social a:hover { color: var(--color-acento); }

/* =================================================================
   BOTÓN FLOTANTE WHATSAPP (con latido)
   ================================================================= */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 200;
  text-decoration: none;
  animation: latido 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); animation: none; }
@keyframes latido {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* =================================================================
   ANIMACIÓN "APARECER AL HACER SCROLL"
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================================
   RESPONSIVE (celulares)
   ================================================================= */
@media (max-width: 768px) {
  /* Menú desplegable en celular */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    box-shadow: 0 12px 22px rgba(15, 27, 51, .1);
  }
  .nav-links.abierto { max-height: 320px; }
  .nav-links a { padding: 16px 22px; border-top: 1px solid #f0f3f8; }
  .nav-links a::after { display: none; }

  .destinos-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .destino-card { height: 150px; }
  .destino-nombre { font-size: 1.05rem; }
  .nosotros-grid { grid-template-columns: 1fr; }
  .contacto-cards { grid-template-columns: 1fr; }
  .iframe-wrapper iframe { height: 700px; }
}
