/* =========================================================
   TRAVEL NOW — INDEX STYLES v3.0 RESPONSIVE
   Correcciones clave:
   · gap: 100px → gap fluido
   · Alturas fijas → clamp() fluido
   · Paddings estáticos → escalables
   · Review slider → altura intrínseca
   · Estructura conservada al 100%
========================================================= */

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255,255,255,.14);
  background: #071527;
  box-shadow: var(--shadow-md);
  isolation: isolate;
  display: flex;
  align-items: center;

  /* Altura controlada: banner visible sin invadir el contenido siguiente */
  height: clamp(330px, 46vw, 540px);
  min-height: 330px;

  margin: clamp(10px, 2vw, 15px) clamp(12px, 2.5vw, 20px) clamp(14px, 2.5vw, 18px);
}

/* =========================================================
   HERO · Capas de fondo — Cover real
========================================================= */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
  will-change: opacity, transform;
  transform: scale(1.01);
}

.hero-bg-a { opacity: 1; }
.hero-bg-b { opacity: 0; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 11, 0.78) 0%, rgba(3, 7, 11, 0.58) 42%, rgba(3, 7, 11, 0.10) 100%),
    linear-gradient(180deg, rgba(3, 7, 11, 0.12) 0%, rgba(3, 7, 11, 0.38) 100%);
  pointer-events: none;
}

/* Crossfade entre slides */
.hero.is-switching .hero-bg-a { 
  opacity: 0; 
  transform: scale(1.12); 
}
.hero.is-switching .hero-bg-b { 
  opacity: 1; 
  transform: scale(1); 
}

/* =========================================================
   HERO · Contenido
========================================================= */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
}

.hero-wrap {
  max-width: 680px;
  padding:
    clamp(38px, 6vw, 72px)
    clamp(18px, 4vw, 42px)
    clamp(30px, 5vw, 54px);
}

.hero h1 {
  color: #fff;
  font-family: var(--font-hero, "Poppins", sans-serif);
  font-size: clamp(1.75rem, 4vw, 3.85rem);
  font-weight: 800;
  line-height: 1.06;
  max-width: 11.5ch;
  margin-bottom: clamp(10px, 1.8vw, 15px);
  text-shadow: 0 10px 40px rgba(0,0,0,.62);

  opacity: 0;
  transform: translateY(clamp(18px, 3vw, 25px));
  transition: opacity .8s ease, transform .8s ease;
}

.hero.show-text h1 {
  opacity: 1;
  transform: translateY(0);
}

.lead {
  color: #fff;
  max-width: 56ch;
  margin-bottom: clamp(14px, 2.5vw, 20px);
  font-size: clamp(0.92rem, 1.55vw, 1.08rem);
  line-height: 1.55;
  text-shadow: 0 10px 24px rgba(0,0,0,.62);

  opacity: 0;
  transform: translateY(clamp(18px, 3vw, 25px));
  transition: opacity .9s ease .25s, transform .9s ease .25s;
}

.hero.show-text .lead {
  opacity: 1;
  transform: translateY(0);
}

.actions {
  display: flex;
  gap: clamp(10px, 2vw, 12px);
  flex-wrap: wrap;

  opacity: 0;
  transform: translateY(clamp(18px, 3vw, 25px));
  transition: opacity .9s ease .45s, transform .9s ease .45s;
}

.hero.show-text .actions {
  opacity: 1;
  transform: translateY(0);
}

.hero .btn-primary {
  max-width: min(100%, 560px);
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}

.hero .actions {
  max-width: min(100%, 620px);
}


/* =========================================================
   SERVICIOS DESTACADOS (HOME) — Grid fluido
========================================================= */
.services {
  padding: clamp(48px, 7vw, 80px) clamp(16px, 2.5vw, 32px);
  background: var(--color-bg-soft);
}

.services .subtitle {
  color: var(--color-accent);
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: clamp(8px, 1.5vw, 10px);
  font-weight: 700;
}

.services h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: clamp(14px, 2.5vw, 20px);
}

.services > .container > p {
  max-width: 800px;
  margin: 0 auto clamp(28px, 5vw, 40px) auto;
  color: var(--color-text-muted);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* Grid de servicios: 4→2→1 automáticamente */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.service {
  background: var(--color-bg-card);
  padding: clamp(20px, 3vw, 30px) clamp(16px, 2.5vw, 20px);
  border-radius: clamp(14px, 2.5vw, 20px);
  text-align: center;
  border: 2px solid #333D3D;
  text-decoration: none;
  color: inherit;
  transition:
    transform .35s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s ease,
    border-color .35s ease;
}

.service:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: #07B6B8;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.service i {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--icon-color, #0284c7);
  margin-bottom: clamp(10px, 2vw, 15px);
  display: inline-block;
  transition: transform .25s ease;
}

.service:hover i {
  transform: scale(1.1);
}

.service h3 {
  color: var(--color-primary);
  margin-bottom: clamp(6px, 1vw, 8px);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.service p {
  color: var(--color-text-muted);
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  line-height: 1.6;
}

/* =========================================================
   WHY — Sección de beneficios
========================================================= */
.why {
  padding: clamp(48px, 7vw, 80px) clamp(16px, 2.5vw, 32px);
  background: var(--color-bg-soft);
}

.why .subtitle {
  color: var(--color-accent);
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: clamp(8px, 1.5vw, 10px);
  font-weight: 700;
}

.why h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: clamp(14px, 2.5vw, 20px);
}

.why p {
  color: var(--color-text-muted);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* Grid 2-col que colapsa a 1 en mobile fluidamente */
.two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.why-list {
  list-style: none;
  margin-top: clamp(14px, 2.5vw, 20px);
}

.why-list li {
  margin-bottom: clamp(8px, 1.5vw, 12px);
  font-weight: 500;
  font-size: clamp(0.875rem, 1.3vw, 1rem);
}

.why-list i {
  color: #16a34a;
  margin-right: clamp(6px, 1vw, 8px);
}

/* =========================================================
   TESTIMONIOS — Slider con altura intrínseca
========================================================= */
.testimonial {
  position: relative;
  width: 100%;
}

.review-slider {
  position: relative;
  overflow: hidden;
  perspective: 1200px;
  /* Altura intrínseca: se adapta al contenido */
  min-height: clamp(200px, 35vh, 260px);
}

.review {
  position: absolute;
  inset: 0;
  width: 100%;

  background: #061e49db;
  border-radius: clamp(14px, 2.5vw, 18px);
  padding: clamp(18px, 3.5vw, 25px);
  box-shadow: 0 25px 60px rgba(0,0,0,.25);

  opacity: 0;
  transform: translateX(clamp(60px, 10vw, 80px)) scale(0.9);
  filter: blur(6px);

  transform-style: preserve-3d;
  backface-visibility: hidden;

  transition:
    transform .7s ease,
    opacity .6s ease,
    filter .7s ease;
}

.review.active {
  opacity: 1;
  z-index: 2;
  transform: translateX(0) scale(1);
  filter: blur(0);
  position: relative;
}

.review.exit {
  opacity: 0;
  z-index: 1;
  transform: translateX(clamp(-60px, -10vw, -80px)) scale(0.9);
  filter: blur(8px);
}

.review-top {
  display: flex;
  gap: clamp(10px, 2vw, 15px);
  align-items: center;
  margin-bottom: clamp(12px, 2vw, 15px);
  flex-wrap: wrap;
}

.avatar {
  width: clamp(44px, 7vw, 55px);
  height: clamp(44px, 7vw, 55px);
  border-radius: clamp(10px, 2vw, 14px);
  background: linear-gradient(135deg, #6d5cff, #9333ea);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  flex-shrink: 0;
}

.review-info strong {
  display: block;
  color: #e1e2e7;
  font-size: clamp(0.9rem, 1.7vw, 1.05rem);
}

.review-info span {
  font-size: clamp(0.75rem, 1.2vw, 0.8rem);
  color: #07bbdf;
}

.stars {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1vw, 8px);
  margin-top: clamp(2px, 0.5vw, 4px);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.stars img { 
  height: clamp(20px, 3.5vw, 26px); 
}

.review p {
  color: #fafafa;
  line-height: 1.6;
  font-size: clamp(0.875rem, 1.4vw, 1rem);
}

/* =========================================================
   STATS — Grid fluido
========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(120px, 18vw, 140px), 1fr));
  gap: clamp(14px, 2.5vw, 20px);
  margin-top: clamp(18px, 3vw, 25px);
}

.stats div {
  background: #d8e3efca;
  padding: clamp(14px, 2.5vw, 18px);
  border-radius: clamp(8px, 1.5vw, 12px);
  text-align: center;
  border: 2px solid #769daf;
}

.stats strong {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.stats span {
  color: var(--color-text-muted);
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}

/* =========================================================
   CTA PRINCIPAL — Botones alineados, gap fluido
========================================================= */
.cta {
  max-width: 1500px;
  margin: clamp(20px, 4vw, 25px) auto clamp(60px, 10vw, 90px);
  padding: clamp(36px, 6vw, 50px) clamp(20px, 4vw, 32px);

  border-radius: clamp(20px, 4vw, 28px);
  background: linear-gradient(135deg, #1d04ffef, #021150f8);
  color: #fff;
  text-align: center;

  box-shadow:
    0 40px 90px rgba(2,6,23,.35),
    0 10px 30px rgba(1,6,68,.774);

  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, #1f0f77ce, #1701d6dc, transparent 70%);
  opacity: .5;
  filter: blur(40px);
  z-index: 0;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: #fff;
  margin-bottom: clamp(16px, 3vw, 25px);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.cta p {
  color: #f6f6ff;
  margin-bottom: clamp(28px, 5vw, 50px);
  opacity: .9;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* CORREGIDO: gap de 100px → fluido y proporcional */
.cta-buttons {
  margin-top: clamp(20px, 4vw, 28px);
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 32px);
  flex-wrap: wrap;
}

/* Botones del CTA */
.cta .btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: clamp(12px, 2vw, 14px) clamp(20px, 3.5vw, 28px);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 700;

  color: #000404;
  background: #ffffff;
  border: 2px solid #43c3ff;
  border-radius: clamp(10px, 2vw, 12px);
  box-shadow: none;

  transform: translateZ(0);
  will-change: transform;

  transition:
    transform .25s ease,
    background .25s ease,
    color .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.cta .btn-primary:hover {
  background: #07B6B8;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  border-color: #07f7ff;
}

/* =========================================================
   CTA SECUNDARIO — Banda alternativa
========================================================= */
.cta-secondary {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 82px) 0;
  background: linear-gradient(135deg, #073c79 0%, #0c4b54 100%);
  text-align: center;
  color: #fff;
}

.cta-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(46,159,145,.22), transparent 70%);
  pointer-events: none;
}

.cta-secondary-inner { 
  position: relative; 
}

.cta-secondary .section-label { 
  color: #2E9F91; 
  margin-top: 0; 
}

.cta-secondary h2 {
  color: #fff;
  font-family: var(--font-heading, "Montserrat", sans-serif);
  margin: clamp(6px, 1.2vw, 8px) 0 clamp(10px, 2vw, 12px);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.cta-secondary p {
  color: rgba(255,255,255,.76);
  margin: 0 auto clamp(20px, 4vw, 28px);
  max-width: 58ch;
  font-size: clamp(0.9rem, 1.4vw, 1rem);
}

.cta-secondary-actions {
  display: flex;
  gap: clamp(10px, 2vw, 14px);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-secondary-mail {
  color: #fff;
  border-color: rgba(255,255,255,.42);
}

.cta-secondary-mail:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.72);
}

.btn,
.cta .btn-primary,
.cta-secondary .btn {
  transform: translateZ(0);
  will-change: transform;
}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */
@media (max-width: 768px) {
  .hero {
    margin: 8px 10px 18px;
    height: auto;
    min-height: clamp(410px, 108vw, 500px);
    align-items: stretch;
    border-radius: 22px;
  }

  .hero-bg {
    background-size: 100% auto;
    background-position: top center !important;
    transform: none;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 10, 20, .06) 0%, rgba(5, 10, 20, .18) 34%, rgba(5, 10, 20, .86) 58%, rgba(5, 10, 20, .94) 100%);
  }

  .hero-content {
    display: flex;
    align-items: flex-end;
    min-height: inherit;
  }

  .hero-wrap {
    width: 100%;
    max-width: none;
    margin-top: clamp(195px, 56vw, 258px);
    padding: clamp(16px, 5vw, 22px);
    border-radius: 22px 22px 0 0;
    background: linear-gradient(180deg, rgba(6, 16, 32, .04), rgba(6, 16, 32, .62) 22%, rgba(6, 16, 32, .86));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .hero h1 {
    max-width: 12.5ch;
    font-size: clamp(1.45rem, 7vw, 1.95rem);
    line-height: 1.05;
    margin-bottom: 10px;
  }

  .hero .lead {
    max-width: 34ch;
    font-size: clamp(.88rem, 3.7vw, .98rem);
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .hero .actions,
  .hero .btn-primary {
    width: 100%;
  }

  .hero .btn-primary {
    min-height: 46px;
    padding-inline: 14px;
    font-size: .92rem;
  }

  .cta {
    margin: clamp(16px, 4vw, 18px) clamp(12px, 3vw, 14px) clamp(44px, 10vw, 48px);
    padding: clamp(28px, 7vw, 34px) clamp(16px, 4vw, 22px);
    border-radius: clamp(18px, 4vw, 22px);
  }

  .cta p { 
    margin-bottom: clamp(20px, 5vw, 24px); 
  }

  .cta-buttons { 
    gap: clamp(12px, 3vw, 14px);
    flex-direction: column;
    align-items: center;
  }

  .cta-secondary { 
    padding: clamp(36px, 8vw, 42px) 0; 
  }
}
