/* ───────── Tokens (paleta CETRU, la misma de la app) ───────── */
:root {
  --green-900: #2b3729;
  --green-800: #3f4d3c;
  --green-700: #495c46;
  --green-600: #5c7358;
  --olive: #878c5e;
  --gold: #d9c979;
  --gold-dark: #7a6c25;   /* texto dorado sobre fondos claros (contraste AA) */
  --cream: #f7f4ea;
  --paper: #ffffff;
  --ink: #222a21;
  --muted: #5b645a;
  --line: #e2ddc9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34, 42, 33, .06), 0 8px 24px rgba(34, 42, 33, .08);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--green-900); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 2rem); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--green-900); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow { font: 600 .75rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 .8rem; }
.eyebrow--gold { color: var(--gold); }

/* ───────── Botones ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-900); color: #fff; }
.btn--gold { background: var(--gold); color: var(--green-900); }
.btn--gold:hover { background: #e7d98f; color: var(--green-900); }
.btn--ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn--ghost:hover { background: var(--green-700); color: #fff; }
.btn--outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ───────── Header ───────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(43, 55, 41, .96); backdrop-filter: blur(8px); color: #fff; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--green-700); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 600 1.35rem/1 var(--font-serif); letter-spacing: .06em; color: var(--gold); }
.brand__tag { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: .25rem; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; white-space: nowrap; padding: .5rem .75rem; color: rgba(255,255,255,.88); text-decoration: none; font-size: .92rem; font-weight: 500; border-radius: 8px; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--gold); background: rgba(255,255,255,.06); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────── Hero ───────── */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 85% 0%, var(--green-600) 0%, var(--green-800) 45%, var(--green-900) 100%); padding: clamp(3.5rem, 9vw, 7rem) 0; }
.hero__inner { position: relative; z-index: 1; max-width: 760px; margin-left: max(1rem, calc((100% - 1120px) / 2)); }
.hero h1 { color: #fff; }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__mark { position: absolute; right: -80px; top: 50%; transform: translateY(-50%); color: rgba(217, 201, 121, .09); pointer-events: none; }

.page-hero { background: linear-gradient(160deg, var(--green-800), var(--green-900)); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero__lead { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 60ch; margin: 0; }

/* ───────── Secciones ───────── */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section__head { max-width: 62ch; margin-bottom: 2.5rem; }
.section__head--spaced { margin-top: 3.5rem; margin-bottom: 1.5rem; }
.section__lead { color: var(--muted); font-size: 1.05rem; }
.block + .block { margin-top: 3rem; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.block__head h2, .block__head h3 { margin: 0; }
.link-arrow { font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }
.empty { color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0; }

/* ───────── Tarjetas ───────── */
.grid--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(34,42,33,.08), 0 14px 32px rgba(34,42,33,.12); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.card__top .eyebrow { margin: 0; }
.card__title { font-size: 1.2rem; margin-bottom: .35rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__meta { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.card__date { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.card__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.card__actions .btn { padding: .6rem 1.05rem; font-size: .88rem; }
.ficha__img { margin: -1.4rem -1.4rem 1.1rem; display: block; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.ficha__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.chip { display: inline-block; font-size: .72rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; white-space: nowrap; }
.chip--open { background: #f6efc6; color: #6b5d12; border: 1px solid #e3d688; }
.chip--running { background: #e4ece2; color: var(--green-700); border: 1px solid #c3d1bf; }

/* ───────── Franjas ───────── */
.band { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.band__inner p:last-child { margin-bottom: 0; }
.band h2 { margin-bottom: .4em; }
.band--soft { background: #ece7d3; }
.band--dark { background: var(--green-800); color: rgba(255,255,255,.88); }
.band--dark h2 { color: #fff; }

/* ───────── Contenido ───────── */
.prose { font-size: 1.05rem; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); }
.prose__img { margin-bottom: 1.5rem; }
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.aside { position: sticky; top: 96px; }
.aside__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.aside__card h2 { font-size: 1.2rem; }
.aside__item { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--line); }
.aside__item .btn { margin-top: .4rem; }
.aside__item .card__date { margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; gap: .15rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.contact-list strong { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }

/* ───────── Footer ───────── */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.75); padding-top: 3.5rem; font-size: .92rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-title { font: 600 .75rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-about { margin-top: 1rem; max-width: 30ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.25rem 0; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ───────── Responsive ───────── */
@media (max-width: 1240px) { .brand__tag { display: none; } .nav-list a { padding: .5rem .6rem; } }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem; background: var(--green-900); border-top: 1px solid rgba(255,255,255,.1); display: none; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: .8rem .75rem; }
  .brand__tag { display: none; }
  .hero__mark { right: -160px; opacity: .8; }
  .layout-2col { grid-template-columns: 1fr; }
  .aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ───────── Migas de pan ───────── */
.breadcrumb { background: #ece7d3; border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0; padding: .7rem 0; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; color: var(--olive); }
.breadcrumb a { color: var(--green-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
