:root {
  --tour-ink: #15231c;
  --tour-muted: #5d6a62;
  --tour-paper: #f5f2eb;
  --tour-card: #fffdf8;
  --tour-green: #176b4b;
  --tour-green-dark: #0d4934;
  --tour-gold: #e0a93b;
  --tour-border: rgba(23, 107, 75, 0.16);
}

html {
  scroll-behavior: smooth;
}

body.tour-guide {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 24%, rgba(224, 169, 59, 0.1), transparent 24rem),
    radial-gradient(circle at 94% 48%, rgba(23, 107, 75, 0.08), transparent 30rem),
    var(--tour-paper);
  color: var(--tour-ink);
  line-height: 1.75;
}

.guide-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 28, 20, 0.9) !important;
  color: #fff;
  backdrop-filter: blur(18px);
}

.guide-nav a {
  color: rgba(255, 255, 255, 0.86) !important;
}

.guide-nav a:hover,
.guide-nav a:focus-visible {
  color: #f3c567 !important;
}

.guide-nav .guide-brand {
  color: #fff !important;
  letter-spacing: -0.035em;
}

.guide-nav .guide-crumb {
  color: rgba(255, 255, 255, 0.62);
}

.tour-hero {
  position: relative;
  display: flex;
  min-height: 650px;
  align-items: flex-end;
  overflow: hidden;
  padding: 10rem 0 6.5rem;
  background:
    linear-gradient(90deg, rgba(5, 22, 15, 0.94) 0%, rgba(5, 22, 15, 0.74) 46%, rgba(5, 22, 15, 0.18) 78%),
    linear-gradient(0deg, rgba(5, 22, 15, 0.72), transparent 55%),
    url("/images/atardecerroquenublo.jpg") center 54% / cover;
  isolation: isolate;
}

.tour-hero::after {
  position: absolute;
  z-index: -1;
  right: -8rem;
  bottom: -13rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(255, 255, 255, 0.025),
    0 0 0 8rem rgba(255, 255, 255, 0.018);
  content: "";
}

.tour-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px !important;
}

.tour-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: rgba(8, 39, 27, 0.52);
  color: #f6ce7a;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.tour-hero h1 {
  max-width: 930px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 5.5vw, 5.35rem) !important;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.tour-hero .hero-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.65;
}

.tour-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tour-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
  background: rgba(4, 26, 17, 0.56);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.guide-main {
  position: relative;
  max-width: 1180px !important;
  padding-top: 0 !important;
  padding-bottom: 5rem !important;
}

.quick-facts {
  position: relative;
  z-index: 3;
  margin: -3.75rem 0 4.5rem !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 1.4rem !important;
  padding: 1.6rem !important;
  background: rgba(255, 253, 248, 0.96) !important;
  box-shadow: 0 24px 65px rgba(18, 45, 31, 0.16);
  backdrop-filter: blur(18px);
}

.quick-facts h2 {
  margin: 0 0 1rem !important;
  color: var(--tour-green-dark);
  font-size: 1.35rem !important;
}

.quick-facts ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.quick-facts ul > :not([hidden]) ~ :not([hidden]),
.route-stops > :not([hidden]) ~ :not([hidden]),
.feature-list > :not([hidden]) ~ :not([hidden]),
.planning-links > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0 !important;
}

.quick-facts li {
  min-height: 112px;
  border: 1px solid var(--tour-border);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(145deg, #fff, #f4f8f4);
  color: var(--tour-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.quick-facts li strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--tour-ink);
  font-size: 0.78rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.quick-facts > p {
  margin: 1rem 0 0;
  color: var(--tour-muted) !important;
  text-align: right;
}

.guide-main > h2 {
  max-width: 900px;
  margin: 5.5rem auto 1.35rem !important;
  color: var(--tour-ink);
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.guide-main > h2::before {
  display: block;
  width: 3.3rem;
  height: 0.28rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tour-gold), var(--tour-green));
  content: "";
}

.guide-main > h3,
.guide-main > p,
.guide-main > ul:not(.route-stops):not(.feature-list):not(.planning-links) {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.guide-main > p {
  color: #35463c;
  font-size: 1.01rem;
}

.guide-main a {
  color: var(--tour-green);
  text-decoration-color: rgba(23, 107, 75, 0.36);
  text-underline-offset: 0.18em;
}

.route-stops {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 2rem 0 2.25rem;
  padding: 0 !important;
  list-style: none !important;
  counter-reset: route-stop;
}

.route-stops li {
  position: relative;
  display: flex;
  min-height: 285px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 1.2rem;
  padding: 1.2rem;
  background-position: center;
  background-size: cover;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.83rem;
  line-height: 1.55;
  isolation: isolate;
  box-shadow: 0 14px 35px rgba(17, 38, 26, 0.14);
  counter-increment: route-stop;
}

.route-stops li::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 22, 15, 0.04) 12%, rgba(5, 22, 15, 0.92) 100%);
  content: "";
}

.route-stops li::after {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(5, 22, 15, 0.5);
  color: #fff;
  content: counter(route-stop, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.route-stops li:nth-child(1) {
  background-image: url("/images/bandama-crater-panorama-768.webp");
}

.route-stops li:nth-child(2) {
  background-image: url("/images/teror.jpg");
}

.route-stops li:nth-child(3) {
  background-image: url("/images/AmanecerRoqueNublo.jpg");
}

.route-stops li:nth-child(4) {
  background-image: url("/images/stargazing-pico-nieves.webp");
}

.route-stops li:nth-child(5) {
  background-image: url("/images/Guayadeque1.jpg");
}

.route-stops strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 1.32rem;
  line-height: 1.12;
}

.route-stops a {
  color: #fff !important;
}

.comparison-wrap {
  overflow: hidden;
  margin: 2rem 0 1rem;
  border: 1px solid var(--tour-border);
  border-radius: 1.25rem;
  background: var(--tour-card);
  box-shadow: 0 18px 45px rgba(18, 45, 31, 0.1);
}

.comparison-table {
  width: 100%;
}

.comparison-table thead {
  background: var(--tour-green-dark) !important;
  color: #fff;
}

.comparison-table th {
  border: 0 !important;
  padding: 1.05rem !important;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-table td {
  border-color: rgba(23, 107, 75, 0.1) !important;
  padding: 1rem !important;
  vertical-align: top;
}

.comparison-table tbody tr:nth-child(even) {
  background: #f2f6f2;
}

.comparison-table tbody tr:hover {
  background: #e8f2eb;
}

.comparison-table caption {
  padding: 0.9rem 1rem !important;
  background: #edf3ee;
}

.feature-list {
  display: grid;
  max-width: 900px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.25rem auto 2.5rem;
  padding: 0 !important;
  list-style: none !important;
}

.feature-list li {
  border: 1px solid var(--tour-border);
  border-radius: 1rem;
  padding: 1.05rem 1.1rem 1.05rem 3rem;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 25px rgba(18, 45, 31, 0.06);
}

.feature-list li::before {
  float: left;
  margin-left: -1.95rem;
  color: var(--tour-gold);
  content: "◆";
  font-size: 0.82rem;
}

.booking-intro {
  max-width: 900px !important;
}

.booking-grid {
  display: grid;
  max-width: 900px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.6rem auto 1rem;
}

.booking-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 0 !important;
  border-radius: 1.25rem !important;
  padding: 1.6rem !important;
  background:
    radial-gradient(circle at 95% 5%, rgba(243, 197, 103, 0.25), transparent 10rem),
    linear-gradient(145deg, #124e39, #0b3024);
  color: #fff !important;
  box-shadow: 0 18px 40px rgba(16, 63, 45, 0.2);
}

.booking-card::after {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  color: #f3c567;
  content: "↗";
  font-size: 2rem;
}

.booking-card span {
  max-width: 82%;
  color: rgba(255, 255, 255, 0.7) !important;
}

.booking-card span:first-child {
  color: #fff !important;
  font-family: "Playfair Display", serif;
  font-size: 1.55rem !important;
}

.booking-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 55px rgba(16, 63, 45, 0.27);
}

.affiliate-note {
  max-width: 900px;
  margin: 0 auto !important;
  border-left: 3px solid var(--tour-gold);
  padding: 0.75rem 1rem;
  background: rgba(255, 253, 248, 0.75);
}

.faq-list {
  display: grid;
  max-width: 900px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 auto 4rem !important;
}

.faq-list > div {
  border: 1px solid var(--tour-border);
  border-radius: 1.1rem;
  padding: 1.25rem;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 28px rgba(18, 45, 31, 0.07);
}

.faq-list h3 {
  color: var(--tour-green-dark);
  font-size: 1.18rem !important;
}

.planning-links {
  display: grid;
  max-width: 900px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 auto 3rem;
  padding: 0 !important;
  list-style: none !important;
}

.planning-links a {
  display: block;
  border: 1px solid var(--tour-border);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  background: #fffdf8;
  font-weight: 600;
  text-decoration: none;
}

.planning-links a:hover {
  border-color: var(--tour-green);
  transform: translateX(3px);
}

.tour-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: #071c14 !important;
}

@media (max-width: 1023px) {
  .quick-facts ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-facts li:last-child {
    grid-column: 1 / -1;
  }

  .route-stops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-stops li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .guide-nav .guide-crumb {
    display: none;
  }

  .tour-hero {
    min-height: 590px;
    padding: 8.5rem 0 4.5rem;
    background-position: 63% center;
  }

  .tour-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.6rem) !important;
  }

  .tour-meta {
    gap: 0.45rem;
  }

  .tour-meta span {
    font-size: 0.72rem;
  }

  .guide-main {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }

  .quick-facts {
    margin-top: -2rem !important;
    padding: 1rem !important;
  }

  .quick-facts ul,
  .route-stops,
  .feature-list,
  .booking-grid,
  .faq-list,
  .planning-links {
    grid-template-columns: 1fr;
  }

  .quick-facts li:last-child,
  .route-stops li:last-child {
    grid-column: auto;
  }

  .quick-facts > p {
    text-align: left;
  }

  .route-stops li {
    min-height: 250px;
  }

  .comparison-wrap {
    overflow-x: auto;
  }

  .comparison-table {
    min-width: 760px;
  }

  .guide-main > h2 {
    margin-top: 4rem !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .booking-card,
  .planning-links a,
  .route-stops li {
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease,
      border-color 0.25s ease;
  }

  .route-stops li:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(17, 38, 26, 0.22);
  }
}
