:root {
  --navy:        #3D7A67;
  --navy-mid:    #50957F;
  --navy-light:  #6DB09A;
  --coral:       #D37D00;
  --coral-dark:  #B86C00;
  --coral-light: #E9A030;
  --arena:       #F5EDD6;
  --arena-dark:  #E8DFC4;
  --gold:        #D4A843;
  --gold-light:  #F0C96A;
  --white:       #FFFFFF;
  --text-dark:   #0A1628;
  --text-mid:    #3D5070;
  --text-light:  #8899AA;

  --nav-h:       72px;
  --topbar-h:    36px;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   24px;
  --radius-xl:   40px;

  --shadow-sm:   0 2px 12px rgba(61,56,48,.08);
  --shadow-md:   0 8px 32px rgba(61,56,48,.14);
  --shadow-lg:   0 20px 60px rgba(61,56,48,.22);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;

  --ease-out: cubic-bezier(.22,.68,0,1.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* TOPBAR */
.topbar {
  height: var(--topbar-h);
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
  z-index: 200;
}
.topbar-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar a:hover { color: var(--gold); }
.topbar-links { display: flex; gap: 1.5rem; }
.topbar-promo { color: var(--gold) !important; font-weight: 700; }

/* NAVBAR */
#navbar {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  height: var(--nav-h);
  z-index: 150;
  transition: background .35s, box-shadow .35s, top .35s;
  background: transparent;
}
#navbar.scrolled {
  top: 0;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo-img { height: 80px; width: auto; object-fit: contain; }
.logo--footer img { height: 140px !important; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin-left: auto;
}
.nav-link {
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 500;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.08); }
.nav-link--mundial { color: var(--gold) !important; font-weight: 700; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 210px;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  color: rgba(255,255,255,.8);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
}
.dropdown-menu li a:hover { background: rgba(255,255,255,.08); color: var(--white); }

.btn-nav-cta {
  background: var(--coral);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  padding: .6rem 1.35rem;
  border-radius: var(--radius-xl);
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--coral-dark); transform: translateY(-1px); }

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,.85) 0%, rgba(10,22,40,.5) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1340px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: calc(var(--topbar-h) + var(--nav-h));
}

/* HERO SEARCH */
.hero-search {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 120;
  position: relative;
}
.search-suggestions {
  z-index: 9999 !important;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--arena-dark);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  overflow: hidden;
}

/* DESTINOS */
.hero--destinos { height: 520px; min-height: 520px; }

.destinos-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 3.5rem;
}
.filter-btn {
  padding: 14px 26px;
  border: 2px solid var(--arena-dark);
  background: var(--white);
  color: var(--text-mid);
  border-radius: var(--radius-xl);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.35s var(--ease-out);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--coral);
  background: var(--coral);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(211,125,0,0.25);
}

.destinos-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  max-width: 1340px;
  margin: 0 auto;
}

.flip-card {
  perspective: 1200px;
  height: 100%;
  min-height: 420px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: white;
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
}

/* SLIDER OFERTAS */
.slider-wrapper { position: relative; padding: 0 1rem; }
.slider-viewport { overflow: hidden; width: 100%; }
.slider-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.55s var(--ease-out);
  padding: 0.5rem 0 1.5rem;
}
.trip-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease-out);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 340px;
}
.trip-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-lg); }
.trip-img { height: 260px; position: relative; overflow: hidden; }
.trip-img img { transition: transform 0.7s var(--ease-out); }
.trip-card:hover .trip-img img { transform: scale(1.09); }

/* SECTIONS */
.section { padding: 6.5rem 2rem; max-width: 1340px; margin: 0 auto; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .destinos-grid-full { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.6rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; --topbar-h: 0px; }
  .topbar { display: none; }
  .destinos-grid-full { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
  .trip-card { min-width: 92vw; }
  .flip-card { min-height: 380px; }
}

@media (max-width: 480px) {
  .destinos-grid-full { grid-template-columns: 1fr; }
  .trip-card { min-width: 100%; }
}