:root {
  --primary: #4a6741;
  --primary-dark: #3a5234;
  --primary-light: #6a8a60;
  --accent: #c5a059;
  --accent-dark: #a8823a;
  --text-dark: #2d2d2d;
  --text-mid: #555;
  --text-light: #f4f4f4;
  --bg-light: #ffffff;
  --bg-gray: #f5f7f4;
  --transition: all 0.3s ease;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --safe-area-bottom: env(safe-area-inset-bottom);
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.14);
}

/* ──────────────────────────────────────────
   BASE  (Mobile First)
────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Previene overflow horizontal en mobile */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--bg-light);
  padding-bottom: 70px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 80px 0; }

/* ──────────────────────────────────────────
   BOTONES
────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.88rem;
  border: none;
  text-align: center;
  font-family: var(--font-main);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 6px 20px rgba(74,103,65,0.35);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74,103,65,0.45);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}
.btn-outline:hover {
  background-color: white;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ──────────────────────────────────────────
   HEADER
────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.5px;
  color: white;
  overflow: visible;
}

.logo-text img {
  height: 70px;
  transition: var(--transition);
  position: relative;
  z-index: 999;
}

.logo-text span {
  color: white !important;
  transition: var(--transition);
}

header.scrolled .logo-text {
  color: var(--primary);
}
header.scrolled .logo-text span {
  color: var(--primary) !important;
}

/* desktop nav hidden on mobile */
.nav-links { display: none; }

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dark); }

/* ──────────────────────────────────────────
   BOTTOM NAV (mobile)
────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  height: 70px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 2000;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-bottom: var(--safe-area-bottom);
  box-shadow: 0 -5px 24px rgba(0,0,0,0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #999;
  font-size: 1.3rem;
  padding: 8px 14px;
  transition: var(--transition);
  border-radius: 12px;
}

.nav-item span {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-item.active, .nav-item:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

/* ──────────────────────────────────────────
   HERO
────────────────────────────────────────── */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #10170f;
  z-index: -1;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.06) 0,
      rgba(255,255,255,0.06) 1px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.06) 0,
      rgba(0,0,0,0.06) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.4) 0%,
      rgba(0,0,0,0.2) 40%,
      rgba(0,0,0,0.55) 100%
    );
  z-index: 2;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroSlideShow var(--hero-slide-duration, 42s) ease-in-out infinite;
  animation-delay: var(--hero-slide-delay, 0s);
  will-change: opacity, transform;
}

@keyframes heroSlideShow {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  10% {
    opacity: 1;
  }
  14.28% {
    opacity: 0;
    transform: scale(1.06);
  }
  92.85% {
    opacity: 0;
    transform: scale(1.12);
  }
  92.86% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 20px;
}

.ambient-toggle {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  background: rgba(0,0,0,0.16);
  color: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ambient-toggle:hover,
.ambient-toggle:focus-visible {
  background: rgba(0,0,0,0.38);
  color: white;
  transform: translateY(-1px);
}

.ambient-toggle.needs-interaction {
  color: rgba(255,255,255,0.92);
  box-shadow: 0 0 0 0 rgba(255,255,255,0.34);
  animation: soundHint 1.8s ease-out infinite;
}

.ambient-toggle:focus-visible {
  outline: 2px solid rgba(255,255,255,0.75);
  outline-offset: 3px;
}

@keyframes soundHint {
  70% {
    box-shadow: 0 0 0 10px rgba(255,255,255,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0);
  }
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.92;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}




/* ──────────────────────────────────────────
   STATS
────────────────────────────────────────── */
.stats-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 60%; height: 200%;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  color: white;
  padding: 20px 10px;
}

.stat-item i {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-label {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 4px;
}

/* ──────────────────────────────────────────
   SECTION TITLES
────────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title .underline {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-mid);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ──────────────────────────────────────────
   ABOUT
────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 10px 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.about-badge i { color: var(--accent); font-size: 1rem; }

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.about-text p {
  color: var(--text-mid);
  margin-bottom: 14px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-mid);
}
.feature-item i { color: var(--primary); margin-top: 3px; flex-shrink: 0; }

/* ──────────────────────────────────────────
   TOURS FEED (estilo Instagram grid)
────────────────────────────────────────── */
.tours-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

.tour-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Imagen cuadrada estilo Instagram */
.tour-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.tour-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.tour-card:hover .tour-image img { transform: scale(1.04); }

/* Chips de tag arriba-derecha */
.tour-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.tour-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tour-content h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}
.tour-content p {
  color: var(--text-mid);
  font-size: 0.88rem;
  margin-bottom: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  flex: 1;
}

.tour-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tour-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-mid);
  background: var(--bg-gray);
  padding: 4px 10px;
  border-radius: 50px;
}
.tour-meta-item i { color: var(--primary); font-size: 0.72rem; }

@media (max-width: 767px) {
  .ambient-toggle {
    bottom: 88px;
  }

  .tour-price-prefix { display: none; }
}

/* Swiper solo se usa en Testimonios */
.swiper-pagination-bullet-active { background: var(--primary) !important; }

/* ──────────────────────────────────────────
   TESTIMONIALS
────────────────────────────────────────── */
.testimonials-section {
  background: var(--bg-light);
  padding-bottom: 60px;
}

.testimonials-slider { padding: 10px 0 50px; }

.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
  user-select: none;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-text::before { content: '"'; }
.testimonial-text::after  { content: '"'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}
.testimonial-location {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-top: 2px;
}

/* ──────────────────────────────────────────
   FAQ
────────────────────────────────────────── */
.faq-container { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }

.faq-question {
  padding: 20px 24px;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  color: var(--text-dark);
  transition: var(--transition);
}
.faq-item.active .faq-question { color: var(--primary); }

.faq-question i {
  font-size: 0.85rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.75;
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

/* ──────────────────────────────────────────
   CONTACT
────────────────────────────────────────── */
.contact-section { background: var(--bg-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item strong { display: block; font-weight: 700; margin-bottom: 2px; }
.contact-item p { color: var(--text-mid); font-size: 0.9rem; }

.contact-form {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.93rem;
  color: var(--text-dark);
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,103,65,0.12);
  background: white;
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 10px;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success { background: #e8f5e9; color: #2e7d32; }
.form-error   { background: #fdecea; color: #c62828; }

/* ──────────────────────────────────────────
   FLOATING WHATSAPP (desktop)
────────────────────────────────────────── */
.whatsapp-float {
  display: none;
  position: fixed;
  bottom: 30px; right: 30px;
  width: 58px; height: 58px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  font-size: 1.7rem;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37,211,102,0.55);
}

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
footer {
  background: #161f14;
  color: white;
  padding: 60px 0 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

footer h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}

footer p, footer li {
  font-size: 0.88rem;
  opacity: 0.72;
  margin-bottom: 8px;
}

footer a:hover { opacity: 1; color: var(--accent); }

footer i { margin-right: 8px; color: var(--accent); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  opacity: 1;
  transition: var(--transition);
}
.social-link i { margin: 0; color: white; }
.social-link:hover { background: var(--accent); transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.5;
}

@media (max-width: 380px) {
  .logo-text {
    font-size: 0.9rem;
    letter-spacing: 0.3px;
  }
}

/* ──────────────────────────────────────────
   DESKTOP  (768px +)
────────────────────────────────────────── */
@media (min-width: 768px) {
  body { padding-bottom: 0; }

  .bottom-nav { display: none; }

  header {
    padding: 28px 0;
    max-height: 100px;
    overflow: visible;
  }
  header.scrolled {
    padding: 12px 0;
    max-height: 100px;
  }

  .nav-container { justify-content: space-between; }

  .logo-text img { height: 100px; }
  header.scrolled .logo-text img { height: 84px; }

  .nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
  }
  .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 1px;
  }
  .nav-link:hover::after { width: 100%; }
  header.scrolled .nav-link { color: var(--text-dark); }

  .hero { height: 100vh; }
  .hero h1 { font-size: 5rem; }
  .hero p { font-size: 1.25rem; }
  .hero-btns { flex-direction: row; justify-content: center; }


  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-number { font-size: 3.5rem; }

  section { padding: 110px 0; }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .about-image img { height: 480px; }
  .about-text h3 { font-size: 1.8rem; }

  /* Tours feed: 2 columnas en tablet/desktop */
  .tours-feed {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .contact-grid { grid-template-columns: 1fr 1.3fr; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 16px; }

  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 40px; }
  footer { padding: 80px 0 40px; }

  .whatsapp-float { display: flex; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 6rem; }
  .section-title h2 { font-size: 2.4rem; }
}
