/* =========================================
   PROFESSIONAL UX/UI - LUXURY TRAVEL
   COLORS: #717E86, #5B797C, #FFFAF0, #42B3D5
========================================= */


html {
  overflow-x: clip;
  scroll-behavior: auto;
  /* Dejar que Lenis controle el scroll */
}

/* Lenis Smooth Scroll Essential CSS */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

:root {
  --color-dark: #1f2937;
  --color-primary: #5b797c;
  /* Teal Gray */
  --color-secondary: #717e86;
  /* Gray Blue */
  --color-accent: #42b3d5;
  /* Sky Blue */
  --color-bg: #fffaf0;
  /* Floral White */
  --color-highlight: #f18e0c;
  /* Warm Orange */

  --font-heading: "Metropolis", sans-serif;
  --font-body: "Poppins", sans-serif;

  --spacing-section: 100px;
  --container-width: 1280px;
  --border-radius: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  background-color: var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  /* Crucial para evitar el desfase lateral */
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   CONTAINER & GRID SYSTEM
========================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
}

.section-padding {
  padding: var(--spacing-section) 0;
  overflow: visible;
  position: relative;
}

.section-title-destinos {
  font-size: 41px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  /* Bold para Metropolis según manual */
  color: var(--color-primary);
  line-height: 1.2;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 20px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-highlight);
  border-radius: 2px;
}

.section-title p {
  color: var(--color-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

p {
  color: #4b5563;
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   BUTTONS
========================================= */
.btn-primary {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: #f18e0c;
  color: #fff;
  border-color: #f18e0c;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--color-primary);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* Highlight Button (Secondary CTA) */
.btn-highlight {
  display: inline-block;
  background-color: var(--color-highlight);
  color: #fff;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  border: 1px solid var(--color-highlight);
}

.btn-highlight:hover {
  background-color: transparent;
  color: var(--color-highlight);
  box-shadow: 0 4px 15px rgba(241, 142, 12, 0.3);
}

/* =========================================
   PRELOADER
========================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-logo {
  width: auto;
  opacity: 0;
}

@media screen and (max-width:480px) {
  .preloader-logo {
    width: 220px !important;
    height: 42px !important;
  }
}

/* =========================================
   HEADER
========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: all 0.4s ease;
  color: #fff;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  padding: 15px 0;
  color: var(--color-primary);
  backdrop-filter: blur(10px);
}

.logo img {
  height: 45px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

header.scrolled .logo img {
  content: url("../assets/images/Hightours.webp");
  filter: none;
  height: 45px;
  width: auto;
  object-fit: contain;
}

header.scrolled nav a {
  color: var(--color-primary);
}

header.scrolled nav a:hover {
  color: var(--color-accent);
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--color-accent);
}

/* CTA Button in Header */
.nav-cta {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  padding: 12px 28px !important;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-cta:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(66, 179, 213, 0.3);
}

header.scrolled .nav-cta {
  background-color: var(--color-accent);
}

/* =========================================
   SWIPER HERO SLIDER
========================================= */

.hero-slider {
  height: 100vh;
  width: 100%;
  position: relative;
}

@media (max-width: 768px) {
  .hero-slider {
    height: 100vh;
  }

  .gallery-base {
    height: 55% !important;
  }
}

.swiper-slide {
  position: relative;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  transform: scale(1.1);
  transition: transform 6s ease;
}

.swiper-slide-active img {
  transform: scale(1);
}

.slider-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 0 5%;
  z-index: 10;
}

.slider-content h1 {
  color: #fff;
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
}

.slider-content p {
  color: #f3f4f6;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0;
  transform: translateY(30px);
}

.slider-content .btn-primary {
  opacity: 0;
  transform: translateY(30px);
}

/* Swiper Controls */
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
}

.swiper-pagination-bullet {
  background: #fff !important;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* =========================================
   STATS SECTION - HORIZONTAL
========================================= */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #4a6b70 100%);
  padding: 60px 0;
  margin-top: -1px;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><path d="M0,100 Q50,80 100,100 T200,100 T300,100 T400,100" stroke="rgba(255,255,255,0.05)" stroke-width="2" fill="none"/></svg>');
  background-size: 200px 100px;
  opacity: 0.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  color: #fff;
  padding: 20px;
  transition: transform 0.4s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #fff;
  margin-bottom: 10px;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  font-family: var(--font-body);
}

/* =========================================
   ABOUT (2 COLUMNS)
========================================= */
.about-structured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-structured-img {
  width: 100%;
  height: 500px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-structured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-structured-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
}

.about-structured-text h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--color-highlight);
  border-radius: 2px;
}

.about-structured p {
  font-weight: 300;
}

/* =========================================
   FEATURES WITH ICONS
========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.feature-item {
  padding: 20px;
}

.feature-icon {
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}

.feature-item h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

/* =========================================
   DESTINATIONS GRID (3 COLUMNS)
========================================= */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tour-card {
  background: #ffffff8f;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  perspective: 1000px;
  transform-style: preserve-3d;
  position: relative;
}

.tour-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px) rotateY(2deg);
}

.tour-card-img {
  height: 280px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.tour-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tour-card:hover .tour-card-img img {
  transform: scale(1.08);
}

/* Tag Over image */
.tour-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #3498db 100%);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(66, 179, 213, 0.3);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(66, 179, 213, 0.3);
  }

  50% {
    box-shadow: 0 6px 25px rgba(66, 179, 213, 0.5);
  }
}

.tour-card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tour-card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.tour-card-content p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tour-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: auto;
}

.tour-price {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.15rem;
}

.tour-link {
  color: var(--color-bg);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  background-color: var(--color-highlight);
  padding: 10px 15px 10px 15px;
  border-radius: 5px;
}

.tour-link:hover {
  text-decoration: none;
}

/* =========================================   FILTER TABS & DESTINATION SECTIONS
========================================= */
.filter-tabs {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.filter-section {
  padding: 50px 0;
  background-color: #ffffff8f;
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid var(--color-primary);
  background-color: transparent;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.filter-btn:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--color-highlight);
  border-color: var(--color-highlight);
  color: #fff;
  box-shadow: 0 4px 15px rgba(241, 142, 12, 0.3);
}

.destination-section {
  margin-bottom: 80px;
  animation: fadeIn 0.6s ease-out;
}

.destination-section.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 30px;
}

.category-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 20px;
}

.category-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-highlight);
  border-radius: 2px;
}

.encuentras h2 {
  position: relative;
  padding-bottom: 20px;
}

.encuentras h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-highlight);
  border-radius: 2px;
}

.category-header p {
  color: var(--color-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* =========================================   PAGE HEADERS
========================================= */
.page-hero {
  height: 50vh;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-top: 80px;
}

.page-hero h1 {
  color: #fff;
  font-size: 4rem;
  margin-bottom: 10px;
}

/* =========================================
   CONTACT PAGE
========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-box {
  background: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* =========================================
   IMMERSIVE MULTIDIRECTIONAL GALLERY
========================================= */
.immersive-gallery {
  width: 100%;
  height: 100vh;
  position: relative;
  background-color: #000;
  overflow: hidden;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-base {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-base img,
.gallery-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
  z-index: 5;
}

.gallery-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 100;
  /* Siempre al frente de todo */
  width: 90%;
  max-width: 800px;
  pointer-events: auto;
  /* Permitir click en el botón */
}

.gallery-base-text {
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 5rem);
  /* Reducido ligeramente */
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  word-wrap: break-word;
  /* Evita que el texto se salga */
}

.gallery-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 40px;
  font-family: var(--font-body);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gallery-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.panel-text-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.parallax-text {
  color: #fff;
  font-size: clamp(4rem, 10vw, 8rem);
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 700;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Initial States handled by JS */

/* =========================================
   FOOTER
========================================= */
footer {
  background-color: var(--color-dark);
  color: #fff;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 15px;
  color: #d1d5db;
}

.footer-col ul li a {
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
  .tours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .about-structured,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tours-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .stat-number {
    font-size: 2.8rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  header nav {
    display: none;
    /* Add mobile menu later */
  }

  .slider-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   TOUR DETAIL PAGE
========================================= */
.tour-detail-hero {
  position: relative;
  height: 60vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  /* Removed offset so it sits under the transparent header */
  padding-top: 85px;
  /* Add padding so content is centered properly */
}

.tour-detail-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  z-index: 1;
}

.tour-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.tour-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.tour-breadcrumbs {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
}

.tour-breadcrumbs a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.3s;
}

.tour-breadcrumbs a:hover {
  text-decoration-color: #fff;
}

.tour-breadcrumbs span {
  font-weight: 600;
  color: var(--color-highlight);
}

.tour-detail-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 50px;
}

@media (max-width: 992px) {
  .tour-detail-grid {
    grid-template-columns: 1fr;
  }
}

.tour-main-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.tour-highlights {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  background: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.highlight-item {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.highlight-item i {
  font-size: 1.5rem;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--color-bg);
  border-radius: 50%;
  color: var(--color-primary);
}

.tour-section h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.tour-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-highlight);
}

/* Accordion */
.itinerary-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.itinerary-item {
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.itinerary-header {
  background: #fff;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  font-family: var(--font-body);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.itinerary-header:hover {
  background: #f9fafb;
}

.itinerary-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.itinerary-body {
  padding: 20px 25px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: none;
  font-size: 0.95rem;
}

.itinerary-item.active .itinerary-body {
  display: block;
}

.itinerary-item.active .itinerary-header {
  background: var(--color-bg);
  color: var(--color-primary);
}

.includes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .includes-grid {
    grid-template-columns: 1fr;
  }
}

.includes-list,
.excludes-list {
  list-style: none;
}

.includes-list li,
.excludes-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
}

/* Sidebar Booking */
.tour-sidebar {
  position: relative;
}

.booking-widget {
  background: #fff;
  padding: 35px;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 120px;
  border-top: 4px solid var(--color-highlight);
}

.booking-price {

  text-align: center;
}

.price-from {
  display: block;
  font-size: 0.9rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-amount {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 5px 0;
}

.price-person {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
}

.booking-help {
  margin-top: 25px;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  border-top: 1px dashed #e5e7eb;
  padding-top: 20px;
}

.booking-help a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  margin-top: 5px;
  display: inline-block;
}

/* =========================================
   MOBILE RESPONSIVENESS FIXES
========================================= */
@media (max-width: 768px) {

  /* Header Fixes */
  header .container {
    padding: 0 15px;
    /* Prevent edge touching */
  }

  header .container>div:last-child {
    gap: 10px !important;
  }

  header nav {
    display: none;
    /* Hide standard nav, wait for hamburger implementation */
  }

  .nav-cta {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
  }

    .logo img {
        height: 40px !important;
        width: 200px;
    }

  /* Tour Detail Fixes */
  .tour-detail-hero h1 {
    font-size: 2.2rem;
    line-height: 1.1;
  }

  .tour-highlights {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
  }

  .highlight-item {
    flex: 1 1 45%;
  }
}


/* =========================================
   NEW HEADER AND MOBILE NAV STYLES
========================================= */
.header-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.desktop-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.desktop-nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: opacity 0.3s;
}

.desktop-nav a:hover {
  opacity: 0.8;
}

.hamburger {
  color: #fff;
}

header.scrolled .hamburger {
  color: #000;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 350px;
  height: 100vh;
  background-color: var(--color-primary);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.4s ease;
  z-index: 999;
  padding: 100px 30px 30px;
  display: flex;
  flex-direction: column;
}

.mobile-nav-content ul li a {
  color: #fff;
}

@media (max-width: 992px) {
  .nav-cta {
    background-color: var(--color-highlight) !important;
    max-width: 160px;
  }
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
}

.mobile-nav-actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-cart {
  justify-content: flex-start;
  gap: 15px;
  font-size: 1.1rem;
  color: #fff !important;
}

@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }

  .header-actions .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-actions .cart-icon-wrapper {
    display: none;
    /* Hide desktop cart on mobile so it only shows in the hamburger menu */
  }
}

/* Hamburger active state */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   CART ICON STYLES
========================================= */
.cart-icon-wrapper {
  position: relative;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;
}

.cart-icon-wrapper:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* For light headers (e.g. when transparent background) */
header.scrolled .cart-icon-wrapper {
  background: rgba(0, 0, 0, 0.05);
}

header.scrolled .cart-icon-wrapper:hover {
  background: rgba(0, 0, 0, 0.1);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--color-highlight);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  /* Will be set to flex by JS when > 0 */
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.mobile-cart {
  width: auto;
  height: auto;
  background: transparent !important;
  justify-content: flex-start;
  gap: 15px;
  font-size: 1.2rem;
  color: #fff !important;
  padding: 10px 0;
}

.mobile-cart:hover {
  transform: translateX(5px);
}

.mobile-cart .cart-count {
  position: relative;
  top: 0;
  right: 0;
  display: inline-flex;
}

/* =========================================
   FLOATING WHATSAPP BUTTON
========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: #fff;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* =========================================
   FLOATING SOCIAL BAR
========================================= */
.social-floating-bar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 59%);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  padding: 15px 10px;
  gap: 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 10px 0 0 10px;
  z-index: 9998;
  /* Below mobile nav overlay, but above content */
  transition: all 0.3s ease;
}



.social-floating-bar a {
  color: #4c6c709e;
  /* Subtle gray */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-floating-bar a svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

/* Hover colors for each network */
.social-floating-bar a.social-ta:hover {
  color: #34E0A1;
  transform: scale(1.15);
}

/* TripAdvisor Green */
.social-floating-bar a.social-fb:hover {
  color: #1877F2;
  transform: scale(1.15);
}

/* Facebook Blue */
.social-floating-bar a.social-ig:hover {
  color: #E4405F;
  transform: scale(1.15);
}

/* Instagram Pink */
.social-floating-bar a.social-yt:hover {
  color: #FF0000;
  transform: scale(1.15);
}

/* YouTube Red */

/* Hide on mobile to avoid visual clutter with WhatsApp button */
@media (max-width: 768px) {
  .social-floating-bar {
    display: none;
  }
}

/* =========================================
   PARTNERS / CONVENIOS MARQUEE
========================================= */
.partners-section {
  background-color: #f9f9f9;
  padding: 60px 0;
  border-top: 1px solid #eee;
  overflow: hidden;
}

.partners-title {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 40px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.partners-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

/* Gradient fade on edges */
.partners-marquee-container::before,
.partners-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partners-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #f9f9f9 0%, rgba(249, 249, 249, 0) 100%);
}

.partners-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #f9f9f9 0%, rgba(249, 249, 249, 0) 100%);
}

.partners-marquee {
  display: flex;
  width: max-content;
  animation: scroll-marquee 25s linear infinite;
}

.partners-marquee:hover {
  animation-play-state: paused;
}

.partner-logo {
  flex-shrink: 0;
  width: 150px;
  margin: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-logo img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .partner-logo {
    width: 120px;
    margin: 0 20px;
  }
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

header.scrolled .lang-selector {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.lang-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: all 0.3s ease;
  font-family: inherit;
}

header.scrolled .lang-btn {
  color: #000;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-btn.active {
  opacity: 1;
  color: var(--color-highlight);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

header.scrolled .lang-divider {
  color: rgba(0, 0, 0, 0.2);
}

/* Google Translate Hidden elements */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0px !important;
}

#google_translate_element {
  display: none !important;
}

/* Robust Google Translate Hide */
iframe.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0px !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Nuke Google Translate Iframe */
.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  border: none !important;
}

div.skiptranslate>iframe.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body {
  top: 0 !important;
}

/* Fix Google Translate breaking Lenis */
html {
  height: auto !important;
}

/* =========================================
   TOUR DETALLE HIGHLIGHTS (Premium & Responsive)
========================================= */
.quick-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-top: -80px;
  position: relative;
  z-index: 10;
  margin-bottom: 50px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-5px);
  background: rgba(91, 121, 124, 0.05);
}

.highlight-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(91, 121, 124, 0.1);
  color: var(--color-primary);
  border-radius: 12px;
  font-size: 1.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.highlight-item:hover i {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(91, 121, 124, 0.3);
}

.highlight-item div {
  display: block;
}

.highlight-item strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.2;
}

.highlight-item span {
  color: var(--color-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  .quick-highlights {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 15px;
    gap: 15px;
  }
  .highlight-item {
    padding: 10px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media screen and (max-width: 480px) {
  .quick-highlights {
    grid-template-columns: 1fr;
  }
  .highlight-item {
    flex-direction: row;
    text-align: left;
  }
}
/* =========================================
   OPTIMIZACIONES PAGESPEED — AÑADIDAS
========================================= */

/* Features background: movido desde inline style para poder controlarlo en mobile */
.features-bg {
  background-image: url(../assets/images/fondoiconswb.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
  margin-top: -1px;
}

/* CRÍTICO: background-attachment: fixed destruye GPU compositing en móvil */
@media (max-width: 768px) {
  .features-bg {
    background-attachment: scroll;
  }
}

/* aspect-ratio en imágenes clave para evitar CLS */
.swiper-slide img { aspect-ratio: 16 / 9; }
.about-structured-img img { aspect-ratio: 6 / 5; }
.tour-card-img img { aspect-ratio: 16 / 9; }
.partner-logo img { aspect-ratio: 150 / 80; }
