/* ═══════════════════════════════════════════════
   IRÍRIA — Premium Eco-Tourism Design System
   ═══════════════════════════════════════════════ */

:root {
  --forest: #184f2f;
  --forest-2: #28723f;
  --forest-3: #0d2117;
  --moss: #5f9f45;
  --leaf: #8ed15d;
  --cream: #fff2d0;
  --cream-2: #fff8e6;
  --wood: #8a5a2e;
  --earth: #453223;
  --sun: #f4c84d;
  --orange: #e78a3c;
  --white: #fffdf7;
  --ink: #17241c;
  --muted: #5e6e64;
  --shadow: 0 22px 70px rgba(20, 39, 28, .16);
  --radius: 18px;
  --max: 1160px;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Reset ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

/* ─── Scroll progress ────────────────────────── */
.scroll-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, .12);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--moss), var(--sun));
  transition: width .1s linear;
}

/* ─── Accessibility ──────────────────────────── */
.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 200;
  width: auto;
  height: auto;
  clip: auto;
  left: 1rem;
  top: 1rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: var(--sun);
  color: var(--forest);
}

/* ─── Header ─────────────────────────────────── */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  color: var(--white);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease, color .35s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 250, 240, .88);
  color: var(--forest);
  box-shadow: 0 18px 48px rgba(19, 42, 31, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .44);
  backdrop-filter: blur(22px) saturate(1.2);
}

/* ─── Brand ──────────────────────────────────── */
.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  min-width: max-content;
}

.brand__name {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: .03em;
}

.brand__subtitle {
  margin-top: .2rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .78;
}

/* ─── Nav ────────────────────────────────────── */
.site-nav {
  display: none;
}

.site-nav__footer {
  display: none;
}

.site-nav a,
.footer__inner nav a {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: opacity .2s;
}

.site-nav a:hover {
  opacity: .7;
}

/* ─── Header actions ─────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  order: 2;
  margin-left: auto;
}

.header-actions .btn--compact {
  display: none;
}

.menu-toggle {
  order: 3;
}

/* ─── Language picker ────────────────────────── */
.language-picker {
  position: relative;
  z-index: 110;
}

.language-picker__button,
.language-picker__menu button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .16);
  color: inherit;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.language-picker__button {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 .74rem;
}

.site-header.is-scrolled .language-picker__button,
.site-header.is-open .language-picker__button {
  border-color: rgba(23, 56, 42, .14);
  background: rgba(255, 255, 255, .62);
}

.language-picker__menu {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  display: grid;
  min-width: 118px;
  padding: .35rem;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 16px;
  background: rgba(255, 250, 240, .92);
  color: var(--forest);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(24px);
}

.language-picker.is-open .language-picker__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-picker__menu button {
  justify-content: flex-start;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  padding: .45rem .55rem;
  background: transparent;
}

.language-picker__menu button[aria-selected="true"],
.language-picker__menu button:hover {
  background: rgba(23, 56, 42, .08);
}

/* ─── Menu toggle ────────────────────────────── */
.menu-toggle {
  z-index: 101;
  display: inline-grid;
  gap: .28rem;
  width: 44px;
  height: 44px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: inherit;
  cursor: pointer;
}

.site-header.is-scrolled .menu-toggle,
.site-header.is-open .menu-toggle {
  border-color: rgba(23, 56, 42, .2);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .85rem 1.4rem;
  font-weight: 800;
  font-size: .92rem;
  line-height: 1;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--sun);
  color: #243018;
  box-shadow: 0 16px 40px rgba(230, 199, 102, .32);
}

.btn--primary:hover {
  box-shadow: 0 22px 50px rgba(230, 199, 102, .42);
}

.btn--secondary {
  background: var(--forest);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .2);
}

.btn--compact {
  min-height: 42px;
  padding: .75rem 1rem;
  font-size: .88rem;
}

.btn--family {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  backdrop-filter: blur(16px);
  margin-top: 1.4rem;
}

.btn--family:hover {
  background: rgba(255, 255, 255, .2);
}

/* ─── Typography ─────────────────────────────── */
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: .96;
}

h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 12vw, 7.2rem);
  font-style: italic;
  letter-spacing: -.01em;
}

h2 {
  margin-bottom: .9rem;
  font-size: clamp(2.4rem, 8vw, 5rem);
  color: var(--forest);
  letter-spacing: -.01em;
}

h3 {
  margin: 0 0 .55rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 500;
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--moss);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.hero .eyebrow,
.eyebrow--light {
  color: var(--sun);
}

/* ─── Layout ─────────────────────────────────── */
.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.section__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.two-column {
  display: grid;
  gap: 2rem;
}

.copy-block p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.seo-panel p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.copy-block .btn {
  margin-top: 1.2rem;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading--left {
  margin-left: 0;
  text-align: left;
}

/* ─── Reveal animations ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, .68, 0, 1.1), transform .7s cubic-bezier(.22, .68, 0, 1.1);
}

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

/* ─── Body background ────────────────────────── */
body {
  background:
    radial-gradient(circle at 8% 14%, rgba(142, 209, 93, .16), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(244, 200, 77, .16), transparent 24rem),
    radial-gradient(circle at 90% 48%, rgba(231, 138, 60, .09), transparent 22rem),
    linear-gradient(180deg, #fff3d2 0%, #f6e2b3 52%, #fff8e6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(23, 56, 42, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 56, 42, .03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-slider {
  min-height: 100svh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12) translateY(0);
  filter: saturate(1.1) contrast(1.04);
  transition: transform 8s ease;
}

.hero-slide.is-active img {
  transform: scale(1.03) translateY(-1.4%);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 43, 24, .78), rgba(13, 43, 24, .2) 58%, rgba(13, 43, 24, .38)),
    linear-gradient(180deg, rgba(13, 43, 24, .06), rgba(13, 43, 24, .74)),
    radial-gradient(circle at 22% 68%, rgba(244, 200, 77, .28), transparent 30rem),
    radial-gradient(circle at 78% 22%, rgba(231, 138, 60, .16), transparent 24rem);
}

.hero-slide[data-slide="0"] img {
  object-position: 58% 50%;
  filter: saturate(1.3) contrast(1.1) brightness(1.02);
}

.hero-slide[data-slide="0"] .hero-slide__overlay {
  background:
    linear-gradient(90deg, rgba(6, 27, 14, .82), rgba(6, 27, 14, .16) 56%, rgba(6, 27, 14, .4)),
    linear-gradient(180deg, rgba(6, 27, 14, .04), rgba(6, 27, 14, .74)),
    radial-gradient(circle at 58% 48%, rgba(142, 209, 93, .1), transparent 18rem),
    radial-gradient(circle at 24% 76%, rgba(244, 200, 77, .28), transparent 26rem);
}

.hero-slide[data-slide="1"] img {
  object-position: center 55%;
  filter: saturate(1.16) contrast(1.05) brightness(1.07);
}

.hero-slide[data-slide="1"] .hero-slide__overlay {
  background:
    linear-gradient(90deg, rgba(42, 73, 23, .7), rgba(42, 73, 23, .14) 60%, rgba(42, 73, 23, .24)),
    linear-gradient(180deg, rgba(244, 200, 77, .1), rgba(34, 65, 26, .62)),
    radial-gradient(circle at 42% 18%, rgba(255, 214, 96, .4), transparent 26rem),
    radial-gradient(circle at 74% 76%, rgba(231, 138, 60, .2), transparent 22rem);
}

.hero-slide[data-slide="2"] img {
  object-position: center 56%;
  filter: saturate(1.08) contrast(1.02) brightness(1.05);
}

.hero-slide[data-slide="2"] .hero-slide__overlay {
  background:
    linear-gradient(90deg, rgba(62, 35, 16, .76), rgba(62, 35, 16, .16) 56%, rgba(62, 35, 16, .38)),
    linear-gradient(180deg, rgba(231, 138, 60, .1), rgba(62, 35, 16, .7)),
    radial-gradient(circle at 26% 72%, rgba(244, 200, 77, .32), transparent 26rem),
    radial-gradient(circle at 82% 24%, rgba(138, 90, 46, .26), transparent 24rem);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 240px;
  z-index: 2;
  background: linear-gradient(180deg, transparent, var(--cream));
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: clamp(8rem, 14vh, 10rem);
}

.hero__content h1 {
  max-width: 980px;
  text-wrap: balance;
  text-shadow: 0 28px 80px rgba(0, 0, 0, .4);
  font-style: italic;
}

.hero__eyebrow {
  color: var(--sun);
}

.hero__lead {
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: rgba(255, 253, 247, .9);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  line-height: 1.6;
}

.hero__actions,
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}

.hero__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  padding: .5rem .85rem;
  font-size: .8rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
  letter-spacing: .02em;
}

/* Hero controls */
.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 2.4rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dots button {
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .13);
  color: var(--white);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  transition: background .2s;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, .22);
}

.hero-dots {
  display: flex;
  gap: .45rem;
  padding: .45rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .12);
  backdrop-filter: blur(16px);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  transition: width .28s ease, background .28s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--sun);
}

.hero-progress {
  position: absolute;
  z-index: 4;
  left: 1rem;
  right: 1rem;
  bottom: .75rem;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}

.hero-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--moss), var(--sun));
  transform-origin: left;
}

@keyframes heroProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ═══════════════════════════════════════════════
   PLACE MARKER STRIP
   ═══════════════════════════════════════════════ */
.place-marker {
  width: 100%;
  overflow: hidden;
  background: var(--forest-3);
}

.place-marker__track {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: max-content;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  color: rgba(255, 253, 247, .52);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
}

.place-marker__dot {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--moss);
  opacity: .7;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════════════
   RANARIO
   ═══════════════════════════════════════════════ */
.section--ranario {
  background: var(--cream-2);
}

.immersive-ranario {
  position: relative;
  overflow: hidden;
  padding-top: clamp(5rem, 12vw, 9rem);
  background:
    radial-gradient(circle at 18% 20%, rgba(142, 209, 93, .22), transparent 22rem),
    radial-gradient(circle at 82% 28%, rgba(244, 200, 77, .16), transparent 20rem),
    linear-gradient(135deg, #fff8e6, #f4efc4 42%, #fff2d0);
}

.leaf-detail {
  position: absolute;
  right: -6rem;
  top: 5rem;
  width: 24rem;
  height: 24rem;
  border-radius: 58% 42% 48% 52%;
  background: linear-gradient(135deg, rgba(33, 74, 54, .14), rgba(152, 182, 110, .07));
  transform: rotate(-22deg);
  pointer-events: none;
}

.ranario-showcase {
  position: relative;
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  align-items: center;
}

.ranario-copy-panel {
  position: relative;
  z-index: 4;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 28px;
  background: rgba(255, 248, 230, .78);
  box-shadow: 0 30px 90px rgba(24, 79, 47, .16);
  backdrop-filter: blur(24px);
}

.ranario-copy-panel p:not(.eyebrow) {
  max-width: 680px;
  color: #445442;
  line-height: 1.72;
}

.frog-pillars {
  display: grid;
  gap: .8rem;
  margin-top: 1.4rem;
}

.frog-pillars article {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(23, 56, 42, .1);
  border-radius: 18px;
  background: rgba(255, 253, 247, .68);
  box-shadow: 0 18px 50px rgba(23, 56, 42, .07);
  transition: transform .28s ease, box-shadow .28s ease;
}

.frog-pillars article:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(23, 56, 42, .13);
}

.frog-pillars span {
  display: block;
  color: var(--forest);
  font-weight: 900;
  font-size: .95rem;
}

.frog-pillars p {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .93rem;
}

/* Ranario visual stage */
.ranario-visual-stage {
  position: relative;
  min-height: clamp(520px, 118vw, 720px);
}

.ranario-visual-stage::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 6% 2% auto auto;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(244, 200, 77, .32);
  filter: blur(60px);
}

.ranario-cinema {
  position: relative;
  z-index: 1;
  height: clamp(520px, 118vw, 720px);
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  background: var(--forest);
  box-shadow:
    0 40px 120px rgba(24, 79, 47, .32),
    0 0 0 1px rgba(255, 255, 255, .16) inset;
}

.ranario-cinema::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(9, 30, 16, .26), rgba(9, 30, 16, .06) 50%, rgba(9, 30, 16, .36)),
    linear-gradient(180deg, rgba(10, 36, 20, .02), rgba(10, 36, 20, .52)),
    radial-gradient(circle at 32% 70%, rgba(244, 200, 77, .32), transparent 24rem),
    radial-gradient(circle at 80% 18%, rgba(231, 138, 60, .16), transparent 18rem);
  pointer-events: none;
}

.ranario-cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 34%, rgba(244, 200, 77, .06));
  mix-blend-mode: screen;
}

.ranario-cinema img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 50%;
  filter: saturate(1.24) contrast(1.09) brightness(1.03);
  transform: scale(1.06);
  animation: ranarioSlowZoom 18s ease-in-out infinite alternate;
  transition: transform .8s ease;
}

.ranario-visual-stage:hover .ranario-cinema img {
  transform: scale(1.11) translateY(-1%);
}

.ranario-cinema figcaption {
  position: absolute;
  z-index: 3;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: rgba(255, 250, 240, .84);
  color: var(--forest);
  font-weight: 800;
  font-size: .92rem;
  backdrop-filter: blur(20px);
}

.ranario-image-label {
  position: absolute;
  z-index: 4;
  top: 1.2rem;
  left: 1.2rem;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-radius: 999px;
  padding: .55rem .9rem;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(255, 250, 240, .72);
  color: var(--forest);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 16px 50px rgba(24, 79, 47, .18);
  backdrop-filter: blur(22px) saturate(1.18);
}

@keyframes ranarioSlowZoom {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.12) translate3d(-1.4%, -1%, 0);
  }
}

/* Stat ribbon */
.stat-ribbon {
  display: grid;
  gap: .8rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.highlight-card {
  min-height: 118px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 22px;
  background: rgba(23, 56, 42, .9);
  color: var(--white);
  box-shadow: 0 20px 60px rgba(23, 56, 42, .18);
}

.stat-ribbon--visual .highlight-card {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: center;
  gap: .75rem;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(24, 79, 47, .94), rgba(40, 114, 63, .88)),
    radial-gradient(circle at 82% 18%, rgba(244, 200, 77, .34), transparent 5rem);
  transition: transform .28s ease, box-shadow .28s ease;
}

.stat-ribbon--visual .highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 90px rgba(24, 79, 47, .26);
}

.highlight-card__head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: .85rem;
}

.highlight-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 999px;
  background: rgba(244, 200, 77, .14);
  color: #ffe8a3;
  box-shadow: inset 0 0 0 1px rgba(255, 232, 163, .1);
}

.highlight-card__icon svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.highlight-card__title {
  display: block;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.08;
}

.highlight-card__text {
  display: block;
  padding-left: calc(48px + .85rem);
  color: rgba(255, 253, 247, .7);
  font-size: .92rem;
  line-height: 1.35;
}

/* ═══════════════════════════════════════════════
   WILDLIFE SECTION
   ═══════════════════════════════════════════════ */
.wildlife-section {
  padding-top: 0;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  background: var(--forest-3);
  color: var(--white);
  overflow: hidden;
}

.wildlife-header {
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-inline: clamp(1rem, 4vw, 3rem);
  max-width: 640px;
}

.wildlife-header h2 {
  color: var(--white);
}

.wildlife-header__body {
  margin: 1rem 0 0;
  color: rgba(255, 253, 247, .7);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Wildlife horizontal scroll */
.wildlife-scroll {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.wildlife-scroll:active {
  cursor: grabbing;
}

.wildlife-scroll::-webkit-scrollbar {
  display: none;
}

.wildlife-track {
  display: flex;
  gap: 1.2rem;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  width: max-content;
}

.wildlife-card {
  position: relative;
  flex: 0 0 clamp(260px, 38vw, 380px);
  height: clamp(380px, 56vw, 520px);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform .4s cubic-bezier(.22, .68, 0, 1.1);
}

.wildlife-card:hover {
  transform: scale(1.025) translateY(-4px);
}

.wildlife-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .6s ease;
  filter: saturate(1.08) brightness(.92);
}

.wildlife-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.18) brightness(1.0);
}

.wildlife-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 33, 20, .1) 20%, rgba(13, 33, 20, .82)),
    radial-gradient(circle at 30% 80%, rgba(244, 200, 77, .2), transparent 18rem);
  transition: opacity .4s ease;
}

.wildlife-card:hover .wildlife-card__overlay {
  opacity: .8;
}

.wildlife-card__content {
  position: absolute;
  z-index: 2;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.6rem;
}

.wildlife-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: .6rem;
  padding: .3rem .7rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: var(--sun);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.wildlife-card h3 {
  margin: 0 0 .45rem;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-style: italic;
  line-height: 1.0;
  text-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}

.wildlife-card p {
  margin: 0;
  color: rgba(255, 253, 247, .78);
  font-size: .9rem;
  line-height: 1.5;
}

.wildlife-drag-hint {
  text-align: center;
  margin-top: .75rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  color: rgba(255, 253, 247, .45);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   WILDLIFE SIGHTINGS — ENCUENTROS EN EL BOSQUE
   ═══════════════════════════════════════════════ */
.sightings-section {
  position: relative;
  background: var(--forest-3);
  color: var(--white);
  overflow: hidden;
}

.sightings-header {
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: clamp(1rem, 4vw, 2rem);
}

.sightings-header h2 {
  color: var(--white);
}

.sightings-intro {
  max-width: 520px;
  margin: .2rem 0 0;
  color: rgba(255, 253, 247, .52);
  font-size: 1rem;
  line-height: 1.8;
}

/* ─── Individual encounter ───────────────────── */
.sighting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.2rem, 6vw, 3.5rem);
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
}

/* ─── Monkey: circular binocular lens ───────── */
.sighting--monkey .sighting__lens {
  position: relative;
  width: min(340px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1.5px rgba(255, 253, 247, .08),
    0 0 0 14px rgba(13, 33, 23, .55),
    0 0 0 15.5px rgba(255, 253, 247, .05),
    0 50px 120px rgba(0, 0, 0, .75);
}

.sighting--monkey .sighting__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.sighting__lens-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 46%,
    transparent 38%,
    rgba(5, 17, 10, .42) 58%,
    rgba(5, 17, 10, .86) 76%
  );
}

/* ─── Sloth & forest: vertical frames ───────── */
.sighting__frame {
  position: relative;
  width: min(300px, 80vw);
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .65);
}

.sighting__video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.sighting__frame-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(13, 33, 23, .28) 0%,
    transparent 22%,
    transparent 62%,
    rgba(13, 33, 23, .72) 100%
  );
}

/* ─── Caption / meta ─────────────────────────── */
.sighting__meta {
  text-align: center;
  max-width: 400px;
}

.sighting__species {
  display: block;
  margin-bottom: .55rem;
  color: var(--sun);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.sighting__coord {
  margin: 0 0 1.4rem;
  color: rgba(255, 253, 247, .3);
  font-size: .7rem;
  letter-spacing: .1em;
}

.sighting__text {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.1rem, 3.8vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.42;
  color: rgba(255, 253, 247, .78);
}

.sighting__quote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 4.2vw, 1.65rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.36;
  color: rgba(255, 253, 247, .84);
}

/* ─── Editorial separator ────────────────────── */
.sighting-divider {
  position: relative;
  width: 100%;
  height: clamp(280px, 55vw, 500px);
  overflow: hidden;
}

.sighting-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.sighting-divider__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--forest-3) 0%, transparent 18%, transparent 72%, var(--forest-3) 100%),
    linear-gradient(0deg, rgba(5, 17, 10, .38), rgba(5, 17, 10, .18));
}

.sighting-divider__label {
  position: absolute;
  bottom: clamp(1.5rem, 5vw, 3rem);
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: rgba(255, 253, 247, .42);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ─── Closing ────────────────────────────────── */
.sightings-closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(5rem, 14vw, 10rem);
  text-align: center;
}

.sightings-closing__text {
  margin: 0;
  max-width: 480px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 5.5vw, 2.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.22;
  color: rgba(255, 253, 247, .72);
}

/* ─── Desktop layout ─────────────────────────── */
@media (min-width: 900px) {
  .sighting {
    flex-direction: row;
    align-items: center;
    gap: clamp(5rem, 9vw, 8rem);
    padding-inline: clamp(3rem, 7vw, 6rem);
  }

  .sighting--sloth {
    flex-direction: row-reverse;
  }

  .sighting--monkey .sighting__lens {
    width: min(420px, 38vw);
  }

  .sighting__frame {
    width: min(320px, 28vw);
  }

  .sighting__meta {
    text-align: left;
    flex: 1;
    max-width: none;
  }

  .sighting--sloth .sighting__meta,
  .sighting--forest .sighting__meta {
    text-align: left;
  }

  .sighting-divider {
    height: clamp(400px, 44vw, 580px);
  }
}

/* ═══════════════════════════════════════════════
   FAMILY STORY
   ═══════════════════════════════════════════════ */
.family-story {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
  color: var(--white);
}

.family-story__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(10, 30, 18, .95), rgba(24, 79, 47, .88)),
    url("assets/wildlife/ranario-section-bg.jpg") center / cover;
  background-blend-mode: multiply;
}

.family-story__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(142, 209, 93, .12), transparent 30rem),
    radial-gradient(circle at 85% 30%, rgba(244, 200, 77, .14), transparent 28rem);
}

.family-story__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.family-story__quote {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22, .68, 0, 1.1) .1s, transform .8s cubic-bezier(.22, .68, 0, 1.1) .1s;
}

.family-story__quote.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.family-story__quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.18;
  color: var(--white);
  text-shadow: 0 16px 50px rgba(0, 0, 0, .3);
}

.family-quote__mark {
  font-family: var(--display);
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -.25em;
  color: var(--sun);
  opacity: .7;
}

.family-story__quote cite {
  display: block;
  margin-top: 1.2rem;
  color: rgba(255, 253, 247, .55);
  font-style: normal;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.family-story__copy {}

.family-story__copy h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.family-story__copy .eyebrow {
  color: var(--sun);
}

.family-story__copy p {
  margin: 0;
  color: rgba(255, 253, 247, .78);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 580px;
}

/* ═══════════════════════════════════════════════
   TRAIL
   ═══════════════════════════════════════════════ */
.section--tropical-trail {
  background:
    linear-gradient(135deg, rgba(24, 79, 47, .9), rgba(40, 114, 63, .74)),
    url("assets/wildlife/forest-section-bg.jpg") center / cover fixed;
  color: var(--white);
}

.section--tropical-trail h2,
.section--tropical-trail .eyebrow {
  color: var(--white);
}

.section--tropical-trail .eyebrow {
  color: var(--sun);
}

.section--tropical-trail .copy-block p:not(.eyebrow) {
  color: rgba(255, 253, 247, .82);
}

/* ─── Image stack ────────────────────────────── */
.image-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: .8rem;
  margin: 0;
}

.image-stack img {
  min-height: 380px;
  border-radius: var(--radius);
  box-shadow: 0 18px 55px rgba(5, 17, 10, .28);
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.image-stack img:last-child {
  min-height: 270px;
  transform: translateY(1.6rem);
}

/* ─── Feature image ──────────────────────────── */
.feature-image,
.feature-image img {
  margin: 0;
}

.feature-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--forest);
  box-shadow: var(--shadow);
}

.feature-image img {
  min-height: 420px;
  object-fit: cover;
  transition: transform .5s ease;
}

.feature-image:hover img {
  transform: scale(1.035);
}

.feature-image figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border-radius: 14px;
  padding: .9rem 1rem;
  background: rgba(255, 253, 247, .9);
  color: var(--forest);
  font-size: .92rem;
  font-weight: 750;
  backdrop-filter: blur(14px);
}

/* ─── Soft list ──────────────────────────────── */
.soft-list,
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}

.soft-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  padding: .55rem .85rem;
  font-size: .84rem;
  font-weight: 800;
  background: rgba(255, 253, 247, .12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .18);
}

.chip-group span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  padding: .55rem .85rem;
  font-size: .84rem;
  font-weight: 800;
  background: rgba(23, 56, 42, .09);
  color: var(--forest);
}

/* ═══════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════ */
.section--experience {
  background:
    linear-gradient(180deg, #f7f1df, #fffaf0),
    radial-gradient(circle at center, rgba(230, 199, 102, .18), transparent 30rem);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: linear-gradient(var(--moss), var(--sun));
}

.timeline__item {
  position: relative;
  margin-left: 2.5rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(23, 56, 42, .1);
  border-radius: 22px;
  background: rgba(255, 253, 247, .8);
  box-shadow: 0 16px 45px rgba(23, 56, 42, .08);
  transition: transform .28s ease, box-shadow .28s ease;
}

.timeline__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 70px rgba(23, 56, 42, .14);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.17rem;
  top: 1.45rem;
  width: 13px;
  height: 13px;
  border: 4px solid var(--cream);
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 0 0 0 2px rgba(23, 56, 42, .24);
}

.timeline__item span {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--moss);
  font-family: var(--display);
  font-size: 2.2rem;
  font-style: italic;
  line-height: 1;
}

.timeline__item p {
  margin: 0;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin: -1rem 0 1.6rem;
}

.gallery-filters button {
  min-height: 40px;
  border: 1px solid rgba(23, 56, 42, .14);
  border-radius: 999px;
  padding: .55rem .9rem;
  background: rgba(255, 253, 247, .72);
  color: var(--forest);
  font-weight: 850;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.gallery-filters button.is-active,
.gallery-filters button:hover {
  background: var(--forest);
  color: var(--white);
}

.masonry-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  gap: .85rem;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  padding: 0;
  background: var(--forest);
  cursor: zoom-in;
  isolation: isolate;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 20, 13, .8));
  opacity: .7;
  transition: opacity .28s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .45s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  opacity: .92;
}

.gallery-item span {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: var(--white);
  font-weight: 900;
  font-size: .88rem;
  text-align: left;
  transform: translateY(8px);
  transition: transform .28s ease;
}

.gallery-item:hover span {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RAINFOREST GALLERY
   ═══════════════════════════════════════════════ */
.rainforest-gallery {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 8%, rgba(244, 200, 77, .12), transparent 24rem),
    linear-gradient(180deg, #10251c, #17382a 48%, #0f2119);
  color: var(--white);
}

.rainforest-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 82px 100%;
  opacity: .28;
}

.rainforest-gallery .section__inner {
  position: relative;
  z-index: 1;
}

.rainforest-gallery__header {
  max-width: 820px;
  margin-bottom: clamp(2.2rem, 6vw, 4rem);
}

.rainforest-gallery__header .eyebrow {
  color: var(--sun);
}

.rainforest-gallery__header h2 {
  color: var(--white);
}

.rainforest-gallery__header p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 253, 247, .72);
  font-size: 1.06rem;
}

.rainforest-gallery__section {
  display: grid;
  gap: 1rem;
}

.rainforest-gallery__section + .rainforest-gallery__section {
  margin-top: clamp(2.2rem, 6vw, 4rem);
  padding-top: clamp(1.6rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(255, 253, 247, .12);
}

.rainforest-gallery__label {
  margin: 0;
  color: var(--sun);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.rainforest-editorial-grid {
  display: grid;
  gap: .9rem;
}

.rainforest-photo {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 247, .12);
  border-radius: 22px;
  background: #0b1c15;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
  isolation: isolate;
}

.rainforest-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 42%, rgba(5, 15, 10, .84)),
    radial-gradient(circle at 22% 82%, rgba(244, 200, 77, .16), transparent 18rem);
}

.rainforest-photo img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.025);
  transition: transform .75s ease, filter .75s ease;
}

.rainforest-photo:hover img {
  filter: saturate(1.18) contrast(1.08);
  transform: scale(1.08);
}

.rainforest-photo figcaption {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: rgba(255, 253, 247, .9);
  font-weight: 850;
  line-height: 1.25;
}

.rainforest-photo--scope {
  min-height: 260px;
  border-radius: 22px;
}

.rainforest-photo--scope img {
  object-fit: contain;
  background: #020403;
}

.rainforest-photo--scope::after {
  background: linear-gradient(180deg, transparent 42%, rgba(5, 15, 10, .84));
}

/* ═══════════════════════════════════════════════
   SEO PANEL
   ═══════════════════════════════════════════════ */
.section--seo {
  padding-top: 1rem;
}

.seo-panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.4rem, 5vw, 2.2rem);
  border: 1px solid rgba(23, 56, 42, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .92), rgba(247, 241, 223, .74)),
    url("assets/wildlife/contact-section-bg.jpg") center / cover;
  box-shadow: 0 16px 45px rgba(23, 56, 42, .08);
}

/* ═══════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════ */
.faq-layout {
  display: grid;
  gap: 1.5rem;
}

.faq-list {
  display: grid;
  gap: .8rem;
}

.faq-list details {
  border: 1px solid rgba(23, 56, 42, .1);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .74);
  box-shadow: 0 16px 45px rgba(23, 56, 42, .08);
  padding: 0 1rem;
}

.faq-list summary {
  cursor: pointer;
  padding: 1.1rem 0;
  color: var(--forest);
  font-weight: 850;
  line-height: 1.3;
}

.faq-list p {
  margin: 0;
  padding: 0 0 1rem;
  color: var(--muted);
}

.faq-list details[open] p {
  animation: faqReveal .24s ease both;
}

@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

/* ═══════════════════════════════════════════════
   HOURS & RESERVATIONS
   ═══════════════════════════════════════════════ */
.booking-info {
  background:
    radial-gradient(circle at 12% 16%, rgba(244, 200, 77, .14), transparent 24rem),
    linear-gradient(180deg, rgba(255, 250, 240, .58), rgba(247, 241, 223, .74));
}

.booking-info__panel {
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid rgba(23, 56, 42, .1);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .72);
  box-shadow: 0 20px 60px rgba(23, 56, 42, .1);
  backdrop-filter: blur(14px);
}

.booking-info__header {
  display: grid;
  gap: .65rem;
  margin-bottom: clamp(1.4rem, 4vw, 2rem);
}

.booking-info__header h2 {
  max-width: 760px;
}

.booking-info__header p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.booking-info__grid {
  display: grid;
  gap: .9rem;
}

.booking-info__card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  min-height: 132px;
  padding: 1rem;
  border: 1px solid rgba(23, 56, 42, .09);
  border-radius: 18px;
  background: rgba(255, 250, 240, .7);
  box-shadow: 0 14px 38px rgba(23, 56, 42, .07);
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.booking-info__card:hover {
  transform: translateY(-4px);
  background: rgba(255, 253, 247, .9);
  box-shadow: 0 20px 55px rgba(23, 56, 42, .11);
}

.booking-info__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: rgba(109, 138, 79, .14);
  color: var(--forest);
}

.booking-info__icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.booking-info__card h3 {
  margin: 0 0 .4rem;
  color: var(--forest);
}

.booking-info__card p {
  margin: 0;
  color: var(--muted);
}

.booking-info__card a {
  color: var(--forest);
  font-weight: 900;
}

.booking-info__card--contact {
  background: linear-gradient(135deg, rgba(24, 79, 47, .92), rgba(40, 114, 63, .86));
}

.booking-info__card--contact h3,
.booking-info__card--contact a {
  color: var(--white);
}

.booking-info__card--contact p {
  color: rgba(255, 253, 247, .78);
}

.booking-info__card--contact .booking-info__icon {
  background: rgba(244, 200, 77, .18);
  color: var(--sun);
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact {
  background: var(--forest);
  color: var(--white);
}

.contact h2,
.contact .eyebrow {
  color: var(--white);
}

.contact .eyebrow {
  color: var(--sun);
}

.contact .copy-block p {
  color: rgba(255, 253, 247, .78);
}

.contact-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .07);
  box-shadow: 0 16px 45px rgba(23, 56, 42, .08);
}

.contact-card a,
.contact-card p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background .2s;
}

.contact-card a:hover {
  background: rgba(255, 255, 255, .07);
}

.contact-card span {
  color: rgba(255, 253, 247, .62);
  font-size: .9rem;
}

.contact-card strong {
  text-align: right;
  font-size: .92rem;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  padding: 3.5rem 1rem 1.4rem;
  background: #0c1e14;
  color: rgba(255, 253, 247, .8);
}

.footer__inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.brand--footer {
  color: var(--white);
}

.footer__inner nav,
.footer__social {
  display: grid;
  gap: .75rem;
}

.footer__inner nav a,
.footer__social a {
  font-size: .9rem;
  transition: opacity .2s;
}

.footer__inner nav a:hover,
.footer__social a:hover {
  opacity: .6;
}

.copyright {
  width: min(var(--max), 100%);
  margin: 2rem auto 0;
  color: rgba(255, 253, 247, .45);
  font-size: .88rem;
}

/* ═══════════════════════════════════════════════
   FLOATING ELEMENTS
   ═══════════════════════════════════════════════ */
.floating-whatsapp,
.back-to-top {
  position: fixed;
  z-index: 90;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.floating-whatsapp {
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 52px;
  border-radius: 999px;
  padding: .85rem 1.1rem;
  background: #1a9c5b;
  color: var(--white);
  font-weight: 900;
  font-size: .88rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(26, 156, 91, .38);
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.back-to-top {
  right: 1rem;
  bottom: 4.8rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: var(--sun);
  color: var(--forest);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1rem;
  background: rgba(7, 19, 13, .9);
  backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 82vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  transition: background .2s;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, .22);
}

.lightbox__caption {
  margin: 0;
  color: var(--white);
  font-weight: 800;
  font-size: .9rem;
}

/* ═══════════════════════════════════════════════
   MOBILE NAV + PERFORMANCE
   ═══════════════════════════════════════════════ */
@media (max-width: 899px) {

  /* ─── Nav panel ──────────────────────────────── */
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: clamp(5rem, 14vw, 7rem) clamp(1.5rem, 6vw, 2.5rem) 2rem;
    background:
      radial-gradient(ellipse at 90% 10%, rgba(95, 159, 69, .14), transparent 55%),
      radial-gradient(ellipse at 10% 90%, rgba(244, 200, 77, .08), transparent 45%),
      var(--forest-3);
    color: var(--white);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .28s cubic-bezier(.4, 0, .2, 1),
                transform .28s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity, transform;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Individual link rows */
  .site-nav > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255, 253, 247, .07);
    font-family: var(--display);
    font-size: clamp(1.65rem, 7.5vw, 2.6rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    color: rgba(255, 253, 247, .9);
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity .3s ease, transform .3s ease, color .18s ease;
  }

  .site-nav > a::after {
    content: "↗";
    flex-shrink: 0;
    font-style: normal;
    font-family: var(--body);
    font-size: .82rem;
    opacity: .22;
    transition: opacity .18s ease;
  }

  .site-nav > a:active { color: var(--sun); }

  /* Staggered link entrance */
  .site-nav.is-open > a {
    opacity: 1;
    transform: translateX(0);
  }
  .site-nav.is-open > a:nth-child(1) { transition-delay: .05s; }
  .site-nav.is-open > a:nth-child(2) { transition-delay: .09s; }
  .site-nav.is-open > a:nth-child(3) { transition-delay: .13s; }
  .site-nav.is-open > a:nth-child(4) { transition-delay: .17s; }
  .site-nav.is-open > a:nth-child(5) { transition-delay: .21s; }
  .site-nav.is-open > a:nth-child(6) { transition-delay: .25s; }

  /* Mobile nav footer (CTA + tagline) */
  .site-nav__footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
    margin-top: auto;
    padding-top: 2rem;
    opacity: 0;
    transition: opacity .3s ease .3s;
  }

  .site-nav.is-open .site-nav__footer {
    opacity: 1;
  }

  .site-nav__cta {
    width: 100%;
    min-height: 52px;
    font-size: .92rem;
    box-shadow: 0 12px 36px rgba(244, 200, 77, .26);
  }

  .site-nav__tagline {
    margin: 0;
    text-align: center;
    color: rgba(255, 253, 247, .26);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
  }

  /* ─── Header ─────────────────────────────────── */
  .brand__subtitle { display: none; }
  .header-actions .btn--compact { display: none; }

  /* Reduce header blur (expensive on mobile) */
  .site-header.is-scrolled,
  .site-header.is-open {
    backdrop-filter: blur(10px);
  }

  /* ─── iOS Safari: fixed background fix ───────── */
  .section--tropical-trail {
    background:
      linear-gradient(135deg, rgba(24, 79, 47, .9), rgba(40, 114, 63, .74)),
      url("assets/wildlife/forest-section-bg.jpg") center / cover scroll;
  }

  /* ─── Image stack offset fix ─────────────────── */
  .image-stack img:last-child { transform: none; }

  /* ─── Performance: disable expensive animations ─ */
  .ranario-cinema img {
    animation: none;
    transform: scale(1);
  }

  .ranario-visual-stage::before {
    display: none;
  }

  /* ─── Performance: strip backdrop-filter ────────
     GPU-composited blur is the #1 mobile frame-rate
     killer; keep only the lightbox where it matters */
  .language-picker__button { backdrop-filter: none; }
  .language-picker__menu   { backdrop-filter: none; }
  .ranario-image-label     { backdrop-filter: none; }
  .ranario-cinema figcaption { backdrop-filter: none; }
  .btn--ghost              { backdrop-filter: none; }
  .btn--family             { backdrop-filter: none; }
  .hero-dots               { backdrop-filter: none; }
  .wildlife-card__tag      { backdrop-filter: none; }

  /* ─── Performance: remove hover scale effects ─── */
  .btn:hover,
  .floating-whatsapp:hover,
  .back-to-top:hover { transform: none; }

  .wildlife-card:hover              { transform: none; }
  .wildlife-card:hover img          { transform: none; }
  .feature-image:hover img          { transform: none; }
  .gallery-item:hover               { transform: none; }
  .ranario-visual-stage:hover
  .ranario-cinema img               { transform: scale(1); }

  /* ─── Performance: simplify heavy shadows ──────── */
  .sighting--monkey .sighting__lens {
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  }

  .sighting__frame {
    box-shadow: 0 16px 50px rgba(0, 0, 0, .5);
  }

  /* ─── Performance: remove body grid overlay ─────
     Fixed pseudo-element with mask costs a composite
     layer on every scroll repaint */
  body::before { display: none; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — 680px+
   ═══════════════════════════════════════════════ */
@media (min-width: 680px) {
  .header-actions .btn--compact {
    display: inline-flex;
  }

  .ranario-showcase,
  .family-story__inner {
    grid-template-columns: .92fr 1.08fr;
  }

  .stat-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-info__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 190px;
  }

  .rainforest-editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rainforest-photo--feature,
  .rainforest-photo--wide {
    grid-column: span 2;
  }

  .gallery-item {
    min-height: auto;
  }

  .gallery-item--tall {
    grid-row: span 2;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .footer__inner {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .floating-whatsapp span {
    display: inline;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — 768px+ (tablet)
   ═══════════════════════════════════════════════ */
@media (min-width: 768px) {
  .two-column {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .ranario-showcase {
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .wildlife-card {
    flex: 0 0 clamp(280px, 42vw, 400px);
  }

  .family-story__inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .gallery-filters {
    min-height: 40px;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — 900px+
   ═══════════════════════════════════════════════ */
@media (min-width: 900px) {
  .site-header {
    padding-block: 1rem;
  }

  .site-header.is-scrolled {
    padding-block: .62rem;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav,
  .header-actions {
    display: flex;
  }

  .site-nav {
    gap: clamp(.8rem, 2vw, 1.4rem);
    align-items: center;
  }

  .header-actions {
    order: initial;
    margin-left: 0;
  }

  .menu-toggle {
    order: initial;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
  }

  .two-column--reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .stat-ribbon {
    grid-template-columns: repeat(4, 1fr);
  }

  .booking-info__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rainforest-editorial-grid--wildlife,
  .rainforest-editorial-grid--details,
  .rainforest-editorial-grid--river {
    grid-template-columns: 1.2fr .8fr .8fr;
    grid-auto-rows: 250px;
  }

  .rainforest-editorial-grid--birds {
    grid-template-columns: .9fr 1.2fr .9fr;
    grid-auto-rows: 230px;
  }

  .rainforest-editorial-grid--night {
    grid-template-columns: 1.35fr .65fr;
    grid-auto-rows: 360px;
  }

  .rainforest-photo {
    min-height: auto;
  }

  .rainforest-photo--feature {
    grid-column: span 1;
    grid-row: span 2;
  }

  .rainforest-photo--wide {
    grid-column: span 2;
  }

  .rainforest-photo--scope {
    min-height: auto;
  }

  .ranario-showcase {
    grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 4rem);
  }

  .ranario-visual-stage {
    min-height: 720px;
  }

  .ranario-cinema {
    height: 720px;
  }

  .family-story__inner {
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(3rem, 6vw, 6rem);
  }

  .timeline {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2rem .25rem .75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--moss) transparent;
  }

  .timeline::before {
    left: 2rem;
    right: 2rem;
    top: 4.05rem;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .timeline__item {
    min-width: 190px;
    margin-left: 0;
  }

  .timeline__item::before {
    left: 1.2rem;
    top: -1.03rem;
  }

  .masonry-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
  }

  .seo-panel {
    grid-template-columns: 1fr .8fr;
    align-items: center;
  }

  .faq-layout {
    grid-template-columns: .8fr 1.2fr;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — small screens
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .highlight-card__head {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .75rem;
  }

  .highlight-card__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .highlight-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .highlight-card__text {
    padding-left: calc(42px + .75rem);
  }

  .hero-controls {
    bottom: 2.5rem;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .floating-whatsapp span {
    display: none;
  }

  .gallery-filters {
    min-height: 36px;
  }

  .gallery-filters .filter-btn {
    padding: .4rem .8rem;
    font-size: .72rem;
  }
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }

  .ranario-cinema img {
    animation: none !important;
  }

  .place-marker__track {
    animation: none !important;
  }
}


.hero__content {
  padding-top: clamp(8rem, 18vh, 12rem);
}

.hero__eyebrow {
  display: block;
  margin: 0 0 1.35rem 0;
  position: relative;
  z-index: 5;
}

.hero__content h1 {
  margin-top: 0;
  line-height: 1.08;
}




/* MOBILE MENU — refined premium drawer */
@media (max-width: 899px) {
  .site-header {
    padding: .75rem 1rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    background: rgba(255, 253, 247, .16);
    backdrop-filter: blur(10px);
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 99;
    width: min(88vw, 380px);
    height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 5.5rem 1.15rem 1.2rem;
    background:
      linear-gradient(180deg, rgba(13, 33, 23, .97), rgba(8, 22, 15, .99)),
      radial-gradient(circle at 90% 10%, rgba(244, 200, 77, .16), transparent 45%);
    color: var(--white);
    box-shadow: -24px 0 70px rgba(0, 0, 0, .38);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .28s ease, opacity .28s ease;
  }

  .site-nav::before {
    content: "Menú";
    display: block;
    margin-bottom: 1.2rem;
    color: rgba(255, 253, 247, .38);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .site-nav > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: .85rem .9rem;
    margin-bottom: .35rem;
    border: 1px solid rgba(255, 253, 247, .08);
    border-radius: 16px;
    background: rgba(255, 253, 247, .045);
    color: rgba(255, 253, 247, .92);
    font-family: var(--body);
    font-size: .98rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .01em;
    opacity: 1;
    transform: none;
  }

  .site-nav > a::after {
    content: "›";
    font-family: var(--body);
    font-size: 1.25rem;
    color: var(--sun);
    opacity: .75;
  }

  .site-nav > a:active {
    background: rgba(244, 200, 77, .12);
    color: var(--sun);
  }

  .site-nav__footer {
    display: grid;
    gap: .75rem;
    margin-top: auto;
    padding-top: 1.2rem;
  }

  .site-nav__cta {
    width: 100%;
    min-height: 50px;
  }

  .site-nav__tagline {
    margin: 0;
    text-align: center;
    color: rgba(255, 253, 247, .36);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
  }
}
