/* Nota de Transparencia: Código generado/refactorizado con asistencia de IA Generativa (Claude Code) bajo la Política ODTI012 del CCS. Requiere supervisión y validación humana permanente. */

/* ==========================================================
   Tokens de diseño (sitio público)
   ========================================================== */
:root {
  --c-brand: #009C7B;
  --c-brand-600: #008266;
  --c-brand-700: #006a54;
  --c-brand-50: #e6f5f1;
  --c-ink: #1d2725;
  --c-ink-soft: #4a5552;
  --c-muted: #6b7774;
  --c-surface: #ffffff;
  --c-surface-alt: #f4f7f6;
  --c-border: #e3e9e7;
  --c-dark: #17201e;

  --font-display: 'Afacad Flux', 'Roboto', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 22, .06), 0 1px 3px rgba(16, 24, 22, .08);
  --shadow-md: 0 10px 30px -12px rgba(16, 24, 22, .18);
  --shadow-lg: 0 24px 60px -20px rgba(0, 106, 84, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body.site {
  background: var(--c-surface);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
}

.site h1, .site h2, .site h3,
.home-hero__title, .site-nav__brand, .site-footer__brand {
  font-family: var(--font-display) !important;
}

/* ==========================================================
   Botones
   ========================================================== */
.site-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.site-btn:hover { transform: translateY(-1px); }
.site-btn:focus-visible { outline: 3px solid rgba(0, 156, 123, .35); outline-offset: 2px; }
.site-btn--lg { padding: .85rem 1.6rem; font-size: 1.05rem; }

.site-btn--primary { background: var(--c-brand); color: #fff; }
.site-btn--primary:hover { background: var(--c-brand-600); color: #fff; box-shadow: var(--shadow-lg); }

.site-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.site-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }

.site-btn--light { background: #fff; color: var(--c-brand-700); }
.site-btn--light:hover { background: var(--c-brand-50); color: var(--c-brand-700); }

/* ==========================================================
   Navbar
   ========================================================== */
.site-nav {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
  padding: .65rem 0;
}
.site-nav__logo { height: 48px; width: auto; }
.site-nav__brand { font-size: 1.35rem; font-weight: 700; color: var(--c-ink); letter-spacing: .02em; }
.site-nav__toggler { border: 0; font-size: 1.75rem; color: var(--c-ink); box-shadow: none !important; }

.site-nav .site-nav__link {
  position: relative;
  color: var(--c-ink-soft);
  font-weight: 500;
  padding: .5rem .85rem !important;
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav .site-nav__link:hover { color: var(--c-brand); background: var(--c-brand-50); }
.site-nav .site-nav__link.active { color: var(--c-brand); }
.site-nav .site-nav__link.active::after {
  content: '';
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--c-brand);
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: 1rem 0 .5rem; }
  .site-nav .site-nav__link.active::after { display: none; }
  .site-nav .site-nav__link.active { background: var(--c-brand-50); }
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--c-dark); color: rgba(255, 255, 255, .72); }
.site-footer__logo { height: 44px; width: auto; }
.site-footer__brand { font-size: 1.3rem; font-weight: 700; color: #fff; }
.site-footer__text { font-weight: 300; line-height: 1.7; max-width: 420px; }
.site-footer__title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
  margin-bottom: 1rem;
}
.site-footer__links li { margin-bottom: .5rem; }
.site-footer__links a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.site-footer__links a:hover { color: var(--c-brand); }
.site-footer__bottom {
  background: var(--c-brand);
  color: #fff;
  font-size: .9rem;
  font-weight: 300;
}

/* ==========================================================
   Home
   ========================================================== */
.ui-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-brand);
  margin-bottom: .75rem;
}
.ui-title {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-ink);
  margin-bottom: 1rem;
}
.ui-text { font-size: 1.1rem; font-weight: 300; line-height: 1.75; color: var(--c-ink-soft); }
.ui-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 500;
  color: var(--c-brand);
  text-decoration: none;
}
.ui-link i { transition: transform .2s var(--ease); }
.ui-link:hover { color: var(--c-brand-700); }
.ui-link:hover i { transform: translateX(4px); }

.ui-section { padding: 5.5rem 0; }
.ui-section--alt { background: var(--c-surface-alt); }

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
  color: #fff;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(0, 156, 123, .35), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(0, 156, 123, .2), transparent 60%),
    var(--c-dark);
}
.home-hero .ui-eyebrow { color: #5fd3b6; }
.home-hero__title {
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.9rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.home-hero__title span { color: #5fd3b6; }
.home-hero__lead {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
  max-width: 540px;
  margin-bottom: 2rem;
}
.home-hero__media { position: relative; max-width: 520px; margin-left: auto; }
.home-hero__media::before {
  content: '';
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 2px solid rgba(95, 211, 182, .5);
  border-radius: var(--radius-lg);
}
.home-hero__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.home-hero__badge {
  position: absolute;
  left: -24px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.2rem;
  background: #fff;
  color: var(--c-ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-weight: 500;
  line-height: 1.2;
}
.home-hero__badge i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-brand-50);
  color: var(--c-brand);
  font-size: 1.3rem;
}

/* Tarjetas */
.ui-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.ui-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.ui-card__title { font-size: 1.25rem; font-weight: 600; line-height: 1.25; color: var(--c-ink); margin-bottom: .5rem; }
.ui-card__text { font-weight: 300; line-height: 1.65; color: var(--c-muted); }

.home-pilar { padding: 1.75rem; }
.home-pilar__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--c-brand-50);
  color: var(--c-brand);
  font-size: 1.5rem;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.home-pilar:hover .home-pilar__icon { background: var(--c-brand); color: #fff; }

/* Noticias */
.home-news { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.home-news__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-brand-50); }
.home-news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.home-news:hover .home-news__media img { transform: scale(1.05); }
.home-news__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.5rem; }
.home-news__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--c-muted);
  margin-bottom: .75rem;
}
.home-news .ui-card__title a { color: inherit; text-decoration: none; }
.home-news:hover .ui-card__title a { color: var(--c-brand-700); }
.home-news__summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-news--featured .ui-card__title { font-size: 1.6rem; }
.home-news--featured .home-news__summary { -webkit-line-clamp: 4; font-size: 1.05rem; }
@media (min-width: 992px) {
  .home-news--horizontal { flex-direction: row; }
  .home-news--horizontal .home-news__media { flex: 0 0 50%; aspect-ratio: auto; min-height: 320px; }
  .home-news--horizontal .home-news__body { justify-content: center; padding: 2rem 2.25rem; }
}
.ui-tag {
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--c-brand-50);
  color: var(--c-brand-700);
  font-weight: 500;
}
.ui-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--c-muted);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-surface);
}
.ui-empty i { display: block; font-size: 2rem; margin-bottom: .5rem; color: var(--c-brand); }

/* Revista */
.ui-feature {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-brand-50);
}
.ui-feature__media { display: block; height: 100%; }
.ui-feature__media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.ui-feature__body { padding: 2.5rem; }

/* CTA final */
.ui-cta {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 0;
  background: linear-gradient(120deg, var(--c-brand-700), var(--c-brand));
  color: #fff;
}
.ui-cta__title { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 700; }
.ui-cta__text { font-weight: 300; font-size: 1.1rem; color: rgba(255, 255, 255, .85); }
.ui-cta__skyline {
  display: block;
  max-width: 420px;
  width: 70%;
  margin: 2.5rem auto 0;
  opacity: .35;
  filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 991.98px) {
  .home-hero { padding: 3.5rem 0 4.5rem; }
  .home-hero__media { margin: 1rem auto 0; }
  .home-hero__badge { left: 12px; bottom: 16px; }
  .ui-section { padding: 4rem 0; }
  .ui-feature__body { padding: 2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .site-btn, .ui-card, .home-news__media img, .ui-link i { transition: none; }
  .site-btn:hover, .ui-card:hover { transform: none; }
}

/* ==========================================================
   Páginas internas (componentes compartidos)
   ========================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  color: #fff;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(0, 156, 123, .4), transparent 60%),
    var(--c-dark);
}
.page-hero__title {
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: .75rem;
}
.page-hero__lead {
  max-width: 640px;
  margin-bottom: 0;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
}
.page-hero .breadcrumb { margin-bottom: 1.25rem; font-size: .9rem; }
.page-hero .breadcrumb-item a { color: #5fd3b6; text-decoration: none; }
.page-hero .breadcrumb-item.active,
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .6); }

.ui-media {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* Datos clave */
.ui-stat { padding: 1.5rem; }
.ui-stat__value {
  display: block;
  font-family: var(--font-display) !important;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-brand);
  margin-bottom: .5rem;
}
.ui-stat__label { font-size: .95rem; font-weight: 300; line-height: 1.5; color: var(--c-ink-soft); }

/* Panel destacado verde */
.ui-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c-brand-700), var(--c-brand));
  color: #fff;
}
.ui-panel__body { padding: 3rem; }
.ui-panel .ui-eyebrow { color: #c9f1e6; }
.ui-panel .ui-title { color: #fff; }
.ui-panel__img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.ui-checklist { list-style: none; padding: 0; margin: 0; }
.ui-checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
}
.ui-checklist li::before {
  content: '\F26A';
  font-family: 'bootstrap-icons' !important;
  position: absolute;
  left: 0;
  top: .1rem;
  color: #c9f1e6;
}

/* Tarjeta numerada (objetivos) */
.ui-numbered { padding: 1.75rem; }
.ui-numbered__n {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--c-brand-50);
  color: var(--c-brand);
  font-weight: 700;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.ui-numbered:hover .ui-numbered__n { background: var(--c-brand); color: #fff; }

.ui-skyline { display: block; max-width: 640px; width: 100%; margin: 3rem auto 0; opacity: .85; }

@media (max-width: 991.98px) {
  .page-hero { padding: 3.5rem 0 3rem; }
  .ui-panel__body { padding: 2rem 1.5rem; }
}

/* Encabezado de sección con contador */
.ui-section-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.ui-section-head .ui-title { margin-bottom: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.ui-count {
  padding: .15rem .7rem;
  border-radius: 999px;
  background: var(--c-brand-50);
  color: var(--c-brand-700);
  font-size: .9rem;
  font-weight: 600;
}
.ui-section-block + .ui-section-block { margin-top: 4rem; }

/* Tarjeta de miembro */
.member-card { display: flex; flex-direction: column; overflow: hidden; }
.member-card__logo {
  display: grid;
  place-items: center;
  height: 150px;
  padding: 1.25rem;
  background: var(--c-surface-alt);
  border-bottom: 1px solid var(--c-border);
}
/* Alto fijo: max-height: 100% no se resuelve dentro del grid y los logos altos tapaban el texto */
.member-card__logo { overflow: hidden; }
.member-card__logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 110px; object-fit: contain; }
.member-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.member-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.member-card__desc.is-open { display: block; -webkit-line-clamp: unset; }
.member-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1rem; }
.ui-link-btn { padding: 0; border: 0; background: none; font-weight: 500; color: var(--c-ink-soft); }
.ui-link-btn:hover { color: var(--c-brand); }

/* Tarjeta de contacto */
.contact-card { padding: 1.5rem; }
.contact-card__head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.contact-card__head > div { min-width: 0; overflow-wrap: anywhere; }
.contact-card__flag {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--c-brand-50);
}
.contact-card__country { display: block; overflow-wrap: anywhere; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-brand); }
.contact-card__org { font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin: 0; color: var(--c-ink); }
.contact-card__list { list-style: none; padding: 0; margin: 0; }
.contact-card__list li {
  display: flex;
  gap: .65rem;
  padding: .45rem 0;
  border-top: 1px dashed var(--c-border);
  font-size: .95rem;
  font-weight: 300;
  color: var(--c-ink-soft);
  word-break: break-word;
}
.contact-card__list i { color: var(--c-brand); flex: 0 0 auto; }
.contact-card__list a { color: var(--c-brand-700); text-decoration: none; }
.contact-card__list a:hover { text-decoration: underline; }

/* Detalle de noticia */
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-bottom: 1.5rem; color: var(--c-muted); font-size: .95rem; }
.article__meta i { color: var(--c-brand); margin-right: .25rem; }
.article__figure { margin-bottom: 2rem; }
.article__figure figcaption { margin-top: .75rem; font-size: .9rem; color: var(--c-muted); text-align: center; }
.article__content { font-size: 1.15rem; font-weight: 300; line-height: 1.85; color: var(--c-ink-soft); }
.article__content p { margin-bottom: 1.25rem; }
.article__content h2, .article__content h3, .article__content h4 { margin: 2rem 0 1rem; color: var(--c-ink); font-weight: 700; }
.article__content strong, .article__content b { font-weight: 600; color: var(--c-ink); }
.article__content a { color: var(--c-brand-700); }
.article__content blockquote { margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem; border-left: 4px solid var(--c-brand); font-style: italic; }
.article__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}
.article__nav-link { display: block; padding: 1rem 1.25rem; color: var(--c-ink); font-weight: 500; text-decoration: none; }
.article__nav-link:hover { color: var(--c-brand); }
@media (max-width: 575.98px) {
  .article__nav { grid-template-columns: 1fr 1fr; }
  .article__nav > .ui-link { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* Checklist sobre fondo claro y alerta */
.ui-checklist--brand li { color: var(--c-ink-soft); font-size: 1rem; margin-bottom: .65rem; }
.ui-checklist--brand li::before { color: var(--c-brand); }
.ui-alert {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: #fff7e6;
  border: 1px solid #f5d590;
  color: #7a5200;
}
.ui-alert i { font-size: 1.2rem; }

/* Filtro por chips */
.ui-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ui-chip {
  padding: .45rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-ink-soft);
  font-weight: 500;
  transition: all .2s var(--ease);
}
.ui-chip:hover { border-color: var(--c-brand); color: var(--c-brand); }
.ui-chip.is-active { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }

/* Eventos */
.year-nav { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-surface); }
.year-nav__btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--c-ink-soft); }
.year-nav__btn:hover { background: var(--c-brand-50); color: var(--c-brand); }
.year-nav__label { min-width: 3.5rem; text-align: center; font-weight: 700; font-size: 1.1rem; }

.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.month-card {
  width: auto; /* anula el ancho fijo de main.css */
  box-shadow: none;
  padding: 1.1rem 1.1rem 1.25rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-surface);
}
.month-card.is-current { border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-50); }
.month-card.is-empty { background: transparent; }
.month-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; font-weight: 600; color: var(--c-ink); }
.month-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.month-card__empty { font-size: .9rem; font-weight: 300; color: var(--c-muted); }
.month-card__event {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .45rem .6rem;
  border: 0;
  border-left: 3px solid var(--evento, var(--c-brand));
  border-radius: var(--radius-sm);
  background: var(--c-surface-alt);
  color: var(--c-ink);
  font-size: .92rem;
  text-align: left;
  transition: background-color .2s var(--ease);
}
.month-card__event:hover { background: var(--c-brand-50); }
.month-card__day { flex: 0 0 auto; font-weight: 700; color: var(--evento, var(--c-brand)); filter: brightness(.8); }

.event-card { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; cursor: pointer; }
.event-card__date {
  display: grid;
  place-items: center;
  flex: 0 0 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: var(--c-brand-50);
  border-top: 4px solid var(--evento, var(--c-brand));
  color: var(--c-brand-700);
  font-size: .8rem;
  text-transform: uppercase;
  line-height: 1;
}
.event-card__date strong { font-size: 1.6rem; font-family: var(--font-display) !important; }

.event-modal { border: 0; border-radius: var(--radius-lg); padding: .5rem; }
.event-toast { border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
