/* ==========================================================================
   Red LIGNOCEL · theme stylesheet
   Colours/typography of the Elementor pages are set in Elementor; this file
   styles the shared header/footer, the theme templates (posts, fichas,
   archives), the shortcode output and what Elementor Free cannot express.
   ========================================================================== */

:root {
  --lgn-green-900: #244e2e;
  --lgn-green-800: #284a31;
  --lgn-green-700: #5a6b4a;
  --lgn-olive: #6d8742;
  --lgn-sage: #79a190;
  --lgn-teal: #7fa9a1;
  --lgn-gold: #60522f;
  --lgn-ink: #1c2021;
  --lgn-muted: #6b6860;
  --lgn-paper: #fafaf8;
  --lgn-line: rgba(28, 32, 33, 0.08);
  --lgn-font-display: "Bricolage Grotesque", "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --lgn-font-heading: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --lgn-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lgn-font-hero: "DM Sans", "Inter", system-ui, sans-serif;
  --lgn-font-footer: "Source Sans 3", "Inter", system-ui, sans-serif;
  --lgn-gradient: linear-gradient(90deg, #5b4e2a 0.96%, #23472d 25%, #8da54b 50.47%, #306865 74.04%, #77a493 100%);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--lgn-font-body); color: var(--lgn-ink); -webkit-font-smoothing: antialiased; }
body.lgn-noscroll { overflow: hidden; }
a { color: var(--lgn-green-800); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 8px 12px; background: #fff; }

/* ---------- Shared type ---------- */
.lgn-eyebrow {
  font-family: var(--lgn-font-body);
  font-weight: 700;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--lgn-gold);
  margin: 0 0 12px;
}
.lgn-divider { height: 11px; width: 100%; background-image: var(--lgn-gradient); }
.lgn-link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--lgn-green-800);
  text-decoration: none;
  transition: opacity .15s ease;
}
.lgn-link-more:hover { opacity: .75; }
.lgn-link-more .lgn-icon, .lgn-link-more img { width: 13px; height: 13px; display: inline-block; vertical-align: middle; }
.lgn-icon { display: inline-flex; width: 13px; height: 13px; flex-shrink: 0; }
.lgn-icon img { width: 100%; height: 100%; display: block; }
/* Match the hero pill shape across all site buttons, including Elementor output. */
body button,
body input[type="button"],
body input[type="reset"],
body input[type="submit"],
body .elementor-button,
body .lgn-btn {
  border-radius: 999px !important;
  background: #6D8742 !important;
  border-color: #6D8742 !important;
  color: #fff !important;
}

.lgn-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  font-family: var(--lgn-font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.lgn-btn--gold { background: var(--lgn-gold); color: #fff; }
.lgn-btn--gold:hover { background: #6d8742; color: #fff; }
.lgn-btn--ghost { border: 1px solid rgba(40, 74, 49, 0.25); color: var(--lgn-green-800); }
.lgn-btn--ghost:hover { border-color: var(--lgn-green-800); }
.lgn-empty { color: var(--lgn-muted); font-size: 14px; }

/* ---------- Header ---------- */
.lgn-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(40, 74, 49, 0.1);
}
.admin-bar .lgn-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lgn-header { top: 46px; } }
.lgn-header__inner {
  max-width: 1400px;
  margin-inline: auto;
  height: 64px;
  padding-inline: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lgn-logo, .custom-logo-link { display: flex; align-items: center; height: 64px; }
.lgn-logo img, .custom-logo { width: 102px; height: 42px; object-fit: contain; display: block; }

.lgn-nav { display: flex; align-items: center; gap: 32px; }
.lgn-nav a, .lgn-nav button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--lgn-font-body);
  font-weight: 600;
  font-size: 13px;
  line-height: 19.5px;
  letter-spacing: 0.325px;
  color: var(--lgn-green-700);
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s ease;
}
.lgn-nav a:hover, .lgn-nav a.is-active, .lgn-nav-item.is-current > .lgn-nav-link { color: var(--lgn-green-800); }
.lgn-nav .lgn-icon { transition: transform .15s ease; }
.lgn-nav-item { position: relative; display: inline-flex; align-items: center; }
.lgn-nav-item:hover > .lgn-nav-link .lgn-icon,
.lgn-nav-item.is-open > .lgn-nav-link .lgn-icon,
.lgn-nav-item:focus-within > .lgn-nav-link .lgn-icon { transform: rotate(180deg); }
.lgn-header .lgn-nav-caret { display: none; }
.lgn-dropdown {
  list-style: none;
  margin: 0;
  position: absolute;
  top: calc(100% + 22px);
  left: -12px;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(40, 74, 49, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(28, 32, 33, 0.10), 0 2px 6px rgba(28, 32, 33, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.lgn-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.lgn-nav-item.is-open > .lgn-dropdown,
.lgn-nav-item:hover > .lgn-dropdown,
.lgn-nav-item:focus-within > .lgn-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lgn-dropdown li { margin: 0; padding: 0; }
.lgn-dropdown a { display: block; padding: 10px 14px; border-radius: 6px; white-space: normal; }
.lgn-dropdown a:hover, .lgn-dropdown a:focus-visible, .lgn-dropdown a.is-active { background: var(--lgn-paper); color: var(--lgn-green-800); outline: none; }

.lgn-header .lgn-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}
.lgn-nav-toggle span { display: block; height: 2px; background: var(--lgn-green-800); border-radius: 2px; }

/* ---------- Page band (inner pages) ---------- */
.lgn-band { background: var(--lgn-green-900); color: #fff; padding: 96px 80px; }
.lgn-band--compact { padding: 72px 80px; }
.lgn-band__inner { max-width: 1300px; margin-inline: auto; }
.lgn-band__eyebrow {
  font-family: var(--lgn-font-hero);
  font-weight: 600;
  font-size: 11px;
  line-height: 16.5px;
  letter-spacing: 2.42px;
  text-transform: uppercase;
  color: var(--lgn-teal);
  margin: 0 0 24px;
}
.lgn-band__title {
  font-family: var(--lgn-font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  margin: 0;
  color: #fff;
  max-width: 14ch;
}
.lgn-band--compact .lgn-band__title { font-size: clamp(32px, 4vw, 56px); max-width: 24ch; }
.lgn-band__lead {
  font-family: var(--lgn-font-hero);
  font-size: 20px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 640px;
  margin: 28px 0 0;
}

/* ---------- Sub navigation (anchored sections) ---------- */
.lgn-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lgn-subnav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 19.5px;
  letter-spacing: 0.325px;
  color: var(--lgn-green-700);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.lgn-subnav a:hover, .lgn-subnav a.is-active { color: var(--lgn-green-800); border-color: var(--lgn-gold); }

/* ---------- Generic layout for theme templates ---------- */
.lgn-main { padding: 80px 80px 96px; }
.lgn-section { max-width: 1300px; margin-inline: auto; }
.lgn-article__inner { max-width: 860px; margin-inline: auto; }
.lgn-article__media { margin: 0 0 40px; }
.lgn-article__media img { width: 100%; height: auto; display: block; }
.lgn-article__footer { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--lgn-line); }
.lgn-prose { font-size: 16px; line-height: 26px; color: var(--lgn-muted); }
.lgn-prose p { margin: 0 0 20px; }
.lgn-prose h2, .lgn-prose h3 { font-family: var(--lgn-font-heading); color: var(--lgn-ink); font-weight: 700; margin: 40px 0 16px; }
.lgn-prose h2 { font-size: 28px; line-height: 34px; }
.lgn-prose h3 { font-size: 20px; line-height: 26px; }
.lgn-prose ul, .lgn-prose ol { padding-left: 22px; margin: 0 0 20px; }
.lgn-prose img { max-width: 100%; height: auto; }
.lgn-pagination { margin-top: 48px; }
.lgn-pagination .nav-links { display: flex; gap: 8px; }
.lgn-pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--lgn-line); text-decoration: none; font-size: 13px; }
.lgn-pagination .page-numbers.current { background: var(--lgn-green-800); color: #fff; }

/* ---------- Hero (home) ---------- */
.lgn-hero { height: clamp(640px, calc(100vh - 64px), 944px); }
.lgn-hero__title span { display: block; color: var(--lgn-olive); }
.lgn-hero__slice + .lgn-hero__slice { border-left: 1px solid rgba(255, 255, 255, 0.1); }


/* ---------- Logo wall (home, static) ---------- */
.e-con.e-flex.lgn-logo-grid { --display: grid; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; }
.lgn-logo-cell { min-height: 110px; transition: background-color .15s ease; position: relative; }
.lgn-logo-cell:hover { background-color: var(--lgn-paper) !important; }
.lgn-logo-cell img { max-width: 90px; max-height: 36px; width: auto; height: auto; object-fit: contain; }
.lgn-logo-cell .elementor-widget-image { width: auto; }
.lgn-logo-cell__star, .lgn-star { position: absolute; top: 8px; left: 10px; font-weight: 700; font-size: 7px; line-height: 10.5px; color: var(--lgn-gold); }
.lgn-star { position: static; font-size: 11px; }
.lgn-logo-cell--empty { background: transparent !important; }

/* ---------- Section header link inside Elementor text widgets ---------- */
.lgn-link-more a { display: inline-flex; align-items: center; gap: 4px; color: var(--lgn-green-800); text-decoration: none; transition: opacity .15s ease; }
.lgn-link-more a:hover { opacity: .75; }

/* ---------- News cards ---------- */
.lgn-posts-grid { display: grid; grid-template-columns: repeat(var(--lgn-cols, 3), minmax(0, 1fr)); gap: 32px; }
.lgn-news-card { display: flex; flex-direction: column; gap: 20px; text-decoration: none; color: inherit; }
.lgn-news-card__img { height: 257px; overflow: hidden; background: rgba(28, 32, 33, 0.06); }
.lgn-news-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.lgn-news-card:hover .lgn-news-card__img img { transform: scale(1.03); }
.lgn-news-card__placeholder { display: block; width: 100%; height: 100%; background-image: var(--lgn-gradient); opacity: .35; }
.lgn-news-card__body { display: flex; flex-direction: column; gap: 8px; }
.lgn-news-meta { display: flex; align-items: center; gap: 12px; }
.lgn-news-meta__cat { font-weight: 700; font-size: 9px; line-height: 13.5px; letter-spacing: 0.9px; text-transform: uppercase; color: var(--lgn-gold); }
.lgn-news-meta__dot { font-size: 9px; line-height: 13.5px; color: rgba(107, 104, 96, 0.4); }
.lgn-news-meta__date { font-size: 10px; line-height: 15px; color: var(--lgn-muted); }
.lgn-news-card__title { font-family: var(--lgn-font-heading); font-weight: 700; font-size: 18px; line-height: 24.75px; color: var(--lgn-ink); margin: 0; }
.lgn-news-card__excerpt { font-size: 14px; line-height: 22.75px; color: var(--lgn-muted); margin: 0; }
.lgn-news-more { display: inline-flex; align-items: center; gap: 4px; padding-top: 4px; font-weight: 600; font-size: 12px; line-height: 16px; color: var(--lgn-green-800); }
.lgn-news-more img, .lgn-news-more .lgn-icon { width: 11px; height: 11px; }

/* ---------- Group cards ---------- */
.lgn-grupos-grid { display: grid; grid-template-columns: repeat(var(--lgn-cols, 3), minmax(0, 1fr)); gap: 1px; background: rgba(28, 32, 33, 0.06); }
.lgn-grupo-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 28px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: background-color .15s ease;
}
.lgn-grupo-card:hover { background: var(--lgn-paper); }
.lgn-grupo-card__logo { height: 48px; display: flex; align-items: center; margin-bottom: 16px; }
.lgn-grupo-card__logo img { max-height: 48px; max-width: 160px; width: auto; height: auto; object-fit: contain; }
.lgn-grupo-card__logo--text { font-family: var(--lgn-font-heading); font-weight: 700; font-size: 18px; color: var(--lgn-green-800); }
.lgn-grupo-card__inst { font-weight: 700; font-size: 10px; line-height: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--lgn-gold); margin: 0; }
.lgn-grupo-card__inst span { color: rgba(107, 104, 96, 0.4); }
.lgn-grupo-card__title { font-family: var(--lgn-font-heading); font-weight: 700; font-size: 18px; line-height: 24px; color: var(--lgn-ink); margin: 0; }
.lgn-grupo-card__meta { font-size: 13px; line-height: 20px; color: var(--lgn-muted); margin: 0; }
.lgn-grupo-card .lgn-news-more { margin-top: auto; padding-top: 12px; }
.lgn-grupos-grid--compact .lgn-grupo-card { padding: 24px; }
.lgn-grupos-grid--compact .lgn-grupo-card__title { font-size: 16px; line-height: 22px; }

/* ---------- Institutions wall ---------- */
.lgn-inst-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(28, 32, 33, 0.06); }
.lgn-inst-card { position: relative; padding: 32px 24px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.lgn-inst-card__logo { height: 56px; display: flex; align-items: center; margin-bottom: 12px; }
.lgn-inst-card__logo img { max-height: 56px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
.lgn-inst-card__name { font-family: var(--lgn-font-heading); font-weight: 700; font-size: 15px; line-height: 21px; color: var(--lgn-ink); margin: 0; }
.lgn-inst-card__city { font-size: 12px; color: var(--lgn-muted); margin: 0; }
.lgn-inst-card__groups { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--lgn-line); }
.lgn-inst-card__groups li { font-size: 13px; line-height: 19px; margin: 0 0 6px; }
.lgn-inst-card__groups a { color: var(--lgn-green-800); text-decoration: none; }
.lgn-inst-card__groups a:hover { text-decoration: underline; }

/* ---------- Ficha de grupo ---------- */
.lgn-ficha { max-width: 1300px; margin-inline: auto; }
.lgn-ficha__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; align-items: start; }
.lgn-ficha__photo { margin: 0; }
.lgn-ficha__photo img { width: 100%; height: auto; display: block; }
.lgn-ficha__logo { margin-top: 24px; }
.lgn-ficha__logo img { max-height: 64px; max-width: 260px; width: auto; height: auto; }
.lgn-ficha__info { padding: 32px; background: var(--lgn-paper); border: 1px solid var(--lgn-line); }
.lgn-ficha__dl { margin: 0 0 24px; font-size: 14px; line-height: 22px; }
.lgn-ficha__dl dt { font-weight: 700; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--lgn-green-700); margin-top: 16px; }
.lgn-ficha__dl dd { margin: 4px 0 0; color: var(--lgn-ink); }
.lgn-ficha__dl a { color: var(--lgn-green-800); }
.lgn-ficha__badge { margin: 20px 0 0; font-size: 12px; font-weight: 600; color: var(--lgn-gold); }
.lgn-ficha__lines { max-width: 860px; margin-top: 64px; }

/* ---------- Publications ---------- */
.lgn-years { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.lgn-years a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--lgn-line); font-weight: 600; font-size: 13px; text-decoration: none; color: var(--lgn-green-800); }
.lgn-years a span { font-size: 11px; color: var(--lgn-muted); }
.lgn-years a:hover { border-color: var(--lgn-gold); }
.lgn-pubs-year { padding-top: 24px; }
.lgn-pubs-year + .lgn-pubs-year { margin-top: 48px; }
.lgn-pubs-year__title { font-family: var(--lgn-font-heading); font-weight: 700; font-size: 32px; line-height: 40px; color: var(--lgn-ink); margin: 0 0 8px; padding-bottom: 16px; border-bottom: 1px solid var(--lgn-line); }
.lgn-pubs { list-style: none; margin: 0; padding: 0; counter-reset: pub; }
.lgn-pub { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 16px; padding: 20px 0; border-bottom: 1px solid var(--lgn-line); counter-increment: pub; }
.lgn-pub::before { content: counter(pub, decimal-leading-zero); grid-row: 1 / span 3; font-family: var(--lgn-font-heading); font-weight: 700; font-size: 13px; color: var(--lgn-gold); padding-top: 3px; }
.lgn-pub p { margin: 0; }
.lgn-pub__authors { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--lgn-green-800); }
.lgn-pub__title { font-family: var(--lgn-font-heading); font-weight: 700; font-size: 17px; line-height: 24px; color: var(--lgn-ink); margin: 4px 0 !important; }
.lgn-pub__title a { color: inherit; text-decoration: none; }
.lgn-pub__title a:hover { color: var(--lgn-green-800); }
.lgn-pub__ref { font-size: 13px; line-height: 20px; color: var(--lgn-muted); }
.lgn-pub__doi { color: var(--lgn-green-800); text-decoration: none; }
.lgn-pub__doi:hover { text-decoration: underline; }

/* ---------- Objectives / lines / resource cards (Elementor pages) ---------- */
.e-con.e-flex.lgn-cards { --display: grid; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; }
.e-con.e-flex.lgn-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.e-con.e-flex.lgn-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lgn-cards > .e-con { width: 100%; }
.lgn-card--dark .elementor-widget-text-editor, .lgn-card--dark .elementor-widget-text-editor p { color: rgba(255, 255, 255, 0.7) !important; }
.lgn-card--dark .lgn-link-more a { color: #fff; }
.lgn-subnav-bar { position: sticky; top: 64px; z-index: 40; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); }
.admin-bar .lgn-subnav-bar { top: 96px; }
.lgn-num { font-family: var(--lgn-font-heading); font-weight: 700; font-size: 13px; letter-spacing: 2px; color: var(--lgn-gold); }
.lgn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lgn-chips span { display: inline-block; padding: 6px 12px; border: 1px solid rgba(40, 74, 49, 0.2); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--lgn-green-800); }
.lgn-card-hover { transition: background-color .15s ease, transform .15s ease; }
.lgn-card-hover:hover { background-color: var(--lgn-paper) !important; }

/* ---------- Contact ---------- */
/* Keep the existing form editable in Elementor; style its current wrapper. */
#formulario .wpcf7 {
  padding: clamp(24px, 3vw, 40px);
  background: #fff;
  border: 1px solid rgba(35, 71, 45, 0.12);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(35, 71, 45, 0.08);
  width: 100%;
  min-width: 0;
}
#formulario .wpcf7 .lgn-form > p { margin: 0; min-width: 0; }
@media (max-width: 767px) {
  #formulario .wpcf7 .lgn-form { grid-template-columns: minmax(0, 1fr); }
}

.lgn-contact-card h3 { font-family: var(--lgn-font-heading); font-weight: 700; font-size: 20px; line-height: 26px; margin: 0 0 8px; color: var(--lgn-ink); }
.lgn-contact-card p { margin: 0 0 6px; font-size: 14px; line-height: 22px; color: var(--lgn-muted); }
.lgn-contact-card__list { list-style: none; margin: 12px 0 20px; padding: 0; }
.lgn-contact-card__list li { font-size: 14px; line-height: 24px; }
.lgn-contact-card__list a { color: var(--lgn-green-800); text-decoration: none; }
.lgn-contact-card__list a:hover { text-decoration: underline; }

.wpcf7 .lgn-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wpcf7 .lgn-form .lgn-form__full { grid-column: 1 / -1; }
.wpcf7 label { display: block; font-weight: 600; font-size: 12px; letter-spacing: 0.3px; color: var(--lgn-green-800); }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7 input:not([type="submit"]):not([type="checkbox"]), .wpcf7 textarea, .wpcf7 select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(28, 32, 33, 0.15);
  border-radius: 0;
  background: #fff;
  font-family: var(--lgn-font-body);
  font-size: 14px;
  color: var(--lgn-ink);
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--lgn-green-800); }
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 .wpcf7-acceptance label { display: inline-flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--lgn-muted); }
.wpcf7 .wpcf7-acceptance input { margin-top: 3px; }
.wpcf7 input[type="submit"] {
  display: inline-flex;
  padding: 14px 28px;
  border: 0;
  background: var(--lgn-gold);
  color: #fff;
  font-family: var(--lgn-font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.wpcf7 input[type="submit"]:hover { background: #6d8742; }
.wpcf7 .wpcf7-spinner { margin-left: 12px; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--lgn-gold); font-size: 14px; }

/* ---------- Gallery ---------- */
.lgn-gallery .elementor-image-gallery .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.lgn-gallery .gallery-item { margin: 0 !important; width: auto !important; max-width: none !important; }
.lgn-gallery .gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 0 !important; display: block; }

/* ---------- Footer ---------- */
.lgn-footer { background: var(--lgn-green-900); color: #fff; padding: 25px 24px; font-family: var(--lgn-font-footer); }
.lgn-footer__top { max-width: 1616px; margin-inline: auto; min-height: 154px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.lgn-footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.lgn-footer__logo { display: inline-flex; align-items: center; background: #fff; border-radius: 4px; padding: 4px 8px; height: 40px; }
.lgn-footer__logo img { width: 77px; height: 32px; object-fit: contain; }
.lgn-footer__desc { margin: 12px 0 0; max-width: 290px; font-size: 12px; line-height: 19.5px; color: rgba(255, 255, 255, 0.45); }
.lgn-footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; }
.lgn-footer__links a { font-size: 12px; color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.lgn-footer__links a:hover { color: #fff; }
.lgn-footer__funding { display: flex; flex-direction: column; align-items: flex-end; width: 336px; max-width: 100%; }
.lgn-footer__funding-label { width: 100%; text-align: right; padding-right: 3px; margin: 0; font-size: 10px; line-height: 16.25px; color: rgba(255, 255, 255, 0.25); }
.lgn-footer__funding img { width: 336px; height: 91px; max-width: 100%; object-fit: contain; display: block; }
.lgn-footer__bottom { max-width: 1616px; margin: 40px auto 0; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lgn-footer__copy { margin: 0; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, 0.25); }
.lgn-footer__plan { margin: 0; font-size: 10px; line-height: 15px; color: rgba(255, 255, 255, 0.2); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .e-con.e-flex.lgn-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .e-con.lgn-logo-cell--empty { display: none; }
  .lgn-inst-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .e-con.e-flex.lgn-cards, .e-con.e-flex.lgn-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .lgn-hero { height: auto; }
  .lgn-hero__strip { min-height: 320px; }
  .lgn-band, .lgn-band--compact { padding: 64px 40px; }
  .lgn-main { padding: 56px 40px 72px; }
  .lgn-posts-grid, .lgn-grupos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lgn-ficha__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lgn-footer__top { flex-direction: column; align-items: flex-start; }
  .lgn-footer__funding { align-items: flex-start; }
  .lgn-footer__funding-label { text-align: left; padding-right: 0; }
}
@media (max-width: 767px) {
  .lgn-header__inner { padding-inline: 20px; }
  .lgn-header .lgn-nav-toggle { display: flex; }
  .lgn-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid rgba(40, 74, 49, 0.1);
    padding: 8px 20px 16px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .lgn-nav.is-open { display: flex; }
  .lgn-nav > a, .lgn-nav-item { width: 100%; }
  .lgn-nav > a, .lgn-nav-item > .lgn-nav-link { padding: 12px 0; font-size: 15px; flex: 1 1 auto; }
  .lgn-nav-item { flex-wrap: wrap; }
  .lgn-nav-item > .lgn-nav-link .lgn-icon { display: none; }
  .lgn-header .lgn-nav-caret { display: inline-flex; width: 40px; height: 44px; justify-content: center; }
  .lgn-nav-item.is-open > .lgn-nav-caret .lgn-icon { transform: rotate(180deg); }
  .lgn-dropdown {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    padding: 0 0 8px 12px;
    border: 0;
    border-left: 2px solid rgba(40, 74, 49, 0.1);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .lgn-dropdown::before { display: none; }
  .lgn-nav-item:hover > .lgn-dropdown, .lgn-nav-item:focus-within > .lgn-dropdown { display: none; }
  .lgn-nav-item.is-open > .lgn-dropdown { display: block; }
  .lgn-dropdown a { padding: 10px 12px; font-size: 14px; }
  .lgn-band, .lgn-band--compact { padding: 56px 24px; }
  .lgn-main { padding: 48px 24px 64px; }
  .lgn-posts-grid, .lgn-grupos-grid, .lgn-inst-grid { grid-template-columns: minmax(0, 1fr); }
  .e-con.e-flex.lgn-cards, .e-con.e-flex.lgn-cards--2, .e-con.e-flex.lgn-cards--4 { grid-template-columns: minmax(0, 1fr); }
  .lgn-subnav-bar { position: static; }
  .e-con.e-flex.lgn-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lgn-logo-cell .elementor-widget-image img { max-width: 100%; }
  .lgn-news-card__img { height: 220px; }
  .wpcf7 .lgn-form { grid-template-columns: 1fr; }
  .lgn-gallery .elementor-image-gallery .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lgn-footer { padding-inline: 20px; }
  .lgn-pub { grid-template-columns: minmax(0, 1fr); }
  .lgn-pub::before { grid-row: auto; }
}

/* Full-bleed images in inner-page headers. */
.lgn-page-band--image { overflow: hidden; }
.lgn-page-band__layout { max-width: none; }
.lgn-page-band__image {
  align-self: stretch;
  background-size: cover;
  background-position: center;
}
.lgn-page-band__text { min-width: 0; }

/* Shared hover and pressed colors for every button. */
body :is(button, input[type="button"], input[type="reset"], input[type="submit"], .elementor-button, .lgn-btn):is(:hover, :active) {
  background: #79A190 !important;
  border-color: #79A190 !important;
  color: #23472d !important;
}

/* A button following another button is the outlined secondary action. */
body .elementor-widget-button + .elementor-widget-button .elementor-button,
body .lgn-btn + .lgn-btn {
  background: transparent !important;
  border: 1px solid #6D8742 !important;
  color: #6D8742 !important;
}
body .elementor-widget-button + .elementor-widget-button .elementor-button:is(:hover, :active),
body .lgn-btn + .lgn-btn:is(:hover, :active) {
  background: transparent !important;
  border-color: #79A190 !important;
  color: #79A190 !important;
}

/* Header backgrounds also cover existing Elementor pages without reimporting. */
body .lgn-page-band,
body .lgn-band,
body .lgn-hero,
body .lgn-hero > .e-con:first-child {
  background-color: #23472d !important;
}

/* Home scroll entrances; Elementor remains fully visible while editing. */
@media (prefers-reduced-motion: no-preference) {
  body.home:not(.elementor-editor-active) .lgn-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 650ms ease var(--lgn-reveal-delay, 0ms),
                transform 650ms cubic-bezier(.22, .61, .36, 1) var(--lgn-reveal-delay, 0ms);
  }
  body.home:not(.elementor-editor-active) .lgn-reveal--visible,
  body.home:not(.elementor-editor-active) .lgn-reveal:focus-within {
    opacity: 1;
    transform: none;
  }
}
@media print {
  body.home .lgn-reveal { opacity: 1 !important; transform: none !important; }
}

/* Keep introductory labels close to the heading, regardless of container gap. */
body .elementor-widget-text-editor:has(+ .elementor-widget-heading) {
  margin-bottom: calc(6px - var(--row-gap, 0px)) !important;
}
body .elementor-widget-text-editor:has(+ .elementor-widget-heading) p {
  margin-bottom: 0;
}
body .elementor-widget-text-editor + .elementor-widget-heading {
  margin-top: 0 !important;
}
.lgn-eyebrow { margin-bottom: 6px; }

/* Home section links follow the content instead of sitting beside the title. */
body.home :is(#participantes, #actualidad) .e-con:has(> .lgn-link-more) {
  display: contents;
}
body.home :is(#participantes, #actualidad) .e-con > .lgn-link-more {
  order: 10;
  align-self: flex-start;
  margin-top: 32px;
}

/* Home section actions match the primary CTA buttons. */
body.home :is(#participantes, #actualidad) .lgn-link-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: #6D8742;
  color: #fff;
  font-family: var(--lgn-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  transition: background-color .15s ease;
}
body.home :is(#participantes, #actualidad) .lgn-link-more:hover { opacity: 1; }
body.home :is(#participantes, #actualidad) .lgn-link-more a:is(:hover, :active) {
  background: #79A190;
  color: #fff;
}
body.home :is(#participantes, #actualidad) .lgn-link-more a:focus-visible {
  outline: 2px solid #23472d;
  outline-offset: 3px;
}
body.home :is(#participantes, #actualidad) .lgn-link-more a img { display: none; }
body.home :is(#participantes, #actualidad) .lgn-link-more p { margin: 0; }

/* Home news cards. */
body.home #actualidad .lgn-news-card {
  gap: 0;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(35, 71, 45, .12);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(35, 71, 45, .06);
  transition: box-shadow .25s ease, border-color .25s ease;
}
body.home #actualidad .lgn-news-card__img { flex-shrink: 0; }
body.home #actualidad .lgn-news-card__body {
  flex: 1;
  padding: 24px;
  gap: 12px;
}
body.home #actualidad .lgn-news-meta { flex-wrap: wrap; }
body.home #actualidad .lgn-news-more { margin-top: auto; padding-top: 12px; }
body.home #actualidad .lgn-news-card:is(:hover, :focus-visible) {
  border-color: #79A190;
  box-shadow: 0 12px 32px rgba(35, 71, 45, .12);
}
body.home #actualidad .lgn-news-card:focus-visible {
  outline: 2px solid #6D8742;
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  body.home #actualidad .lgn-news-card,
  body.home #actualidad .lgn-news-card__img img { transition: none; }
  body.home #actualidad .lgn-news-card:hover .lgn-news-card__img img { transform: none; }
}

/* Center the home participants section heading and action. */
body.home #participantes .e-con:has(> .elementor-widget-text-editor + .elementor-widget-heading) {
  width: 100%;
  align-items: center;
  text-align: center;
}
body.home #participantes .elementor-widget-text-editor,
body.home #participantes .elementor-widget-heading {
  text-align: center;
}
body.home #participantes .e-con > .lgn-link-more {
  align-self: center;
  text-align: center;
}

/* Resources: four complete clickable cards with primary actions. */
body:has(#recursos) #contenido .lgn-cards {
  gap: 24px;
  background: transparent;
}
body:has(#recursos) #contenido .lgn-card-hover {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(35, 71, 45, .12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 71, 45, .06);
  transition: box-shadow .2s ease, border-color .2s ease;
}
body:has(#recursos) #contenido .lgn-card-hover:is(:hover, :focus-within) {
  background: #fff !important;
  border-color: #79A190;
  box-shadow: 0 12px 32px rgba(35, 71, 45, .12);
}
body:has(#recursos) #contenido .lgn-link-more {
  position: static;
  margin-top: auto;
  padding-top: 12px;
}
body:has(#recursos) #contenido .lgn-link-more .elementor-widget-container { position: static; }
body:has(#recursos) #contenido .lgn-link-more:hover { opacity: 1; }
body:has(#recursos) #contenido .lgn-link-more p { margin: 0; }
body:has(#recursos) #contenido .lgn-link-more a {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  background: #6D8742;
  color: #fff;
  font-family: var(--lgn-font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease;
}
body:not(.elementor-editor-active):has(#recursos) #contenido .lgn-link-more a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 20px;
}
body:has(#recursos) #contenido .lgn-link-more a:is(:hover, :active) { background: #79A190; }
body:has(#recursos) #contenido .lgn-link-more a:focus-visible { outline: 2px solid #23472d; outline-offset: 4px; }
body:has(#recursos) #contenido .lgn-link-more img { display: none; }
@media (max-width: 767px) {
  body:has(#recursos) #contenido .lgn-card-hover { padding: 24px; }
}

/* Home typography and participant carousel. */
body.home :is(h1, h2, h3, h4, h5, h6):not(.lgn-hero__title *) { color: #005B1E !important; }
.lgn-brand-name, body.home .lgn-hero__title .elementor-heading-title { font-weight: 700 !important; }
body.home .lgn-logo-grid.e-con.e-flex {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  width: 100%;
  padding: 4px 4px 16px;
  background: transparent;
  scrollbar-width: none;
}
body.home .lgn-logo-grid > .lgn-logo-cell {
  flex: 0 0 300px;
  width: 300px;
  min-height: 190px;
  scroll-snap-align: start;
  border: 1px solid rgba(35,71,45,.12);
  border-radius: 16px;
}
body.home .lgn-logo-grid .lgn-logo-cell img { max-width: 180px; max-height: 90px; }
body.home .lgn-logo-grid .lgn-logo-cell .e-con img { max-width: 115px; max-height: 80px; }
body.home .lgn-logo-cell--empty { display: none; }
body.home .lgn-logo-grid .lgn-reveal { opacity: 1; transform: none; }
.lgn-carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.lgn-carousel-controls button { width: 48px; height: 48px; border: 0; cursor: pointer; font-size: 24px; }
.lgn-carousel-controls button:disabled { opacity: .4; cursor: default; }
@media (max-width: 767px) {
  body.home .lgn-logo-grid > .lgn-logo-cell { flex-basis: 85%; width: 85%; }
}

body.home .lgn-logo-grid::-webkit-scrollbar { display: none; }
.lgn-carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 16px; }
body .lgn-carousel-dots button {
  width: 28px; height: 28px; padding: 0; border: 0;
  background: transparent !important; cursor: pointer;
  display: grid; place-items: center;
}
.lgn-carousel-dots button::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #79A190; opacity: .45;
}
.lgn-carousel-dots button[aria-current="true"]::before { background: #005B1E; opacity: 1; }
.lgn-carousel-dots button:focus-visible { outline: 2px solid #005B1E; outline-offset: 2px; }

/* Frosted gray section navigation on Project and Participants. */
body:has(.lgn-page-band:is(#proyecto, #participantes, #actualidad)) .lgn-subnav-bar {
  background: #E9E9E9;
  border-top: 1px solid rgba(255, 255, 255, .65);
  border-bottom: 1px solid rgba(96, 82, 47, .12);
  box-shadow: 0 6px 24px rgba(35, 71, 45, .07);
}
@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  body:has(.lgn-page-band:is(#proyecto, #participantes, #actualidad)) .lgn-subnav-bar {
    background: rgb(233 233 233 / 65%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
  }
}

/* Semantic icons for the seven project objectives. */
#objetivos .lgn-cards > .e-con .lgn-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
#objetivos .lgn-cards > .e-con .lgn-num::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--lgn-objective-icon) center / contain no-repeat;
  mask: var(--lgn-objective-icon) center / contain no-repeat;
}
#objetivos .lgn-cards > .e-con:nth-child(1) { --lgn-objective-icon: url("icons/objective-knowledge.svg?v=2"); }
#objetivos .lgn-cards > .e-con:nth-child(2) { --lgn-objective-icon: url("icons/objective-cooperation.svg?v=2"); }
#objetivos .lgn-cards > .e-con:nth-child(3) { --lgn-objective-icon: url("icons/objective-new-links.svg?v=2"); }
#objetivos .lgn-cards > .e-con:nth-child(4) { --lgn-objective-icon: url("icons/objective-innovation.svg?v=2"); }
#objetivos .lgn-cards > .e-con:nth-child(5) { --lgn-objective-icon: url("icons/objective-institutions.svg?v=2"); }
#objetivos .lgn-cards > .e-con:nth-child(6) { --lgn-objective-icon: url("icons/objective-visibility.svg?v=2"); }
#objetivos .lgn-cards > .e-con:nth-child(7) { --lgn-objective-icon: url("icons/objective-research.svg?v=2"); }

/* Publication year tabs. */
.lgn-years[role="tablist"] { gap: 12px; margin-bottom: 24px; border-bottom: 1px solid var(--lgn-line); padding-bottom: 16px; }
.lgn-years [role="tab"] { border-radius: 999px; padding: 12px 24px; }
.lgn-years [role="tab"][aria-selected="true"] { background: #6D8742; border-color: #6D8742; color: #fff; }
.lgn-years [role="tab"][aria-selected="true"] span { color: #fff; }
.lgn-years [role="tab"]:focus-visible { outline: 2px solid #005B1E; outline-offset: 3px; }
.lgn-pubs-year[role="tabpanel"] { margin-top: 0; padding-top: 0; }
.lgn-pubs-year[hidden] { display: none !important; }

/* Keep publication tabs available while scrolling through the list. */
.lgn-years[role="tablist"] {
  position: sticky;
  top: 64px;
  z-index: 35;
  padding: 12px 0;
  background: rgba(233, 233, 233, .95);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 12px rgba(35, 71, 45, .06);
}
.admin-bar .lgn-years[role="tablist"] { top: 96px; }
@media (min-width: 601px) and (max-width: 782px) {
  .admin-bar .lgn-years[role="tablist"] { top: 110px; }
}
@media (max-width: 600px) {
  .admin-bar .lgn-years[role="tablist"] { top: 64px; }
}

/* Match the Project section navigation, directly below the page header. */
.lgn-years[role="tablist"] {
  width: 100%;
  gap: 8px 32px;
  margin: 0;
  padding: 24px max(80px, calc((100% - 1300px) / 2));
  background: rgb(233 233 233 / 65%);
  border-top: 1px solid rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(96,82,47,.12);
  box-shadow: 0 6px 24px rgba(35,71,45,.07);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.lgn-years [role="tab"],
.lgn-years [role="tab"][aria-selected="true"] {
  background: transparent;
  padding: 6px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--lgn-green-700);
  font-weight: 600;
  font-size: 13px;
  line-height: 19.5px;
  letter-spacing: .325px;
}
.lgn-years [role="tab"]:hover,
.lgn-years [role="tab"][aria-selected="true"] {
  color: var(--lgn-green-800);
  border-bottom-color: var(--lgn-gold);
}
.lgn-years [role="tab"][aria-selected="true"] span { color: var(--lgn-muted); }
@media (max-width: 1024px) {
  .lgn-years[role="tablist"] { padding: 20px 40px; }
}
@media (max-width: 767px) {
  .lgn-years[role="tablist"] { padding: 16px 24px; }
}

/* Resource gallery: natural image proportions in a responsive masonry layout. */
.lgn-gallery .elementor-image-gallery .gallery {
  display: block;
  columns: 3;
  column-gap: 16px;
}
.lgn-gallery .elementor-image-gallery .gallery-item {
  display: inline-block;
  vertical-align: top;
  float: none;
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  break-inside: avoid;
}
.lgn-gallery .gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.lgn-gallery .gallery-item a { display: block; }
.lgn-gallery .gallery-item a:focus-visible { outline: 2px solid #6D8742; outline-offset: 4px; }
@media (max-width: 1024px) {
  .lgn-gallery .elementor-image-gallery .gallery { columns: 2; }
}
@media (max-width: 600px) {
  .lgn-gallery .elementor-image-gallery .gallery { columns: 1; }
}

/* Visual Project page: short editorial blocks with full text in disclosures. */
.lgn-project-section { --project-green: #005B1E; }
.lgn-project-section .elementor-heading-title { color: var(--project-green) !important; }
.lgn-project-section .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.lgn-project-hero .lgn-page-band__text { padding-block: 80px; }
.lgn-project-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 56px; margin-bottom: 64px; border-bottom: 1px solid var(--lgn-line); }
.lgn-project-stats > div { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.lgn-project-stats strong { font: 700 clamp(36px, 4vw, 56px)/1 var(--lgn-font-heading); color: #6D8742; }
.lgn-project-stats span { font-size: 12px; color: var(--lgn-muted); }
.lgn-project-photo { width: 100%; }
.lgn-project-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; }
.lgn-project-caption { font-size: 11px; line-height: 1.7; color: var(--lgn-muted); margin: 14px 0 0; }
.lgn-project-funding { margin-top: 56px; padding: 28px 32px; background: #F0E9DD; border-radius: 16px; }
.lgn-project-funding img { max-width: 260px; }
.lgn-project-details { width: 100%; border-bottom: 1px solid rgba(35,71,45,.2); color: var(--lgn-ink); }
.lgn-project-details summary { display: flex; align-items: center; gap: 18px; list-style: none; cursor: pointer; padding: 22px 0; font-size: 15px; font-weight: 600; line-height: 1.5; color: #005B1E; }
.lgn-project-details summary::-webkit-details-marker { display: none; }
.lgn-project-details summary::after { content: '+'; margin-left: auto; flex-shrink: 0; font-size: 24px; font-weight: 400; }
.lgn-project-details[open] > summary::after { content: '−'; }
.lgn-project-details summary:focus-visible { outline: 2px solid #79A190; outline-offset: 4px; }
.lgn-project-details > div { padding: 0 0 24px; max-width: 900px; font-size: 15px; line-height: 1.85; }
.lgn-project-details p + p { margin-top: 16px; }
.lgn-project-section .elementor-widget-html { width: 100%; }
.lgn-project-objectives > .e-con-inner > .elementor-widget-text-editor { max-width: 800px; }
.lgn-project-objectives .lgn-cards { margin-top: 40px; gap: 20px !important; }
.lgn-project-objective { border-radius: 16px; border: 1px solid rgba(96,82,47,.1); }
.lgn-project-objective:last-child { grid-column: 2; }
.lgn-project-benefits .elementor-heading-title { color: #fff !important; }
.lgn-project-benefits-grid.e-con { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: 48px 0 24px; }
.lgn-project-index { color: #B8CDA9; font: 700 36px/1 var(--lgn-font-heading); }
.lgn-project-benefit { border-top: 1px solid rgba(255,255,255,.25); padding-top: 24px; }
.lgn-project-details--dark { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.8); }
.lgn-project-details--dark summary { color: #fff; }
.lgn-project-flow { display: grid; grid-template-columns: repeat(3,1fr); margin: 48px 0; gap: 24px; }
.lgn-project-flow > div { position: relative; padding: 32px; border: 1px solid rgba(35,71,45,.15); border-radius: 16px; background: #fff; }
.lgn-project-flow > div:not(:last-child)::after { content: '→'; position: absolute; right: -21px; top: 45%; color: #6D8742; z-index: 1; }
.lgn-project-flow span { font-size: 12px; color: #60522F; font-weight: 700; letter-spacing: 2px; }
.lgn-project-flow h3 { font: 700 22px/1.3 var(--lgn-font-heading); color: #005B1E; margin: 16px 0 12px; }
.lgn-project-flow p { font-size: 14px; line-height: 1.7; color: var(--lgn-muted); margin: 0; }
.lgn-project-lines summary span { color: #60522F; font-size: 12px; letter-spacing: 1px; }
@media (max-width: 1024px) {
  .lgn-project-stats { gap: 20px; }
  .lgn-project-benefits-grid.e-con { gap: 24px; }
  .lgn-project-objective:last-child { grid-column: auto; }
}
@media (max-width: 767px) {
  .lgn-project-stats { grid-template-columns: repeat(2,1fr); gap: 32px; margin-bottom: 40px; padding-bottom: 40px; }
  .lgn-project-benefits-grid.e-con, .lgn-project-flow { grid-template-columns: 1fr; }
  .lgn-project-flow > div:not(:last-child)::after { content: '↓'; right: 50%; top: auto; bottom: -24px; }
  .lgn-project-funding { padding: 24px; }
  .lgn-project-section h2.elementor-heading-title { font-size: 32px; line-height: 1.2; }
}

.lgn-project-section > .e-con-inner > .elementor-widget-heading { margin-bottom: 20px; }

/* Interactive participant map. */
.lgn-network-map { margin: 0 0 64px; }
.lgn-network-map[hidden], .lgn-map-pin[hidden] { display: none !important; }
.lgn-map-heading { max-width: 660px; margin-bottom: 24px; }
.lgn-map-heading h2 { font: 700 clamp(28px, 3vw, 42px)/1.2 var(--lgn-font-heading); color: #005B1E; margin: 8px 0 16px; }
.lgn-map-heading > p:last-child { font-size: 16px; line-height: 1.7; color: var(--lgn-muted); }
.lgn-map-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
body .lgn-map-filters button { padding: 10px 20px; font-size: 13px; font-weight: 600; border: 1px solid #6D8742; cursor: pointer; }
body .lgn-map-filters button[aria-pressed="false"] { background: transparent !important; color: #23472d !important; }
.lgn-map-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.lgn-map-canvas { position: relative; width: 100%; aspect-ratio: 800 / 640; background: #F5F6F0; border-radius: 24px; border: 1px solid rgba(35,71,45,.1); }
.lgn-map-shape { display: block; width: 100%; height: 100%; }
body .lgn-map-pin {
  position: absolute; transform: translate(-50%,-50%); z-index: 1;
  width: 32px; height: 32px; min-width: 0; padding: 0;
  display: grid; place-items: center;
  border: 2px solid #fff !important; background: #60522f !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.2); cursor: pointer;
  font: 700 12px/1 var(--lgn-font-body);
}
body .lgn-map-pin[aria-pressed="true"] { background: #005B1E !important; outline: 5px solid rgba(121,161,144,.4); z-index: 2; }
.lgn-map-pin:focus-visible, .lgn-map-filters button:focus-visible { outline: 3px solid #005B1E; outline-offset: 4px; }
.lgn-map-pin:hover::after { content: attr(data-label); position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #23472d; color: #fff; border-radius: 6px; padding: 8px 12px; font-size: 12px; pointer-events: none; }
.lgn-map-note { font-size: 11px; line-height: 1.6; color: var(--lgn-muted); margin: 16px 8px; }
.lgn-map-panel { padding: 24px; background: #F0E9DD; border-radius: 20px; }
.lgn-map-panel label { display: block; font-size: 12px; margin-bottom: 8px; font-weight: 600; }
.lgn-map-panel select { width: 100%; background: #fff; border: 1px solid rgba(35,71,45,.2); border-radius: 8px; padding: 12px; color: #23472d; font-size: 14px; }
.lgn-map-city-title { font: 700 24px/1.3 var(--lgn-font-heading); color: #005B1E; margin: 24px 0 8px; }
.lgn-map-count { font-size: 12px; color: var(--lgn-muted); }
.lgn-map-results { max-height: 440px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.lgn-map-results article { background: #fff; border-radius: 12px; padding: 20px; margin-top: 16px; }
.lgn-map-results h4 { font: 700 16px/1.5 var(--lgn-font-heading); color: #23472d; margin: 8px 0; }
.lgn-map-results p { font-size: 12px; line-height: 1.6; color: var(--lgn-muted); }
.lgn-map-results .lgn-map-institution { color: #60522f; font-weight: 600; }
.lgn-map-results .lgn-btn { font-size: 12px; padding: 10px 18px; }
body:has(.lgn-network-map) #grupos .lgn-grupos-grid { gap: 20px; background: transparent; }
body:has(.lgn-network-map) #grupos .lgn-grupo-card { border: 1px solid var(--lgn-line); border-radius: 16px; }
@media (max-width: 1024px) { .lgn-map-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  body .lgn-map-pin { width: 26px; height: 26px; font-size: 10px; }
  .lgn-map-pin[data-area="santiago"], .lgn-map-pin[data-area="jaen"] { margin-top: -7px; }
  .lgn-map-pin[data-area="vigo"], .lgn-map-pin[data-area="granada"] { margin-top: 7px; }
  .lgn-map-panel { padding: 20px; }
  .lgn-map-filters { gap: 8px; }
  body .lgn-map-filters button { padding: 10px 14px; }
}

/* Participant directory: generous logo panels and a consistent card hierarchy. */
.page-id-207 .lgn-grupos-grid,
.page-id-207 .lgn-inst-grid { gap: 24px; background: transparent; }
.page-id-207 .lgn-grupo-card,
.page-id-207 .lgn-inst-card {
  position: relative; overflow: hidden; padding: 28px; gap: 14px;
  border: 1px solid #e1e7de; border-radius: 24px;
  background: #fff; box-shadow: 0 8px 28px rgba(35,71,45,.045);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.page-id-207 #grupos .lgn-grupo-card { border-radius: 24px; }
.page-id-207 .lgn-grupo-card::before,
.page-id-207 .lgn-inst-card::before {
  content: ''; position: absolute; top: 0; left: 28px; width: 48px; height: 4px;
  background: #79A190; border-radius: 0 0 4px 4px;
}
.page-id-207 .lgn-grupo-card__logo,
.page-id-207 .lgn-inst-card__logo {
  height: 132px; flex-shrink: 0; justify-content: center; margin: 0 0 8px;
  padding: 20px; border-radius: 16px; background: #f5f6f0;
  text-align: center; color: #23472d; font-size: 24px;
}
.page-id-207 .lgn-grupo-card__logo img,
.page-id-207 .lgn-inst-card__logo img { max-height: 88px; max-width: 100%; object-fit: contain; }
.page-id-207 .lgn-grupo-card__inst { font-size: 10px; line-height: 1.7; letter-spacing: 1px; color: #60522f; }
.page-id-207 .lgn-grupo-card__title { font-size: 20px; line-height: 1.35; color: #005B1E; }
.page-id-207 .lgn-grupo-card__meta { font-size: 13px; line-height: 1.65; }
.page-id-207 .lgn-grupo-card__meta strong { color: #23472d; }
.page-id-207 .lgn-grupo-card .lgn-news-more {
  align-self: flex-start; gap: 16px; margin-top: auto; padding: 12px 22px;
  border-radius: 999px; background: #6D8742; color: #fff; font-size: 12px;
  transition: background .2s ease;
}
.page-id-207 .lgn-grupo-card .lgn-news-more .lgn-icon { filter: brightness(0) invert(1); }
.page-id-207 .lgn-grupo-card:focus-visible { outline: 3px solid #79A190; outline-offset: 4px; }
.page-id-207 .lgn-grupo-card:hover,
.page-id-207 .lgn-grupo-card:focus-visible { border-color: #79A190; box-shadow: 0 16px 36px rgba(35,71,45,.11); }
.page-id-207 .lgn-grupo-card:hover .lgn-news-more,
.page-id-207 .lgn-grupo-card:active .lgn-news-more { background: #79A190; }
.page-id-207 .lgn-inst-card__name { color: #005B1E; font-size: 17px; line-height: 1.4; }
.page-id-207 .lgn-inst-card__city { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: #f0e9dd; color: #60522f; }
.page-id-207 .lgn-inst-card__groups { margin-top: auto; padding-top: 16px; }
.page-id-207 .lgn-inst-card__groups li + li { margin-top: 12px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .page-id-207 .lgn-grupo-card:hover { transform: translateY(-5px); }
}
@media (max-width: 767px) {
  .page-id-207 .lgn-grupo-card, .page-id-207 .lgn-inst-card { padding: 24px; }
  .page-id-207 .lgn-grupo-card__logo, .page-id-207 .lgn-inst-card__logo { height: 120px; }
}

/* Actualidad uses the same section navigation as Proyecto. */
.lgn-news-subnav { padding: 24px 80px; }
body:has(.lgn-page-band#actualidad) .lgn-subnav-bar { position: sticky; }
body:has(.lgn-page-band#actualidad) :is(#noticias, #eventos, #convocatorias) { scroll-margin-top: 190px; }
@media (max-width: 1024px) { .lgn-news-subnav { padding: 20px 40px; } }
@media (max-width: 767px) {
  .lgn-news-subnav { padding: 16px 24px; }
  body:has(.lgn-page-band#actualidad) .lgn-subnav { flex-wrap: nowrap; gap: 24px; overflow-x: auto; }
  body:has(.lgn-page-band#actualidad) .lgn-subnav a { white-space: nowrap; }
  body.admin-bar:has(.lgn-page-band#actualidad) .lgn-subnav-bar { top: 110px; }
}

/* Shared card language across the site, based on the group directory. */
body .lgn-news-card,
body.home #actualidad .lgn-news-card,
body .lgn-cards > .e-con,
body:has(#recursos) #contenido .lgn-card-hover,
body .lgn-contact-card,
body .lgn-map-results article,
body .lgn-project-flow > div {
  position: relative; min-width: 0;
  border: 1px solid #e1e7de; border-radius: 24px;
  background: #fff; box-shadow: 0 8px 28px rgba(35,71,45,.045);
}
body .lgn-news-card::before,
body .lgn-cards > .e-con::before,
body .lgn-contact-card::before,
body .lgn-map-results article::before,
body .lgn-project-flow > div::before {
  content: ''; position: absolute; top: 0; left: 28px; width: 48px; height: 4px;
  background: #79A190; border-radius: 0 0 4px 4px; z-index: 1;
}
body .e-con.e-flex.lgn-cards { gap: 24px; background: transparent; }
body .lgn-cards > .e-con, body .lgn-contact-card { padding: 28px; }
body .lgn-news-card, body.home #actualidad .lgn-news-card {
  padding: 28px; gap: 20px; height: 100%; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body .lgn-news-card__img { border-radius: 16px; flex-shrink: 0; height: 220px; }
body .lgn-news-card__body, body.home #actualidad .lgn-news-card__body { padding: 0; flex: 1; gap: 14px; }
body .lgn-news-card__title { font-size: 20px; line-height: 1.35; color: #005B1E; }
body .lgn-news-meta { flex-wrap: wrap; }
body .lgn-news-card .lgn-news-more, body.home #actualidad .lgn-news-card .lgn-news-more {
  align-self: flex-start; display: inline-flex; gap: 16px; margin-top: auto;
  padding: 12px 22px; border-radius: 999px; background: #6D8742; color: #fff;
}
body .lgn-news-card .lgn-news-more .lgn-icon { filter: brightness(0) invert(1); }
body .lgn-news-card:is(:hover, :focus-visible) { border-color: #79A190; box-shadow: 0 16px 36px rgba(35,71,45,.11); }
body .lgn-news-card:is(:hover, :active) .lgn-news-more { background: #79A190; }
body .lgn-news-card:focus-visible { outline: 3px solid #79A190; outline-offset: 4px; }
body .lgn-cards > .e-con:not(.lgn-card--dark) .elementor-heading-title,
body .lgn-contact-card h3 { color: #005B1E; }
body .lgn-cards > .lgn-card--dark { background: #23472d; }
/* Informational objectives remain static, as requested. */
body #objetivos .lgn-cards > .e-con:hover { transform: none; background: #fff !important; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body .lgn-news-card:hover { transform: translateY(-5px); }
}
@media (max-width: 767px) {
  body .lgn-news-card, body.home #actualidad .lgn-news-card,
  body .lgn-cards > .e-con, body .lgn-contact-card { padding: 24px; }
}
.lgn-project-stats strong { font-variant-numeric: tabular-nums; }
.lgn-project-stats strong > span { font: inherit; color: inherit; }

/* Contact header matches the full-bleed image layout of inner pages. */
body #contacto.lgn-page-band:not(.lgn-page-band--image) {
  display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 60%); padding: 0;
}
body #contacto.lgn-page-band:not(.lgn-page-band--image)::before {
  content: ''; display: block; position: relative; inset: auto; opacity: 1;
  grid-column: 1; grid-row: 1; width: 100%; min-height: 320px;
  background: linear-gradient(rgba(40,74,49,.45), rgba(40,74,49,.45)), url('images/contacto-red.jpg') center / cover no-repeat;
}
body #contacto.lgn-page-band:not(.lgn-page-band--image) > .e-con {
  grid-column: 2; grid-row: 1; width: 100%; min-width: 0; padding: 96px 80px;
}
@media (max-width: 1024px) {
  body #contacto.lgn-page-band:not(.lgn-page-band--image) { grid-template-columns: minmax(0, 1fr); }
  body #contacto.lgn-page-band:not(.lgn-page-band--image)::before { min-height: 240px; }
  body #contacto.lgn-page-band:not(.lgn-page-band--image) > .e-con { grid-column: 1; grid-row: 2; padding: 64px 40px; }
}
@media (max-width: 767px) {
  body #contacto.lgn-page-band:not(.lgn-page-band--image) > .e-con { padding: 56px 24px; }
}

/* Home project figures align with the full width of their image. */
body.home #proyecto .e-con:has(> .elementor-widget-image) > .e-con {
  width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center; gap: 16px;
}
body.home #proyecto .e-con:has(> .elementor-widget-image) > .e-con > .e-con {
  width: 100%; align-items: center; text-align: center;
}
body.home #proyecto .e-con:has(> .elementor-widget-image) > .e-con .elementor-widget { text-align: center; }

/* Consistent emphasis for the network name on every page. */
body .lgn-brand-name { font-weight: 700 !important; font-family: inherit; color: inherit; }

/* Research pathway cards: thematic photography on the left. */
body .lgn-project-flow > div { padding: 28px 22px 28px calc(30% + 22px); min-height: 280px; }
body .lgn-project-flow > div::before {
  top: 0; left: 0; bottom: 0; width: 30%; height: auto;
  border-radius: 24px 0 0 24px; background: center / cover no-repeat;
}
body .lgn-project-flow > div:nth-child(1)::before { background-image: url('images/linea-biomasa.png'); }
body .lgn-project-flow > div:nth-child(2)::before { background-image: url('images/linea-biotecnologia.png'); }
body .lgn-project-flow > div:nth-child(3)::before { background-image: url('images/linea-bioproductos.png'); }
body .lgn-project-flow h3 { font-size: 20px; overflow-wrap: anywhere; }
@media (min-width: 768px) and (max-width: 1100px) {
  body .lgn-project-flow { grid-template-columns: 1fr; }
  body .lgn-project-flow > div { min-height: 190px; }
  body .lgn-project-flow > div:not(:last-child)::after { content: '↓'; right: 50%; top: auto; bottom: -24px; }
}
@media (max-width: 767px) { body .lgn-project-flow > div { min-height: 230px; } }

/* Usability review: contrast, search and mobile section navigation. */
body.home #inicio .elementor-widget-button + .elementor-widget-button .elementor-button { color: #fff !important; border-color: #b8cda9 !important; }
.lgn-search { margin: 24px 0 32px; padding: 24px; border: 1px solid #e1e7de; border-radius: 16px; background: #f5f6f0; }
.lgn-search label { display: block; font-size: 14px; font-weight: 600; color: #23472d; }
.lgn-search input { display: block; margin-top: 12px; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #79a190; border-radius: 8px; background: #fff; }
.lgn-search p, .lgn-form-guidance { font-size: 13px; line-height: 1.6; margin: 12px 0 0; color: #23472d; }
.lgn-search input:focus-visible { outline: 2px solid #23472d; outline-offset: 3px; }
.lgn-pubs > li[hidden], .lgn-grupo-card[hidden], .lgn-inst-card[hidden] { display: none !important; }
@media (max-width: 767px) {
  body:has(.lgn-page-band:is(#proyecto,#participantes)) .lgn-subnav-bar { position: sticky; top: 64px; padding: 12px 24px; }
  body.admin-bar:has(.lgn-page-band:is(#proyecto,#participantes)) .lgn-subnav-bar { top: 110px; }
  body:has(.lgn-page-band:is(#proyecto,#participantes)) .lgn-subnav { flex-wrap: nowrap; gap: 24px; overflow-x: auto; }
  body:has(.lgn-page-band:is(#proyecto,#participantes)) .lgn-subnav a { white-space: nowrap; min-height: 36px; }
  body:has(.lgn-page-band:is(#proyecto,#participantes)) .lgn-project-section,
  body:has(.lgn-page-band#participantes) :is(#grupos,#instituciones,#colaboradores) { scroll-margin-top: 130px; }
  .lgn-search { padding: 20px; }
}
/* Larger hit areas without obscuring neighboring map markers. */
.lgn-map-pin::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.lgn-map-pin { touch-action: manipulation; }
/* Keep the directory scannable; full institutional and contact details remain in each profile. */
body:has(.lgn-network-map) .lgn-grupo-card__meta { display: none; }

/* Second UX/UI pass: consistent rhythm and clear search results. */
.lgn-search-results[hidden], .lgn-pubs-year[hidden] { display: none !important; }
body.lgn-directory-searching #grupos .lgn-grupos-grid:not(.lgn-search-results),
body.lgn-directory-searching :is(#instituciones, #colaboradores) { display: none !important; }
.lgn-result-type { align-self: flex-start; font-size: 11px; font-weight: 600; color: #23472d; background: #e8eee3; padding: 5px 12px; border-radius: 999px; margin: 0; }
body .lgn-search-results { margin-bottom: 32px; }
body:has(.lgn-page-band#participantes) :is(#grupos,#instituciones,#colaboradores) h2,
body:has(.lgn-page-band#actualidad) :is(#noticias,#eventos,#convocatorias) h2 { color: #005B1E; }
.lgn-network-map { margin-bottom: 32px; }
.lgn-map-heading { margin-bottom: 16px; }
body .wpcf7 :is(input[type=text],input[type=email],select,textarea) { border-radius: 8px; border: 1px solid #bac8b5; }
.lgn-form-guidance { margin-bottom: 16px; }
.lgn-download-preview { display: inline-block; margin: 12px 0 0 20px; font-size: 13px; color: #23472d; text-decoration: underline; }
.lgn-gallery figcaption { font-size: 13px; line-height: 1.5; color: #23472d; padding: 10px 0 16px; text-align: left; }
.lgn-content-note { font-size: 14px; line-height: 1.6; color: #60522f; margin: 24px 0; }
body:has(#documentacion) #listado .elementor-widget-text-editor p:only-child { line-height: 1.6; }
body:has(.lgn-years) > main .lgn-search, body:has(.lgn-years) .elementor > .lgn-search { margin-inline: 80px; }
@media (max-width: 1024px) {
  body:has(.lgn-years) > main .lgn-search, body:has(.lgn-years) .elementor > .lgn-search { margin-inline: 40px; }
}
@media (max-width: 767px) {
  body:has(.lgn-years) .lgn-search { margin-inline: 24px !important; }
  .lgn-download-preview { margin-left: 12px; }
}
/* Match the CF7 text inputs despite the theme's more specific input selectors. */
body .wpcf7 form .lgn-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]) {
  border-radius: 8px; border: 1px solid #bac8b5;
}
.lgn-document-status { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #f0e9dd; color: #60522f; font-size: 12px; font-weight: 600; }
@media (max-width: 767px) {
  body:has(.lgn-page-band#participantes) #grupos { padding-top: 40px; }
  body:has(.lgn-page-band#participantes) #grupos > .e-con-inner > .e-con { margin-top: 24px; }
}

/* UI refinement: retain typefaces and palette, adapt proportions. */
body.home .lgn-hero__title { container-type: inline-size; }
body.home .lgn-hero__title .elementor-heading-title { font-size: clamp(40px, 18.5cqw, 100px); line-height: 1.02; }
.lgn-directory-heading { margin: 48px 0 0 !important; }
body .lgn-section-action { margin-top: 32px; text-align: center; }
body .lgn-section-action p { margin: 0; }
body .lgn-section-action a { display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 999px; background: #6D8742; color: white; font-size: 14px; font-weight: 600; text-decoration: none; }
body .lgn-section-action a:is(:hover,:active) { background: #79A190; }
body .lgn-section-action a img { display: none; }
body:has(.lgn-page-band#recursos) #contenido .lgn-card-hover { padding: 28px; gap: 12px; }
body:has(.lgn-page-band#recursos) #contenido .lgn-card-hover::before { top: 0; }
body:has(.lgn-page-band#recursos) #contenido .lgn-card-hover::after {
  content: ''; display: block; order: -1; width: 28px; height: 28px; background: #6D8742;
  mask: var(--resource-icon) center / contain no-repeat;
  -webkit-mask: var(--resource-icon) center / contain no-repeat;
}
body:has(.lgn-page-band#recursos) #contenido .lgn-card-hover:nth-child(1) { --resource-icon: url('icons/resource-book.svg'); }
body:has(.lgn-page-band#recursos) #contenido .lgn-card-hover:nth-child(2) { --resource-icon: url('icons/resource-document.svg'); }
body:has(.lgn-page-band#recursos) #contenido .lgn-card-hover:nth-child(3) { --resource-icon: url('icons/resource-gallery.svg'); }
body:has(.lgn-page-band#recursos) #contenido .lgn-card-hover:nth-child(4) { --resource-icon: url('icons/resource-download.svg'); }
.lgn-footer { padding: 40px 24px 28px; }
.lgn-footer__desc, .lgn-footer__links a { color: #e0e8dc; font-size: 13px; }
.lgn-footer__funding-label, .lgn-footer__copy, .lgn-footer__plan { color: #d1ddcb; font-size: 12px; line-height: 1.6; }
.lgn-footer__logo { height: 50px; }
.lgn-footer__logo img { width: 110px; height: 42px; }
.lgn-footer__funding { width: 290px; }
.lgn-footer__funding img { width: 290px; height: auto; margin-top: 8px; }
@media (max-width: 767px) {
  body:has(.lgn-page-band) .lgn-subnav-bar { padding: 6px 24px !important; }
  body:has(.lgn-page-band) .lgn-subnav a { min-height: 32px; padding-block: 6px; }
  body:has(.lgn-page-band) .lgn-subnav { margin: 0; }
  body #lineas.lgn-project-section h2.elementor-heading-title { font-size: 30px; line-height: 1.2; }
  body .lgn-project-flow { margin-top: 28px; }
  body .lgn-project-flow > div { padding: 180px 24px 24px; min-height: 0; }
  body .lgn-project-flow > div::before { width: 100%; height: 156px; bottom: auto; border-radius: 24px 24px 0 0; }
}
/* Give the title a definite container width before deriving its responsive size. */
body.home .lgn-hero__title { width: 100% !important; }
body.home .lgn-hero__title .elementor-heading-title { font-size: clamp(40px, 18.5cqw, 100px) !important; line-height: 1.02 !important; }
@media (max-width: 767px) {
  body:has(.lgn-page-band) .lgn-subnav-bar > .e-con-inner { padding-block: 0 !important; }
}

/* UI audit: readable actions, aligned section links and compact disclosure. */
body .lgn-section-action { width: 100% !important; align-self: stretch; text-align: center !important; }
body :is(.lgn-section-action, .lgn-link-more) a:is(:hover, :active),
body .lgn-news-card:is(:hover, :active) .lgn-news-more { color: #23472d !important; }
body .lgn-news-card:is(:hover, :active) .lgn-news-more .lgn-icon { filter: none; }
body #contexto-cientifico.lgn-project-section { padding-block: 40px !important; }
body #contexto-cientifico > .e-con-inner { padding-block: 0 !important; }
@media (max-width: 767px) {
  body #contexto-cientifico.lgn-project-section { padding-block: 28px !important; }
  .lgn-subnav.lgn-subnav--more {
    mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
  }
}
body .lgn-section-action > .elementor-widget-container,
body .lgn-section-action p { width: 100%; text-align: center !important; }

/* Shared action feedback, including Elementor, resource and directory cards. */
body .lgn-link-more, body .lgn-link-more a { opacity: 1 !important; }
body :is(.elementor-button,.lgn-btn,.lgn-link-more a,.lgn-section-action a,.lgn-news-more,input[type=submit]) {
  transition: background-color .2s ease, border-color .2s ease, color .2s ease !important;
}
body :is(.elementor-button,.lgn-btn,.lgn-link-more a,.lgn-section-action a,.lgn-news-more,input[type=submit]):is(:hover,:active),
body :is(.lgn-news-card,.lgn-grupo-card):is(:hover,:active) .lgn-news-more,
body .lgn-card-hover:is(:hover,:active) .lgn-link-more a,
body .elementor-widget-button + .elementor-widget-button .elementor-button:is(:hover,:active),
body .lgn-btn + .lgn-btn:is(:hover,:active),
body.home #inicio .elementor-widget-button + .elementor-widget-button .elementor-button:is(:hover,:active) {
  background: #79A190 !important; border-color: #79A190 !important; color: #23472d !important;
  opacity: 1 !important; transform: none !important;
}
body :is(.lgn-news-card,.lgn-grupo-card):is(:hover,:active) .lgn-news-more .lgn-icon { filter: none !important; }
.lgn-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; }
.lgn-publications-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: sticky; top: 64px; z-index: 20; width: 100%;
  padding: 16px max(80px, calc((100% - 1300px) / 2));
  background: rgb(233 233 233 / 65%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(96,82,47,.12);
}
.admin-bar .lgn-publications-toolbar { top: 96px; }
body .lgn-publications-toolbar .lgn-years { position: static; width: auto; flex-wrap: nowrap; padding: 0; border: 0; box-shadow: none; background: transparent; backdrop-filter: none; white-space: nowrap; }
body .lgn-publications-toolbar .lgn-publication-search { margin: 0 !important; padding: 0; border: 0; background: transparent; width: 300px; flex-shrink: 1; min-width: 0; }
.lgn-publication-search label { position: relative; }
.lgn-publication-search label::after { content: ''; position: absolute; right: 15px; top: 14px; width: 18px; height: 18px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323472d' stroke-width='2'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center/contain no-repeat; }
body .lgn-publication-search input { margin: 0; border-radius: 999px; padding-right: 42px; min-height: 44px; font-size: 14px; }
@media (max-width: 1024px) { .lgn-publications-toolbar { padding-inline: 40px; } }
@media (max-width: 767px) {
  .lgn-publications-toolbar { padding: 12px 16px; gap: 12px; }
  body .lgn-publications-toolbar .lgn-years { gap: 12px; }
  body .lgn-publications-toolbar .lgn-years a { font-size: 12px; }
  body .lgn-publications-toolbar .lgn-years a span { display: none; }
  body .lgn-publication-search input { font-size: 12px; padding-left: 12px; }
  .admin-bar .lgn-publications-toolbar { top: 110px; }
}

/* Impact disclosure accompanied by a square research photograph. */
.lgn-project-details > .lgn-impact-layout { max-width: none; }
.lgn-impact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; width: 100%; }
.lgn-impact-layout > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0; }
@media (max-width: 767px) { .lgn-impact-layout { grid-template-columns: 1fr; gap: 24px; } }

/* Headline weight requested site-wide; font families and sizes stay intact. */
body .lgn-heading-heavy,
body.home #inicio .lgn-hero__title .lgn-heading-heavy,
body .lgn-heading-heavy :is(strong,b,.lgn-brand-name) { font-weight: 900 !important; }

/* Only actions inside activity/news cards use the outlined variant. */
body .lgn-news-card .lgn-news-more,
body.home #actualidad .lgn-news-card .lgn-news-more {
  background: transparent !important;
  border: 1px solid #6D8742 !important;
  color: #6D8742 !important;
}
body .lgn-news-card:is(:hover,:active,:focus-visible) .lgn-news-more,
body.home #actualidad .lgn-news-card:is(:hover,:active,:focus-visible) .lgn-news-more {
  background: transparent !important;
  border-color: #79A190 !important;
  color: #23472d !important;
}
body .lgn-news-card .lgn-news-more .lgn-icon,
body.home #actualidad .lgn-news-card .lgn-news-more .lgn-icon { filter: none !important; }

/* Center Home's activity section action across the content width. */
body.home #actualidad .lgn-link-more { width: 100% !important; align-self: stretch; text-align: center !important; }
body.home #actualidad .lgn-link-more > .elementor-widget-container,
body.home #actualidad .lgn-link-more p { width: 100%; text-align: center !important; }

/* Home participant carousel: logos only, without card surfaces. */
body.home #participantes .lgn-logo-grid > .lgn-logo-cell,
body.home #participantes .lgn-logo-grid > .lgn-logo-cell:is(:hover,:focus-within) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.home #participantes .lgn-logo-cell__star { display: none; }

/* Contact and objectives have plain surfaces; objectives respond subtly to hover. */
body .lgn-contact-card::before,
body #objetivos .lgn-cards > .e-con::before { content: none; display: none; }
body #objetivos .lgn-cards > .e-con { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body #objetivos .lgn-cards > .e-con:hover {
    transform: translateY(-5px); border-color: #79A190;
    box-shadow: 0 16px 36px rgba(35,71,45,.12);
  }
}
body .lgn-contact-card > .lgn-btn { margin-top: 12px; }

/* Full Benefits document on the shared gray background. */
body .lgn-benefits-document .elementor-heading-title { color: #005B1E !important; }
.lgn-benefits-editorial { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 32px; color: #23472d; font-size: 16px; line-height: 1.85; }
.lgn-benefits-editorial p + p { margin-top: 28px; }
.lgn-benefits-editorial img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0; }
@media (max-width: 767px) { .lgn-benefits-editorial { grid-template-columns: 1fr; gap: 28px; } }
