/* -------------------------------------------------------------
   EL CANTO DEL DIOS TÉ DE - CSS DESIGN SYSTEM & EDITORIAL STYLES
   ------------------------------------------------------------- */

/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--cloud-mist);
  color: var(--deep-black);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Design Tokens & Theme Variables */
:root {
  /* Color Palette */
  --primary-green: #507F49;
  --dark-jungle: #233B2A;
  --soft-moss: #8EB07A;
  --cloud-mist: #F5F6F2;
  --toucan-yellow: #F4D400;
  --branch-brown: #8B5A2B;
  --deep-black: #161616;
  --white: #ffffff;

  /* Glass Effects */
  --glass-bg: rgba(245, 246, 242, 0.45);
  --glass-bg-dark: rgba(35, 59, 42, 0.45);
  --glass-border: rgba(80, 127, 73, 0.12);
  --glass-border-dark: rgba(142, 176, 122, 0.15);

  /* Typography Scale */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', 'Manrope', -apple-system, sans-serif;

  /* Layout Sizing */
  --header-height: 90px;
  --container-max-width: 1300px;
  --section-padding: clamp(6rem, 10vw, 12rem);

  /* Animation Timing */
  --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-delay-step: 0.15s;
}

/* Base Body Style */
body {
  font-family: var(--font-sans);
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  background-color: var(--cloud-mist);
  color: var(--deep-black);
  overflow-x: hidden;
}

/* Global Typography Elements */
h1,
h2,
h3,
h4,
.serif-text {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  color: var(--dark-jungle);
}

h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
}

p {
  color: rgba(22, 22, 22, 0.7);
  font-size: clamp(1.05rem, 1.15vw, 1.25rem);
  margin-bottom: 1.5rem;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 4rem;
}

section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

/* Editorial Spacing Tag */
.editorial-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* Buttons System */
.btn {
  padding: 1.1rem 2.5rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--cloud-mist);
  border: 1px solid var(--primary-green);
}

.btn-primary:hover {
  background-color: var(--white);
  color: var(--dark-jungle);
  border-color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(35, 59, 42, 0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--cloud-mist);
  border: 1px solid rgba(245, 246, 242, 0.4);
}

.btn-secondary:hover {
  background-color: rgba(245, 246, 242, 0.1);
  border-color: var(--cloud-mist);
  transform: translateY(-4px);
}

/* Header & Floating Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

header.scrolled {
  background-color: rgba(245, 246, 242, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  height: 80px;
}

/* Header container: wider than page content, grid for independent brand + nav columns */
.header-container {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  align-items: center;
  height: 100%;
  width: min(100% - 5rem, 1700px);
  margin-inline: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

/* Full horizontal brand lockup PNG — never stretch, never crop */
.nav-brand-logo {
  display: block;
  height: 68px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  /* Smooth premium transition between hero and scrolled states */
  transition:
    height 450ms cubic-bezier(0.16, 1, 0.3, 1),
    width 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled state: shrink to compact size */
#main-header.scrolled .nav-brand-logo {
  height: 50px;
}

nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dark-jungle);
  opacity: 0.75;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  opacity: 1;
  color: var(--primary-green);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lang-selector {
  display: flex;
  gap: 0.5rem;
  border: 1px solid rgba(80, 127, 73, 0.2);
  padding: 3px;
  border-radius: 30px;
  background-color: rgba(245, 246, 242, 0.5);
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  color: var(--dark-jungle);
}

.lang-btn.active {
  background-color: var(--primary-green);
  color: var(--cloud-mist) !important;
}

.nav-cta {
  background-color: var(--primary-green);
  color: var(--cloud-mist);
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  background-color: var(--dark-jungle);
  transform: translateY(-2px);
}

/* Header dynamic color adjustment on scroll */
header.scrolled .logo-text,
header.scrolled .nav-link,
header.scrolled .lang-btn:not(.active) {
  color: var(--dark-jungle);
}

/* Ambient Header adjustments for dark backgrounds if necessary */
.hero-active header:not(.scrolled) .nav-link,
.hero-active header:not(.scrolled) .logo-text,
.hero-active header:not(.scrolled) .lang-btn:not(.active) {
  color: var(--cloud-mist);
}

.hero-active header:not(.scrolled) .lang-selector {
  border-color: rgba(245, 246, 242, 0.2);
  background-color: rgba(22, 22, 22, 0.2);
}

/* Hamburger toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--dark-jungle);
  margin: 6px 0;
  transition: var(--transition-fast);
}

.hero-active header:not(.scrolled) .menu-toggle span {
  background-color: var(--cloud-mist);
}

/* 100vh Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--deep-black);
  overflow: hidden;
  color: var(--cloud-mist);
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: brightness(0.55);
  transition: transform 12s cubic-bezier(0.16, 1, 0.3, 1);
}

.fog-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(245, 246, 242, 0.05) 0%, rgba(22, 22, 22, 0.5) 100%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 2s ease-out;
}

.fog-mist {
  position: absolute;
  width: 200%;
  height: 100%;
  background-image: radial-gradient(ellipse at 50% 50%, rgba(245, 246, 242, 0.15) 0%, transparent 60%);
  opacity: 0.4;
  filter: blur(50px);
  animation: floatMist 50s linear infinite;
  z-index: 3;
}

.fog-mist-2 {
  position: absolute;
  width: 200%;
  height: 100%;
  background-image: radial-gradient(ellipse at 40% 60%, rgba(245, 246, 242, 0.1) 0%, transparent 60%);
  opacity: 0.3;
  filter: blur(60px);
  animation: floatMistOpposite 70s linear infinite;
  z-index: 3;
}

.light-rays {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 150%;
  height: 150%;
  background: repeating-linear-gradient(55deg,
      rgba(244, 212, 0, 0.02) 0px,
      rgba(244, 212, 0, 0.02) 50px,
      transparent 100px,
      transparent 200px);
  filter: blur(25px);
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 950px;
  padding: 0 2rem;
  margin-top: calc(var(--header-height) / 2);
}

.hero-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--soft-moss);
  font-weight: 600;
  margin-bottom: 2rem;
  display: block;
}

.hero-title {
  margin-bottom: 2.5rem;
  color: var(--cloud-mist);
}

.hero-title span {
  display: block;
}

.hero-title .highlight-text {
  display: inline;
  color: var(--toucan-yellow);
  font-style: italic;
}

.hero-desc {
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  font-family: var(--font-serif);
  color: rgba(245, 246, 242, 0.85);
  margin-bottom: 4rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

/* Ambient Audio widget on Hero */
.audio-card-wrapper {
  position: absolute;
  bottom: 4rem;
  left: 4rem;
  z-index: 10;
  max-width: 330px;
}

.audio-card {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border-dark);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-smooth);
}

.audio-card:hover {
  background: rgba(35, 59, 42, 0.6);
  border-color: rgba(142, 176, 122, 0.3);
}

.play-btn-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--primary-green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.play-btn-circle svg {
  width: 18px;
  height: 18px;
  fill: var(--cloud-mist);
  transition: var(--transition-fast);
}

.play-btn-circle:hover {
  background-color: var(--toucan-yellow);
}

.play-btn-circle:hover svg {
  fill: var(--deep-black);
}

.audio-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.audio-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cloud-mist);
}

.audio-subtitle {
  font-size: 0.7rem;
  color: var(--soft-moss);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.soundwaves-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
  margin-top: 4px;
}

.soundwave-bar {
  width: 2px;
  height: 3px;
  background-color: var(--soft-moss);
  border-radius: 1px;
}

.audio-card.playing .soundwave-bar {
  animation: soundwavePulse 1.2s ease infinite alternate;
}

.audio-card.playing .soundwave-bar:nth-child(2) {
  animation-delay: 0.15s;
}

.audio-card.playing .soundwave-bar:nth-child(3) {
  animation-delay: 0.3s;
}

.audio-card.playing .soundwave-bar:nth-child(4) {
  animation-delay: 0.45s;
}

.audio-card.playing .soundwave-bar:nth-child(5) {
  animation-delay: 0.6s;
}

.audio-card.playing .soundwave-bar:nth-child(6) {
  animation-delay: 0.2s;
}

.audio-card.playing .soundwave-bar:nth-child(7) {
  animation-delay: 0.35s;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  right: 4rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--cloud-mist);
  writing-mode: vertical-rl;
}

.scroll-line-track {
  width: 1px;
  height: 60px;
  background-color: rgba(245, 246, 242, 0.15);
  position: relative;
  overflow: hidden;
}

.scroll-line-fill {
  width: 1px;
  height: 20px;
  background-color: var(--toucan-yellow);
  position: absolute;
  top: 0;
  left: 0;
  animation: scrollPulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* SECTION 1: THE LEGEND */
.section-legend {
  position: relative;
  background-image: url('https://storage.googleapis.com/canto-del-dios-te-de/media_home/Mindo_Rectangular.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: clamp(140px, 12.5vw, 170px);
  padding-bottom: clamp(150px, 13.5vw, 180px);
  color: var(--deep-black);
}

.section-legend::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Soft elliptical readability overlay: calms map contours behind central text while preserving edge topography */
  background:
    radial-gradient(
      ellipse 68% 78% at 50% 50%,
      rgba(245, 246, 242, 0.93) 0%,
      rgba(245, 246, 242, 0.82) 40%,
      rgba(245, 246, 242, 0.28) 72%,
      rgba(245, 246, 242, 0) 95%
    ),
    rgba(245, 246, 242, 0.18);
  pointer-events: none;
  z-index: 1;
}

.section-legend .container {
  position: relative;
  z-index: 2;
}

.legend-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-legend .editorial-tag {
  text-align: center;
  margin-bottom: 1.5rem;
}

.legend-title {
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
  color: var(--dark-jungle);
}

.legend-body {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.legend-desc {
  font-size: clamp(1.1rem, 1.25vw, 1.25rem);
  line-height: 1.85;
  margin-bottom: 1.75rem;
  color: #3F453F; /* Dark warm charcoal for effortless legibility */
  text-align: center;
}

.legend-quote-wrapper {
  margin-top: 3.5rem;
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legend-quote-divider {
  width: 36px;
  height: 1px;
  background-color: var(--primary-green);
  opacity: 0.4;
  margin-bottom: 2.25rem;
}

.legend-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.35;
  color: #386133; /* Deep forest green for quote clarity */
  font-style: italic;
  text-align: center;
  border-left: none;
  padding-left: 0;
  margin: 0;
}

/* SECTION 2: MEET THE SINGER (Interactive Hotspots) */
.singer-section {
  background-color: #1a2c1f;
  /* Premium dark forest hue */
  color: var(--cloud-mist);
}

.singer-section h2 {
  color: var(--cloud-mist);
}

.singer-header {
  max-width: 800px;
  margin: 0 auto 6rem auto;
  text-align: center;
}

.singer-header p {
  color: rgba(245, 246, 242, 0.8);
}

.singer-interactive-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 6rem;
  align-items: center;
}

.singer-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.singer-image {
  width: 100%;
  display: block;
  filter: brightness(0.85);
  transition: var(--transition-smooth);
}

/* Hotspots core styling */
.hotspot {
  position: absolute;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
}

.hotspot-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--toucan-yellow);
  opacity: 0.5;
  animation: hotspotRipple 2s infinite ease-out;
}

.hotspot-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--toucan-yellow);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--toucan-yellow);
  transition: var(--transition-fast);
}

.hotspot:hover .hotspot-core {
  transform: translate(-50%, -50%) scale(1.4);
  background-color: var(--white);
  box-shadow: 0 0 20px var(--white);
}

/* Precision hotspot positions on portrait */
.hotspot-beak {
  top: 42%;
  left: 45%;
}

.hotspot-throat {
  top: 63%;
  left: 60%;
}

.hotspot-eye {
  top: 37%;
  left: 68%;
}

.hotspot-plumage {
  top: 70%;
  left: 75%;
}

.hotspot-habitat {
  top: 15%;
  left: 72%;
}

/* Hotspots detail cards layout */
.singer-details-side {
  background-color: var(--glass-bg-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: 12px;
  padding: 4rem 3.5rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.detail-card {
  display: none;
  animation: fadeInCard 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.detail-card.active {
  display: block;
}

.detail-icon {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--toucan-yellow);
  margin-bottom: 1.25rem;
  display: block;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--cloud-mist);
}

.detail-desc {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(245, 246, 242, 0.8) !important;
  margin-bottom: 0;
}

/* SECTION 3: THE CLOUD FOREST */
.cloud-forest-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 7rem auto;
}

.biodiversity-banner {
  background-color: rgba(80, 127, 73, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 0.8rem 2.2rem;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-green);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 9rem;
}

.stat-item {
  text-align: center;
  padding: 4rem 3rem;
  background-color: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: var(--transition-smooth);
  box-shadow: 0 15px 45px rgba(80, 127, 73, 0.03);
}

.stat-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary-green);
  box-shadow: 0 25px 60px rgba(80, 127, 73, 0.08);
}

.stat-icon-wrapper {
  margin-bottom: 2rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.stat-icon-wrapper svg {
  width: 54px;
  height: 54px;
  stroke: var(--primary-green);
  fill: none;
}

.stat-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-jungle);
}

.stat-desc-label {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.stat-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(22, 22, 22, 0.6);
  margin-bottom: 0;
}

/* Editorial layout cards */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
}

.editorial-card {
  background-color: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 15px 40px rgba(35, 59, 42, 0.02);
}

.editorial-card:hover {
  transform: translateY(-4px);
  border-color: var(--soft-moss);
}

.editorial-card-body {
  padding: 4rem;
}

.editorial-card-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-jungle);
}

.editorial-card-desc {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(22, 22, 22, 0.65);
  margin-bottom: 0;
}

/* SECTION 4: EXPERIENCES (Slider) */
.experiences {
  background-color: var(--dark-jungle);
  color: var(--cloud-mist);
}

.experiences h2 {
  color: var(--cloud-mist);
}

.experiences-header {
  margin-bottom: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.experiences-header-text {
  max-width: 650px;
}

.experiences-header p {
  color: rgba(245, 246, 242, 0.75);
}

.experiences-scroll-indicators {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.scroll-btn {
  background: none;
  border: 1px solid rgba(245, 246, 242, 0.18);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cloud-mist);
  transition: var(--transition-fast);
}

.scroll-btn:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.scroll-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.experience-slider-wrapper {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  display: flex;
  gap: 2.25rem;
  padding-bottom: 3rem;
  margin-right: -4rem;
  padding-right: 4rem;
}

.experience-slider-wrapper::-webkit-scrollbar {
  display: none;
}

.experience-card {
  flex: 0 0 clamp(360px, 31vw, 440px);
  width: clamp(360px, 31vw, 440px);
  min-width: clamp(360px, 31vw, 440px);
  scroll-snap-align: start;
  background-color: rgba(35, 59, 42, 0.45);
  border: 1px solid var(--glass-border-dark);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.experience-card:hover {
  transform: translateY(-8px);
  border-color: var(--soft-moss);
}

.experience-img-container {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.experience-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-card:hover .experience-img {
  transform: scale(1.06);
}

.experience-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(35, 59, 42, 0.6));
}

.experience-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.experience-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--soft-moss);
  margin-bottom: 1.25rem;
}

.experience-card-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  margin-bottom: 1.25rem;
  color: var(--cloud-mist);
}

.experience-card-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(245, 246, 242, 0.8) !important;
  margin-bottom: 0;
}

/* SECTION 5: WHY CONSERVATION MATTERS */
.conservation-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 7rem;
  align-items: center;
}

.conservation-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
}

.cons-point-card {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(80, 127, 73, 0.12);
}

.cons-point-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
  display: block;
}

.cons-point-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-jungle);
  margin-bottom: 1rem;
}

.cons-point-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(22, 22, 22, 0.65);
  margin-bottom: 0;
}

/* SECTION 6: FUTURE ECOLODGE */
.lodge-section {
  background-color: var(--dark-jungle);
  color: var(--cloud-mist);
}

.lodge-section h2 {
  color: var(--cloud-mist);
}

.lodge-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 7rem;
  align-items: center;
}

.lodge-tag {
  color: var(--toucan-yellow);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
  display: inline-block;
  border: 1px solid rgba(244, 212, 0, 0.35);
  padding: 0.4rem 1.25rem;
  border-radius: 30px;
}

.lodge-title {
  margin-bottom: 2.5rem;
}

.lodge-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: rgba(245, 246, 242, 0.8) !important;
}

.lodge-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lodge-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  font-size: 1.05rem;
}

.lodge-details-list svg {
  width: 22px;
  height: 22px;
  stroke: var(--soft-moss);
  margin-top: 3px;
  flex-shrink: 0;
}

.lodge-image-side {
  position: relative;
}

.lodge-render {
  width: 100%;
  display: block;
  transition: transform 1.8s ease;
}

.lodge-image-side:hover .lodge-render {
  transform: scale(1.04);
}

/* SECTION 7: MARCELO ARIAS FIELD ARCHIVE */
.gallery-section {
  padding: 8rem 0;
  background-color: var(--cloud-mist);
  color: var(--deep-black);
  border-top: 1px solid rgba(80, 127, 73, 0.08);
}

.gallery-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 5rem auto;
}

.gallery-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--dark-jungle);
  margin-top: 0.8rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.gallery-intro-text {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--deep-black);
  opacity: 0.8;
  margin-bottom: 2rem;
  font-weight: 300;
}

.gallery-photographer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-photographer-credit .credit-line {
  height: 1px;
  width: 50px;
  background: rgba(80, 127, 73, 0.25);
}

.gallery-photographer-credit .credit-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-green);
  font-weight: 600;
}

/* Masonry Grid Layout */
.masonry-gallery {
  column-count: 3;
  column-gap: 2.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(35, 59, 42, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  background-color: rgba(35, 59, 42, 0.04);
  border: 1px solid rgba(80, 127, 73, 0.12);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(35, 59, 42, 0.18);
  border-color: rgba(80, 127, 73, 0.3);
}

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.025);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.2rem 1.8rem 1.8rem 1.8rem;
  background: linear-gradient(to top, rgba(16, 22, 18, 0.95) 0%, rgba(16, 22, 18, 0.7) 65%, transparent 100%);
  color: var(--cloud-mist);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e5b95a;
  background: rgba(229, 185, 90, 0.15);
  border: 1px solid rgba(229, 185, 90, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.2rem;
  color: var(--cloud-mist);
}

.gallery-scientific {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: rgba(245, 246, 242, 0.8);
  margin-bottom: 0.75rem;
  display: block;
}

.gallery-scientific em {
  font-style: italic;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  color: var(--soft-moss);
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(142, 176, 122, 0.25);
  padding-top: 0.6rem;
  margin-top: 0.2rem;
}

.gallery-observer {
  font-weight: 500;
  opacity: 0.9;
}

/* Digiscoping Story & External Archive CTA Area */
.gallery-footer-archive {
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(80, 127, 73, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.digiscoping-note {
  max-width: 620px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(80, 127, 73, 0.05);
  border: 1px solid rgba(80, 127, 73, 0.18);
  padding: 1.2rem 1.8rem;
  border-radius: 8px;
}

.digiscoping-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  color: var(--primary-green);
}

.digiscoping-note p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--dark-jungle);
  opacity: 0.85;
  margin: 0;
  text-align: left;
}

.archive-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.archive-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2.2rem;
  border: 1px solid var(--dark-jungle);
  border-radius: 4px;
  color: var(--dark-jungle);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.archive-cta-button:hover {
  background: var(--dark-jungle);
  color: var(--cloud-mist);
  box-shadow: 0 10px 30px rgba(35, 59, 42, 0.18);
  transform: translateY(-2px);
}

.archive-cta-subtext {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--dark-jungle);
  opacity: 0.65;
  letter-spacing: 0.04em;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 18, 14, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-container {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content {
  max-width: 85vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
  animation: zoomInLightbox 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-caption {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--cloud-mist, #f4f6f0);
  max-width: 650px;
}

.lightbox-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e5b95a;
  margin-bottom: 0.4rem;
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0.2rem 0;
  color: var(--cloud-mist, #f4f6f0);
}

.lightbox-scientific {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(244, 246, 240, 0.75);
  margin-bottom: 0.5rem;
}

.lightbox-meta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--soft-moss, #8eb07a);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: var(--cloud-mist, #f4f6f0);
  font-size: 40px;
  line-height: 1;
  font-weight: 300;
  transition: color 0.2s ease;
  cursor: pointer;
  z-index: 3010;
}

.lightbox-close:hover {
  color: var(--soft-moss, #8eb07a);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(142, 176, 122, 0.12);
  border: 1px solid rgba(142, 176, 122, 0.25);
  color: var(--cloud-mist, #f4f6f0);
  font-size: 36px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 3010;
}

.lightbox-nav:hover {
  background: var(--soft-moss, #8eb07a);
  color: #121b14;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* Mobile adjustments for Field Archive */
@media (max-width: 992px) {
  .masonry-gallery {
    column-count: 2;
    column-gap: 1.8rem;
  }
}

@media (max-width: 640px) {
  .masonry-gallery {
    column-count: 1;
  }

  .gallery-caption {
    opacity: 1;
    background: linear-gradient(to top, rgba(10, 16, 12, 0.92) 0%, rgba(10, 16, 12, 0.4) 80%, transparent 100%);
  }

  .digiscoping-note {
    flex-direction: column;
    text-align: center;
  }

  .digiscoping-note p {
    text-align: center;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* SECTION 8: VISIT & CONTACT */
.visit-section {
  padding: 7.5rem 0 6rem 0;
  background-color: var(--cloud-mist);
  border-top: 1px solid rgba(80, 127, 73, 0.08);
}

/* Level 1: Two-column grid (Visit Info + Reservation Card) */
.visit-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5.5rem;
  align-items: start;
  margin-bottom: 5rem;
}

.visit-info-side h2 {
  color: var(--dark-jungle);
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
  margin-top: 4rem;
}

.visit-detail-item {
  display: flex;
  gap: 1.8rem;
}

.visit-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(80, 127, 73, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  flex-shrink: 0;
}

.visit-icon-circle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.visit-item-text h3 {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--dark-jungle);
  margin-bottom: 0.4rem;
}

.visit-item-text p {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(22, 22, 22, 0.72);
}

/* WhatsApp reservation card (Level 1 Right Column) */
.reservation-card {
  background-color: var(--dark-jungle);
  color: var(--cloud-mist);
  padding: 3.8rem 3.2rem;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(35, 59, 42, 0.15);
  display: flex;
  flex-direction: column;
  height: fit-content;
  align-self: start;
}

.reservation-card h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
  color: var(--cloud-mist);
  line-height: 1.2;
}

.reservation-card p {
  color: rgba(245, 246, 242, 0.82);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 2.2rem;
}

/* Level 2: Full-Width Google Maps Location Module */
.visit-map-block {
  width: 100%;
  padding-top: 4rem;
  border-top: 1px solid rgba(80, 127, 73, 0.12);
}

.visit-map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.visit-map-titles {
  flex: 1;
  min-width: 280px;
}

.visit-map-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-green);
  margin-bottom: 0.3rem;
}

.visit-map-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--dark-jungle);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.visit-map-microcopy {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--deep-black);
  opacity: 0.75;
  margin: 0;
  max-width: 680px;
}

.visit-map-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  min-height: 46px;
  background: transparent;
  border: 1px solid var(--dark-jungle);
  border-radius: 4px;
  color: var(--dark-jungle);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.visit-map-cta:hover {
  background: var(--dark-jungle);
  color: var(--cloud-mist);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(35, 59, 42, 0.15);
}

.visit-map-frame {
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(80, 127, 73, 0.15);
  box-shadow: 0 15px 40px rgba(35, 59, 42, 0.08);
  background-color: rgba(80, 127, 73, 0.04);
}

.visit-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.whatsapp-cta {
  background-color: var(--primary-green);
  color: var(--cloud-mist);
  border: 1px solid var(--primary-green);
  width: 100%;
}

.whatsapp-cta:hover {
  background-color: var(--toucan-yellow);
  color: var(--deep-black);
  border-color: var(--toucan-yellow);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(244, 212, 0, 0.2);
}

.whatsapp-cta svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.reservation-notice {
  margin-top: 2rem;
  font-size: 0.75rem !important;
  color: rgba(245, 246, 242, 0.45) !important;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* SECTION 9: CALL TO ACTION (Pre-Footer) */
.final-cta {
  height: 80vh;
  min-height: 600px;
  background-color: var(--dark-jungle);
  color: var(--cloud-mist);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
  transform: scale(1.02);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 0 2rem;
}

.cta-title {
  margin-bottom: 2.5rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--cloud-mist);
}

.cta-title span {
  display: block;
}

.cta-title span:last-child {
  color: var(--toucan-yellow);
  font-style: italic;
}

.cta-desc {
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-family: var(--font-serif);
  color: rgba(245, 246, 242, 0.85);
  margin-bottom: 3.5rem;
}

/* Footer Section */
footer {
  background-color: #1a271e;
  /* Deep dark green */
  color: rgba(245, 246, 242, 0.6);
  padding: 7rem 0 4rem 0;
  font-size: 0.95rem;
  border-top: 1px solid rgba(142, 176, 122, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 6rem;
  margin-bottom: 5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer-brand-logo {
  width: clamp(240px, 20vw, 290px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.footer-brand-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.footer-contact-link {
  color: rgba(245, 246, 242, 0.85);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-contact-link:hover {
  color: var(--toucan-yellow);
}

.footer-links-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--soft-moss);
  font-weight: 700;
  margin-bottom: 2rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-list a {
  color: rgba(245, 246, 242, 0.8);
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--toucan-yellow);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-contact-info p {
  margin-bottom: 0;
  color: rgba(245, 246, 242, 0.8);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-contact-info svg {
  width: 20px;
  height: 20px;
  stroke: var(--soft-moss);
  fill: none;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 246, 242, 0.08);
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.footer-credit {
  font-size: 0.78rem;
  color: rgba(245, 246, 242, 0.55);
}

.footer-credit a {
  color: rgba(245, 246, 242, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition-fast);
}

.footer-credit a:hover {
  color: var(--toucan-yellow);
}

.footer-socials {
  display: flex;
  gap: 2rem;
}

.footer-social-link {
  color: rgba(245, 246, 242, 0.6);
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--toucan-yellow);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Animations Keyframes */
@keyframes floatMist {
  0% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(-10%) translateY(4%);
  }

  100% {
    transform: translateX(0) translateY(0);
  }
}

@keyframes floatMistOpposite {
  0% {
    transform: translateX(-5%) translateY(0);
  }

  50% {
    transform: translateX(4%) translateY(-4%);
  }

  100% {
    transform: translateX(-5%) translateY(0);
  }
}

@keyframes scrollPulse {
  0% {
    top: -30%;
    opacity: 0;
  }

  30% {
    top: 0;
    opacity: 1;
  }

  60% {
    top: 100%;
    opacity: 0;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes hotspotRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomInLightbox {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes soundwavePulse {
  0% {
    height: 3px;
  }

  100% {
    height: 14px;
  }
}

/* Intersection Observer transitions */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints & Desktop-first overrides */
@media (max-width: 1200px) {

  .legend-grid,
  .singer-interactive-container,
  .lodge-grid,
  .visit-grid {
    gap: 4rem;
  }

  .container {
    padding: 0 3rem;
  }
}

@media (max-width: 992px) {
  :root {
    --header-height: 80px;
  }

  header {
    background-color: var(--cloud-mist);
    border-bottom: 1px solid var(--glass-border);
  }

  .hero-active header:not(.scrolled) {
    background-color: transparent;
    border-color: transparent;
  }

  /* Tablet: revert to flex (hamburger layout, nav is overlay) */
  .header-container {
    display: flex;
    justify-content: space-between;
    width: min(100% - 3rem, 1700px);
  }

  /* Tablet logo — slightly smaller in both states */
  .nav-brand-logo {
    height: 46px;
    width: auto;
  }

  #main-header.scrolled .nav-brand-logo {
    height: 40px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--cloud-mist);
    flex-direction: column;
    padding: 4rem 3rem;
    gap: 2.5rem;
    align-items: flex-start;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    z-index: 999;
    border-top: 1px solid var(--glass-border);
  }

  .hero-active header:not(.scrolled) nav {
    background-color: var(--dark-jungle);
    border-top-color: var(--glass-border-dark);
  }

  nav.active {
    transform: translateX(0);
  }

  .nav-controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(80, 127, 73, 0.15);
    padding-top: 3rem;
  }

  .hero-active header:not(.scrolled) .nav-controls {
    border-top-color: rgba(245, 246, 242, 0.15);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .singer-interactive-container,
  .lodge-grid,
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .reservation-card {
    position: static;
    top: auto;
    align-self: stretch;
    padding: 3.2rem 2.2rem;
  }

  .singer-interactive-container {
    display: flex;
    flex-direction: column-reverse;
  }

  .singer-details-side {
    min-height: auto;
    width: 100%;
    padding: 2.5rem 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .conservation-grid {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 0;
  }

  .singer-section {
    padding: 3.5rem 0 2rem 0;
  }

  .singer-header {
    margin: 0 auto 2.5rem auto;
  }

  .gallery-section {
    padding: 3rem 0;
  }

  .lodge-section {
    padding: 3.5rem 0 2rem 0;
  }

  .visit-section {
    padding: 3rem 0 3.5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .section-legend {
    padding-top: 5rem;
    padding-bottom: 5.5rem;
  }

  .section-legend::before {
    background:
      radial-gradient(
        ellipse 92% 86% at 50% 50%,
        rgba(245, 246, 242, 0.95) 0%,
        rgba(245, 246, 242, 0.85) 50%,
        rgba(245, 246, 242, 0.35) 82%,
        rgba(245, 246, 242, 0.10) 100%
      ),
      rgba(245, 246, 242, 0.18);
  }

  /* ---- Mobile Experiences Slider ---- */
  .experiences-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    margin-bottom: 3.5rem;
  }

  .experience-slider-wrapper {
    gap: 1.25rem;
    margin-right: -1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 2rem;
  }

  .experience-card {
    flex: 0 0 calc(85vw - 1.5rem);
    width: calc(85vw - 1.5rem);
    min-width: calc(85vw - 1.5rem);
    border-radius: 12px;
  }

  .experience-img-container {
    height: 220px;
  }

  .experience-body {
    padding: 1.75rem 1.5rem;
  }

  .experience-card-title {
    font-size: 1.5rem;
  }

  /* ---- Mobile logo: width-driven for maximum brand presence ---- */
  .nav-brand-logo {
    width: clamp(190px, 58vw, 245px);
    height: auto;
    max-width: none;
  }

  /* Scrolled mobile: slightly compact but still prominent */
  #main-header.scrolled .nav-brand-logo {
    width: clamp(170px, 50vw, 210px);
    height: auto;
  }

  /* ---- MOBILE HERO — complete layout overhaul ---- */

  /*
   * Switch from centered-flex to column document-flow.
   * All child elements stack vertically in order:
   * eyebrow → headline → copy → CTAs → audio card
   * No absolute positioning needed for the content layer.
   */
  .hero {
    display: block;
    min-height: 100svh;
    height: auto;
    overflow: hidden;
  }

  /* Background layer: stays absolute within the hero section */
  .hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  /* Reanchor bg position for portrait screens */
  .hero-bg-image {
    object-position: 60% center;
  }

  /* Particle canvas stays within the hero */
  .particles-container {
    position: absolute;
    z-index: 2;
  }

  /*
   * Hero content: left-aligned column, starts below the navbar.
   * position: relative so z-index works above the fixed bg layers.
   */
  .hero-content {
    position: relative;
    z-index: 5;
    text-align: left;
    max-width: 100%;
    width: 100%;
    padding: 0 1.5rem;
    /* Push below navbar (80px) + intentional breathing room */
    padding-top: calc(var(--header-height, 80px) + 48px);
    margin-top: 0;
  }

  /* Eyebrow */
  .hero-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  /* Main headline — dramatic but controlled line breaks */
  .hero-title {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
    line-height: 0.95;
    margin-bottom: 1.75rem;
    letter-spacing: -0.025em;
  }

  /* "Dios Té De?" highlight stays inline, italic, yellow */
  .hero-title .highlight-text {
    display: inline;
  }

  /* Supporting paragraph — full mobile width, comfortable reading */
  .hero-desc {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2.25rem;
    line-height: 1.65;
    color: rgba(245, 246, 242, 0.88);
  }

  /* CTA buttons — stacked full-width column */
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 380px;
    margin: 0 0 2.5rem 0;
    /* left-aligned, not centered */
    align-items: stretch;
  }

  .btn {
    width: 100%;
    padding: 1rem 2rem;
  }

  /*
   * Audio card — remove absolute positioning entirely on mobile.
   * It becomes a static in-flow element BELOW the CTA buttons.
   * Wrapped by .audio-card-wrapper which itself is now static.
   */
  .audio-card-wrapper {
    position: relative;
    /* override: was absolute on desktop */
    bottom: auto;
    left: auto;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    padding: 0 1.5rem 3.5rem 1.5rem;
    box-sizing: border-box;
  }

  /* Override the .hero-content wrapper to also contain the audio card.
     We do this by placing the audio card wrapper INSIDE the hero section
     but OUTSIDE .hero-content, so we need it to appear naturally below.
     The wrapper is a sibling, so give it relative positioning and proper stacking. */

  .audio-card {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    padding: 1.1rem 1.25rem;
    gap: 1rem;
  }

  .play-btn-circle {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .audio-title {
    font-size: 0.88rem;
  }

  .audio-subtitle {
    font-size: 0.68rem;
  }

  /* Scroll indicator — hidden on mobile */
  .scroll-indicator {
    display: none;
  }

  /* Other mobile fixes */
  .masonry-gallery {
    column-count: 1;
  }

  /* Visit Map Mobile Responsiveness */
  .visit-map-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .visit-map-cta {
    width: 100%;
    justify-content: center;
  }

  .visit-map-frame {
    height: 250px;
    border-radius: 16px;
  }
}

/* ---- Very small phones (≤ 480px) ---- */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.4rem, 12.5vw, 3.2rem);
    line-height: 0.92;
  }

  .hero-content {
    padding-top: calc(var(--header-height, 80px) + 36px);
  }

  .hero-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .hero-desc {
    font-size: clamp(0.95rem, 4.2vw, 1.1rem);
    margin-bottom: 2rem;
  }

  .hero-buttons {
    max-width: 100%;
  }

  .audio-card-wrapper {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 3rem;
  }

  .nav-brand-logo {
    width: clamp(170px, 52vw, 200px);
    height: auto;
  }

  #main-header.scrolled .nav-brand-logo {
    width: clamp(155px, 46vw, 185px);
    height: auto;
  }
}

/* -------------------------------------------------------------
   SPECIES PAGE EDITORIAL STYLES
   ------------------------------------------------------------- */
.species-hero {
  padding-top: calc(var(--header-height, 90px) + 4rem);
  padding-bottom: 3.5rem;
  background-color: var(--cloud-mist);
  text-align: center;
  border-bottom: 1px solid rgba(80, 127, 73, 0.08);
}

.species-hero-content {
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.species-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 400;
  color: var(--dark-jungle);
  margin-top: 0.8rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.species-hero-desc {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--deep-black);
  opacity: 0.82;
  font-weight: 300;
}

/* Category Filter Pills */
.species-filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.species-filter-btn {
  padding: 0.65rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(80, 127, 73, 0.25);
  border-radius: 30px;
  background: transparent;
  color: var(--dark-jungle);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.species-filter-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  transform: translateY(-1px);
}

.species-filter-btn.active {
  background-color: var(--dark-jungle);
  color: var(--cloud-mist);
  border-color: var(--dark-jungle);
  box-shadow: 0 8px 20px rgba(35, 59, 42, 0.15);
}

/* Species Catalog Section & Responsive Grid */
.species-catalog-section {
  padding: 5rem 0 7rem 0;
  background-color: var(--cloud-mist);
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
}

/* Species Card Styling */
.species-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(80, 127, 73, 0.1);
  box-shadow: 0 12px 30px rgba(35, 59, 42, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.species-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(35, 59, 42, 0.12);
  border-color: rgba(80, 127, 73, 0.25);
}

.species-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: rgba(35, 59, 42, 0.05);
}

.species-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.species-card:hover .species-card-img {
  transform: scale(1.04);
}

.species-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #e5b95a;
  background: rgba(18, 24, 20, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  border: 1px solid rgba(229, 185, 90, 0.3);
}

.species-card-body {
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.species-card-cat {
  font-size: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-green);
  margin-bottom: 0.4rem;
}

.species-card-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--dark-jungle);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.species-card-scientific {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: rgba(22, 22, 22, 0.65);
  margin-bottom: 0.8rem;
  display: block;
}

.species-card-scientific em {
  font-style: italic;
}

.species-card-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(22, 22, 22, 0.75);
  margin-bottom: 1rem;
  font-weight: 300;
  flex: 1;
}

.species-card-credit {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--primary-green);
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-top: auto;
  border-top: 1px solid rgba(80, 127, 73, 0.1);
  padding-top: 0.6rem;
}

/* Empty State */
.species-empty-state {
  text-align: center;
  padding: 5rem 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--dark-jungle);
  opacity: 0.8;
}

/* Footer Archive Link Connection */
.species-footer-archive {
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(80, 127, 73, 0.12);
  text-align: center;
}

.species-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.2rem;
  border: 1px solid var(--dark-jungle);
  border-radius: 4px;
  color: var(--dark-jungle);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.species-archive-link:hover {
  background: var(--dark-jungle);
  color: var(--cloud-mist);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(35, 59, 42, 0.15);
}

/* Species Modal */
.species-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 18, 14, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.species-modal-container {
  background: #ffffff;
  border-radius: 16px;
  max-width: 820px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  position: relative;
}

.species-modal-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.species-modal-content {
  padding: 2.5rem;
  color: var(--deep-black);
}

.species-modal-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--dark-jungle);
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
}

.species-modal-scientific {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--primary-green);
  margin-bottom: 1.2rem;
}

.species-modal-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(22, 22, 22, 0.82);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.species-modal-credit {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--primary-green);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.species-modal-close {
  position: absolute;
  top: 25px;
  right: 35px;
  background: rgba(12, 18, 14, 0.6);
  border: none;
  color: #ffffff;
  font-size: 36px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3010;
  transition: all 0.2s ease;
}

.species-modal-close:hover {
  background: var(--dark-jungle);
  color: var(--toucan-yellow);
}

/* Species Responsive Breakpoints */
@media (max-width: 1200px) {
  .species-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
}

@media (max-width: 860px) {
  .species-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .species-filter-container {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.8rem;
    -webkit-overflow-scrolling: touch;
  }

  .species-filter-btn {
    flex-shrink: 0;
  }
}

@media (max-width: 580px) {
  .species-grid {
    grid-template-columns: 1fr;
  }

  .species-modal-content {
    padding: 1.8rem 1.4rem;
  }
}