/* ============================================
   WANDEROUTE TRAVELS — DESIGN TOKENS
   ============================================ */
:root {
  --ink: #051631;
  --ink-soft: #4E5B6E;
  --sand: #EEF2F7;
  --sand-light: #FFFFFF;
  --rust: #D9A526;
  --rust-dark: #B27303;
  --oasis: #011938;
  --oasis-light: #E7ECF3;
  --gold: #F3C825;
  --navy: #011938;
  --navy-light: #0C2D57;
  --paper: #FFFFFF;
  --line: rgba(5, 22, 49, 0.12);
  --line-strong: rgba(5, 22, 49, 0.28);

  --font-display: "Poppins", "Work Sans", sans-serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }
a { color: var(--rust-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
@media (max-width: 640px) { section { padding: 48px 0; } }

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-light); }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: rgba(5,22,49,0.04); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-whatsapp {
  background: linear-gradient(135deg, var(--gold), var(--rust-dark));
  color: var(--navy);
  font-weight: 700;
}
.btn-whatsapp:hover { filter: brightness(1.06); color: var(--navy); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Top utility bar ---------- */
.top-bar {
  background: var(--navy);
  color: #C9D3E0;
  font-size: 0.82rem;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  gap: 20px;
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 22px; }
.top-bar a { color: #C9D3E0; }
.top-bar a:hover { color: #fff; text-decoration: none; }
.top-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.top-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.top-badge { color: var(--gold); font-weight: 600; letter-spacing: 0.02em; font-size: 0.78rem; }
.top-divider { color: rgba(255,255,255,0.25); }
@media (max-width: 960px) { .top-bar-left span:nth-child(3), .top-bar-right { display: none; } }
@media (max-width: 640px) { .top-bar { display: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 52px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy);
  text-decoration: none;
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 78px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .main-nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav .btn-whatsapp { margin-top: 16px; }
}

/* ---------- Hero (static, used on inner pages) ---------- */
.hero {
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-light) 100%);
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--rust-dark);
  margin-bottom: 14px;
  display: block;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  aspect-ratio: 4/3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero Slider (home page) ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  width: 100%;
}
.hero-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  display: block;
  min-height: 600px;
  box-sizing: border-box;
}
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide-bg.bg-desktop {
  display: block;
}
.hero-slide-bg.bg-mobile {
  display: none;
}
.hero-slide-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(1,25,56,0.88) 0%, rgba(1,25,56,0.65) 45%, rgba(1,25,56,0.40) 75%, rgba(1,25,56,0.65) 100%);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 90px 0 160px;
  color: #fff;
}
.hero-slide-content .chip-row {
  display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 22px;
  font-size: 0.85rem; font-weight: 600; color: #DCE4EF;
}
.hero-slide-content .chip-row span:not(:last-child)::after { content: "|"; margin-left: 14px; color: rgba(255,255,255,0.4); }
.hero-slide-content h1 { color: #fff; max-width: 760px; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.15; }
.hero-slide-content h1 .accent { color: var(--gold); }
.hero-slide-content p.lede { color: #DCE4EF; max-width: 520px; font-size: 1.05rem; }

.hero-arrow {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
  transition: background 0.15s ease, transform 0.15s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,0.32); transform: translateY(-50%) scale(1.05); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-arrow svg { width: 20px; height: 20px; }

.hero-dots {
  position: absolute; bottom: 168px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 5;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
  transition: all 0.3s ease;
}
.hero-dot.active { background: var(--gold); width: 24px; border-radius: 5px; }

/* Portrait / Mobile screen optimizations */
@media (max-width: 768px), (orientation: portrait) {
  .hero-slide {
    min-height: 520px;
  }
  .hero-slide-bg.bg-desktop {
    display: none;
  }
  .hero-slide-bg.bg-mobile {
    display: block;
    background-position: center center;
  }
  .hero-slide-bg.bg-mobile::after {
    background: linear-gradient(180deg, rgba(1,25,56,0.85) 0%, rgba(1,25,56,0.68) 50%, rgba(1,25,56,0.90) 100%);
  }
  .hero-slide-content {
    padding: 60px 0 170px;
  }
  .hero-slide-content h1 {
    font-size: clamp(1.65rem, 6vw, 2.2rem);
  }
  .hero-slide-content p.lede {
    font-size: 0.95rem;
  }
  .hero-arrow {
    width: 38px; height: 38px;
    background: rgba(1,25,56,0.55);
  }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
  .hero-dots {
    bottom: 175px;
  }
}

/* ---------- Feature strip (bottom of hero) ---------- */
.feature-strip {
  position: relative; z-index: 3;
  background: rgba(1,25,56,0.85);
  border-top: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(2px);
  margin-top: -1px;
}
.feature-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 22px 24px;
}
.feature-list {
  display: flex; gap: 30px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0;
}
.feature-list li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; width: 92px; color: #DCE4EF; font-size: 0.78rem; font-weight: 600;
}
.feature-list svg { width: 26px; height: 26px; color: var(--gold); }
.feature-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.call-now {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 999px;
  padding: 10px 20px; color: #fff; font-size: 0.85rem;
}
.call-now svg { width: 20px; height: 20px; }
.call-now strong { display: block; font-size: 0.95rem; }
@media (max-width: 960px) { .feature-list { display: none; } }

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  background: var(--sand);
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.page-header p { color: var(--ink-soft); }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.card h3 { margin-bottom: 10px; }

.card-icon {
  width: 42px; height: 42px;
  color: var(--rust);
  margin-bottom: 16px;
}

/* ---------- Package card ---------- */
.package-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-light);
  display: flex;
  flex-direction: column;
}
.package-card .pkg-img { aspect-ratio: 4/3; overflow: hidden; }
.package-card .pkg-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.package-card:hover .pkg-img img { transform: scale(1.04); }
.pkg-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pkg-meta { display: flex; gap: 14px; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }
.pkg-highlights { list-style: none; padding: 0; margin: 12px 0 20px; }
.pkg-highlights li {
  font-size: 0.9rem; color: var(--ink-soft);
  padding-left: 18px; position: relative; margin-bottom: 6px;
}
.pkg-highlights li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; background: var(--rust); border-radius: 50%;
}
.pkg-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 12px; }
.pkg-price { font-family: var(--font-display); font-size: 1.15rem; color: var(--oasis); font-weight: 600; }
.pkg-price small { display: block; font-family: var(--font-body); font-size: 0.7rem; color: var(--ink-soft); font-weight: 400; }

/* ---------- Why choose / stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}
@media (max-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--rust);
  margin-bottom: 4px;
}
.stat-label { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--oasis);
  color: var(--oasis-light);
  padding: 64px 0;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band .btn-whatsapp { background: var(--gold); color: var(--ink); }
.cta-band .btn-whatsapp:hover { background: #b9862f; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #D8CFC0;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #F6EFDF; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; margin-bottom: 14px; }
.site-footer .brand { color: #F6EFDF; }
.site-footer p { color: #B7AC9A; font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #B7AC9A; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8C8071;
}
.footer-bottom a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
}
.footer-bottom a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f7d778, #d4af37);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.footer-bottom a:hover {
  color: #f7d778;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}
.footer-bottom a:hover::after {
  transform: scaleX(1);
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #D8CFC0;
}
.social-row a:hover { border-color: #fff; color: #fff; }
.social-row svg { width: 16px; height: 16px; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--oasis);
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(36,28,21,0.28);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.wa-float:hover { background: #294c3e; transform: translateY(-2px); text-decoration: none; color: #fff; }
.wa-float svg { width: 20px; height: 20px; flex-shrink: 0; }
.wa-float .wa-text { display: inline; }
@media (max-width: 560px) {
  .wa-float .wa-text { display: none; }
  .wa-float { padding: 14px; }
}

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px;
}
.gfilter {
  background: transparent; border: 1px solid var(--line-strong);
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem;
  cursor: pointer; color: var(--ink-soft); font-family: var(--font-body); font-weight: 500;
}
.gfilter.active, .gfilter:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.gallery-grid {
  columns: 3 260px;
  column-gap: 18px;
}
.gallery-grid figure {
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.gallery-grid img { width: 100%; display: block; transition: transform 0.35s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(36,28,21,0.75), transparent);
  color: #fff; font-size: 0.8rem; padding: 22px 12px 10px;
}

.lightbox {
  position: fixed; inset: 0; background: rgba(20,15,10,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 300; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 24px; right: 30px;
  background: none; border: none; color: #fff; font-size: 2rem;
  cursor: pointer; line-height: 1;
}
.lightbox-cap { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: #EDE0C8; font-size: 0.9rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
  border-color: var(--rust);
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: 0.9rem; font-weight: 600; display: none; }
.form-status.show { display: block; }

/* ---------- Contact info list ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info-list svg { width: 22px; height: 22px; color: var(--rust); flex-shrink: 0; margin-top: 2px; }
.info-list strong { display: block; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 2px; }

.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/10; background: var(--sand);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Section heading helper ---------- */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 10px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
