/* ==========================================================================
   MUNDO INCA - DESIGN SYSTEM & FRONT-PAGE / HEADER / FOOTER STYLES
   ========================================================================== */

:root {
  --mi-forest: #0f3d24;
  --mi-forest-dark: #071a10;
  --mi-emerald: #158015;
  --mi-gold: #f4a523;
  --mi-gold-hover: #e09112;
  --mi-ta-green: #00aa6c;
  --mi-wa-green: #1da851;
  --mi-wa-pulse: #25d366;
  --mi-font-main: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@font-face {
  font-family: "Font Awesome 6 Free";
  font-display: swap;
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-display: swap;
}

@font-face {
  font-family: "bootstrap-icons";
  font-display: swap;
}

body {
  font-family: var(--mi-font-main);
}

/* Corrección de paleta semántica sobre Bootstrap compilado */
.text-success {
  color: var(--mi-emerald) !important;
}

.bg-mi-forest {
  background-color: var(--mi-forest);
}

.text-mi-forest {
  color: var(--mi-forest);
}

.btn-mi-forest {
  background-color: var(--mi-forest);
  border-color: var(--mi-forest);
  color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-mi-forest:hover {
  background-color: var(--mi-forest-dark);
  border-color: var(--mi-forest-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Tipografía y utilidades de escala */
.ls-05 { letter-spacing: 0.05em; }
.ls-2  { letter-spacing: 0.12em; }
.ls-3  { letter-spacing: 0.18em; }

.fs-xs-70 { font-size: 0.70rem; }
.fs-xs-72 { font-size: 0.72rem; }
.fs-xs-75 { font-size: 0.75rem; }
.fs-xs-76 { font-size: 0.76rem; }
.fs-xs-78 { font-size: 0.78rem; }
.fs-xs-80 { font-size: 0.80rem; }
.fs-sm-9  { font-size: 0.85rem; }

.lh-12  { line-height: 1.2; }
.lh-135 { line-height: 1.35; }

.cv-auto {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

/* ==========================================================================
   HEADER, TOP BAR & RESPONSIVE NAVIGATION (MOBILE + DESKTOP)
   ========================================================================== */
.top-bar-black .social-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.top-bar-black .social-icons a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.top-bar-black .social-icons a:hover {
  color: var(--mi-gold);
  transform: translateY(-1px);
}

.lang-list-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.lang-list-nav li a {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lang-list-nav li a:hover,
.lang-list-nav li a.active-lang {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--mi-gold);
  color: #fff;
}

.mi-mobile-toggle {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  #__menu_content[data-open="false"] {
    display: none;
  }
  #__menu_content[data-open="true"],
  #__menu_content.is-open {
    display: block;
  }
  #__menu_content .sub-open > ul {
    display: block !important;
  }
}

@media (min-width: 992px) {
  #__menu_content {
    display: block !important;
  }
}

/* ==========================================================================
   1. HERO SECTION (FRONT PAGE) - ESTILO VIA INCA TRAVEL (88VH + CLS ZERO)
   ========================================================================== */
.hero-home {
  height: 88vh;
  min-height: 640px;
  max-height: 920px;
  background-color: var(--mi-forest-dark);
  contain: layout style;
}

.hero-home-img {
  object-position: center;
  display: block;
}

.hero-home-overlay {
  background: linear-gradient(
    95deg,
    rgba(7, 26, 16, 0.64) 0%,
    rgba(9, 25, 16, 0.80) 38%,
    rgba(9, 25, 16, 0.24) 58%,
    rgba(9, 25, 16, 0.08) 100%
  );
}

.hero-badge {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-badge-text {
  letter-spacing: 0.05em;
}

.hero-home-title {
  line-height: 1.18;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-title-accent {
  color: var(--mi-gold);
  display: block;
}

.hero-home-lead {
  max-width: 640px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-home-lead a {
  color: #ffd37a;
  border-bottom: 1px solid rgba(255, 211, 122, 0.65);
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-home-lead a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.btn-mi-gold {
  background-color: var(--mi-gold);
  border-color: var(--mi-gold);
  color: #111;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-mi-gold:hover {
  background-color: var(--mi-gold-hover);
  border-color: var(--mi-gold-hover);
  color: #111;
  transform: translateY(-2px);
}

.btn-mi-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-mi-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  .hero-home {
    height: auto;
    min-height: 600px;
    max-height: none;
  }
  .hero-home-overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 26, 16, 0.88) 0%,
      rgba(7, 26, 16, 0.80) 100%
    );
  }
}

/* ==========================================================================
   SECCIONES Y TARJETAS DE PAQUETES
   ========================================================================== */
.mi-section-divider {
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mi-forest), var(--mi-gold));
}

.mi-lead-1040 { max-width: 1040px; }
.mi-lead-820 { max-width: 820px; }
.mi-lead-800 { max-width: 800px; }
.mi-lead-780 { max-width: 780px; }

.tour-card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tour-card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12) !important;
}

.tour-card-vip {
  border: 2px solid var(--mi-gold);
}

.tour-ribbon {
  position: absolute;
  top: 12px;
  z-index: 4;
  border-radius: 999px;
}

.tour-ribbon--end {
  right: 12px;
}

.tour-ribbon--start {
  left: 12px;
}

.tour-ribbon--bestseller {
  background-color: var(--mi-forest);
}

.ratio-16-9-img {
  aspect-ratio: 16 / 9;
}

.tour-card-img-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
}

/* ==========================================================================
   TABLA COMPARATIVA
   ========================================================================== */
.mi-compare-table .th-factor {
  background-color: #f8f9fa;
  width: 28%;
}

.mi-compare-table .th-local {
  background-color: var(--mi-forest);
  color: #fff;
  width: 38%;
}

.mi-compare-table .th-agency {
  background-color: #e9ecef;
  color: #495057;
  width: 34%;
}

.mi-compare-table .td-local-highlight {
  background-color: #f2fcf5;
  color: var(--mi-forest);
}

/* ==========================================================================
   EXPERIENCIA BOUTIQUE & VIDEO LIGHTBOX
   ========================================================================== */
.mi-icon-circle {
  width: 48px;
  height: 48px;
}

.mi-video-overlay {
  background: rgba(0, 0, 0, 0.25);
}

.mi-play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.mi-play-btn:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   RESEÑAS VERIFICADAS (TRIPADVISOR / GOOGLE)
   ========================================================================== */
.text-ta {
  color: var(--mi-ta-green);
}

.ta-dots i {
  font-size: 0.65rem;
  margin-right: 1px;
}

.tab-review-ta.active {
  border-color: var(--mi-ta-green) !important;
  background-color: #f3fcf8 !important;
}

#tab-google.active {
  border-color: #0d6efd !important;
  background-color: #f4f8ff !important;
}

.btn-mi-ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border: none;
  color: #fff;
}

.btn-mi-ig:hover {
  color: #fff;
  opacity: 0.92;
}

.btn-carousel-nav {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   TURISMO RESPONSABLE & BLOG THUMBNAILS
   ========================================================================== */
.mi-social-img {
  aspect-ratio: 4 / 3;
}

.mi-blog-thumb {
  aspect-ratio: 16 / 10;
}

/* ==========================================================================
   AVALES E-E-A-T, FOOTER & WHATSAPP FLOTANTE
   ========================================================================== */
.logo-partner {
  max-height: 62px;
  width: auto;
  object-fit: contain;
  filter: grayscale(15%);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo-partner:hover {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.footer-v-divider {
  width: 1px;
  height: 36px;
  background-color: #dee2e6;
}

.social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #f1f3f5;
  color: var(--mi-forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.social-circle:hover {
  background-color: var(--mi-forest);
  color: #fff;
  transform: translateY(-2px);
}

.footer-link {
  display: inline-block;
  color: #495057;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-link:hover {
  color: var(--mi-forest);
  transform: translateX(4px);
}

.footer-copyright {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.wa-btn-pro-2027,
.btn-whatsapp-pulse {
  align-items: center;
  background: var(--mi-wa-green);
  border-radius: 50%;
  bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  color: #fff;
  display: flex;
  font-size: 26px;
  height: 56px;
  justify-content: center;
  position: fixed;
  right: 20px;
  text-decoration: none;
  width: 56px;
  z-index: 998;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.wa-btn-pro-2027:hover,
.btn-whatsapp-pulse:hover {
  background: #178c43;
  color: #fff;
  transform: scale(1.06);
}

.wa-btn-pro-2027::before,
.btn-whatsapp-pulse::before {
  animation: pulse-gpu 2s ease-out infinite;
  border: 2px solid var(--mi-wa-pulse);
  border-radius: 50%;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  will-change: transform, opacity;
}

@keyframes pulse-gpu {
  0% {
    opacity: 0.75;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-card-hover,
  .mi-play-btn,
  .logo-partner,
  .social-circle,
  .footer-link,
  .wa-btn-pro-2027,
  .btn-whatsapp-pulse {
    transition: none;
  }
  .wa-btn-pro-2027::before,
  .btn-whatsapp-pulse::before {
    animation: none;
  }
}