/* =========================================================
   Corporación Cultural Ñuble 21 — sitio público
   Paleta: verdes de Ñuble + greda negra de Quinchamalí
   ========================================================= */
:root {
  --verde: #237A35;        /* verde del logo, oscurecido para buen contraste de texto */
  --verde-osc: #17562A;
  --hoja: #3AA346;         /* verde del logo */
  --hoja-clara: #9BE931;   /* lima del logo */
  --menta: #EAF6E1;
  --papel: #F8FBF5;
  --greda: #1D1D1B;        /* negro del logo (cántaro de Quinchamalí) */
  --ocre: #7BC62A;
  --texto: #1D2620;
  --texto-suave: #4D5B53;
  --linea: #D5E3CE;
  --serif: 'Alegreya', Georgia, 'Times New Roman', serif;
  --sans: 'Alegreya Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ancho: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); text-underline-offset: .18em; }
a:hover { color: var(--verde-osc); }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; color: var(--verde-osc); margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.contenedor { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.lectura { max-width: 68ch; }
.lectura p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.75; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--greda); color: #fff; padding: .6rem 1rem; z-index: 100; }
.saltar:focus { left: 1rem; }

/* ---------- Banda de greda (motivo Quinchamalí) ---------- */
.banda {
  height: 30px;
  background-color: var(--greda);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='30' viewBox='0 0 40 30'%3E%3Cpath d='M0 8 H40 M0 22 H40' stroke='%23F8FBF5' stroke-width='1.2'/%3E%3Cpath d='M0 19 L10 11 L20 19 L30 11 L40 19' fill='none' stroke='%23F8FBF5' stroke-width='1.6'/%3E%3Ccircle cx='10' cy='4' r='1.3' fill='%23F8FBF5'/%3E%3Ccircle cx='30' cy='26' r='1.3' fill='%23F8FBF5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- Cabecera (navbar Bootstrap) ---------- */
.cabecera { background: #fff; border-bottom: 1px solid var(--linea); position: sticky; top: 0; z-index: 1030; }
.cabecera .navbar { padding: 0; }
.cabecera .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; min-height: 78px; }
.marca { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--verde-osc); padding-block: .5rem; }
.marca img { width: 52px; height: 52px; object-fit: contain; }
.marca img.logo-oficial { width: auto; height: 60px; max-width: 200px; }
.marca span { display: flex; flex-direction: column; line-height: 1.05; }
.marca small { font-family: var(--sans); font-size: .85rem; color: var(--texto-suave); }
.marca strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 800; }

.menu { gap: .1rem; }
.menu .nav-link { padding: .5rem .7rem; color: var(--texto); font-weight: 500; border-radius: 4px; }
.menu .nav-link:hover, .menu .nav-link:focus { background: var(--menta); color: var(--verde-osc); }
.menu .nav-link[aria-current="page"] { color: var(--verde); box-shadow: inset 0 -3px 0 var(--hoja); border-radius: 0; }
.menu-boton { background: none; border: 1px solid var(--linea); padding: .45rem .7rem; border-radius: 4px; font: inherit; font-size: 1rem; color: var(--verde-osc); display: inline-flex; align-items: center; gap: .4rem; }
.menu-boton:focus { box-shadow: none; }

@media (max-width: 1199.98px) {
  .menu { padding: .25rem 0 1rem; }
  .menu .nav-link { padding: .75rem .25rem; border-bottom: 1px solid var(--menta); border-radius: 0; }
  .menu .nav-link[aria-current="page"] { box-shadow: none; font-weight: 700; }
}
@media (max-width: 575.98px) { .marca strong { font-size: 1.3rem; } .marca img { width: 44px; height: 44px; } .marca img.logo-oficial { width: auto; height: 48px; } }

/* ---------- Portada ---------- */
.portada { background: var(--verde-osc); color: #fff; overflow: hidden; }
.portada .contenedor { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 2rem; padding-block: clamp(3rem, 7vw, 6rem); }
.portada h1 { color: #fff; margin: 0; }
.portada h1 .corp { display: block; font-family: var(--sans); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--hoja-clara); margin-bottom: .4rem; }
.portada h1 .nombre { display: block; font-size: clamp(4rem, 11vw, 8.5rem); font-weight: 800; letter-spacing: -.02em; line-height: .92; }
.portada .lema { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 1.25rem 0 .75rem; color: var(--menta); }
.portada .desc { max-width: 52ch; color: #E3F3D8; }
.portada-visual { display: flex; justify-content: center; }
.portada-visual .cantaro { width: min(100%, 340px); }
.portada-visual .foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 180px 180px 8px 8px; border: 6px solid var(--greda); }

.incisiones .trazo { stroke-dasharray: 400; stroke-dashoffset: 400; animation: incidir 1.6s ease-out forwards; }
.incisiones .trazo:nth-child(2) { animation-delay: .15s; }
.incisiones .trazo:nth-child(3) { animation-delay: .3s; }
.incisiones .trazo:nth-child(4) { animation-delay: .45s; }
.incisiones .trazo:nth-child(6) { animation-delay: .9s; }
.incisiones .trazo:nth-child(7) { animation-delay: 1.05s; }
.incisiones .flores { opacity: 0; animation: aparecer .8s ease-out .7s forwards; }
.incisiones .trazo[stroke-dasharray] { stroke-dashoffset: 0; animation: none; }
@keyframes incidir { to { stroke-dashoffset: 0; } }
@keyframes aparecer { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .incisiones .trazo, .incisiones .flores { animation: none; stroke-dashoffset: 0; opacity: 1; }
}
@media (max-width: 800px) {
  .portada .contenedor { grid-template-columns: 1fr; }
  .portada-visual { order: -1; }
  .portada-visual .cantaro { width: 180px; }
  .portada-visual .foto { max-width: 320px; }
}

/* ---------- Botones ---------- */
.botones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.boton { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 4px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-family: var(--sans); font-size: 1.05rem; cursor: pointer; }
.boton-claro { background: #fff; color: var(--verde-osc); }
.boton-claro:hover { background: var(--menta); color: var(--verde-osc); }
.boton-borde { border-color: rgba(255,255,255,.6); color: #fff; }
.boton-borde:hover { background: rgba(255,255,255,.1); color: #fff; }
.boton-verde { background: var(--verde); color: #fff; }
.boton-verde:hover { background: var(--verde-osc); color: #fff; }

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(3rem, 6vw, 5rem); }
.seccion-menta { background: var(--menta); }
.seccion-cabeza { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 2rem; }
.seccion-cabeza h2 { margin: 0; }
.seccion-cabeza a { font-weight: 700; }

.cabeza-pagina { background: var(--verde-osc); color: #fff; padding-block: 3rem 2.5rem; }
.cabeza-pagina h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0; }
.cabeza-pagina p { color: #E3F3D8; margin: .6rem 0 0; max-width: 60ch; }
.migas { font-size: .95rem; margin-bottom: .75rem; }
.migas a { color: var(--hoja-clara); }

/* ---------- Agenda ---------- */
.agenda { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--greda); }
.agenda li { border-bottom: 1px solid var(--linea); }
.agenda a { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1.5rem; align-items: center; padding: 1.25rem .25rem; text-decoration: none; color: inherit; }
.agenda a:hover { background: rgba(110,158,79,.08); }
.agenda a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.fecha-bloque { text-align: center; font-family: var(--serif); color: var(--greda); line-height: 1; }
.fecha-bloque b { display: block; font-size: 2.6rem; font-weight: 800; }
.fecha-bloque span { font-family: var(--sans); font-size: .95rem; color: var(--texto-suave); }
.agenda h3 { margin: 0 0 .2rem; font-size: 1.35rem; color: var(--verde-osc); }
.agenda .meta { font-size: 1rem; color: var(--texto-suave); margin: 0; }
.etiqueta { display: inline-block; font-size: .9rem; font-weight: 700; color: var(--verde); background: var(--menta); padding: .15rem .6rem; border-radius: 3px; white-space: nowrap; }
.seccion-menta .etiqueta { background: #fff; }
.agenda .pasada { opacity: .65; }
@media (max-width: 640px) {
  .agenda a { grid-template-columns: 4rem 1fr; gap: 1rem; }
  .agenda .etiqueta { display: none; }
  .fecha-bloque b { font-size: 2.1rem; }
}

/* ---------- Noticias ---------- */
.noticias-inicio { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
.noticia-principal img, .noticia-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; background: var(--menta); }
.noticia-principal h3 { font-size: 1.8rem; margin-top: 1rem; }
.noticia-principal h3 a, .noticia-item h3 a { color: var(--verde-osc); text-decoration: none; }
.noticia-principal h3 a:hover, .noticia-item h3 a:hover { text-decoration: underline; }
.fecha-texto { font-size: .95rem; color: var(--texto-suave); display: block; margin-bottom: .3rem; }
.noticias-lista { display: flex; flex-direction: column; gap: 1.5rem; }
.noticias-lista .noticia-item { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--linea); }
.noticias-lista .noticia-item:last-child { border-bottom: 0; }
.noticias-lista h3 { font-size: 1.2rem; margin: 0; }
.sin-imagen { width: 100%; aspect-ratio: 16 / 10; border-radius: 4px; background: #fff url('../img/logo-icono.png') center / auto 70% no-repeat; border-bottom: 4px solid var(--hoja-clara); }
.rejilla-noticias { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2.5rem 2rem; }
.rejilla-noticias .noticia-item h3 { margin-top: .9rem; font-size: 1.35rem; }
@media (max-width: 800px) { .noticias-inicio { grid-template-columns: 1fr; } }

/* ---------- Nosotros ---------- */
.nosotros { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.ficha { background: #fff; border-left: 6px solid var(--verde); padding: 1.75rem; }
.ficha h3 { margin-bottom: 1rem; }
.ficha dl { margin: 0; }
.ficha dt { font-size: .95rem; color: var(--texto-suave); }
.ficha dd { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.2rem; color: var(--greda); }
.ficha dd:last-child { margin-bottom: 0; }
.mision-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
.mision-vision div { border-top: 2px solid var(--greda); padding-top: 1rem; }
@media (max-width: 800px) { .nosotros, .mision-vision { grid-template-columns: 1fr; } }

/* ---------- Directorio ---------- */
.directorio-grupo + .directorio-grupo { margin-top: 3.5rem; }
.directorio-grupo > h2 { display: flex; align-items: center; gap: 1rem; }
.directorio-grupo > h2::after { content: ""; flex: 1; height: 2px; background: var(--greda); opacity: .85; }
.persona { background: #fff; border: 1px solid var(--linea); border-radius: 6px; height: 100%; padding: 1.75rem 1.5rem; text-align: center; }
.persona-foto { width: 132px; height: 132px; margin: 0 auto 1.1rem; border-radius: 50%; object-fit: cover; border: 4px solid var(--menta); display: block; }
.persona-iniciales { width: 132px; height: 132px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--greda); color: #fff; font-family: var(--serif); font-weight: 800; font-size: 2.6rem; letter-spacing: .02em; border: 4px solid var(--menta); }
.persona h3 { font-size: 1.35rem; margin-bottom: .2rem; }
.persona .cargo { display: inline-block; font-weight: 700; color: var(--verde); font-size: 1rem; margin-bottom: .75rem; }
.persona p { font-size: 1rem; color: var(--texto-suave); margin-bottom: .5rem; }
.persona a { font-size: .95rem; word-break: break-word; }
.persona-destacada { border-top: 6px solid var(--verde); }
.periodo { display: inline-block; margin-top: .9rem; padding: .25rem .8rem; border: 1px solid rgba(255,255,255,.35); border-radius: 3px; color: var(--menta); font-size: 1rem; }

/* ---------- Documentos ---------- */
.documentos { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--greda); }
.documentos li { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem .25rem; border-bottom: 1px solid var(--linea); }
.doc-icono { width: 3rem; height: 3.6rem; border-radius: 3px; background: var(--verde); color: #fff; display: grid; place-items: end center; padding-bottom: .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.doc-icono.pdf { background: #8C2F1E; }
.documentos h3 { font-size: 1.2rem; margin: 0 0 .15rem; }
.documentos p { margin: 0; font-size: 1rem; color: var(--texto-suave); }
@media (max-width: 575.98px) { .documentos li { grid-template-columns: 3.2rem 1fr; } .documentos .boton { grid-column: 2; justify-self: start; } }

/* ---------- Galería ---------- */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.galeria figure { margin: 0; position: relative; }
.galeria button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.galeria figcaption { font-size: .95rem; color: var(--texto-suave); padding-top: .35rem; }
.visor { position: fixed; inset: 0; background: rgba(20, 18, 17, .94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 1.5rem; z-index: 200; }
.visor.abierto { display: flex; }
.visor img { max-height: 80vh; width: auto; border-radius: 3px; }
.visor p { color: #eee; margin-top: 1rem; text-align: center; }
.visor .cerrar { position: absolute; top: 1rem; right: 1rem; background: #fff; border: 0; border-radius: 4px; padding: .5rem .9rem; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Detalle ---------- */
.detalle-imagen { width: 100%; max-height: 520px; object-fit: cover; border-radius: 4px; margin-bottom: 2rem; }
.detalle-datos { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding: 1rem 0; margin-bottom: 1.75rem; border-block: 1px solid var(--linea); color: var(--texto-suave); }
.detalle-datos strong { color: var(--greda); }
.volver { display: inline-block; margin-top: 2rem; font-weight: 700; }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; }
.formulario label { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--verde-osc); }
.formulario input, .formulario textarea, .formulario select { width: 100%; padding: .75rem .9rem; border: 1px solid #C9D8C2; border-radius: 4px; font: inherit; font-size: 1.05rem; background: #fff; margin-bottom: 1.1rem; }
.formulario input:focus, .formulario textarea:focus { outline: 3px solid var(--hoja-clara); outline-offset: 0; border-color: var(--verde); }
.formulario .doble { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.trampa { position: absolute; left: -5000px; }
.aviso { padding: 1rem 1.25rem; border-radius: 4px; margin-bottom: 1.5rem; }
.aviso-ok { background: var(--menta); border-left: 5px solid var(--verde); }
.aviso-error { background: #FBEAE6; border-left: 5px solid #A63A24; color: #6B2415; }
.mapa iframe { width: 100%; height: 280px; border: 0; border-radius: 4px; margin-top: 1rem; }
@media (max-width: 800px) { .contacto, .formulario .doble { grid-template-columns: 1fr; } }

.vacio { padding: 2rem; background: #fff; border: 1px dashed #C9D8C2; border-radius: 4px; color: var(--texto-suave); }

/* ---------- Paginación ---------- */
.paginacion { display: flex; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.paginacion a, .paginacion span { min-width: 2.5rem; padding: .45rem .75rem; text-align: center; border: 1px solid var(--linea); border-radius: 4px; text-decoration: none; }
.paginacion span { background: var(--verde); color: #fff; border-color: var(--verde); }

/* ---------- Filtros ---------- */
.filtros { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filtros a { padding: .45rem 1rem; border: 1px solid var(--linea); border-radius: 4px; text-decoration: none; background: #fff; }
.filtros a[aria-current="true"] { background: var(--verde); color: #fff; border-color: var(--verde); }

/* ---------- Pie ---------- */
.pie { background: var(--greda); color: #D2D2CC; font-size: 1rem; }
.pie .contenedor { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3rem; }
.pie h4 { color: #fff; font-size: 1.2rem; }
.pie a { color: #fff; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: .4rem; }
.pie .marca { color: #fff; margin-bottom: 1rem; }
.pie .marca small { color: #D2D2CC; }
.pie-final { border-top: 1px solid #3A3A36; padding-block: 1rem; font-size: .9rem; }
.pie-final .contenedor { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: 0; grid-template-columns: none; }
@media (max-width: 800px) { .pie .contenedor { grid-template-columns: 1fr; } }

/* =========================================================
   v3 — menú desplegable, participación, proyectos, patrimonio
   ========================================================= */
.menu .dropdown-toggle.activo { color: var(--verde); box-shadow: inset 0 -3px 0 var(--hoja); border-radius: 0; }
.menu .dropdown-menu { --bs-dropdown-link-active-bg: var(--verde); border: 1px solid var(--linea); border-top: 3px solid var(--verde); border-radius: 0 0 4px 4px; padding: .4rem 0; font-size: 1.05rem; min-width: 15rem; }
.menu .dropdown-item { padding: .55rem 1.1rem; color: var(--texto); }
.menu .dropdown-item:hover, .menu .dropdown-item:focus { background: var(--menta); color: var(--verde-osc); }
.menu .dropdown-item[aria-current="page"] { font-weight: 700; color: var(--verde); }
@media (max-width: 1199.98px) {
  .menu .dropdown-menu { border: 0; border-left: 3px solid var(--hoja); border-radius: 0; margin: 0 0 .5rem .5rem; padding: 0; }
  .menu .dropdown-toggle.activo { box-shadow: none; font-weight: 700; }
}

/* Compartir */
.compartir { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--linea); font-size: 1rem; }
.compartir span { color: var(--texto-suave); margin-right: .25rem; }
.compartir a, .compartir button { border: 1px solid var(--linea); background: #fff; border-radius: 4px; padding: .35rem .8rem; text-decoration: none; font: inherit; color: var(--verde-osc); cursor: pointer; }
.compartir a:hover, .compartir button:hover { background: var(--menta); }

/* Boletín en el pie */
.boletin-pie { background: var(--verde); color: #fff; padding-block: 2.5rem; }
.boletin-pie .contenedor { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem 3rem; align-items: center; }
.boletin-pie h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3rem; }
.boletin-pie p { margin: 0; color: var(--menta); }
.boletin-form { display: flex; gap: .5rem; }
.boletin-form input[type=email] { flex: 1; min-width: 0; padding: .8rem 1rem; border: 0; border-radius: 4px; font: inherit; }
@media (max-width: 800px) { .boletin-pie .contenedor { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .boletin-form { flex-direction: column; } }

/* Inscripción */
.inscripcion { background: #fff; border: 1px solid var(--linea); border-top: 6px solid var(--verde); padding: 1.75rem; margin-top: 2.5rem; }
.inscripcion h2 { font-size: 1.7rem; }
.cupos { display: inline-block; font-weight: 700; color: var(--verde-osc); background: var(--menta); padding: .2rem .7rem; border-radius: 3px; margin-bottom: 1rem; }
.cupos.pocos { background: #FBF1DE; color: #7A5413; }
.acciones-detalle { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.boton-linea { border: 2px solid var(--verde); color: var(--verde); background: #fff; }
.boton-linea:hover { background: var(--menta); color: var(--verde-osc); }
.check-linea { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; margin-bottom: 1.1rem; }
.formulario .check-linea input { width: auto; margin: .35rem 0 0; }

/* Proyectos */
.tarjeta-proyecto { background: #fff; border: 1px solid var(--linea); border-radius: 4px; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.tarjeta-proyecto img, .tarjeta-proyecto .sin-imagen { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.tarjeta-proyecto .cuerpo { padding: 1.25rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.tarjeta-proyecto h3 { font-size: 1.3rem; margin: 0; }
.tarjeta-proyecto h3 a { color: var(--verde-osc); text-decoration: none; }
.tarjeta-proyecto h3 a::after { content: ""; position: absolute; inset: 0; }
.tarjeta-proyecto { position: relative; }
.tarjeta-proyecto:hover { border-color: var(--hoja); }
.tarjeta-proyecto p { font-size: 1rem; color: var(--texto-suave); margin: 0; }
.fuente { font-size: .92rem; font-weight: 700; color: var(--greda); }
.estado-proyecto { align-self: flex-start; font-size: .85rem; font-weight: 700; padding: .1rem .55rem; border-radius: 3px; background: var(--menta); color: var(--verde-osc); }
.estado-proyecto.finalizado { background: #EDEBE8; color: var(--greda); }
.estado-proyecto.postulado { background: #FBF1DE; color: #7A5413; }
.financian { margin-top: 2.5rem; padding: 1.5rem; background: #fff; border: 1px solid var(--linea); }
.financian h2 { font-size: 1.2rem; font-family: var(--sans); color: var(--texto-suave); font-weight: 700; margin-bottom: 1rem; }
.financian .logos { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; }
.financian img { max-height: 70px; width: auto; max-width: 180px; object-fit: contain; }

/* Patrimonio */
.mapa-patrimonio { height: 460px; border: 2px solid var(--greda); border-radius: 4px; background: var(--menta); z-index: 0; }
.mapa-ficha { height: 280px; border-radius: 4px; border: 1px solid var(--linea); margin-top: 1.5rem; z-index: 0; }
.leaflet-popup-content { font-family: var(--sans); font-size: .98rem; }
.leaflet-popup-content a { font-weight: 700; }
@media (max-width: 640px) { .mapa-patrimonio { height: 340px; } }

/* Participa */
.cuadro { background: #fff; border: 1px solid var(--linea); padding: 1.75rem; border-radius: 4px; }
.cuadro-verde { background: var(--verde-osc); color: #fff; border: 0; }
.cuadro-verde h2, .cuadro-verde h3 { color: #fff; }
.cuadro-verde .monto { font-family: var(--serif); font-size: 3rem; font-weight: 800; line-height: 1; color: #fff; }
.datos-banco { margin: 0; }
.datos-banco dt { font-size: .95rem; color: var(--texto-suave); }
.datos-banco dd { margin: 0 0 .8rem; font-family: var(--serif); font-size: 1.25rem; color: var(--greda); }
.tabla-cuotas { width: 100%; border-collapse: collapse; background: #fff; }
.tabla-cuotas th, .tabla-cuotas td { padding: .8rem; border-bottom: 1px solid var(--linea); text-align: left; }
.tabla-cuotas th { font-size: .95rem; color: var(--texto-suave); }
.estado-pago { font-weight: 700; }
.estado-pago.pagada { color: var(--verde); }
.estado-pago.pendiente { color: #8C5A10; }
.formulario .boton { margin-top: .25rem; }
.formulario .ayuda { display: block; font-size: .92rem; color: var(--texto-suave); margin: -.8rem 0 1rem; }

/* =========================================================
   v4 — identidad oficial, historia, mensaje, cursos
   ========================================================= */
.portada { background: linear-gradient(135deg, #17562A 0%, #237A35 55%, #2E8F3D 100%); }
.portada h1 .nombre { color: #fff; }
.portada h1 .nombre b { color: var(--hoja-clara); font-weight: 800; }
.pie .logo-chip { display: inline-block; background: #fff; border-radius: 8px; padding: .5rem .75rem; margin-bottom: 1rem; }
.pie .logo-chip img { height: 64px; width: auto; display: block; }
.pie .datos-legales { font-size: .92rem; color: #C9D8C2; }
.credito a { color: var(--hoja-clara); font-weight: 700; }
.boton-verde { background: var(--verde); }
.boletin-pie .boton-claro { background: var(--hoja-clara); color: var(--greda); border-color: var(--hoja-clara); }

/* Historia */
.historia { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.historia figure { margin: 0; }
.historia figure img { width: 100%; border-radius: 6px; border: 1px solid var(--linea); }
.historia figcaption { font-size: .95rem; color: var(--texto-suave); margin-top: .5rem; }
.linea-tiempo { list-style: none; margin: 2.5rem 0 0; padding: 0 0 0 1.5rem; border-left: 4px solid var(--hoja-clara); }
.linea-tiempo li { position: relative; padding: 0 0 1.5rem 1rem; }
.linea-tiempo li::before { content: ""; position: absolute; left: -2.05rem; top: .45rem; width: 16px; height: 16px; border-radius: 50%; background: var(--verde); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--verde); }
.linea-tiempo .anio { font-family: var(--serif); font-size: 1.5rem; font-weight: 800; color: var(--verde); display: block; line-height: 1.1; }
@media (max-width: 900px) { .historia { grid-template-columns: 1fr; } }

/* Mensaje */
.mensaje { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
.mensaje .foto { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; border: 6px solid var(--hoja-clara); }
.mensaje .sin-foto { width: 220px; height: 220px; border-radius: 50%; background: var(--menta) url("../img/logo-icono.png") center / 70% no-repeat; border: 6px solid var(--hoja-clara); }
.mensaje .texto { font-size: 1.2rem; }
.mensaje .texto p:first-child::first-letter { font-family: var(--serif); font-size: 3.4em; float: left; line-height: .85; padding: .05em .1em 0 0; color: var(--verde); font-weight: 800; }
.firma { margin-top: 2rem; padding-top: 1rem; border-top: 2px solid var(--hoja-clara); }
.firma strong { font-family: var(--serif); font-size: 1.4rem; display: block; color: var(--greda); }
.firma span { color: var(--texto-suave); }
@media (max-width: 760px) { .mensaje { grid-template-columns: 1fr; } .mensaje .foto, .mensaje .sin-foto { width: 160px; height: 160px; } }

/* Cursos */
.curso { background: #fff; border: 1px solid var(--linea); border-left: 6px solid var(--hoja); border-radius: 4px; padding: 1.4rem 1.5rem; height: 100%; display: flex; flex-direction: column; gap: .5rem; }
.curso h3 { font-size: 1.35rem; margin: 0; }
.curso h3 a { color: var(--verde-osc); text-decoration: none; }
.curso .datos { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .98rem; color: var(--texto-suave); }
.curso p { margin: 0; }
.curso .pie-curso { margin-top: auto; padding-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.curso .cupos { margin: 0; }
.curso.cerrado { border-left-color: #B9B9B2; }
.meta { font-size: .98rem; color: var(--texto-suave); }
.lista-simple { list-style: none; padding: 0; margin: 0; columns: 2 320px; }
.lista-simple li { padding: .45rem 0; border-bottom: 1px solid var(--linea); break-inside: avoid; }
