/* --------------------------------------------------------------
   GLOBAL RESET & BASE
----------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: #fdfdfd;
  color: #222;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

/* --------------------------------------------------------------
   TOP BAR
----------------------------------------------------------------*/
.topbar {
  background: #0a2a43;
  color: #fff;
  padding: 6px 0;
  font-size: 0.9rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topbar-text {
  opacity: 0.9;
}

.topbar-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.topbar-links a {
  color: #fff;
  opacity: 0.9;
}

.topbar-links a:hover {
  opacity: 1;
}

/* --------------------------------------------------------------
   HEADER / NAVIGATION
----------------------------------------------------------------*/
.site-header {
  background: #fffffffa;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(15, 35, 52, 0.06);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 52px;
  width: auto;
}

.brand-text {
  line-height: 1.2;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.8rem;
  color: #888;
}

/* NAV LINKS */
.nav {
  position: relative;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  list-style: none;
  font-size: 0.98rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: #333;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

/* underline + pill hover for normal links */
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: #0a6efd;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-links a:not(.nav-cta):hover {
  background: #eef4ff;
  color: #0a6efd;
  transform: translateY(-1px);
}

.nav-links a:not(.nav-cta):hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* active page */
.nav-links a.active:not(.nav-cta) {
  color: #0a6efd;
  font-weight: 700;
  background: #e2ecff;
}

.nav-links a.active:not(.nav-cta)::after {
  opacity: 1;
  transform: scaleX(1);
}

/* CTA button */
.nav-cta {
  background: #0a6efd;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(10, 110, 253, 0.35);
  font-weight: 700;
}

.nav-cta:hover {
  background: #084298;
  transform: translateY(-1px);
}

/* Mobile nav button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* animated burger */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

/* --------------------------------------------------------------
   HERO SECTION (HOME)
----------------------------------------------------------------*/
.hero {
  position: relative;
  height: 82vh;
  background-image: url("images/banner_titi.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.9;
}

.hero-content h1 {
  font-size: 3rem;
  margin: 14px 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 680px;
  margin-bottom: 20px;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-actions .btn {
  padding: 12px 22px;
}

/* --------------------------------------------------------------
   GENERIC LAYOUTS
----------------------------------------------------------------*/
.section {
  padding: 70px 0;
}

.section-muted {
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 35px;
}

.section-header-left {
  text-align: left;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* Two-column hero layout for destination pages */
.destination-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.destination-hero-text {
  min-width: 0;
}

.destination-hero-img img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* WHY / INFO GRID (used for summary + tips, requisitos + pagos, etc.) */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
}

/* Feature bullets */
.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #0a6efd;
}

/* Payment / info cards */
.payment-card {
  background: #fff;
  padding: 18px 18px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.payment-card h3 {
  margin-bottom: 10px;
}

.payment-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.94rem;
}

.payment-list li {
  margin-bottom: 6px;
}

.payment-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: #555;
}

/* --------------------------------------------------------------
   BUTTONS
----------------------------------------------------------------*/
.btn {
  display: inline-block;
  padding: 10px 18px;
  background: #ddd;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.2s ease-in-out;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background: #0a6efd;
  color: #fff;
}

.btn-primary:hover {
  background: #084298;
}

.btn-ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------
   DESTINATIONS GRID (HOME)
----------------------------------------------------------------*/
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.destination-pill {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: 0.2s ease;
}

.destination-pill:hover {
  border-color: #0a6efd;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------
   MODERN DESTINATION PHOTO GALLERY (MASONRY)
----------------------------------------------------------------*/
.destination-gallery {
  margin-top: 1.75rem;
  column-count: 3;
  column-gap: 1.25rem;
}

.destination-thumb {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.destination-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.destination-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.3);
}

.destination-thumb:hover img {
  transform: scale(1.05);
  filter: brightness(1.06);
}

@media (max-width: 900px) {
  .destination-gallery {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .destination-gallery {
    column-count: 1;
  }
}

/* --------------------------------------------------------------
   CARDS (TOURS, INFO, ETC.)
----------------------------------------------------------------*/
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.card {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #eee;
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #0a6efd;
}

.tour-card h3 {
  margin-bottom: 8px;
}

.tour-card p {
  font-size: 0.95rem;
}

.tour-price {
  margin-top: 14px;
  font-size: 1.05rem;
}

.tour-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  padding: 4px 10px;
  border-radius: 20px;
  background: #eef4ff;
  color: #0a6efd;
  font-size: 0.8rem;
  font-weight: 600;
}

.tour-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tours-note {
  font-size: 0.9rem;
  color: #555;
}

/* --------------------------------------------------------------
   ABOUT SECTION
----------------------------------------------------------------*/
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

.about-highlight {
  background: #fff;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid #eee;
}

/* --------------------------------------------------------------
   CONTACT FORM
----------------------------------------------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* --------------------------------------------------------------
   BOLIVIA LAYOUT (ÁLBUM + PAQUETES)
----------------------------------------------------------------*/
.bolivia-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.bolivia-column {
  min-width: 0;
}

/* --------------------------------------------------------------
   FOOTER
----------------------------------------------------------------*/
.site-footer {
  background: #0a2a43;
  color: #fff;
  padding: 28px 0;
  margin-top: 30px;
}

.footer-inner {
  text-align: center;
  font-size: 0.95rem;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #bcd7f5;
}

/* --------------------------------------------------------------
   TOUR TABS (tours.html)
----------------------------------------------------------------*/
.tour-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-top: 10px;
}

.tour-tabs::-webkit-scrollbar {
  height: 5px;
}

.tour-tabs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.tour-tab {
  padding: 10px 18px;
  background: #e9ecef;
  border-radius: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  border: none;
  white-space: nowrap;
}

.tour-tab.active {
  background: #0a6efd;
  color: #fff;
}

.tour-pane {
  display: none;
  margin-top: 32px;
}

.tour-pane.active {
  display: block;
}

/* --------------------------------------------------------------
   WHATSAPP FLOAT BUTTON
----------------------------------------------------------------*/
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: 0.25s ease;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

.wa-circle svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.wa-label {
  font-size: 0.95rem;
  font-weight: 600;
}

/* --------------------------------------------------------------
   RESPONSIVE (TABLETS & MOBILE)
----------------------------------------------------------------*/
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .destination-hero-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .bolivia-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 78vh;
  }
}

@media (max-width: 780px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    width: 230px;
    padding: 15px;
    border-radius: 0 0 0 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 998;
  }

  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    height: 48px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .whatsapp-float {
    padding: 10px 14px;
  }

  .wa-label {
    display: none;
  }
}
