/* Estilos del blog y eventos (CMS). Solo los cargan blog.php, article.php y events.php. */
/* ── BLOG / EVENTS (CMS) ─────────────────────────────────────────────
   Classes applied by cms/lib.php render_body() to the article HTML
   that editors write in the admin panel. One class per element. */
.article_body { min-width: 0; }
.article_h2 { font-family: var(--font--display); font-size: 2rem; font-weight: 600; line-height: 1.05; color: var(--color--text-heading); margin-top: 40px; margin-bottom: 16px; }
.article_h3 { font-family: var(--font--display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; color: var(--color--text-heading); margin-top: 32px; margin-bottom: 12px; }
.article_list { padding-left: 24px; margin-bottom: 24px; list-style: disc; }
.article_list.is-ordered { list-style: decimal; }
.article_item { font-size: 1.125rem; line-height: 1.6; color: var(--color--text-muted); padding: 4px 0; }
.article_quote { padding: 24px 28px; margin: 32px 0; background-color: var(--brand--blue-08); border-left: 4px solid var(--color--accent); border-radius: var(--layout--radius); font-size: 1.1875rem; line-height: 1.6; font-style: italic; color: var(--color--text-primary); }
.article_link { color: var(--color--action); text-decoration: underline; }
.article_link:hover { color: var(--color--action-hover); }
.article_figure { margin: 32px 0; }
.article_img { width: 100%; height: auto; display: block; border-radius: var(--layout--radius); margin: 24px 0; }
.article_caption { font-size: 0.875rem; color: var(--color--text-muted); margin-top: -12px; }
.article_hr { border: none; border-top: 1px solid var(--color--line); margin: 40px 0; }
.blog_filters { display: flex; flex-wrap: wrap; gap: 8px; }
.blog_pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; }
.blog_empty { font-size: 1.0625rem; line-height: 1.6; color: var(--color--text-muted); padding: 24px 0; }
.event_desc { font-size: 0.9375rem; line-height: 1.55; color: var(--color--text-muted); margin-top: 8px; }
.event_link { margin-top: 10px; }

/* ── ARTICLE LANDING (CMS) ─────────────────────────────────────────── */
.article_progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 300; pointer-events: none; }
.article_progress-bar { height: 100%; width: 100%; background-color: var(--color--accent); transform: scaleX(0); transform-origin: left center; }
.article_h2 { scroll-margin-top: 110px; }
.article_cover { margin: 0 0 36px; }
.article_cover-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: var(--layout--radius); background-color: var(--brand--blue-08); }
.article_caption { display: block; font-size: 0.875rem; line-height: 1.5; color: var(--color--text-muted); margin-top: 10px; }
.article_toc { padding: 24px 28px; margin-bottom: 36px; background-color: var(--brand--blue-08); border-left: 4px solid var(--color--action); border-radius: var(--layout--radius); }
.article_toc-title { font-family: var(--font--display); font-size: 0.85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color--action); margin-bottom: 10px; }
.article_toc-list { list-style: decimal; padding-left: 20px; }
.article_toc-item { padding: 4px 0; color: var(--color--text-primary); }
.article_toc-link { font-size: 1rem; color: var(--color--text-primary); text-decoration: none; }
.article_toc-link:hover { color: var(--color--action); text-decoration: underline; }
.article_gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.article_gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--layout--radius); background-color: var(--brand--blue-08); }
.article_gallery-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.article_gallery-img:hover { transform: scale(1.05); }
.article_files { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; padding-left: 0; }
.article_files-item { list-style: none; }
.article_file { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background-color: var(--brand--white); border: 1px solid var(--color--line); border-radius: var(--layout--radius); transition: border-color .2s ease, transform .2s ease; }
.article_file:hover { border-color: var(--color--action); transform: translateX(4px); }
.article_file-icon { color: var(--color--action); flex-shrink: 0; }
.article_file-name { flex: 1; min-width: 0; font-weight: 500; color: var(--color--text-heading); }
.article_file-meta { font-family: var(--font--display); font-size: 0.85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color--text-muted); white-space: nowrap; }
.article_program { display: flex; flex-direction: column; gap: 6px; padding: 24px 28px; margin-top: 40px; background-color: var(--brand--white); border: 1px solid var(--color--line); border-left: 4px solid var(--color--accent); border-radius: var(--layout--radius); transition: border-color .2s ease, box-shadow .2s ease; }
.article_program:hover { border-color: var(--color--action); box-shadow: var(--layout--shadow); }
.article_program-label { font-family: var(--font--display); font-size: 0.85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color--text-muted); }
.article_program-name { font-family: var(--font--display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; color: var(--color--text-heading); margin-bottom: 6px; }
.article_cta { padding: 36px 32px; margin-top: 24px; background-color: var(--color--surface-darkest); border-radius: var(--layout--radius); }
.article_cta-title { font-family: var(--font--display); font-size: 1.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .015em; line-height: 1.05; color: var(--brand--white); margin-bottom: 10px; }
.article_cta-text { font-size: 1.0625rem; line-height: 1.55; color: rgba(255,255,255,.75); margin-bottom: 24px; }
.article_pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--color--line); }
.article_pager-link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--color--line); border-radius: var(--layout--radius); transition: border-color .2s ease; }
.article_pager-link:hover { border-color: var(--color--action); }
.article_pager-link.is-next { text-align: right; }
.article_pager-label { font-family: var(--font--display); font-size: 0.85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color--action); }
.article_pager-title { font-family: var(--font--display); font-size: 1.125rem; font-weight: 600; line-height: 1.15; color: var(--color--text-heading); }

/* Lightbox de la galería (lo crea keiser-ni.js) */
.lightbox_dialog { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: none; background-color: rgba(8,16,30,.95); }
.lightbox_figure { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 72px; margin: 0; }
.lightbox_img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--layout--radius); }
.lightbox_caption { font-size: 1rem; line-height: 1.5; color: rgba(255,255,255,.85); text-align: center; max-width: 60ch; }
.lightbox_count { font-family: var(--font--display); font-size: 0.85rem; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.lightbox_btn { position: absolute; width: 48px; height: 48px; border-radius: var(--layout--radius-pill); border: 1px solid rgba(255,255,255,.35); background-color: rgba(255,255,255,.08); color: var(--brand--white); font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color .2s ease, border-color .2s ease; }
.lightbox_btn:hover { background-color: rgba(255,255,255,.18); border-color: var(--color--accent); }
.lightbox_btn.is-close { top: 16px; right: 16px; }
.lightbox_btn.is-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox_btn.is-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media screen and (max-width: 767px) {
  .article_gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .article_pager { grid-template-columns: 1fr; }
  .article_pager-link.is-next { text-align: left; }
  .article_cta { padding: 28px 22px; }
  .article_file { flex-wrap: wrap; }
  .lightbox_figure { padding: 64px 12px 24px; }
  .lightbox_btn.is-prev { top: auto; bottom: 16px; transform: none; }
  .lightbox_btn.is-next { top: auto; bottom: 16px; transform: none; }
}

/* ── ARTICLE SIDEBAR (CMS) ─────────────────────────────────────────── */
.article_layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
.article_main { min-width: 0; max-width: 760px; }
.article_sidebar { min-width: 0; }
.article_side-sticky { position: sticky; top: 108px; }
.article_toc.is-inline { display: none; }
.article_toc.is-side { margin-bottom: 20px; max-height: calc(100vh - 420px); min-height: 140px; overflow-y: auto; }
.article_toc-link.is-active { color: var(--color--action); font-weight: 600; }
.article_program.is-side { margin-top: 0; margin-bottom: 28px; }
.article_side-block { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--color--line); }
.article_side-title { font-family: var(--font--display); font-size: 0.85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color--action); margin-bottom: 12px; }
.article_side-event { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.article_side-event-body { min-width: 0; }
.article_side-event-title { font-family: var(--font--display); font-size: 1.0625rem; font-weight: 600; line-height: 1.15; color: var(--color--text-heading); margin-bottom: 4px; }
.article_side-meta { display: block; font-size: 0.8125rem; color: var(--color--text-muted); }
.article_side-more { margin-top: 10px; }
.article_side-list { list-style: none; padding-left: 0; }
.article_side-item { padding: 10px 0; border-bottom: 1px solid var(--color--line); }
.article_side-link { display: block; font-weight: 500; line-height: 1.35; color: var(--color--text-heading); margin-bottom: 4px; transition: color .2s ease; }
.article_side-link:hover { color: var(--color--action); }
.article_side-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article_side-tag { font-size: 0.8125rem; font-weight: 500; padding: 6px 12px; border: 1px solid var(--color--line); border-radius: var(--layout--radius-pill); color: var(--color--text-primary); transition: border-color .2s ease, color .2s ease; }
.article_side-tag:hover { border-color: var(--color--action); color: var(--color--action); }
.article_side-tag.is-current { background-color: var(--color--action); border-color: var(--color--action); color: var(--brand--white); }
.article_contact { display: flex; flex-direction: column; gap: 10px; padding: 24px; background-color: var(--brand--blue-08); border-radius: var(--layout--radius); }
.article_contact-title { font-family: var(--font--display); font-size: 1.375rem; font-weight: 700; text-transform: uppercase; letter-spacing: .015em; line-height: 1; color: var(--color--text-heading); }
.article_contact-text { font-size: 0.9375rem; color: var(--color--text-muted); margin-bottom: 4px; }
.article_contact-link { font-size: 0.9375rem; font-weight: 500; color: var(--color--action); text-align: center; margin-top: 2px; }
.article_contact-link:hover { text-decoration: underline; }

@media screen and (max-width: 991px) {
  .article_layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .article_main { max-width: none; }
  .article_side-sticky { position: static; }
  .article_toc.is-inline { display: block; }
  .article_toc.is-side { display: none; }
}

/* ── BLOG LISTING v2 (CMS) ─────────────────────────────────────────── */
.blog_layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
.blog_main { min-width: 0; }
.blog_sidebar { min-width: 0; }

/* Barra: categorías + buscador */
.blog_toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.blog_search { position: relative; display: flex; align-items: center; flex: 0 1 260px; min-width: 200px; }
.blog_search-icon { position: absolute; left: 14px; color: var(--color--text-muted); pointer-events: none; }
.blog_search-input { width: 100%; height: 44px; padding: 0 16px 0 40px; font-family: inherit; font-size: 0.9375rem; color: var(--color--text-primary); background-color: var(--brand--white); border: 1px solid var(--color--line); border-radius: var(--layout--radius-pill); transition: border-color .2s ease, box-shadow .2s ease; }
.blog_search-input:focus { outline: none; border-color: var(--color--action); box-shadow: 0 0 0 3px rgba(16,117,219,.15); }
.blog_results { font-size: 0.9375rem; color: var(--color--text-muted); margin-bottom: 24px; }
.blog_results-clear { color: var(--color--action); text-decoration: underline; }

/* Artículo destacado */
.blog_featured { margin-bottom: 32px; }
.blog_featured-inner { display: grid; grid-template-columns: 1.1fr 1fr; background-color: var(--brand--white); border: 1px solid var(--color--line); border-radius: var(--layout--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.blog_featured-inner:hover { transform: translateY(-4px); box-shadow: var(--layout--shadow); }
.blog_featured-media { position: relative; display: block; min-height: 320px; overflow: hidden; background-color: var(--brand--blue-08); }
.blog_featured-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog_featured-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 36px 36px 36px 32px; }
.blog_featured-label { font-family: var(--font--display); font-size: 0.85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color--action); }
.blog_featured-title { font-family: var(--font--display); font-size: 2rem; font-weight: 700; line-height: 1.02; color: var(--color--text-heading); }
.blog_featured-text { font-size: 1rem; line-height: 1.55; color: var(--color--text-muted); }
.blog_featured-btn { align-self: flex-start; margin-top: 8px; }

/* Tarjetas */
.blog_grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.blog_card { min-width: 0; }
.blog_card-inner { display: flex; flex-direction: column; height: 100%; background-color: var(--brand--white); border: 1px solid var(--color--line); border-radius: var(--layout--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.blog_card-inner:hover { transform: translateY(-4px); box-shadow: var(--layout--shadow); border-color: transparent; }
.blog_card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background-color: var(--brand--blue-08); }
.blog_card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.blog_card-tag { position: absolute; top: 14px; left: 14px; font-family: var(--font--display); font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand--dark-blue); background-color: var(--color--accent); padding: 5px 10px; border-radius: var(--layout--radius); }
.blog_card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 24px 24px; }
.blog_card-meta { font-family: var(--font--display); font-size: 0.8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--color--text-muted); }
.blog_card-title { font-family: var(--font--display); font-size: 1.375rem; font-weight: 600; line-height: 1.08; color: var(--color--text-heading); }
.blog_card-text { font-size: 0.9375rem; line-height: 1.5; color: var(--color--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog_card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-family: var(--font--display); font-size: 0.95rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--color--action); transition: gap .2s ease; }

/* Sidebar */
.blog_side-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 500; color: var(--color--text-heading); transition: color .2s ease; }
.blog_side-link:hover { color: var(--color--action); }
.blog_social { display: flex; gap: 10px; }
.blog_social-link { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color--line); border-radius: var(--layout--radius-pill); color: var(--color--text-primary); background-color: var(--brand--white); transition: color .2s ease, border-color .2s ease; }
.blog_social-link:hover { color: var(--color--action); border-color: var(--color--action); }

/* DOCUMENTED EXCEPTION (solo CMS, no forma parte del sitio Webflow):
   al pasar el mouse sobre la tarjeta se amplía su imagen y avanza la flecha. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .blog_card-inner:hover .blog_card-img,
  .blog_featured-inner:hover .blog_featured-img { transform: scale(1.05); }
  .blog_card-inner:hover .blog_card-more { gap: 12px; }
}

@media screen and (max-width: 991px) {
  .blog_layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .blog_featured-inner { grid-template-columns: 1fr; }
  .blog_featured-media { min-height: 0; aspect-ratio: 16 / 9; }
  .blog_featured-body { padding: 24px; }
}
@media screen and (max-width: 767px) {
  .blog_toolbar { flex-direction: column; align-items: stretch; }
  .blog_filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .filter_button { white-space: nowrap; flex-shrink: 0; }
  .blog_search { flex: 1 1 auto; }
  .blog_grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .blog_featured-title { font-size: 1.625rem; }
}

/* Barra del blog: categoría (select) + buscador en una fila */
.blog_toolbar { justify-content: flex-start; gap: 12px; flex-wrap: nowrap; }
.blog_select-wrap { flex: 0 0 240px; }
.blog_select { width: 100%; height: 44px; padding: 0 44px 0 18px; font-family: var(--font--display); font-size: 0.95rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--color--text-heading); background-color: var(--brand--white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231075DB' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; border: 1px solid var(--color--line); border-radius: var(--layout--radius-pill); cursor: pointer; -webkit-appearance: none; appearance: none; transition: border-color .2s ease, box-shadow .2s ease; }
.blog_select:hover { border-color: var(--color--action); }
.blog_select:focus { outline: none; border-color: var(--color--action); box-shadow: 0 0 0 3px rgba(16,117,219,.15); }
.blog_search { flex: 1 1 auto; max-width: 420px; }
.blog_sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media screen and (max-width: 767px) {
  .blog_toolbar { flex-direction: column; align-items: stretch; flex-wrap: wrap; }
  .blog_select-wrap { flex: 1 1 auto; }
  .blog_search { max-width: none; }
}

/* ── EVENTS PAGE (CMS) ─────────────────────────────────────────────── */
.events_month { display: flex; align-items: baseline; gap: 10px; font-family: var(--font--display); font-size: 1.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .015em; color: var(--color--text-heading); margin: 8px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--color--accent); }
.events_month-year { font-size: 1.125rem; font-weight: 600; color: var(--color--text-muted); }
.events_list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.events_card { display: flex; gap: 24px; padding: 24px; background-color: var(--brand--white); border: 1px solid var(--color--line); border-radius: var(--layout--radius); transition: box-shadow .25s ease, border-color .25s ease; }
.events_card:hover { box-shadow: var(--layout--shadow); border-color: transparent; }
.events_date { flex-shrink: 0; width: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 0; background-color: var(--color--surface-darkest); border-radius: var(--layout--radius); align-self: flex-start; }
.events_wday { font-family: var(--font--display); font-size: 0.75rem; font-weight: 600; letter-spacing: .12em; color: var(--color--accent); }
.events_day { font-family: var(--font--display); font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--brand--white); }
.events_mon { font-family: var(--font--display); font-size: 0.8125rem; font-weight: 600; letter-spacing: .12em; color: rgba(255,255,255,.7); }
.events_body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.events_type { align-self: flex-start; font-family: var(--font--display); font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color--action); background-color: var(--brand--blue-08); padding: 4px 10px; border-radius: var(--layout--radius); }
.events_title { font-family: var(--font--display); font-size: 1.5rem; font-weight: 600; line-height: 1.08; color: var(--color--text-heading); }
.events_meta { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding-left: 0; }
.events_meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9375rem; color: var(--color--text-muted); }
.events_meta-icon { color: var(--color--action); }
.events_desc { font-size: 0.9375rem; line-height: 1.55; color: var(--color--text-muted); }
.events_actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.events_cal { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font--display); font-size: 0.9rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--color--action); }
.events_cal:hover { text-decoration: underline; }
.events_empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 36px 32px; background-color: var(--brand--white); border: 1px solid var(--color--line); border-radius: var(--layout--radius); }
.events_empty-icon { color: var(--color--action); }
.events_empty-title { font-family: var(--font--display); font-size: 1.5rem; font-weight: 600; color: var(--color--text-heading); }
.events_empty-text { font-size: 1rem; line-height: 1.55; color: var(--color--text-muted); margin-bottom: 6px; }

/* Últimas noticias en el sidebar */
.side_post { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--color--line); }
.side_post-img { width: 72px; height: 54px; flex-shrink: 0; object-fit: cover; border-radius: var(--layout--radius); background-color: var(--brand--blue-08); }
.side_post-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.side_post-title { font-weight: 500; line-height: 1.3; color: var(--color--text-heading); transition: color .2s ease; }
.side_post:hover .side_post-title { color: var(--color--action); }

@media screen and (max-width: 767px) {
  .events_card { flex-direction: column; gap: 16px; padding: 20px; }
  .events_date { flex-direction: row; width: auto; gap: 10px; padding: 8px 14px; }
  .events_day { font-size: 1.5rem; }
  .events_month { font-size: 1.5rem; }
}

/* ── EVENT PAGE (CMS) ──────────────────────────────────────────────── */
.events_title-link { color: inherit; transition: color .2s ease; }
.events_title-link:hover { color: var(--color--action); }
.event_notice { padding: 14px 18px; margin-bottom: 20px; background-color: #FFF6D6; color: #6B5200; border-radius: var(--layout--radius); font-size: 0.9375rem; }
.event_panel { background-color: var(--brand--white); border: 1px solid var(--color--line); border-radius: var(--layout--radius); overflow: hidden; }
.event_panel-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background-color: var(--brand--blue-08); }
.event_panel-body { padding: 32px; }
.event_facts { display: flex; gap: 28px; align-items: flex-start; padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--color--line); }
.event_facts-list { list-style: none; padding-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; flex: 1; min-width: 0; }
.event_fact { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; line-height: 1.45; color: var(--color--text-heading); }
.event_fact-icon { color: var(--color--action); flex-shrink: 0; margin-top: 2px; }
.event_fact-label { display: block; font-family: var(--font--display); font-size: 0.8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color--text-muted); margin-bottom: 2px; }
.event_fact-note { font-size: 0.8125rem; color: var(--color--text-muted); }
.event_help { margin-top: 18px; font-size: 0.9375rem; color: var(--color--text-muted); }

@media screen and (max-width: 767px) {
  .event_panel-body { padding: 22px; }
  .event_facts { flex-direction: column; gap: 18px; }
  .event_facts-list { grid-template-columns: minmax(0, 1fr); }
}

/* ── FACULTY: PERFIL COMPLETO (ventana) ───────────────────────────────
   Solo presidencia de campus y decanato, y solo si hay biografía
   extendida o mensaje. <dialog> nativo; abre/cierra keiser-cms.js. */
.faclead_more { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1.5px solid var(--brand--dark-blue); border-radius: var(--layout--radius-pill); background-color: transparent; color: var(--brand--dark-blue); font-family: var(--font--display); font-size: 0.875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background-color .25s ease, color .25s ease, gap .25s ease; }
.faclead_more:hover { background-color: var(--brand--dark-blue); color: var(--brand--white); gap: 14px; }
.faclead_more:focus-visible { outline: 2px solid var(--color--action); outline-offset: 3px; }

.facmodal { width: calc(100% - 32px); max-width: 980px; max-height: calc(100dvh - 48px); padding: 0; border: none; border-radius: 20px; background-color: var(--brand--white); color: var(--color--text-primary); box-shadow: 0 40px 80px -30px rgba(15,34,62,.6); overflow: hidden; }
.facmodal_inner { display: grid; grid-template-columns: 38% 1fr; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.facmodal_close { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: none; border-radius: 50%; background-color: var(--brand--white); color: var(--brand--dark-blue); box-shadow: 0 6px 18px -6px rgba(15,34,62,.45); cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.facmodal_close:hover { background-color: var(--brand--dark-blue); color: var(--brand--white); transform: rotate(90deg); }
.facmodal_close:focus-visible { outline: 2px solid var(--color--action); outline-offset: 2px; }
.facmodal_x { width: 20px; height: 20px; }
.facmodal_media { position: relative; min-height: 520px; background-color: var(--brand--blue-08); }
.facmodal_photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.facmodal_body { display: flex; flex-direction: column; gap: 26px; min-width: 0; padding: 44px 44px 40px; }
.facmodal_name { font-family: var(--font--display); font-size: 2.5rem; font-weight: 600; line-height: 1; color: var(--color--text-heading); }
.facmodal_quote { position: relative; margin: 0; padding: 22px 24px 20px 24px; border-left: 4px solid var(--color--accent); border-radius: 12px; background-color: var(--brand--blue-08); }
.facmodal_quoteicon { width: 28px; height: 28px; margin-bottom: 8px; color: var(--color--accent); }
.facmodal_quotetext { margin: 0 0 10px; font-size: 1.0625rem; font-style: italic; line-height: 1.6; color: var(--color--text-heading); }
.facmodal_quoteby { font-family: var(--font--display); font-size: 0.85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color--text-muted); }
.facmodal_section { display: flex; flex-direction: column; gap: 14px; }
.facmodal_text { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--color--text-primary); }
.facmodal_link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--color--line); border-radius: var(--layout--radius-pill); color: var(--color--action); font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.facmodal_link:hover { background-color: var(--color--action); border-color: var(--color--action); color: var(--brand--white); }

/* Exception block: backdrop, open animation and page scroll lock. */
.facmodal::backdrop { background-color: rgba(15,34,62,.62); backdrop-filter: blur(4px); }
html.is-modal-open { overflow: hidden; }
@keyframes facModalIn { from { opacity: 0; translate: 0 24px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes facBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .facmodal[open] { animation: facModalIn .4s cubic-bezier(.2,.7,.2,1) both; }
  .facmodal[open]::backdrop { animation: facBackdropIn .3s ease both; }
}

@media screen and (max-width: 767px) {
  .facmodal { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .facmodal_inner { grid-template-columns: 1fr; height: 100dvh; max-height: 100dvh; align-content: start; }
  .facmodal_media { min-height: 0; aspect-ratio: 5 / 4; }
  .facmodal_photo { object-position: center 18%; }
  .facmodal_body { gap: 22px; padding: 26px 22px 40px; }
  .facmodal_name { font-size: 2rem; }
}
@media screen and (max-width: 478px) {
  .facmodal_media { aspect-ratio: 1 / 1; }
}
