/* ============================================================
   ESTILOS GLOBALES - CuscoPeru / JungleTours
   Versión limpia y sin duplicados
   ============================================================ */

/* ===========================
   VARIABLES DE PALETA
   =========================== */
:root {
  --color-primary-jungle:   #393c16;
  --color-secondary-jungle: #7e8530;
  --color-success-jungle:   #7e8530;
  --color-dark-jungle:      #111111;
  --color-light-jungle:     #F8F9FA;
  --color-light-jungle-alt: #ffffff;
}


/* ===========================
   TIPOGRAFÍA GLOBAL
   =========================== */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: #212529;
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn,
.nav-link {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-primary-jungle);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-secondary-jungle);
  display: inline-block;
}

.section-title-white {
  font-size: 2.5rem;
  color: white;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-secondary-jungle);
  display: inline-block;
}

.py-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}


/* ===========================
   UTILIDADES DE COLOR
   =========================== */
.bg-primary-jungle        { background-color: var(--color-primary-jungle) !important; }
.bg-primary-jungle-70     { background-color: rgba(1, 102, 48, 0.7) !important; }
.bg-secondary-jungle      { background-color: var(--color-secondary-jungle) !important; }
.bg-secondary-jungle-light{ background-color: rgba(255, 153, 0, 0.1) !important; }
.bg-dark-jungle           { background-color: var(--color-dark-jungle) !important; }
.bg-light-jungle          { background-color: var(--color-light-jungle) !important; }

.text-primary-jungle   { color: var(--color-primary-jungle) !important; }
.text-secondary-jungle { color: var(--color-secondary-jungle) !important; }
.text-success-jungle   { color: var(--color-success-jungle) !important; }
.text-light-jungle     { color: var(--color-light-jungle) !important; }
.text-white-70         { color: rgba(255, 255, 255, 0.7) !important; }


/* ===========================
   BOTONES
   =========================== */
.btn-primary-jungle {
  background-color: var(--color-primary-jungle) !important;
  border-color:     var(--color-primary-jungle) !important;
  color: white !important;
  transition: all 0.3s !important;
}
.btn-primary-jungle:hover {
  background-color: var(--color-success-jungle) !important;
  border-color:     var(--color-success-jungle) !important;
  color: white !important;
}

.btn-secondary-jungle {
  background-color: var(--color-secondary-jungle) !important;
  border-color:     var(--color-secondary-jungle) !important;
  color: var(--color-primary-jungle) !important;
  transition: all 0.3s ease;
}
.btn-secondary-jungle:hover {
  background-color: white !important;
  border-color:     var(--color-secondary-jungle) !important;
  color:            var(--color-secondary-jungle) !important;
  transform: translateY(-2px) !important;
}

.btn-outline-primary-jungle {
  color: var(--color-primary-jungle);
  border-color: var(--color-primary-jungle);
}
.btn-outline-primary-jungle:hover {
  background-color: var(--color-primary-jungle);
  color: white;
}

.btn-outline-success-jungle {
  color: var(--color-success-jungle);
  border-color: var(--color-success-jungle);
}
.btn-outline-success-jungle:hover {
  background-color: var(--color-success-jungle);
  color: white;
}


/* ===========================
   HEADER / NAVBAR
   (unificado en un solo bloque)
   =========================== */
header {
  background-color: #393c16;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.topbar {
  position: relative;
  top: 0;
  width: 100%;
  transition: transform 0.3s ease;
  z-index: 1040;
}
.topbar i {
  color: var(--color-secondary-jungle);
}
.topbar.hidden {
  transform: translateY(-100%);
}

.navbar {
  transition: all 0.3s ease-in-out;
}

.navbar-brand img {
  max-height: 60px;
}

.navbar-toggler svg path {
    stroke: #FF9900 !important;
}

/* Toggler */
.navbar-toggler {
  border: 2px solid #FF9900 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 6px 10px;
  border-radius: 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar-toggler:hover {
  border-color: #cc7a00 !important;
}
.navbar-toggler:focus,
.navbar-toggler:active {
  border-color: #FF9900 !important;
  box-shadow: 0 0 8px 3px rgba(255, 153, 0, 0.7) !important;
  outline: none !important;
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* Ocultar flecha del dropdown de Bootstrap */
.navbar .dropdown-toggle::after {
  display: none;
}


/* ===========================
   NAV LINKS
   (un solo bloque unificado)
   =========================== */
.nav-link-custom {
  font-family: 'Outfit', Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.15em;
  font-stretch: extra-condensed;
  color: #7e8530;
  position: relative;
  display: block;
  padding-bottom: 4px;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-link-custom::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  height: 3px;
  width: 0;
  background-color: #393c16;
  transition: width 0.4s ease;
}
.nav-link-custom:hover {
  color: #FF6210;
}
.nav-link-custom:hover::after {
  width: 100%;
}
/* Evitar que pierda el color tras el click */
.nav-link-custom:focus,
.nav-link-custom:active,
.nav-link-custom:focus-visible {
  color: #7e8530 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Nav links generales en el navbar */
.navbar-nav .nav-link {
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #7e8530;
}

/* Responsive navbar */
@media (max-width: 991.98px) {
  .navbar-nav .nav-item {
    margin-bottom: 0.75rem;
  }
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }
  .navbar-nav .btn {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
}


/* ===========================
   DROPDOWN MENÚ
   (un solo bloque unificado)
   =========================== */
.dropdown-menu {
  background-color: #393c16 !important;
  border: none;
  border-radius: 0px;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  animation: fadeDropdown 0.25s ease;
}

.dropdown-menu .dropdown-item {
  color: #ffffff !important;
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.25s ease;
}
.dropdown-menu .dropdown-item:hover {
  background-color: #7e8530 !important;
  color: white !important;
  padding-left: 25px;
}
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:active {
  background-color: #7e8530 !important;
  color: white !important;
  outline: none !important;
  box-shadow: none !important;
}

@keyframes fadeDropdown {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===========================
   SUBMENU LATERAL
   (un solo bloque unificado)
   =========================== */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
  border-radius: 0px;
  display: none;
  position: absolute;
  background-color: #393c16;
  min-width: 200px;
  z-index: 1050;
}
.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu {
  display: block;
}
/* Flecha — se oculta con content:none para que no duplique */
.dropdown-submenu > a::after {
  content: none;
}

/* Responsive submenu */
@media (max-width: 992px) {
  .dropdown-submenu > .dropdown-menu {
    left: 0;
    top: 100%;
  }
}

/* Menús específicos (Manu y Tambopata) */
#manu-menu-1,
#manu-menu-2 {
  width: 250px;
  white-space: normal;
  overflow: hidden;
}
#manu-menu-1 .dropdown-item:focus,
#manu-menu-1 .dropdown-item:active,
#manu-menu-2 .dropdown-item:focus,
#manu-menu-2 .dropdown-item:active {
  background-color: #7e8530 !important;
  color: white !important;
  outline: none !important;
  box-shadow: none !important;
}


/* ===========================
   HERO / SLIDER
   =========================== */
#heroCarousel {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.hero-slide {
  height: 90vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero-slide .container {
  position: relative;
  z-index: 2;
}

/* Animación de texto del hero */
.hero-title,
.hero-subtitle {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUpCustom 1.2s ease forwards;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}
.hero-title {
  font-size: 3.5rem;
  letter-spacing: 2px;
  line-height: 1.2;
  animation-delay: 0.2s;
}
.hero-subtitle {
  font-size: 1.5rem;
  color: #f0f0f0;
  animation-delay: 0.6s;
}
@keyframes fadeInUpCustom {
  to { opacity: 1; transform: translateY(0); }
}

/* Controles del carrusel */
.carousel-caption { z-index: 1; }
.carousel-indicators button { background-color: var(--color-secondary-jungle) !important; }
.carousel-control-prev-icon,
.carousel-control-next-icon { width: 3rem; height: 3rem; }

/* Responsive hero */
@media (max-width: 768px) {
  .hero-slide h1 { font-size: 2rem; }
  .hero-slide p  { font-size: 1rem; }
}


/* ===========================
   OVERLAYS
   =========================== */
.overlay-dark {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 0;
}
.overlay-dark-heavy {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}


/* ===========================
   SECCIÓN: QUIÉNES SOMOS
   =========================== */
#quienes-somos {
  background-color: #0b1d13;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#quienes-somos .lead {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  color: #2f4f4f;
  margin-bottom: 1.5rem;
}
#quienes-somos p.text-muted {
  font-size: 1rem;
  line-height: 1.7;
  color: #6c757d;
  margin-bottom: 1.8rem;
  font-style: italic;
}
#quienes-somos .text-success-jungle {
  font-weight: 700;
  color: #2a7a2a;
  position: relative;
}
#quienes-somos .text-success-jungle::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: #2a7a2a;
  bottom: -4px;
  left: 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}
#quienes-somos .btn-outline-success-jungle {
  font-weight: 700;
  font-size: 1rem;
  padding: 0.6rem 1.8rem;
  border-width: 2px;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 8px rgba(38, 166, 91, 0.3);
}
#quienes-somos .btn-outline-success-jungle:hover {
  background-color: #26a65b;
  color: white !important;
  border-color: #26a65b;
  box-shadow: 0 6px 15px rgba(38, 166, 91, 0.6);
  transform: translateY(-3px);
}
#quienes-somos .bg-white {
  box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border-radius: 1rem;
}
.hover-zoom {
  transition: transform 0.5s ease;
}
.hover-zoom:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  #quienes-somos .lead    { font-size: 1.1rem; }
  #quienes-somos p.text-muted { font-size: 0.95rem; }
}



/* ===========================
   DESTINOS (MEJORADO)
   =========================== */

/* Contenedor principal */
.destinos .destinos-card {
    border-radius: 18px;
    min-height: 460px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover elegante */
.destinos .destinos-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    /* background-color eliminado para quitar hover verde */
}

/* Imagen */
.destinos .destinos-card .card-img-wrapper {
    overflow: hidden;
}

.destinos .destinos-img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destinos .destinos-card:hover .destinos-img {
    transform: scale(1.2);
}

/* Cuerpo de la tarjeta */
.destinos .destinos-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Título y texto */
.destinos .destinos-card .card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary-jungle);
    margin-bottom: 0.3rem;
}

.destinos .destinos-card .card-text {
    color: #555;
    font-size: 0.95rem;
    min-height: 65px;
}

/* Botón al final */
.destinos .destinos-card .btn {
    margin-top: auto;
    padding: 12px;
    font-size: 0.95rem;
}

/* Columnas 4 tarjetas en fila, un poco más anchas */

/* ===========================
   TOUR CARDS (MEJORADO)
   =========================== */
.tour-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  border-radius: 18px;
  overflow: hidden;
  min-height: 460px; /* 🔥 más grandes */
}

/* Hover más suave y elegante */
.tour-card:hover {
  transform: translateY(-8px) scale(1.05); /* 🔥 mejor que rotar */
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

/* Imagen más dominante */
.card-img-wrapper {
  overflow: hidden;
}

/* Imagen */
.tour-card .tour-img {
  transition: transform 0.6s ease;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-card:hover .tour-img {
  transform: scale(1.2);
}

/* Cuerpo más espacioso */
.tour-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* Título más grande */
.tour-card .card-title {
  font-weight: 700;
  font-size: 1.25rem; /* 🔥 más grande */
  color: var(--color-primary-jungle);
  margin-bottom: 0.6rem;
}

/* Texto más legible */
.tour-card .card-text {
  color: #555;
  font-size: 0.95rem;
  min-height: 60px; /* 🔥 alinea todo */
}

/* Botón siempre abajo */
.tour-card .btn {
  margin-top: auto;
  padding: 12px;
  font-size: 0.95rem;
}

/* Precio más visible */
.tour-card .fw-bold.text-success-jungle {
  font-size: 1.2rem;
  color: var(--color-success-jungle);
}

/* Badges */
.tour-card .badge {
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/* Controla ancho de cada tarjeta */
.tour-col {
  flex: 0 0 23%;  /* 🔹 ligeramente más ancho que 24% */
  max-width: 23%;
}


/* ===========================
   EFECTOS GLOBALES
   =========================== */
.img-zoom img {
  transition: transform 0.6s ease;
}
.img-zoom:hover img {
  transform: scale(1.05);
}

.transition-hover {
  transition: all 0.3s ease;
}
.transition-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.shadow-hover {
  transition: box-shadow 0.3s ease;
}
.shadow-hover:hover {
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

.border-secondary-jungle-outline {
  border: 1px solid rgba(255, 153, 0, 0.4) !important;
  transition: all 0.3s;
}

/* Íconos circulares ("Por qué reservar") */
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-secondary-jungle);
  transition: all 0.3s;
}
.hover-lift-icon {
  transition: transform 0.5s ease, box-shadow 0.5s ease !important;
}
.hover-lift-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.7rem 1.4rem rgba(0, 0, 0, 0.15) !important;
}
.hover-lift-icon:hover .icon-circle {
  background-color: var(--color-secondary-jungle) !important;
  border-color: var(--color-secondary-jungle);
}
.hover-lift-icon:hover .icon-circle i {
  color: white !important;
}


/* ===========================
   SECCIÓN ESPECIAL (fondo imagen)
   =========================== */
#programa-especial {
  background-image: url('../img/amazonas5.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
}


/* ===========================
   WHATSAPP FLOTANTE
   =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  background-color: #128c7e;
  color: white;
  transform: scale(1.1);
}
.whatsapp-float i {
  font-size: 36px;
}

.whatsapp-link {
  color: #d1d1d1;
  text-decoration: none;
  transition: color 0.3s ease;
}
.whatsapp-link:hover {
  color: #FF9900;
}

/* Responsive ícono WhatsApp en navbar */
@media (max-width: 991.98px) {
  .whatsapp-icon {
    margin-right: -200px !important;
    z-index: 10;
    position: relative;
  }
  .whatsapp-mobile {
    margin-left: auto;
    padding-right: 15px;
  }
}


/* ===========================
   POLYLANG (selector de idioma)
   =========================== */
.brxe-polylang-language-switcher {
  display: flex;
  gap: 10px;
  list-style: none;
}
.brxe-polylang-language-switcher a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
.brxe-polylang-language-switcher a:hover {
  opacity: 0.7;
}


/* ===========================
   FOOTER
   =========================== */
.footer-link-hover {
  transition: color 0.3s;
  text-decoration: none;
}
.footer-link-hover:hover {
  color: var(--color-secondary-jungle) !important;
  text-decoration: none;
}
.footer-icon-hover {
  transition: color 0.3s;
  text-decoration: none;
}
.footer-icon-hover:hover {
  color: white !important;
  text-decoration: none;
}


/* ===========================
   TRUSTINDEX (widget reseñas)
   =========================== */
.trustindex-widget-container iframe {
  width: 100% !important;
  max-width: 600px;
  height: 400px;
  margin: 0 auto;
  display: block;
}

a {
  position: relative;
  z-index: 10;
}