:root {
  --navy: #0A2C5C;
  --navy-dark: #08213f;
  --orange: #F2740F;
  --green: #2E9E4F;
  --whatsapp: #25D366;
  --whatsapp-hover: #1ea952;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #6b7280;
  --gray-400: #9fb1c9;
  --text-light: #d1d5db;
  --bg-light: #f5f7fa;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  background: #ffffff;
}

img { max-width: 100%; }

::selection { background: var(--orange); color: #fff; }

a { color: inherit; }

.wrap { width: 100%; overflow-x: hidden; }

/* ---------- Animations ---------- */
@keyframes charIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.12); } }
@keyframes kenburnsSmall { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes waPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Liquid glass ---------- */
.liquid-glass {
  background: rgba(0, 0, 0, 0.4);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.1) 80%, rgba(255,255,255,0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 32px; border-radius: 8px; font-weight: 500; text-decoration: none; font-size: 15px; }
.btn-white { background: #fff; color: #000; transition: background .2s ease; }
.btn-white:hover { background: #f3f4f6; }
.btn-glass { color: #fff; border: 1px solid rgba(255,255,255,0.2); transition: background .2s ease, color .2s ease; }
.btn-glass:hover { background: #fff !important; color: #000 !important; }
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--whatsapp); color: #fff; padding: 16px 40px; border-radius: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none; transition: background .2s ease;
}
.btn-wa:hover { background: var(--whatsapp-hover); }
.btn-wa-pulse { animation: waPulse 2.2s ease-in-out infinite; }

/* ================= HERO (LANDING) ================= */
.hero {
  position: relative; width: 100%; height: 100vh; min-height: 640px; background: #000;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
}
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }

.navbar-wrap { padding: 24px 16px 0 16px; transition: padding .3s ease; }
.navbar-wrap.scrolled { padding: 12px 16px 0 16px; }
.navbar {
  border-radius: 12px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between;
  max-width: 1400px; margin: 0 auto; transition: box-shadow .3s ease;
}
.navbar.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.brand-name .accent { color: var(--orange); }
.logo-img { height: 52px; width: 52px; object-fit: contain; }

.nav-links { display: none; gap: 32px; font-size: 14px; color: #fff; }
.navlink { color: #fff; text-decoration: none; transition: color .2s; }
.navlink:hover { color: #d1d5db; }
.desktop-cta { display: none; white-space: nowrap; }

.menu-btn { display: flex; background: none; border: none; padding: 8px; cursor: pointer; color: #fff; }
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height .35s ease; max-width: 1400px; margin: 8px auto 0 auto; border-radius: 12px; }
.mobile-menu.open { max-height: 260px; }
.mobile-menu-inner { display: flex; flex-direction: column; padding: 8px 16px 16px 16px; gap: 4px; }
.mobile-menu-inner a { color: #fff; text-decoration: none; padding: 10px 4px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu-inner a:last-of-type { border-bottom: none; }
.mobile-menu-cta { margin-top: 8px; background: #fff; color: #000; padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; text-align: center; }

.hero-content { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 16px 48px 16px; }
.hero-content-inner { max-width: 1400px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 24px; }
.hero-top { display: flex; flex-direction: column; gap: 24px; }
.hero-h1 { font-size: 44px; font-weight: 400; color: #fff; letter-spacing: -0.04em; margin: 0 0 16px 0; line-height: 1.08; }
.hero-h1-line { overflow: hidden; }
.hero-h1-line span { display: inline-block; opacity: 0; animation: charIn 500ms ease forwards; }
.hero-p { font-size: 16px; color: var(--text-light); margin: 0 0 20px 0; max-width: 520px; opacity: 0; animation: fadeInUp 1000ms ease forwards; animation-delay: 800ms; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; opacity: 0; animation: fadeInUp 1000ms ease forwards; animation-delay: 1200ms; }
.hero-tagline-row { display: flex; justify-content: flex-start; opacity: 0; animation: fadeInUp 1000ms ease forwards; animation-delay: 1400ms; }
.hero-tagline { border: 1px solid rgba(255,255,255,0.2); padding: 12px 24px; border-radius: 12px; }
.hero-tagline span { font-size: 18px; font-weight: 300; color: #fff; }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); padding: 14px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 1px; padding: 0 24px; }

/* ---------- Sections (shared) ---------- */
.section { padding: 56px 16px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-title { font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; margin: 0 0 12px 0; }
.section-subtitle { font-size: 16px; color: var(--gray-600); margin: 0 0 16px 0; }
.section-divider { width: 56px; height: 4px; margin: 0 auto; border-radius: 2px; }
.section-divider.orange { background: var(--orange); }
.section-divider.green { background: var(--green); }

/* ---------- Cards ---------- */
.card { transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(10,44,92,0.18); }
.card-bg { transition: transform .5s ease; position: absolute; inset: 0; background-size: cover; background-position: center; }
.card:hover .card-bg { transform: scale(1.08); }

/* Paquetes grid */
.pkg-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.pkg-main { position: relative; border-radius: 16px; overflow: hidden; min-height: 420px; text-decoration: none; display: block; }
.pkg-main .card-bg { background-color: var(--navy); }
.pkg-main .gradient { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.05) 55%,transparent 100%); }
.pkg-main-content { position: absolute; left: 24px; bottom: 24px; right: 24px; }
.pkg-main-content h3 { color: #fff; font-size: 26px; font-weight: 700; margin: 0 0 8px 0; }
.pkg-main-content p { color: #e5e7eb; font-size: 14px; margin: 0 0 16px 0; max-width: 380px; }
.pkg-main-cta { display: inline-block; background: var(--navy); color: #fff; padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; }

.small-pkg-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; }
.pkg-small { position: relative; border-radius: 16px; overflow: hidden; min-height: 190px; text-decoration: none; display: block; }
.pkg-small .gradient { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(0,0,0,0.6) 0%,transparent 55%); }
.pkg-price-tag { position: absolute; top: 12px; left: 12px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.pkg-small-name { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 16px; font-weight: 700; }

/* Destinos grid */
.dest-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.dest-card { position: relative; border-radius: 16px; overflow: hidden; height: 260px; }
.dest-card .gradient { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(0,0,0,0.55) 0%,transparent 50%); }
.dest-price-tag { position: absolute; top: 14px; left: 14px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.dest-name { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: 19px; font-weight: 700; }

/* Contacto */
.contacto { background: var(--navy); padding: 56px 16px; text-align: center; }
.contacto-inner { max-width: 640px; margin: 0 auto; }
.contacto-inner h2 { font-size: 32px; font-weight: 800; color: #fff; margin: 0 0 16px 0; }
.contacto-inner p { font-size: 16px; color: #c7d2e0; margin: 0 0 32px 0; }

/* Testimonios */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.testi-card { background: var(--bg-light); border-radius: 14px; padding: 24px; }
.testi-stars { color: var(--orange); font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.testi-quote { font-size: 14px; color: var(--gray-700); margin: 0 0 16px 0; line-height: 1.5; }
.testi-name { font-size: 14px; font-weight: 700; color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); padding: 56px 16px 28px 16px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo-box { background: #fff; border-radius: 12px; padding: 10px; display: flex; align-items: center; justify-content: center; }
.footer-logo-box img { height: 88px; width: 88px; object-fit: contain; }
.footer-brand-name { font-size: 26px; font-weight: 700; color: #fff; }
.footer-contact { color: var(--gray-400); font-size: 14px; line-height: 1.8; }
.footer-contact-title { color: #fff; font-weight: 600; margin-bottom: 4px; }
.footer-bottom { max-width: 1200px; margin: 32px auto 0 auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #6b7f9c; font-size: 12px; text-align: center; }

/* ================= PACKAGE DETAIL PAGES ================= */
.pkg-navbar { background: var(--navy); padding: 16px; position: sticky; top: 0; z-index: 20; }
.pkg-navbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.pkg-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pkg-brand-logo-box { background: #fff; border-radius: 10px; padding: 6px; display: flex; align-items: center; justify-content: center; }
.pkg-brand-logo-box img { height: 44px; width: 44px; object-fit: contain; }
.pkg-brand-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.pkg-back { color: #fff; text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 6px; transition: opacity .2s; }
.pkg-back:hover { opacity: .7; }

.pkg-hero-banner { position: relative; height: 38vh; min-height: 280px; overflow: hidden; background: var(--navy); }
.pkg-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenburnsSmall 18s ease-in-out infinite alternate; }
.pkg-hero-gradient { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(0,0,0,0.7) 0%,rgba(0,0,0,0.1) 60%,transparent 100%); }
.pkg-hero-text { position: absolute; left: 16px; right: 16px; bottom: 24px; max-width: 1200px; margin: 0 auto; }
.pkg-hero-tag { display: inline-block; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 6px; margin-bottom: 12px; opacity: 0; animation: fadeUp .8s ease .1s forwards; }
.pkg-hero-title { color: #fff; font-size: 28px; font-weight: 800; margin: 0; letter-spacing: -0.01em; opacity: 0; animation: fadeUp .8s ease .25s forwards; }
.pkg-hero-sub { color: #e5e7eb; font-size: 15px; margin: 8px 0 0 0; opacity: 0; animation: fadeUp .8s ease .4s forwards; }

.pkg-content-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 16px 64px 16px; }
.pkg-content-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.pkg-h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 12px 0; }
.pkg-about-text { font-size: 15px; color: #4b5563; line-height: 1.7; margin: 0 0 32px 0; }

.pkg-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 40px; }
.pkg-gallery-item { border-radius: 12px; overflow: hidden; height: 140px; transition: transform .45s ease, box-shadow .3s ease; }
.pkg-gallery-item:hover { transform: scale(1.05); box-shadow: 0 12px 28px rgba(10,44,92,0.25); }
.pkg-gallery-item div { background-size: cover; background-position: center; transition: transform .5s ease; width: 100%; height: 100%; }
.pkg-gallery-item:hover div { transform: scale(1.12); }

.pkg-itinerary { display: flex; flex-direction: column; gap: 0; margin-bottom: 40px; }
.pkg-day-row { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid #eef0f3; transition: background .3s ease, padding-left .3s ease; }
.pkg-day-row:hover { background: #f8fafc; padding-left: 8px; }
.pkg-day-n { color: var(--orange); font-weight: 800; font-size: 14px; }
.pkg-day-title { font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.pkg-day-desc { color: var(--gray-600); font-size: 14px; line-height: 1.5; }

.pkg-ie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pkg-ie-title { font-size: 16px; font-weight: 800; color: var(--navy); margin: 0 0 12px 0; }
.pkg-ie-list { display: flex; flex-direction: column; gap: 8px; }
.pkg-ie-item { display: flex; gap: 8px; font-size: 14px; color: var(--gray-700); }
.pkg-ie-item .yes { color: var(--green); font-weight: 700; }
.pkg-ie-item .no { color: #dc2626; font-weight: 700; }

.pkg-booking { position: sticky; top: 96px; background: var(--bg-light); border-radius: 16px; padding: 28px; }
.pkg-booking-label { font-size: 13px; color: var(--gray-600); margin-bottom: 4px; }
.pkg-booking-price { font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.pkg-booking-wa { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--whatsapp); color: #fff; padding: 14px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; margin-bottom: 12px; transition: background .2s ease; animation: waPulse 2.4s ease-in-out infinite; }
.pkg-booking-wa:hover { background: var(--whatsapp-hover); }
.pkg-booking-meta { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* ================= RESPONSIVE ================= */
@media (min-width: 768px) {
  .nav-links { display: flex !important; }
  .menu-btn { display: none !important; }
  .desktop-cta { display: inline-block !important; }
  .logo-img { height: 88px !important; width: 88px !important; margin: -16px 0 !important; }
  .hero-h1 { font-size: 64px !important; }
  .pkg-grid { grid-template-columns: 1.2fr 1fr !important; }
  .dest-grid { grid-template-columns: repeat(3,1fr) !important; }
  .testi-grid { grid-template-columns: repeat(4,1fr) !important; }
  #paquetes, #destinos, #contacto, .section-testimonios { padding-top: 96px !important; padding-bottom: 96px !important; }

  .pkg-navbar .nav-links { display: none; }
  .pkg-gallery { grid-template-columns: repeat(4,1fr) !important; }
  .pkg-content-grid { grid-template-columns: 2fr 1fr !important; }
  .pkg-hero-banner { height: 52vh !important; }
  .pkg-content-wrap { padding: 48px 16px 96px 16px !important; }
}

@media (max-width: 767px) {
  .pkg-grid { grid-template-columns: 1fr !important; }
  .dest-grid { grid-template-columns: 1fr !important; }
  .testi-grid { grid-template-columns: 1fr 1fr !important; }

  .pkg-gallery { grid-template-columns: 1fr 1fr !important; }
  .pkg-content-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .testi-grid { grid-template-columns: 1fr !important; }
  .small-pkg-grid { grid-template-columns: 1fr !important; }
}
