/* =========================================================
   Fundación Minería Regenerativa · v2.2
   Mobile first · identidad del manual (VISUALIDENTITY-MR)
   - Cinzel solo para el título principal de cada página y cifras.
   - Poppins para títulos de sección, texto e interfaz.
   - Todo alineado a la izquierda; secciones densas a dos columnas en escritorio.
   ========================================================= */

@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #282F38; --ink-deep: #1E242B;
  --green: #2A4D11; --earth: #54411F; --gold: #CB9D50;
  --action: #985735; --action-hover: #7E4529;
  --surface: #F4F1EA; --white: #FFFFFF;
  --text: #282F38; --text-2: #5A6268; --line: #DDD8CC;
  --green-soft: #EAF0E4; --gold-soft: #F3E7D1; --error: #A12F36;

  /* Escala tipográfica (6 tamaños) */
  --fs-display: clamp(2.125rem, 1.6rem + 2.2vw, 3.5rem);  /* H1 · Cinzel */
  --fs-h2: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem);       /* Secciones · Poppins */
  --fs-h3: 1.125rem;                                       /* Ítems */
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px; --sec: 56px; --max: 1200px; --radius: 10px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --sec: 72px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; --sec: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6; color: var(--text); background: var(--surface); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* ---------- Tipografía ---------- */
.display { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-display); line-height: 1.12; letter-spacing: .005em; }
.h2 { font-weight: 600; font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -.015em; }
.h3 { font-weight: 600; font-size: var(--fs-h3); line-height: 1.35; letter-spacing: -.005em; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--text-2); }
.small { font-size: var(--fs-small); }
.muted { color: var(--text-2); }
.label { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--earth); }
.label::before { content: ""; width: 20px; height: 2px; background: var(--gold); }
.on-dark { color: #fff; }
.on-dark .label { color: var(--gold); }
.on-dark .muted, .on-dark .lead { color: rgba(255,255,255,.78); }
.stack { display: grid; gap: 16px; align-content: start; }
.stack--lg { gap: 24px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec) 0; }
.sec--white { background: var(--white); }
.sec--ink { background: var(--ink); }
.split { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--top { align-items: start; }
}
.head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 760px; }
@media (min-width: 960px) { .head { margin-bottom: 40px; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .75rem 1.5rem; border-radius: 8px; border: 1.5px solid transparent; font: 600 var(--fs-body)/1.2 var(--font-body); text-decoration: none; cursor: pointer; background: var(--action); color: #fff; transition: background .18s, border-color .18s, transform .18s var(--ease); }
.btn:hover { background: var(--action-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gold-soft); }
.btn--sm { min-height: 42px; padding: .5rem 1.1rem; font-size: var(--fs-small); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .actions .btn { flex: 0 0 auto; } }
.arrow { display: inline-block; transition: transform .18s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }
.more { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; color: var(--action); }
.on-dark .more { color: var(--gold); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand img { height: 38px; width: auto; }
.nav-toggle { width: 48px; height: 48px; margin-right: -12px; border: 0; background: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); 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); }
.nav { position: fixed; inset: 64px 0 0 0; display: flex; flex-direction: column; gap: 24px; padding: 16px var(--gutter) 40px; background: var(--surface); opacity: 0; transform: translateY(-12px); visibility: hidden; pointer-events: none; transition: opacity .2s, transform .25s var(--ease), visibility .25s; overflow-y: auto; }
.nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.nav ul a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.375rem; font-weight: 600; text-decoration: none; }
.nav ul a[aria-current="page"] { color: var(--action); }
@media (min-width: 1000px) {
  .header-inner { min-height: 76px; }
  .brand img { height: 44px; }
  .nav-toggle { display: none; }
  .nav { position: static; flex-direction: row; align-items: center; gap: 32px; padding: 0; background: none; opacity: 1; transform: none; visibility: visible; pointer-events: auto; overflow: visible; }
  .nav ul { display: flex; gap: 28px; }
  .nav ul a { position: relative; padding: 6px 0; border: 0; font-size: var(--fs-small); }
  .nav ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .2s var(--ease); }
  .nav ul a:hover::after, .nav ul a[aria-current="page"]::after { right: 0; }
  .nav ul a[aria-current="page"] { color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink-deep); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,36,43,.35) 0%, rgba(30,36,43,.75) 50%, rgba(30,36,43,.96) 100%); }
.hero__inner { position: relative; display: grid; gap: 32px; padding-top: 140px; padding-bottom: 32px; }
.hero__text { display: grid; gap: 20px; }
.hero__text .lead { color: rgba(255,255,255,.86); max-width: 46ch; }
.hero--page .hero__inner { padding-top: 120px; padding-bottom: 40px; }
@media (min-width: 960px) {
  .hero__bg::after { background: linear-gradient(90deg, rgba(30,36,43,.94) 0%, rgba(30,36,43,.7) 48%, rgba(30,36,43,.25) 100%); }
  .hero__inner { grid-template-columns: 1fr 360px; gap: 64px; align-items: end; min-height: 600px; padding-top: 96px; padding-bottom: 64px; }
  .hero__text { max-width: 640px; }
  .hero--page .hero__inner { grid-template-columns: 1fr; min-height: 420px; padding-bottom: 56px; }
}
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-small); color: rgba(255,255,255,.88); }
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* Tarjeta del evento (en el hero) */
.event-card { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius); background: rgba(30,36,43,.78); border: 1px solid rgba(203,157,80,.45); backdrop-filter: blur(8px); text-decoration: none; color: #fff; transition: border-color .2s, transform .2s var(--ease); }
.event-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.event-card__top { display: flex; align-items: center; gap: 16px; }
.event-card__date { font-family: var(--font-display); font-size: 2.75rem; line-height: 1; color: var(--gold); }
.event-card__date small { display: block; font: 600 var(--fs-label) var(--font-body); letter-spacing: .16em; margin-top: 4px; }
.event-card__kicker { font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.event-card .h3 { color: #fff; }

/* ---------- Qué hacemos (con mapa) ---------- */
.points { display: grid; gap: 20px; margin-top: 8px; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.points .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--gold); }
.points .ic svg { width: 22px; height: 22px; }
.points p { color: var(--text-2); font-size: var(--fs-small); margin-top: 2px; }
.map-card { display: grid; gap: 12px; }
.map-card__caption { min-height: 48px; font-size: var(--fs-small); color: var(--text-2); border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; }
.map-card__caption b { color: var(--ink); display: block; font-size: var(--fs-body); }

/* ---------- Ecosistema ---------- */
.eco-svg { width: 100%; height: auto; overflow: visible; }
.eco-line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .3; transition: opacity .25s, stroke-width .25s; }
.eco-line.is-on { opacity: 1; stroke-width: 4; }
.eco-ring { fill: none; stroke: var(--earth); stroke-width: 2; stroke-dasharray: 4 10; opacity: .5; }
.eco-ring-label { font: 600 18px var(--font-body); letter-spacing: .18em; fill: var(--earth); }
.eco-node { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.eco-node .shape { fill: var(--ink); stroke: var(--gold); stroke-width: 2.5; transition: fill .25s, transform .25s var(--ease); transform-box: fill-box; transform-origin: center; }
.eco-node .num { font: 400 28px var(--font-display); fill: var(--gold); pointer-events: none; }
.eco-node .name { font: 600 22px var(--font-body); fill: var(--ink); pointer-events: none; }
.eco-node:hover .shape { transform: scale(1.07); }
.eco-node.is-active .shape { fill: var(--green); transform: scale(1.1); }
.eco-node:focus-visible .shape { stroke-width: 5; }
.eco { display: grid; gap: 24px; }
.eco__panel { display: grid; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.eco__panel .n { font-family: var(--font-display); font-size: 2.25rem; color: var(--gold); line-height: 1; }
.eco__panel p { color: var(--text-2); }
.eco__panel ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.eco__panel li { font-size: var(--fs-small); padding: 4px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.hint { font-size: var(--fs-small); color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (min-width: 960px) { .eco { grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; } }

/* ---------- Bloque evento (home) ---------- */
.event-block { display: grid; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; }
.event-block__media { position: relative; aspect-ratio: 16 / 10; }
.event-block__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-block__body { display: grid; gap: 18px; padding: 28px 24px; align-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: var(--fs-small); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(203,157,80,.55); }
@media (min-width: 960px) {
  .event-block { grid-template-columns: 1fr 1fr; }
  .event-block__media { aspect-ratio: auto; min-height: 380px; }
  .event-block__body { padding: 48px; }
}
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; align-items: center; }
.partners li { display: flex; align-items: center; min-height: 52px; }
.partners img { max-height: 46px; width: auto; max-width: 100%; }
@media (min-width: 640px) { .partners { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .partners { grid-template-columns: repeat(6, 1fr); } }
.partners-band { margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: grid; gap: 16px; }

/* ---------- Actores con beneficio ---------- */
.actors { display: grid; gap: 0; }
.actors li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); }
.actors svg { width: 28px; height: 28px; color: var(--gold); margin-top: 2px; }
.actors b { display: block; font-weight: 600; }
.actors span { font-size: var(--fs-small); color: rgba(255,255,255,.72); }
@media (min-width: 640px) { .actors { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* ---------- Banda CTA ---------- */
.band { position: relative; overflow: hidden; background: var(--green); color: #fff; }
.band__inner { position: relative; display: grid; gap: 20px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 960px) { .band__inner { grid-template-columns: 1fr auto; align-items: center; padding-top: 56px; padding-bottom: 56px; } }
.kintsugi-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25; pointer-events: none; }
.kintsugi-bg path { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pasos / progresión ---------- */
.progress { display: grid; gap: 0; }
.progress li { position: relative; display: grid; gap: 4px; padding: 0 0 28px 40px; }
.progress li:last-child { padding-bottom: 0; }
.progress li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gold); background: var(--surface); z-index: 1; }
.progress li.is-now::before { background: var(--gold); }
.progress li::after { content: ""; position: absolute; left: 9px; top: 24px; bottom: 0; width: 2px; background: rgba(203,157,80,.45); }
.progress li:last-child::after { display: none; }
.progress .tag { font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--earth); }
.progress p { color: var(--text-2); font-size: var(--fs-small); }
.on-dark .progress .tag { color: var(--gold); }
.on-dark .progress li::before { background: var(--ink); }
.on-dark .progress li.is-now::before { background: var(--gold); }
.on-dark .progress p { color: rgba(255,255,255,.72); }
.sec--white .progress li::before { background: var(--white); }
@media (min-width: 960px) {
  .progress { grid-template-columns: repeat(var(--n, 3), 1fr); gap: 32px; }
  .progress li { padding: 40px 0 0; }
  .progress li::before { top: 0; }
  .progress li::after { left: 24px; right: -28px; top: 9px; bottom: auto; width: auto; height: 2px; }
}

/* ---------- Ejes (columnas numeradas) ---------- */
.cols { display: grid; gap: 0; }
.cols li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.cols .n { font-family: var(--font-display); font-size: 1.75rem; color: var(--gold); line-height: 1.1; }
.cols p { color: var(--text-2); font-size: var(--fs-small); margin-top: 2px; }
@media (min-width: 960px) { .cols { grid-template-columns: repeat(3, 1fr); gap: 32px; } .cols li { grid-template-columns: 1fr; padding-top: 24px; border-top: 2px solid var(--ink); } }

/* ---------- Video ---------- */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--ink-deep); overflow: hidden; border-radius: var(--radius); }
.video video { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: rgba(30,36,43,.25); cursor: pointer; color: #fff; }
.video__play span { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--action); transition: transform .2s var(--ease); }
.video__play:hover span { transform: scale(1.08); }
.video__play svg { width: 26px; height: 26px; margin-left: 4px; }
.video.is-playing .video__play { display: none; }
.caption { margin-top: 10px; font-size: var(--fs-small); color: var(--text-2); }

/* ---------- Directorio / noticias ---------- */
.search { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); margin-bottom: 14px; }
.search:focus-within { border-color: var(--ink); }
.search svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--text-2); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: var(--fs-body) var(--font-body); min-height: 46px; }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 28px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: 0 0 auto; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 600 var(--fs-small) var(--font-body); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 960px) { .filters { flex-wrap: wrap; margin-left: 0; margin-right: 0; padding: 0; } }
.tiles { display: grid; gap: 28px 24px; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) {
  .tiles { grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tiles > * { scroll-snap-align: start; }
}
.tile { display: grid; gap: 10px; align-content: start; text-decoration: none; }
.tile__img { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.04); }
.tag { font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--earth); }
.tile p { color: var(--text-2); font-size: var(--fs-small); }
.sample { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(30,36,43,.82); color: #fff; font-size: var(--fs-label); font-weight: 600; }
.empty { display: grid; gap: 10px; justify-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.lead-news { display: grid; gap: 18px; text-decoration: none; margin-bottom: 40px; }
.lead-news .tile__img { aspect-ratio: 16 / 10; }
@media (min-width: 960px) { .lead-news { grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; } }
.docs li a { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; }
.docs li:last-child a { border-bottom: 1px solid var(--line); }
.docs svg { width: 26px; height: 26px; color: var(--earth); }
.docs .t { font-weight: 600; }
.docs .s { font-size: var(--fs-small); color: var(--text-2); }

/* ---------- Formulario ---------- */
.form-layout { display: grid; gap: 32px; }
@media (min-width: 1000px) { .form-layout { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.form { display: grid; gap: 22px; padding: 24px 20px; border-radius: var(--radius); background: var(--white); }
@media (min-width: 640px) { .form { padding: 40px; } }
.form-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: var(--fs-small); font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #C2C5BE; border-radius: 8px; font: var(--fs-body) var(--font-body); color: var(--ink); background: var(--white); }
.field textarea { min-height: 120px; resize: none; overflow: auto; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(203,157,80,.4); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field .err { display: none; font-size: var(--fs-small); color: var(--error); }
.field.has-error .err { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; inset: 0; }
.pills span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #C2C5BE; font-size: var(--fs-small); font-weight: 400; }
.pills input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pills input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: var(--fs-small); color: var(--text-2); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); }
.notice { padding: 12px 14px; border-left: 3px solid var(--gold); background: var(--gold-soft); color: var(--earth); font-size: var(--fs-small); }
.form-success { display: none; gap: 14px; justify-items: start; padding: 32px; border-radius: var(--radius); background: var(--white); }
.form-success.is-visible { display: grid; }
.form-success img { width: 64px; }
.side-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; margin-top: 8px; }
.side-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 999px) { .side-img { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,.75); padding: 48px 0 28px; font-size: var(--fs-small); }
.footer-grid { display: grid; gap: 32px; }
.footer-grid img { height: 46px; width: auto; margin-bottom: 14px; }
.footer-grid h2 { font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
.event-card__date small { white-space: nowrap; }
.map-card { max-width: 540px; width: 100%; justify-self: end; }
@media (max-width: 959px) { .map-card { justify-self: stretch; max-width: 480px; } }
.hero .label { color: #E9CB91; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero__bg::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 45%; z-index: 1; background: linear-gradient(180deg, rgba(30,36,43,.55), rgba(30,36,43,0)); }
@media (min-width: 640px) { .split .partners { grid-template-columns: repeat(3, 1fr); } }

/* Mapa de motores: la conexión se recorre sola (se detiene si el usuario interactúa) */
@media (prefers-reduced-motion: no-preference) {
  .eco-line.is-on { stroke-dasharray: 10 8; animation: flow 1.2s linear infinite; }
  .eco-node.is-active .shape { animation: glow 2.4s ease-in-out infinite; }
}
@keyframes flow { to { stroke-dashoffset: -36; } }
@keyframes glow { 0%, 100% { stroke-width: 2.5; } 50% { stroke-width: 6; } }
.eco-progress { display: flex; gap: 6px; margin-top: 4px; }
.eco-progress span { width: 24px; height: 3px; border-radius: 2px; background: var(--line); transition: background .3s; }
.eco-progress span.is-on { background: var(--gold); }

.embedded-form iframe { display: block; width: 100%; height: min(100vh, 900px); min-height: 480px; border: 0; }
.embedded-form p { margin-top: 16px; }
