/* Outfit (Identitat La Trama) */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit/Outfit-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit/Outfit-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit/Outfit-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit/Outfit-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Les Flos / Quaky - només per a títols */
@font-face {
  font-family: "Quaky";
  src: url("../fonts/Quaky.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}


/*
   LA TRAMA · Asociación Cultural y Juvenil / Espacio de Dinamización Rural
   Sistema de diseño — hoja de estilos principal
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color */
  --ink: #1A1D1C;
  --ink-2: #3B2112;
  --ink-3: #6b5f4a;
  --cream: #DBDAC9;
  --cream-2: #d3d1be;
  --paper: #e6e1d6;
  --terra: #999140;
  --terra-dk: #7f7636;
  --forest: #B7C6BF;
  --forest-dk: #9db0a8;
  --ochre: #999140;
  --clay: #b9b5a3;
  --line: rgba(59, 33, 18, 0.16);
  --line-soft: rgba(59, 33, 18, 0.09);

  /* Sombras */
  --sh-1: 0 1px 2px rgba(23, 19, 14, 0.05), 0 10px 30px rgba(23, 19, 14, 0.06);
  --sh-2: 0 24px 70px rgba(23, 19, 14, 0.16);
  --sh-inset: inset 0 0 0 1px var(--line);

  /* Radios */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 30px;
  --r-pill: 999px;

  /* Tipografía */
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Medidas */
  --maxw: 1240px;
  --maxw-narrow: 860px;
  --gutter: clamp(20px, 4vw, 44px);
  --header-h: 78px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

/* --------------------------------------------------------------------------
   2. Reset y base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

body.is-locked { overflow: hidden; }

img,
svg,
picture { display: block; max-width: 100%; }

img { height: auto; }

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--ochre); color: var(--ink); }

/* --------------------------------------------------------------------------
   3. Tipografía
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 20, "WONK" 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); line-height: 1.02; }
.h2 { font-size: clamp(1.9rem, 3.9vw, 3.05rem); line-height: 1.06; }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.15; }
.h4 { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.25; }

.lead {
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-2);
}

.muted { color: var(--ink-3); }

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

strong, b { font-weight: 650; color: var(--ink); }

/* Kicker / etiqueta superior */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--terra);
}

.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.kicker--light { color: var(--ochre); }
.kicker--center { justify-content: center; }

/* --------------------------------------------------------------------------
   4. Layout y utilidades
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--maxw-narrow); }

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 122px);
}

.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--forest-dk); color: var(--cream); }
.section--ink h2,
.section--ink h3 { color: var(--cream); }

.section--ruled { border-top: 1px solid var(--line); }

[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.center { text-align: center; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
  margin-bottom: clamp(34px, 4.5vw, 56px);
}

.section-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.section-head p { color: var(--ink-2); }

.section-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 14px; }

/* Trama decorativa (patrón de tejido) */
.weave-rule {
  height: 14px;
  width: 100%;
  background-image:
    repeating-linear-gradient(90deg, var(--line) 0 12px, transparent 12px 24px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 4px, transparent 4px 24px);
  background-position: 0 0, 0 6px;
  background-repeat: repeat-x;
  background-size: 24px 2px, 24px 2px;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   5. Botones
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--terra);
  --btn-fg: #fff;
  --btn-bd: var(--terra);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 27px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.35s var(--ease-out), background 0.3s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
  isolation: isolate;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(23, 19, 14, 0.18);
}

.btn:active { transform: translateY(-1px); }

.btn .btn__arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}

.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  --btn-bd: var(--ink);
}

.btn--light {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  --btn-bd: var(--cream);
}

.btn--light:hover { --btn-bg: var(--ochre); --btn-bd: var(--ochre); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.45);
}

.btn--outline-light:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: #fff;
}

.btn--forest {
  --btn-bg: var(--forest);
  --btn-fg: #fff;
  --btn-bd: var(--forest);
}

.btn--sm { padding: 11px 20px; font-size: 0.76rem; }
.btn--wide { padding-inline: 34px; }

/* Enlace de texto con subrayado animado */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--terra);
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease-out), color 0.25s var(--ease);
}

.link-arrow:hover {
  background-size: 100% 1.5px;
  color: var(--terra-dk);
}

.link-arrow span:last-child { transition: transform 0.35s var(--ease-out); }
.link-arrow:hover span:last-child { transform: translateX(4px); }

.link-plain {
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.25s var(--ease);
}

.link-plain:hover { color: var(--terra); }

/* --------------------------------------------------------------------------
   6. Cabecera y navegación
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: #fff;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(199, 122, 122, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  height: 68px;
  box-shadow: 0 10px 34px rgba(23, 19, 14, 0.12);
}

.site-header.is-scrolled::after { background: transparent; }

.site-header.is-scrolled .nav__link::after {
  background: #fff;
}

.site-header.is-scrolled .nav__link[aria-current="page"] {
  color: #fff;
}

.site-header.is-scrolled .lang {
  border-color: rgba(255, 255, 255, 0.6);
}

.site-header.is-scrolled .burger {
  border-color: rgba(255, 255, 255, 0.6);
}

.site-header.is-scrolled .lang__btn[aria-pressed="true"] {
  background: #fff;
  color: #c77a7a;
}

.site-header.is-open {
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.site-header.is-open::after { background: rgba(255, 255, 255, 0.18); }

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  flex: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  transition: transform 0.6s var(--ease-out);
}

.brand:hover .brand__mark { transform: rotate(-90deg); }

.brand__logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: lowercase;
}

.brand__sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.53rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-top: 4px;
}

/* Nav principal */
.nav { display: flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  padding: 9px 14px;
  font-size: 0.87rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { font-weight: 650; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
}

/* Selector de idioma */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid currentColor;
  border-color: rgba(255, 255, 255, 0.32);
  transition: border-color 0.4s var(--ease);
}

.site-header.is-scrolled .lang { border-color: var(--line); }

.lang__btn {
  min-width: 34px;
  padding: 5px 8px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.lang__btn:hover { opacity: 1; }

.lang__btn[aria-pressed="true"] {
  background: var(--ochre);
  color: var(--ink);
  opacity: 1;
}

/* Botón hamburguesa */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid currentColor;
  border-color: rgba(255, 255, 255, 0.32);
  position: relative;
  flex: none;
}

.site-header.is-scrolled .burger { border-color: var(--line); }

.burger span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), opacity 0.2s var(--ease);
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }

.site-header.is-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header.is-open .burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--forest-dk);
  color: var(--cream);
  padding: calc(var(--header-h) + 26px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out), visibility 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.1rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid rgba(247, 242, 232, 0.13);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out), color 0.3s;
}

.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}

.mobile-menu__link:hover { color: var(--ochre); }

.mobile-menu__link > span:first-child { display: block; }

.mobile-menu__link .n {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  opacity: 0.5;
}

.mobile-menu__foot {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.9rem;
  color: rgba(247, 242, 232, 0.72);
}

/* --------------------------------------------------------------------------
   7. Hero (slider de portada)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 880px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--forest-dk);
  color: #fff;
  isolation: isolate;
}

.hero--page {
  min-height: clamp(340px, 52vh, 520px);
  align-items: center;
  background:
    repeating-linear-gradient(90deg, rgba(247, 242, 232, 0.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(247, 242, 232, 0.05) 0 1px, transparent 1px 46px),
    linear-gradient(135deg, var(--hero-a, #2c5545) 0%, var(--hero-b, #14241d) 100%);
}

.hero--page::before {
  background: linear-gradient(to top, rgba(19, 15, 11, 0.55), rgba(19, 15, 11, 0.12));
}

.hero__media { position: absolute; inset: 0; z-index: -2; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}

.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide.is-active img {
  animation: kenburns 9s var(--ease) forwards;
}

@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.13); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(19, 15, 11, 0.92) 0%, rgba(19, 15, 11, 0.45) 45%, rgba(19, 15, 11, 0.55) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: calc(var(--header-h) + 40px) var(--gutter) clamp(96px, 12vh, 140px);
}

.hero--page .hero__inner { padding-block: calc(var(--header-h) + 44px) clamp(48px, 7vh, 76px); }

.hero__panels {
  position: relative;
  max-width: 940px;
  min-height: 1px;
}

.hero__panel { display: none; }
.hero__panel.is-active { display: block; }

.hero__panel > * + * { margin-top: 22px; }

.hero__title {
  font-size: clamp(2.7rem, 8.2vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero__title em {
  font-style: normal;
  color: var(--ochre);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.hero__sub {
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px !important;
}

/* Entrada de contenido del slide activo */
.hero__panel > * {
  opacity: 0;
  transform: translateY(26px);
}

.hero__panel.is-active > * {
  animation: rise 0.9s var(--ease-out) forwards;
}

.hero__panel.is-active > *:nth-child(1) { animation-delay: 0.1s; }
.hero__panel.is-active > *:nth-child(2) { animation-delay: 0.2s; }
.hero__panel.is-active > *:nth-child(3) { animation-delay: 0.32s; }
.hero__panel.is-active > *:nth-child(4) { animation-delay: 0.44s; }

/* Página interior: el panel es estático */
.hero--page .hero__panel > * { opacity: 1; transform: none; animation: none; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Controles del slider */
.hero__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  z-index: 3;
}

.hero__controls-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero__dots { display: flex; gap: 10px; align-items: center; }

.hero__dot {
  position: relative;
  width: 62px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.hero__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left;
}

.hero__dot[aria-selected="true"]::after {
  animation: fillbar 6.4s linear forwards;
}

.hero.is-paused .hero__dot[aria-selected="true"]::after { animation-play-state: paused; }

@keyframes fillbar { to { transform: scaleX(1); } }

.hero__nav { display: flex; gap: 8px; align-items: center; }

.hero__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero__arrow:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
  transform: scale(1.06);
}

.hero__counter {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}

.hero__counter b { color: var(--ochre); font-weight: 700; }

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 96px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
  animation: scrollhint 2.2s var(--ease) infinite;
}

@keyframes scrollhint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --------------------------------------------------------------------------
   8. Bloque introductorio (dos columnas)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
}

.split__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
}

.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

.split__body > * + * { margin-top: 20px; }

.split__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px !important;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--terra);
  letter-spacing: -0.03em;
}

.stat__label {
  display: block;
  margin-top: 7px;
  font-size: 0.76rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

/* Insignia flotante sobre la imagen */
.media-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r);
  padding: 16px 20px;
  box-shadow: var(--sh-1);
  max-width: 240px;
}

.media-badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 5px;
}

.media-badge span { font-size: 0.8rem; color: var(--ink-3); line-height: 1.4; display: block; }

/* --------------------------------------------------------------------------
   9. Tarjetas de áreas / programas
   -------------------------------------------------------------------------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 26px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
}

.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 26px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.area-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.area-card:nth-child(2)::before { background: var(--forest); }
.area-card:nth-child(3)::before { background: var(--ochre); }
.area-card:nth-child(4)::before { background: var(--ink); }

.area-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--sh-2);
  border-color: transparent;
}

.area-card:hover::before { transform: scaleX(1); }

.area-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(196, 85, 46, 0.1);
  color: var(--terra);
  transition: transform 0.5s var(--ease-out);
}

.area-card:nth-child(2) .area-card__icon { background: rgba(44, 85, 69, 0.11); color: var(--forest); }
.area-card:nth-child(3) .area-card__icon { background: rgba(224, 163, 62, 0.16); color: #a97319; }
.area-card:nth-child(4) .area-card__icon { background: rgba(23, 19, 14, 0.08); color: var(--ink); }

.area-card:hover .area-card__icon { transform: rotate(-8deg) scale(1.06); }

.area-card__num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-3);
  opacity: 0.55;
  letter-spacing: 0.05em;
}

.area-card p { font-size: 0.94rem; color: var(--ink-2); line-height: 1.62; }

.area-card__meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: -6px;
}

.area-card .btn { margin-top: auto; align-self: flex-start; }

.area-card .link-arrow { margin-top: auto; padding-top: 8px; align-self: flex-start; }

/* --------------------------------------------------------------------------
   10. Tarjetas de imagen (actividades destacadas / noticias)
   -------------------------------------------------------------------------- */
.media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease);
  height: 100%;
}

.media-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }

.media-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
}

.media-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease);
}

.media-card:hover .media-card__thumb img { transform: scale(1.07); }

.media-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: var(--r-pill);
}

.media-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.media-card__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.media-card__meta i {
  font-style: normal;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--terra);
  display: inline-block;
}

.media-card__body p { font-size: 0.94rem; color: var(--ink-2); line-height: 1.6; }

.media-card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   11. Agenda (lista de eventos)
   -------------------------------------------------------------------------- */
.event-list { display: flex; flex-direction: column; }

.event-row {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  padding: 26px 8px;
  border-top: 1px solid var(--line);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}

.event-row:last-child { border-bottom: 1px solid var(--line); }

.event-row:hover { background: rgba(255, 253, 247, 0.75); padding-inline: 18px; }

.event-date {
  text-align: center;
  padding: 12px 6px;
  border-radius: var(--r-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.event-row:hover .event-date {
  background: var(--terra);
  border-color: var(--terra);
  color: #fff;
}

.event-date b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.event-date span {
  display: block;
  margin-top: 4px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0.75;
}

.event-info h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); margin-bottom: 7px; }

.event-info__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.83rem;
  color: var(--ink-3);
}

.event-info__meta span { display: inline-flex; align-items: center; gap: 7px; }

.event-info__meta svg { flex: none; opacity: 0.7; }

.event-cat {
  display: inline-block;
  margin-bottom: 9px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(44, 85, 69, 0.1);
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

/* --------------------------------------------------------------------------
   12. Testimonios / voces
   -------------------------------------------------------------------------- */
.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}

.voice {
  background: rgba(247, 242, 232, 0.06);
  border: 1px solid rgba(247, 242, 232, 0.16);
  border-radius: var(--r);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.4s var(--ease), transform 0.45s var(--ease-out);
}

.voice:hover { background: rgba(247, 242, 232, 0.11); transform: translateY(-6px); }

.voice__quote {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(247, 242, 232, 0.94);
}

.voice__mark {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.5;
  color: var(--ochre);
  height: 26px;
}

.voice__who {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 242, 232, 0.14);
}

.voice__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ochre);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  flex: none;
}

.voice__who b { display: block; font-size: 0.95rem; font-weight: 650; }
.voice__who .voice__role { display: block; font-size: 0.79rem; color: rgba(247, 242, 232, 0.6); }

/* --------------------------------------------------------------------------
   13. Banda CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--terra);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(46px, 6vw, 76px) clamp(28px, 5vw, 68px);
  text-align: center;
  isolation: isolate;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
}

.cta-band::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--ochre) 0%, transparent 68%);
  top: -170px; left: -120px;
}

.cta-band::after {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--forest) 0%, transparent 68%);
  bottom: -220px; right: -140px;
}

.cta-band h2 {
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-inline: auto;
}

.cta-band p {
  margin: 20px auto 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.cta-band .hero__actions { justify-content: center; margin-top: 34px !important; }

/* --------------------------------------------------------------------------
   14. Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 242, 232, 0.72);
  padding-top: clamp(56px, 7vw, 88px);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(40px, 5vw, 62px);
}

.footer-brand .brand { color: var(--cream); margin-bottom: 18px; }

.footer-brand p { max-width: 34ch; line-height: 1.7; }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 11px; }

.footer-col a {
  transition: color 0.25s var(--ease), padding 0.25s var(--ease);
  display: inline-block;
}

.footer-col a:hover { color: var(--cream); padding-left: 6px; }

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.6;
}

.footer-contact svg { flex: none; margin-top: 4px; color: var(--ochre); }

.footer-contact b {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 3px;
}

.footer-contact span span,
.footer-contact li > span { display: block; }

.socials { display: flex; gap: 10px; margin-top: 22px; }

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(247, 242, 232, 0.24);
  display: grid;
  place-items: center;
  color: var(--cream);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.socials a:hover {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--ink);
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(247, 242, 232, 0.14);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(247, 242, 232, 0.5);
}

.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a:hover { color: var(--cream); }

/* --------------------------------------------------------------------------
   15. Encabezado de página interior
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.breadcrumb a:hover { color: var(--ochre); }
.breadcrumb span { opacity: 0.5; }

.page-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 1;
}

.page-intro {
  margin-top: 20px;
  max-width: 62ch;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   16. Bloques de contenido interior
   -------------------------------------------------------------------------- */

/* Prosa */
.prose > * + * { margin-top: 1.15em; }
.prose p { color: var(--ink-2); line-height: 1.78; }
.prose h3 { margin-top: 1.9em; margin-bottom: 0.35em; }
.prose h4 { margin-top: 1.6em; }
.prose ul { display: flex; flex-direction: column; gap: 10px; }
.prose ul li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  line-height: 1.65;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 9px;
  height: 1.6px;
  background: var(--terra);
}

/* Artículo de noticia */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(34px, 5vw, 68px);
  align-items: start;
}

.article-body { max-width: 68ch; }
.article-body ul li strong { display: block; color: var(--ink); margin-bottom: 2px; }

.article-aside { position: sticky; top: calc(var(--header-h) + 24px); }

.article-fig { margin: 0; }
.article-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  background: var(--paper);
}
.article-fig figcaption {
  margin-top: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.fact-box {
  margin-top: 2.2em;
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.fact-box h3 { margin-top: 0; margin-bottom: 18px; }

.fact-list { display: grid; gap: 14px; }
.fact-list > div {
  display: grid;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.fact-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.fact-list dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--ink-3);
}
.fact-list dd { margin: 0; color: var(--ink-2); line-height: 1.5; }

.prose .dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 3.6em;
  font-weight: 800;
  line-height: 0.78;
  float: left;
  padding: 8px 12px 0 0;
  color: var(--terra);
}

blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--terra);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

/* Valores / pilares */
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 26px;
  height: 100%;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}

.pillar:hover { transform: translateY(-6px); box-shadow: var(--sh-1); }

.pillar__n {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--terra);
  display: block;
  margin-bottom: 16px;
}

.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 0.94rem; color: var(--ink-2); line-height: 1.65; }

/* Cronología */
.timeline { position: relative; padding-left: 34px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--terra), var(--ochre), var(--forest));
  opacity: 0.5;
}

.timeline__item { position: relative; padding-bottom: 34px; }

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--terra);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--terra);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 5px;
}

.timeline__item h4 { margin-bottom: 6px; }
.timeline__item p { font-size: 0.94rem; color: var(--ink-2); line-height: 1.65; max-width: 58ch; }

/* Equipo */
.member {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
}

.member:hover { transform: translateY(-6px); box-shadow: var(--sh-1); }

.member__photo {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.03em;
}

.member__body { padding: 18px 20px 22px; }
.member__body b { display: block; font-size: 1.02rem; font-weight: 650; margin-bottom: 3px; }
.member__body span { font-size: 0.83rem; color: var(--ink-3); }

/* Franja de cifras */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.stats-band > div {
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px) 22px;
  text-align: center;
}

.stats-band b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--terra);
}

.stats-band span {
  display: block;
  margin-top: 9px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Colaboradores */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.logos div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 14px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-3);
  text-align: center;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.logos div:hover { color: var(--forest); border-color: var(--forest); transform: translateY(-4px); }

/* --------------------------------------------------------------------------
   17. Filtros (agenda / noticias)
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 34px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
}

.filter-btn:hover { border-color: var(--ink); color: var(--ink); }

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.filter-count { margin-left: auto; font-size: 0.84rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   18. Tarjeta de evento (grid)
   -------------------------------------------------------------------------- */
.event-card {
  display: flex;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  height: 100%;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease), opacity 0.4s var(--ease);
}

.event-card:hover { transform: translateY(-5px); box-shadow: var(--sh-1); }

.event-card.is-hidden { display: none; }

.event-card__date {
  flex: none;
  width: 74px;
  text-align: center;
  padding: 12px 4px;
  border-radius: var(--r-sm);
  background: var(--cream);
  border: 1px solid var(--line);
  align-self: flex-start;
}

.event-card__date b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.event-card__date span {
  display: block;
  margin-top: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.event-card__body { display: flex; flex-direction: column; gap: 9px; min-width: 0; }

.event-card__body h3 { font-size: 1.2rem; }

.event-card__body p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.6; }

.event-card.is-past { opacity: 0.55; }

.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 10px;
}

.tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(44, 85, 69, 0.1);
  color: var(--forest);
}

.tag--terra { background: rgba(196, 85, 46, 0.11); color: var(--terra-dk); }
.tag--ochre { background: rgba(224, 163, 62, 0.18); color: #92641a; }

/* --------------------------------------------------------------------------
   18.bis. Tarjeta editorial de noticias
   -------------------------------------------------------------------------- */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px 26px;
  height: 100%;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease);
}

.post-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--terra);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-out);
}

.post-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.post-card:hover::after { transform: scaleY(1); }

.post-card:nth-child(3n + 2)::after { background: var(--forest); }
.post-card:nth-child(3n + 3)::after { background: var(--ochre); }

.post-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-card__cat {
  color: var(--terra);
  background: rgba(196, 85, 46, 0.1);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}

.post-card:nth-child(3n + 2) .post-card__cat { color: var(--forest); background: rgba(44, 85, 69, 0.1); }
.post-card:nth-child(3n + 3) .post-card__cat { color: #92641a; background: rgba(224, 163, 62, 0.18); }

.post-card__date { color: var(--ink-3); font-weight: 600; letter-spacing: 0.06em; text-transform: none; }

.post-card h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  transition: color 0.3s var(--ease);
}

.post-card:hover h3 { color: var(--terra); }

.post-card p { font-size: 0.94rem; color: var(--ink-2); line-height: 1.62; }

.post-card .link-arrow { margin-top: auto; padding-top: 6px; align-self: flex-start; }

/* --------------------------------------------------------------------------
   19. Formulario de contacto
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field label .req { color: var(--terra); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 15px 17px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.field textarea { min-height: 150px; resize: vertical; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d7264' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 17px center;
  padding-right: 44px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 4px rgba(196, 85, 46, 0.13);
  background: #fff;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: #c0392b; }

.field__error {
  font-size: 0.79rem;
  color: #c0392b;
  font-weight: 550;
  display: none;
}

.field.has-error .field__error { display: block; }

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.checkbox input {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  padding: 0;
  border: 0;
  accent-color: var(--terra);
  flex: none;
}

.form-note { font-size: 0.83rem; color: var(--ink-3); }

.form-status {
  display: none;
  padding: 17px 20px;
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  font-weight: 550;
  align-items: center;
  gap: 11px;
}

.form-status.is-visible { display: flex; }
.form-status.is-ok { background: rgba(44, 85, 69, 0.12); color: var(--forest-dk); border: 1px solid rgba(44, 85, 69, 0.3); }
.form-status.is-err { background: rgba(192, 57, 43, 0.1); color: #8e2b20; border: 1px solid rgba(192, 57, 43, 0.3); }

/* --------------------------------------------------------------------------
   20. Tarjeta de contacto / info lateral
   -------------------------------------------------------------------------- */
.info-card {
  background: var(--forest-dk);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: clamp(30px, 4vw, 44px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.info-card h3 { color: var(--cream); }

.info-list { display: flex; flex-direction: column; gap: 20px; }

.info-list li { display: flex; gap: 15px; align-items: flex-start; }

.info-list__icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(224, 163, 62, 0.16);
  color: var(--ochre);
}

.info-list b {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 4px;
  font-weight: 700;
}

.info-list span { font-size: 0.96rem; color: rgba(247, 242, 232, 0.86); line-height: 1.55; }
.info-list a:hover { color: var(--ochre); }

.hours {
  border-top: 1px solid rgba(247, 242, 232, 0.16);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.hours div { display: flex; justify-content: space-between; gap: 14px; }
.hours dt { color: rgba(247, 242, 232, 0.62); }
.hours dd { color: var(--cream); font-weight: 550; }

/* Mapa / ubicación */
.map-box {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(44, 85, 69, 0.06), rgba(44, 85, 69, 0.06)),
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 42px),
    var(--paper);
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 34px;
  text-align: center;
}

.map-box__pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.map-box__pin b {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}

.map-box__pin span { font-size: 0.9rem; color: var(--ink-3); max-width: 34ch; }

/* --------------------------------------------------------------------------
   21. Acordeón (FAQ / talleres)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }

.acc-item { border-bottom: 1px solid var(--line); }

.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 700;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}

.acc-btn:hover { color: var(--terra); }

.acc-btn__icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.45s var(--ease-out);
}

.acc-btn__icon::before,
.acc-btn__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), background 0.3s;
}

.acc-btn__icon::before { width: 13px; height: 1.7px; }
.acc-btn__icon::after { width: 1.7px; height: 13px; }

.acc-item.is-open .acc-btn__icon { background: var(--terra); border-color: var(--terra); color: #fff; transform: rotate(180deg); }
.acc-item.is-open .acc-btn__icon::after { transform: scaleY(0); }

.acc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease-out);
}

.acc-panel__inner {
  padding: 0 4px 26px;
  max-width: 78ch;
  color: var(--ink-2);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   22. Noticias: destacada
   -------------------------------------------------------------------------- */
.feature-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease-out);
}

.feature-post:hover { box-shadow: var(--sh-2); transform: translateY(-5px); }

.feature-post__media { overflow: hidden; height: 100%; min-height: 300px; }
.feature-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.feature-post:hover .feature-post__media img { transform: scale(1.06); }

.feature-post__media--poster {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: var(--paper);
}
.feature-post__media--poster img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 560px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: var(--sh-2);
}
.feature-post:hover .feature-post__media--poster img { transform: scale(1.02); }

.feature-post__body { padding: clamp(26px, 3vw, 44px) clamp(24px, 3vw, 40px) clamp(26px, 3vw, 44px) 0; }

.feature-post__body > * + * { margin-top: 16px; }

.newsletter {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: clamp(34px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.newsletter h3 { color: var(--cream); }
.newsletter p { color: rgba(247, 242, 232, 0.78); margin-top: 10px; max-width: 48ch; }

.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }

.newsletter__form input {
  padding: 15px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(247, 242, 232, 0.3);
  background: rgba(247, 242, 232, 0.1);
  color: var(--cream);
  min-width: 250px;
}

.newsletter__form input::placeholder { color: rgba(247, 242, 232, 0.55); }
.newsletter__form input:focus { outline: none; border-color: var(--ochre); background: rgba(247, 242, 232, 0.16); }

/* --------------------------------------------------------------------------
   23. Utilidades de navegación previa/siguiente
   -------------------------------------------------------------------------- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: clamp(46px, 6vw, 72px);
}

.pager a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 46%;
}

.pager a:last-child { text-align: right; align-items: flex-end; }

.pager small {
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 650;
}

.pager b {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  transition: color 0.3s var(--ease);
}

.pager a:hover b { color: var(--terra); }

/* --------------------------------------------------------------------------
   24. Animaciones de aparición
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal="left"] { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="zoom"] { transform: scale(0.96); }

/* --------------------------------------------------------------------------
   25. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .voices { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .nav,
  .header-actions .btn { display: none; }
  .burger { display: block; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-post { grid-template-columns: 1fr; }
  .feature-post__body { padding: 6px clamp(24px, 5vw, 36px) clamp(30px, 5vw, 40px); }
  .feature-post__media { min-height: 240px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; order: -1; max-width: 460px; }
  .newsletter { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-3,
  .grid-2,
  .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .event-row {
    grid-template-columns: 78px 1fr;
    row-gap: 14px;
  }
  .event-row .btn { grid-column: 1 / -1; justify-self: start; }
  .event-card { flex-direction: column; gap: 16px; }
  .event-card__date { width: 100%; display: flex; gap: 8px; align-items: baseline; justify-content: center; }
  .event-card__date span { margin-top: 0; }
  .split__stats { grid-template-columns: 1fr; gap: 20px; }
  .hero__controls-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { justify-content: flex-start; }
  .pager a { max-width: 100%; }
  .pager a:last-child { align-items: flex-start; text-align: left; }
  .stats-band { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
  .lang__btn { min-width: 28px; padding: 5px 6px; }
  .header-actions { gap: 10px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.3rem, 12vw, 3rem); }
  .btn { padding: 14px 22px; font-size: 0.8rem; }
}

/* --------------------------------------------------------------------------
   26. Preferencia de movimiento reducido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .hero__panel > * { opacity: 1; transform: none; }
}
