/* Guía Zoo Sur — white × deep teal */
:root {
  --bg: #ffffff;
  --surface: #f3f6f5;
  --ink: #12211e;
  --muted: #5a6b67;
  --accent: #0f3d36;
  --accent-ink: #ffffff;
  --field: #0f3d36;
  --field-ink: #f5faf8;
  --paper: var(--bg);
  --paper-2: var(--surface);
  --ink-2: var(--muted);
  --rule: color-mix(in srgb, var(--ink) 14%, transparent);
  --link: var(--accent);
  --focus: #1a6b5c;
  --deep: var(--field);
  --serif: "STIX Two Text", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "STIX Two Text", Georgia, serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --measure: 46ch;
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1280px;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--step-body)/1.5 var(--serif);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.026em;
  line-height: 1.1;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 { font-size: var(--step-head); }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; }
.skip {
  position: absolute; left: 8px; top: -80px; z-index: 100;
  background: var(--field); color: var(--field-ink); padding: 10px 16px;
}
.skip:focus { top: 8px; }

button, a, [role="button"] { touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--accent-ink);
  padding: 0.7em 1.35em;
  text-decoration: none;
  border: 1px solid var(--ink);
  font-size: 1rem;
  font-weight: 600;
  min-height: 44px;
  line-height: 1.2;
  transition: background-color 160ms var(--ease), color 160ms, transform 140ms var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--accent-ink); }
.text-link {
  color: var(--ink);
  font-weight: 600;
  margin-left: 0.75rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.brand-logo { width: 36px; height: 36px; }
.brand-name {
  font: 600 1.35rem/1 var(--serif);
  letter-spacing: -0.03em;
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 10px 0; color: var(--ink); text-decoration: none;
  font-size: 0.95rem; font-weight: 600;
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.28em; }
.nav-toggle {
  display: none; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--ink); color: var(--ink); position: relative;
}
.nav-icon, .nav-icon::before, .nav-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor;
  position: absolute; left: 12px; transition: transform 200ms var(--ease), opacity 150ms;
}
.nav-icon { top: 21px; }
.nav-icon::before, .nav-icon::after { content: ""; left: 0; }
.nav-icon::before { top: -6px; }
.nav-icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-icon::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 18px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
}

/* ========== HOME ========== */
.home-hero { padding-block: clamp(28px, 5vw, 56px) 8px; }
.home-hero-grid {
  display: grid; gap: 28px; align-items: end;
}
@media (min-width: 900px) {
  .home-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}
.home-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  max-width: 9ch;
  margin-bottom: 0.35em;
}
.home-hero .lede { margin-bottom: 0; }
.home-hero-photo { margin: 0; }
.home-hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.more { margin-top: 24px; font-weight: 600; }
.more a { color: var(--ink); }
.home-contact .cta { margin-top: 8px; }

/* Inner pages shared */
.kicker {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.8em;
  letter-spacing: 0.04em;
}
.lede {
  font-size: var(--step-lead);
  line-height: 1.35;
  color: var(--muted);
  max-width: 40ch;
}
.page-top { padding-block: 28px 28px; }
.page-top h1 { max-width: 14ch; }
.wide { margin: 0 auto 8px; }
.wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.credit { font-size: 0.74rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.crumbs { padding-block: 16px 0; font-size: 0.85rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin: 0 0.55em; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs [aria-current] { color: var(--ink); }

.section { padding-block: clamp(36px, 6vw, 72px); }
.tint { background: var(--surface); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 10px;
}
.section-head h2 { margin: 0; }
.section-lede { color: var(--muted); max-width: 48ch; margin: 0 0 24px; }

.index { list-style: none; margin: 0; padding: 0; counter-reset: idx; }
.index li { counter-increment: idx; border-top: 1px solid var(--rule); }
.index li:last-child { border-bottom: 1px solid var(--rule); }
.index a {
  display: grid; grid-template-columns: 2.2rem 1fr 96px; gap: 18px; align-items: center;
  padding: 16px 0; color: var(--ink); text-decoration: none;
}
.index a::before {
  content: counter(idx, decimal-leading-zero);
  font-size: 0.85rem; color: var(--muted);
}
.index .t { font: 400 clamp(1.35rem, 2.8vw, 2rem)/1.1 var(--serif); letter-spacing: -0.02em; display: block; }
.index .s { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.index img { width: 96px; height: 64px; object-fit: cover; }

.grid { display: grid; gap: 36px 28px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); margin-top: 20px; }
.card { background: transparent; border-top: 1px solid var(--ink); padding-top: 12px; }
.card a, .card .card-link { color: inherit; text-decoration: none; display: block; height: 100%; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.card-body { display: block; padding: 12px 0 0; }
.card-title { display: block; font: 400 1.4rem/1.15 var(--serif); letter-spacing: -0.02em; margin: 0 0 6px; }
.card-text { display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.meta { display: block; margin-top: 10px; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
.card .kicker { display: block; margin-bottom: 6px; }
.cards.lead > .card:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .cards.lead > .card:first-child a {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: end;
  }
  .cards.lead > .card:first-child img { aspect-ratio: 16 / 10; }
  .cards.lead > .card:first-child .card-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
}

.prose { max-width: var(--measure); font-size: 1.1rem; }
.prose h2 { margin-top: 1.6em; scroll-margin-top: 88px; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.note {
  border-left: 3px solid var(--ink);
  padding: 4px 0 4px 16px;
  font-size: 1rem;
  color: var(--muted);
  margin: 1.4em 0;
}
.article-head, .page-head { padding-top: 12px; }
.article-head h1, .page-head h1 { max-width: 16ch; }
.byline { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }
.figure { margin: 0 0 28px; }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.figure.inline { margin: 1.6em 0; }
.article-layout {
  display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr);
  justify-items: center; padding-bottom: 24px;
}
@media (min-width: 1020px) {
  .article-layout {
    grid-template-columns: 230px minmax(0, var(--measure));
    justify-content: center; align-items: start; justify-items: stretch;
  }
  .toc { position: sticky; top: 96px; }
}
.toc { font-size: 0.9rem; border-top: 1px solid var(--ink); padding-top: 12px; width: 100%; }
.toc ol { padding-left: 1.1em; margin: 0; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--ink); text-decoration: none; }
.layout {
  display: grid; gap: 40px; padding-block: 24px 48px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .side { position: sticky; top: 90px; align-self: start; }
}
.box { border-top: 1px solid var(--ink); padding: 12px 0 4px; margin-bottom: 22px; font-size: 0.95rem; }
.box-h {
  font-size: var(--step-small); font-weight: 600; letter-spacing: 0.06em;
  color: var(--ink); margin: 0 0 10px; text-transform: uppercase;
}
.box ul { padding-left: 1.1em; margin: 0; }
.box li { margin-bottom: 6px; }
.side-note { font-size: 0.9rem; color: var(--muted); margin: 0 0 18px; line-height: 1.45; }
.facts { margin: 0; }
.facts div { padding: 7px 0; border-top: 1px solid var(--rule); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--muted); }
.facts dd { margin: 2px 0 0; }
.related { padding-block: 40px 72px; border-top: 1px solid var(--ink); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.chip {
  background: transparent; border: 1px solid var(--ink); color: var(--ink);
  padding: 7px 14px; font-size: 0.9rem; min-height: 40px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--accent-ink); }
[hidden] { display: none !important; }

.table-wrap { overflow-x: auto; margin-top: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); border-bottom-color: var(--ink); text-transform: uppercase; }

.contact-form { margin-top: 2em; padding-top: 16px; border-top: 1px solid var(--ink); }
label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.95rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px;
  border: 1px solid var(--ink); border-radius: 0; background: var(--bg); color: var(--ink);
}
.small { font-size: 0.85rem; color: var(--muted); }

.essentials {
  list-style: none; margin: 16px 0 12px; padding: 0;
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-top: 1px solid var(--rule);
}
.essentials li { border-bottom: 1px solid var(--rule); }
.essentials a { display: block; padding: 18px 16px 18px 0; color: var(--ink); text-decoration: none; }
.essentials .big {
  display: block;
  font: 400 clamp(2rem, 4.5vw, 3rem)/1 var(--serif);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.essentials span:last-child { font-size: 0.95rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--field);
  color: var(--field-ink);
  padding: 56px 0 calc(28px + env(safe-area-inset-bottom));
}
.site-footer a { color: var(--field-ink); }
.site-footer .grid {
  display: grid; gap: 36px 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
@media (min-width: 900px) {
  .site-footer .grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
.site-footer ul { list-style: none; margin: 0 0 18px; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.98rem; }
.site-footer p { font-size: 0.98rem; }
.foot-h {
  font-size: var(--step-small); font-weight: 600; letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--field-ink) 70%, transparent);
  margin: 0 0 12px; text-transform: uppercase;
}
.site-footer .brand-name {
  font: 400 2rem/1 var(--serif);
  color: var(--field-ink);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}
.legal {
  border-top: 1px solid color-mix(in srgb, var(--field-ink) 25%, transparent);
  margin-top: 32px; padding-top: 16px;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--field-ink) 75%, transparent);
}
.legal .biz { color: var(--field-ink); margin-bottom: 8px; }
.linklike {
  background: none; border: 0; padding: 0; color: var(--field-ink);
  font: inherit; text-decoration: underline; cursor: pointer;
}

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--field); color: var(--field-ink);
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
}
.consent p { margin: 0; max-width: 70ch; font-size: 0.95rem; }
.consent a { color: var(--field-ink); }
.consent-actions { display: flex; gap: 10px; }
.consent .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.consent .btn.line { background: transparent; color: var(--field-ink); border-color: var(--field-ink); }
.consent .btn.line:hover { background: var(--field-ink); color: var(--field); }
.consent a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-frame { transition: none; }
}
