/* =========================================================
   Ecoturismo Colombia — hoja única del rediseño
   Paleta y tipografías según CONTRATO_TEMPLATES.md
   ========================================================= */

:root {
  --bg: #f5f3ec;
  --bg-alt: #e4e8dc;
  --bg-card: #ffffff;
  --text: #13211a;
  --text-2: #33443a;
  --text-3: #44544a;
  --muted: #5b6a60;
  --green: #1d4a36;
  --green-2: #2a5a43;
  --green-3: #2f6049;
  --ocre: #e8b04e;
  --ocre-2: #f0c064;
  --brown: #9a5a14;
  --footer: #0f2a1f;
  --line: #dcd8cb;
  --line-2: #cfcabb;
  --line-3: #e1ddd0;
  --white: #f5f3ec;

  --font-head: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1320px;
  --gutter: 16px;
  --header-h: 64px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 40px -20px rgba(15, 42, 31, .25);
}

@media (min-width: 700px) {
  :root { --gutter: 28px; --header-h: 76px; }
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brown); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }
.needs-js { display: none; }
.js .needs-js { display: inline-flex; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--green); color: var(--white); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* ---------- Utilidades tipográficas ---------- */
.eyebrow {
  margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text);
}
.eyebrow--ocre { color: var(--brown); }
.eyebrow--muted { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.section-title {
  margin: 12px 0 0; font-size: clamp(30px, 4.4vw, 56px); line-height: 1; letter-spacing: -.035em; font-weight: 600; text-wrap: balance;
}
.section-title--sm { font-size: clamp(24px, 3vw, 36px); margin-top: 48px; }
.section-title__arrow { font-family: var(--font-body); font-weight: 400; font-style: italic; color: var(--brown); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); background: var(--ocre); padding: 8px 14px; border-radius: 999px; text-decoration: none;
}
.badge:hover { background: var(--ocre-2); color: var(--text); }
.badge--static { cursor: default; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; background: transparent;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: #153a2a; color: var(--white); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: #ebe7dc; color: var(--text); }
.btn-round {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid #bfbaa9; background: transparent;
  font-size: 20px; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; justify-content: center;
}
.btn-round--primary { background: var(--green); color: var(--white); border-color: var(--green); }
.link-arrow { font-size: 16px; font-weight: 600; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header__bar {
  height: var(--header-h); display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex-shrink: 0; min-width: 0; }
.brand:hover { color: var(--text); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--ocre);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; line-height: 1; padding-bottom: 3px; flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name { font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand__tagline { display: none; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
@media (min-width: 700px) {
  .brand__name { font-size: 19px; }
  .brand__tagline { display: block; }
}

.nav-main { display: none; align-items: center; gap: 4px; flex: 1; }
.nav-main__link, .nav-main__explore {
  font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none;
  padding: 10px 14px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; white-space: nowrap;
}
.nav-main__explore { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.nav-main__caret { font-size: 10px; }
.nav-main__link:hover, .nav-main__explore:hover { background: #ebe7dc; color: var(--text); }
.nav-main__link[aria-current="page"], .nav-main__explore[aria-expanded="true"] { background: var(--bg-alt); color: var(--green); font-weight: 600; }
@media (min-width: 1000px) { .nav-main { display: flex; } }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-icon {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  cursor: pointer; color: var(--text); align-items: center; justify-content: center;
}
.btn-icon:hover, .btn-icon[aria-expanded="true"] { background: var(--bg-alt); }
.btn-menu {
  height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--green); color: var(--white);
  font-size: 15px; font-weight: 600; cursor: pointer; align-items: center;
}
@media (min-width: 1000px) { .btn-menu { display: none !important; } }

.search-panel { border-top: 1px solid var(--line); background: var(--bg); padding: 18px 0 22px; }
.search-panel__hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.search-panel__ui { min-height: 56px; }
/* Pagefind UI: adaptar a la paleta */
.search-panel__ui {
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: var(--green);
  --pagefind-ui-text: var(--text);
  --pagefind-ui-background: #fff;
  --pagefind-ui-border: var(--line-2);
  --pagefind-ui-tag: var(--bg-alt);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 999px;
  --pagefind-ui-image-border-radius: 12px;
  --pagefind-ui-image-box-ratio: 4 / 3;
  --pagefind-ui-font: var(--font-head);
}
.search-panel__ui .pagefind-ui__search-input { font-size: 20px; }
.search-panel__ui .pagefind-ui__result-title a { font-weight: 600; color: var(--green); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--bg);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.mega__inner { padding-top: 36px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; }
.mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.mega__item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.mega__item:hover { color: var(--green); }
.mega__name { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.mega__count { color: var(--muted); white-space: nowrap; }
.mega__card {
  position: relative; display: block; border-radius: 18px; overflow: hidden; min-height: 260px; text-decoration: none;
  background: repeating-linear-gradient(135deg, var(--green-2) 0 10px, var(--green-3) 10px 20px);
}
.mega__card-text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; color: var(--white);
  background: linear-gradient(to top, rgba(10, 25, 18, .85), transparent);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; font-size: 22px;
}
.mega__card-title { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line);
  max-height: calc(100vh - var(--header-h)); overflow: auto;
}
.mobile-menu__list { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 28px; }
.mobile-menu__link {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 22px; font-weight: 600; color: var(--text); text-decoration: none;
}
.mobile-menu__link span { color: var(--muted); }
.mobile-menu__link--section { font-size: 18px; font-weight: 500; padding: 12px 0; }
.mobile-menu__eyebrow { margin: 24px 0 4px; }

/* ---------- Hero (artículo / categoría) ---------- */
.hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--green-2); color: var(--white);
}
.hero--pattern { background: repeating-linear-gradient(135deg, var(--green-2) 0 12px, var(--green-3) 12px 24px); }
.hero--article { min-height: min(80vh, 760px); }
.hero--category { min-height: 440px; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 25, 18, .94) 0%, rgba(10, 25, 18, .45) 50%, rgba(10, 25, 18, .12) 100%); }
.hero__content { position: relative; padding-top: 40px; padding-bottom: 48px; }
.hero__content--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero__main { max-width: 760px; }
.hero__tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__minutes { color: #dfe4dc; text-transform: uppercase; }
.hero__title {
  margin: 22px 0 0; max-width: 1000px; font-size: clamp(32px, 5.8vw, 80px); line-height: .98; letter-spacing: -.035em; font-weight: 600; color: var(--white); text-wrap: balance;
}
.hero__title--xl { font-size: clamp(40px, 7vw, 104px); letter-spacing: -.04em; line-height: .95; }
.hero__page { font-family: var(--font-body); font-weight: 400; font-style: italic; font-size: .5em; }
.hero__lead { margin: 24px 0 0; font-size: 19px; line-height: 1.5; color: #dfe4dc; max-width: 600px; text-wrap: pretty; }
@media (min-width: 700px) { .hero__content { padding-bottom: 64px; } }

.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; color: #c7d0c6; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; opacity: .7; }
.breadcrumbs a { color: #c7d0c6; text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs--dark ol, .breadcrumbs--dark a { color: var(--muted); }
.breadcrumbs--dark a:hover { color: var(--brown); }

.byline { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: #dfe4dc; font-size: 15px; }
.byline strong { color: var(--white); }
.byline__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--green); border: 2px solid var(--ocre); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; font-size: 14px;
}
.byline__updated { color: #c7d0c6; }

.stats { display: flex; gap: 16px; flex-wrap: wrap; }
.stat {
  padding: 22px 26px; border-radius: 18px; background: rgba(245, 243, 236, .1); border: 1px solid rgba(245, 243, 236, .2); color: var(--white); min-width: 150px;
}
.stat--bottom { display: flex; flex-direction: column; justify-content: flex-end; }
.stat__num { font-size: 52px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stat__label { margin-top: 8px; color: #c7d0c6; text-transform: uppercase; font-size: 11px; }
.stat__text { margin-top: 8px; font-size: 18px; font-weight: 600; }

/* ---------- Barra de progreso ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.progress__bar { height: 100%; width: 0; background: var(--ocre); transition: width .1s linear; }

/* ---------- Layout del artículo ---------- */
.article-layout { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.article-aside { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 32px; order: 2; }
.article { flex: 999 1 320px; min-width: 0; max-width: 760px; order: 1; }
.article-layout--single { justify-content: center; }
.article-layout--single .article { max-width: 760px; }
@media (min-width: 1000px) {
  .article-layout { padding-top: 64px; }
  .article-aside { order: 1; position: sticky; top: calc(var(--header-h) + 28px); }
  .article { order: 2; }
}
.aside-title { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.toc__item { margin-left: -2px; }
.toc__link {
  display: flex; gap: 10px; padding: 8px 0 8px 16px; border-left: 2px solid transparent;
  font-size: 15px; line-height: 1.3; color: var(--muted); text-decoration: none;
}
.toc__item--l3 .toc__link { padding-left: 28px; font-size: 14px; }
.toc__num { font-size: 11px; padding-top: 3px; flex-shrink: 0; }
.toc__link:hover { color: var(--text); }
.toc__link.is-active { border-left-color: var(--green); color: var(--green); font-weight: 600; }
.toc__link.is-active .toc__num { color: var(--brown); }

.share__list { display: flex; gap: 8px; flex-wrap: wrap; }
.share__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px;
}
.share__btn:hover { background: var(--bg-alt); color: var(--green); }

/* ---------- Prose: cuerpo de lectura ---------- */
.prose {
  font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: #22322a; overflow-wrap: anywhere;
}
@media (min-width: 700px) { .prose { font-size: 19px; } }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; text-wrap: pretty; }
.prose > p:first-of-type { font-size: 1.15em; line-height: 1.5; color: var(--text); margin-bottom: 24px; }
.prose a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(29, 74, 54, .4); }
.prose a:hover { color: var(--brown); text-decoration-color: currentColor; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-head); color: var(--text); font-weight: 600; text-wrap: balance; scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2 { margin: 56px 0 20px; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -.025em; }
.prose h3 { margin: 36px 0 12px; font-size: clamp(21px, 2.4vw, 24px); line-height: 1.2; letter-spacing: -.015em; }
.prose h4 { margin: 28px 0 10px; font-size: 19px; line-height: 1.3; }
.prose ul, .prose ol { margin: 0 0 28px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose li > ul, .prose li > ol { margin: 10px 0 0; }
.prose strong { font-weight: 600; color: var(--text); }
.prose em { font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose blockquote {
  margin: 36px 0; padding: 8px 0 8px 24px; border-left: 4px solid var(--ocre);
  font-size: 1.2em; line-height: 1.45; font-style: italic; color: var(--text);
}
.prose blockquote p { margin: 0; }
.prose blockquote p + p { margin-top: 12px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0; }
.prose figure { margin: 40px 0; }
.prose figure img { margin: 0; width: 100%; }
.prose figcaption { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.prose iframe, .prose video { max-width: 100%; border-radius: var(--radius); }
.prose iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; border: 0; }
.prose code { font-family: var(--font-mono); font-size: .85em; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--footer); color: var(--white); padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.prose pre code { background: transparent; padding: 0; color: inherit; }
/* Bloques heredados de WordPress */
.prose .wp-block-image, .prose .wp-caption { max-width: 100%; margin: 40px 0; }
.prose .wp-caption img { margin: 0; }
.prose .wp-caption-text { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.prose .alignleft, .prose .alignright, .prose .aligncenter { float: none; margin: 24px auto; }
.prose .wp-block-embed__wrapper { position: relative; }

/* Tablas: scroll horizontal sin necesidad de wrapper, más el wrapper opcional .tabla-scroll */
.tabla-scroll { margin: 0 0 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); }
.tabla-scroll > table { margin: 0; border: 0; border-radius: 0; }
.prose table {
  display: block; width: max-content; min-width: min(100%, 320px); max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 0 28px; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-head); font-size: 15px; line-height: 1.4; background: var(--bg-card);
}
.prose table thead { background: var(--green); color: var(--white); }
.prose table th, .prose table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid #e6e2d6; min-width: 120px; }
.prose table th { font-weight: 600; border-top: 0; }
.prose table thead th { color: var(--white); }
.prose table tbody tr:nth-child(even) { background: #f7f6f1; }
.prose table tbody tr:hover { background: var(--bg-alt); }
.prose table caption { caption-side: bottom; padding: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
@media (min-width: 700px) { .prose table { font-size: 16px; } .prose table th, .prose table td { padding: 14px 18px; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 56px; border-top: 1px solid var(--line); }
.faq__title { margin: 40px 0 8px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.025em; font-weight: 600; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__sign {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-alt); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.faq__sign::before { content: "+"; }
.faq__item[open] .faq__sign::before { content: "−"; }
.faq__a { padding: 0 56px 24px 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: #22322a; }
.faq__a p { margin: 0; }
@media (max-width: 699px) { .faq__a { padding-right: 0; } }

/* ---------- Tags, banner de categoría, prev/next ---------- */
.tags { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags__label { font-size: 14px; color: var(--muted); margin-right: 6px; }
.tag { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; }
a.tag:hover { background: var(--bg-alt); color: var(--green); }

.cat-banner {
  margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 28px; border-radius: 18px; background: var(--green); color: var(--white); text-decoration: none;
}
.cat-banner:hover { background: #153a2a; color: var(--white); }
.cat-banner__text { display: flex; flex-direction: column; gap: 4px; }
.cat-banner__text .eyebrow--ocre { color: var(--ocre); font-size: 12px; }
.cat-banner__name { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.cat-banner__count { color: #c7d0c6; white-space: nowrap; }

.postnav { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .postnav { grid-template-columns: 1fr 1fr; } }
.postnav__item {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--line-3); background: var(--bg-card);
  text-decoration: none; color: var(--text);
}
.postnav__item:hover { border-color: var(--green); color: var(--green); }
.postnav__item--next { text-align: right; }
.postnav__item--empty { border: 0; background: transparent; }
.postnav__label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.postnav__title { font-size: 17px; font-weight: 600; line-height: 1.25; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 40px 28px; }
@media (min-width: 700px) { .grid--cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
@media (min-width: 700px) { .grid--related { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; } }

.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__media {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(135deg, #dfe3d6 0 10px, #e7eadf 10px 20px);
}
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img { transform: scale(1.03); }
.card__placeholder { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, var(--green-2) 0 10px, var(--green-3) 10px 20px); opacity: .55; }
.card__cat {
  position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); background: var(--green); padding: 6px 12px; border-radius: 999px;
}
.card__body { display: flex; flex-direction: column; gap: 10px; }
.card__meta { margin: 0; color: var(--muted); }
.card__title { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--green); }
.card__desc { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.5; color: var(--text-3); text-wrap: pretty; }
.card__author { margin: 0; font-size: 14px; color: var(--muted); }

/* Destacado de categoría */
.featured-wrap { padding-top: 40px; }
.featured {
  display: grid; grid-template-columns: 1fr; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line-3);
}
@media (min-width: 900px) { .featured { grid-template-columns: 1fr 1fr; } }
.featured__media { position: relative; display: block; min-height: 260px; background: repeating-linear-gradient(135deg, #dfe3d6 0 10px, #e7eadf 10px 20px); }
@media (min-width: 900px) { .featured__media { min-height: 420px; } }
.featured__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured__body { padding: 32px 24px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
@media (min-width: 900px) { .featured__body { padding: 48px 44px; } }
.featured__body .badge { align-self: flex-start; }
.featured__title { margin: 0; font-size: clamp(26px, 3.4vw, 44px); font-weight: 600; line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.featured__title a { color: var(--text); text-decoration: none; }
.featured__title a:hover { color: var(--green); }
.featured__desc { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.55; color: var(--text-3); text-wrap: pretty; }

.listing { padding-top: 48px; padding-bottom: 32px; }

/* ---------- Paginación ---------- */
.pagination { margin-top: 64px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; font-size: 16px; }
.pagination__btn {
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text);
  display: inline-flex; align-items: center; text-decoration: none; font-weight: 600;
}
.pagination__btn:hover { background: var(--bg-alt); color: var(--green); }
.pagination__btn--primary { background: var(--ocre); border-color: var(--ocre); }
.pagination__btn--primary:hover { background: var(--ocre-2); color: var(--text); }
.pagination__btn--disabled { opacity: .4; pointer-events: none; }
.pagination__status { padding: 0 8px; color: var(--muted); font-family: var(--font-mono); font-size: 13px; }

/* ---------- Secciones (tarjetas verdes) ---------- */
.section-card {
  position: relative; display: block; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--white);
  background: repeating-linear-gradient(135deg, var(--green-2) 0 10px, var(--green-3) 10px 20px);
}
.section-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.section-card:hover .section-card__img { transform: scale(1.04); }
.section-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 25, 18, .92), rgba(10, 25, 18, .15) 60%); }
.section-card:hover { color: var(--white); }
.section-card:hover .section-card__name { text-decoration: underline; text-decoration-color: var(--ocre); text-underline-offset: 6px; }
.section-card__text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.section-card__count { color: var(--ocre); text-transform: uppercase; }
.section-card__name { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.section-card__arrow { position: absolute; z-index: 1; top: 18px; right: 20px; font-size: 22px; }
.section-card--square { aspect-ratio: 1 / 1; }
.section-card--rail { flex: 0 0 min(300px, 78vw); aspect-ratio: 3 / 4; scroll-snap-align: start; }
.section-card--rail .section-card__name { font-size: 32px; }
.grid--sections { gap: 20px; }
@media (min-width: 500px) { .grid--sections-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

.explore { padding-top: 48px; padding-bottom: 96px; }
.explore .section-title { margin: 0 0 28px; font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -.03em; }

/* ---------- Home ---------- */
.home-hero { padding-top: 32px; padding-bottom: 24px; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .home-hero { grid-template-columns: 1.1fr 1fr; gap: 40px; padding-top: 48px; } }
.home-hero__title { margin: 24px 0 0; font-size: clamp(34px, 5vw, 72px); line-height: .98; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.home-hero__title a { color: var(--text); text-decoration: none; }
.home-hero__title a:hover { color: var(--green); }
.home-hero__lead { margin: 24px 0 0; font-family: var(--font-body); font-size: 19px; line-height: 1.5; color: var(--text-3); max-width: 560px; text-wrap: pretty; }
.home-hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.home-hero__meta { font-size: 15px; color: var(--muted); }
.home-hero__media {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--green-2) 0 12px, var(--green-3) 12px 24px);
}
@media (min-width: 900px) { .home-hero__media { aspect-ratio: 4 / 5; } }
.home-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.sections { padding: 64px 0 24px; }
@media (min-width: 700px) { .sections { padding: 96px 0 40px; } }
.sections__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sections__controls { gap: 10px; align-items: center; }
.rail {
  margin-top: 32px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(var(--gutter), calc((100vw - 1264px) / 2)) 20px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.latest { padding-top: 48px; padding-bottom: 96px; }
.latest__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 40px; }

/* ---------- Página suelta / 404 ---------- */
.page-head { padding-top: 48px; padding-bottom: 8px; }
@media (min-width: 700px) { .page-head { padding-top: 72px; } }
.page-head .breadcrumbs { margin-bottom: 24px; }
.page-head__title { margin: 12px 0 0; font-size: clamp(40px, 7vw, 96px); line-height: .95; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.page-layout { padding-top: 32px; padding-bottom: 96px; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 900px) { .page-layout { grid-template-columns: minmax(0, 760px) minmax(280px, 1fr); } }
.page-prose { max-width: 760px; }
.contact-box { background: var(--bg-card); border: 1px solid var(--line-3); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-box__text { margin: 0; font-family: var(--font-body); font-size: 19px; line-height: 1.5; color: var(--text-2); }
.contact-box__email { margin: 0; font-size: clamp(16px, 2vw, 20px); font-weight: 400; padding: 16px 22px; border-radius: 999px; background: var(--green); color: var(--white); overflow-wrap: anywhere; }
.contact-box__note { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-3); }

.notfound { padding-top: 72px; padding-bottom: 96px; }
.notfound__title { margin: 12px 0 0; font-size: clamp(40px, 7vw, 96px); line-height: .95; letter-spacing: -.04em; font-weight: 600; }
.notfound__lead { margin: 24px 0 0; font-family: var(--font-body); font-size: 20px; line-height: 1.5; color: var(--text-3); max-width: 560px; }
.notfound__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.notfound .section-title--sm { margin-bottom: 24px; }

/* ---------- Relacionados ---------- */
.related { background: var(--bg-alt); padding: 64px 0 80px; margin-top: 40px; }
.related .section-title { margin: 0 0 32px; font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -.03em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #e9e6dc; margin-top: 40px; }
.site-footer a { color: #e9e6dc; text-decoration: none; }
.site-footer a:hover { color: var(--ocre); }
.site-footer__grid { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }
.brand--footer { color: #e9e6dc; }
.brand--footer .brand__mark { background: var(--ocre); color: var(--footer); }
.brand--footer .brand__name { font-size: 22px; }
.site-footer__desc { margin: 16px 0 0; font-size: 16px; line-height: 1.5; color: #b9c2b8; max-width: 320px; }
.site-footer__title { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8fa295; }
.site-footer__title + .site-footer__title, .site-footer__email + .site-footer__title { margin-top: 28px; }
.site-footer__links { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.site-footer__links:last-child { margin-bottom: 0; }
.site-footer__email { margin: 0; overflow-wrap: anywhere; }
.site-footer__email .mono { font-size: 14px; color: var(--ocre); }
.site-footer__bottom {
  padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 14px; color: #8fa295; border-top: 1px solid rgba(233, 230, 220, .15);
}
.site-footer__top { color: #8fa295; }

/* ---------- Impresión ---------- */
@media print {
  .site-header, .site-footer, .article-aside, .progress, .related, .postnav, .cat-banner { display: none !important; }
  .hero { min-height: 0; color: var(--text); background: none; }
  .hero__shade, .hero__img { display: none; }
  .hero__title { color: var(--text); }
  body { background: #fff; }
}
