/**
 * Amazon Wildlife Perú — design tokens
 * Marca: #005000
 * Tipografía: Bebas Neue (títulos) · Roboto Flex (cuerpo)
 */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');
@import url('site-pages.css');

:root {
  /* ── Marca ── */
  --brand: #005000;
  --brand-hover: #006b00;
  --brand-light: #e8f3ea;
  --brand-mid: #1a7a3a;
  --brand-soft: #4db86a;
  --brand-deep: #003d00;
  --brand-darker: #002614;
  /* Variantes del logo #005000 — secciones claras y paneles */
  --brand-surface: #f0f6f0;
  --brand-surface-end: #e8f3ea;
  --brand-panel: var(--brand-deep);
  --brand-text: #005000;
  --brand-text-muted: rgba(0, 80, 0, 0.72);
  --brand-text-soft: rgba(0, 80, 0, 0.55);

  /* ── Superficies ── */
  --page-bg: var(--brand-darker);
  --header-bg: var(--brand-deep);
  --hero-bg: var(--brand-deep);

  --bg-dark: var(--brand-deep);
  --bg-darker: var(--brand-darker);
  --bg-card: #004a28;
  --bg-card-hover: #005530;

  --surface-light: #eef4ee;
  --surface-white: #ffffff;

  /* ── Texto sobre fondos verdes (oscuros) ── */
  --cream: #f5f2eb;
  --cream-muted: rgba(245, 242, 235, 0.82);
  --cream-soft: rgba(245, 242, 235, 0.58);
  --text-on-dark: var(--cream);
  --text-on-dark-muted: var(--cream-muted);
  --text-on-dark-soft: var(--cream-soft);
  --accent-on-dark: #a8e0b8;

  /* ── Texto sobre fondos claros ── */
  --ink: #0f2a14;
  --ink-muted: rgba(15, 42, 20, 0.72);
  --ink-soft: rgba(15, 42, 20, 0.55);
  --ink-faint: rgba(15, 42, 20, 0.4);
  --accent-on-light: var(--brand-mid);

  /* ── Texto sobre botones dorados ── */
  --text-on-gold: var(--brand-darker);

  /* ── Bordes y overlays ── */
  --border-on-dark: rgba(255, 255, 255, 0.14);
  --border-on-light: rgba(0, 80, 0, 0.2);
  --border-green: var(--border-on-light);
  --overlay-brand: rgba(0, 61, 0, 0.88);
  --overlay-brand-mid: rgba(0, 61, 0, 0.45);
  --overlay-brand-soft: rgba(0, 80, 0, 0.22);
  --fill-on-light: rgba(0, 80, 0, 0.08);
  --fill-on-light-hover: rgba(0, 80, 0, 0.12);

  /* ── Acento dorado ── */
  --gold: #b8892a;
  --gold-lt: #d4a84b;

  /* ── Layout ── */
  --content-max: 1200px;
  --section-x: 48px;
  --logo-w: 168px;
  --logo-h: 188px;
  /* Parte del logo que cuelga bajo la barra del header (0 en móvil) */
  --logo-overhang: max(0px, calc(var(--logo-h) - var(--nav-h)));
  /* Espacio para que el contenido no quede bajo el logo */
  --clear-logo: calc(var(--logo-w) + 20px);
  --hero-clear-logo: calc(var(--logo-overhang) + 24px);
  /* Cabeceras internas (categorías, about, departures, etc.) */
  --page-hero-h: 56vh;
  --page-hero-min-h: 400px;
  --page-hero-max-h: 560px;
  --card-gap: 16px;
  --card-radius: 4px;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);

  /* ── Tipografía ── */
  --font-body: 'Roboto Flex', system-ui, sans-serif;
  --font-sans: var(--font-body);
  --font-display: 'Bebas Neue', Impact, sans-serif;
  /* Alias: componentes que usan --font-serif en títulos */
  --font-serif: var(--font-display);

  /* Escala de texto — legible en desktop y móvil */
  --text-xs: 13px;
  --text-sm: 15px;
  --text-base: 18px;
  --text-md: 20px;
  --text-lg: 24px;
  --text-xl: 28px;
  --text-prose: var(--text-base);
  --text-ui: var(--text-sm);

  /* Títulos display (Bebas) — responsive */
  --title-hero: clamp(52px, 8.5vw, 96px);
  --title-section: clamp(44px, 5.8vw, 76px);
  --title-page: clamp(40px, 5vw, 64px);
  --title-block: clamp(32px, 4vw, 48px);
  --title-card: clamp(22px, 2.6vw, 30px);
  --title-kicker: clamp(18px, 2vw, 26px);

  /* Interlineado */
  --lh-tight: 0.88;
  --lh-heading: 0.92;
  --lh-display: 0.9;
  --track-display: 0.04em;
  --lh-body: 1.6;
  --lh-prose: 1.75;

  /* Tracking */
  --track-eyebrow: 0.18em;
  --track-label: 0.12em;
  --track-ui: 0.1em;

  /* Pesos */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* ── Media ── */
  --media-ratio: 16 / 10;
  --media-h: 200px;

  /* Alias legacy */
  --deep: var(--brand-darker);
  --green-dark: var(--bg-card);
  --green-mid: var(--brand-mid);
  --green-light: var(--brand-soft);
  --white: #ffffff;
  --nav-h: 64px;

  /* Gradientes y barras (home + páginas internas) */
  --gradient-section-dark: linear-gradient(
    165deg,
    var(--brand-deep) 0%,
    #002818 55%,
    #00150c 100%
  );
  --gradient-footer-dark: linear-gradient(
    180deg,
    var(--brand-deep) 0%,
    #001a0f 35%,
    var(--brand-darker) 100%
  );
  --eyebrow-on-light: var(--ink-soft);
  --bar-on-dark-bg: var(--brand-deep);
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

/* Secciones: fondo oscuro (marca) */
.aw-section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

/* Secciones: fondo claro */
.aw-section--light {
  background: var(--surface-light);
  color: var(--ink);
}

.aw-section-inner,
.aw-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-x);
  padding-right: var(--section-x);
}

/* ── Utilidades tipográficas (sitio completo) ── */
.aw-eyebrow-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
}
.aw-section--dark .aw-eyebrow-label,
.aw-eyebrow-label--on-dark {
  color: var(--gold-lt);
}

.aw-title-section,
.aw-title-page,
.aw-title-block {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  line-height: var(--lh-display);
}
.aw-title-section { font-size: var(--title-section); }
.aw-title-page {
  font-size: var(--title-page);
  color: var(--ink);
}
.aw-title-block {
  font-size: var(--title-block);
  color: var(--ink);
}
.aw-title-page em,
.aw-title-block em,
.aw-title-section em {
  font-style: normal;
  color: var(--gold);
}

/* Títulos editoriales (home y landings) — outline + acento */
.aw-display-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  line-height: var(--lh-display);
  font-size: var(--title-section);
  margin: 0;
}
.aw-display-title--hero { font-size: var(--title-hero); }
.aw-display-title--block { font-size: var(--title-block); }
.aw-display-title__line { display: block; }
.aw-display-title__line + .aw-display-title__line {
  margin-top: 0.05em;
}
.aw-display-title__accent { color: var(--gold); }
.aw-display-title--on-dark .aw-display-title__line--solid { color: var(--cream); }
.aw-display-title--on-dark .aw-display-title__line--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 242, 235, 0.88);
}
.aw-display-title--on-light .aw-display-title__line--solid { color: var(--brand); }
.aw-display-title--on-light .aw-display-title__line--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(30, 30, 30, 0.22);
}
.aw-display-title--on-light .aw-display-title__accent { color: var(--brand); }
.aw-display-title--on-dark .aw-display-title__accent { color: var(--gold-lt); }

.aw-display-kicker {
  font-family: var(--font-display);
  font-size: var(--title-kicker);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  margin: 0 0 18px;
}
.aw-display-kicker__muted { color: var(--ink-soft); }
.aw-display-kicker__accent { color: var(--gold); }
.aw-display-kicker--on-dark .aw-display-kicker__muted { color: var(--cream-soft); }
.aw-display-kicker--on-dark .aw-display-kicker__accent { color: var(--gold-lt); }

.aw-prose {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  color: var(--ink-muted);
  line-height: var(--lh-prose);
}
.aw-prose strong {
  font-weight: var(--weight-medium);
  color: var(--ink);
}
.aw-prose--compact {
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Cuerpo por defecto en páginas que enlazan tokens.css */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-body);
}

/* Sin cursiva en ningún elemento del sitio */
em,
i,
cite,
dfn,
var,
address {
  font-style: normal;
}

/* Acento en títulos (antes <em> itálica) */
.t-title em,
.tour-hero__title em,
.about-hero__title em,
.ab-title em,
.ab-title--dark em,
.tl-heading em,
.ip-hero__title em,
.ip-title em,
.ip-title--sub em,
.cat-hero__title em,
.cta-banner__title em,
.aw-contact-page-hero__title em,
.pull-quote p em,
.trees-list li em {
  color: var(--gold);
}
.about-hero__title em,
.tour-hero__title em,
.cat-hero__title em,
.ip-hero__title em {
  color: var(--gold-lt);
}
.ab-title--dark em,
.cta-banner__title em {
  color: var(--gold-lt);
}

.aw-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  :root {
    --section-x: 28px;
    --logo-w: 140px;
    --logo-h: 157px;
    --nav-h: 56px;
    --clear-logo: calc(var(--logo-w) + 16px);
  }
}
@media (max-width: 520px) {
  :root { --section-x: 18px; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 2px;
}

/* ── Páginas internas: mismos colores y tipografía que el home ── */
.about-hero__title,
.cat-hero__title,
.dep-hero__title,
.lodges-hero__title,
.ip-hero__title,
.tour-hero__title,
.aw-contact-page-hero__title {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  line-height: var(--lh-display);
}

.about-hero__title em,
.cat-hero__title em,
.dep-hero__title em,
.lodges-hero__title em,
.ip-hero__title em,
.tour-hero__title em,
.aw-contact-page-hero__title em {
  color: var(--gold-lt);
}

.ab-title,
.t-title,
.cta-banner__title,
.ip-title,
.ip-title--sub,
.tl-heading,
.location-title {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  line-height: var(--lh-display);
}

.ab-title em,
.t-title em,
.cta-banner__title em,
.tl-heading em,
.location-title em {
  color: var(--brand);
}

.ab-title--dark em,
.ip-title--sub em {
  color: var(--gold-lt);
}

.filter-bar,
.booking-bar,
.stat-bar,
.ip-stat-bar,
.lodge-tabs,
.dep-controls {
  background: var(--bar-on-dark-bg);
  border-bottom-color: var(--border-on-dark);
}

.t-eyebrow span:last-child,
.ab-eyebrow span:last-child {
  color: var(--eyebrow-on-light);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-eyebrow);
}

.ab-eyebrow--dark span:last-child,
.ip-eyebrow span:last-child {
  color: var(--gold-lt);
}

.booking-bar__amount,
.ip-stat__num,
.stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--track-display);
}

.fact-value {
  font-family: var(--font-display);
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
