/* ============================================================
   ACEVAL — Capa de pulido (se carga después de style.css)
   Reversible: quitar el <link> en includes/header.php la desactiva.
   ============================================================ */

/* Tipografía y render */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, .hero-title { text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: var(--color-accent-light, #F3A847); color: var(--color-primary-dark, #04162B); }

/* Accesibilidad: foco visible y consistente (teclado) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--color-accent, #D98218);
  outline-offset: 3px;
  border-radius: 6px;
}
:where(a, button):focus:not(:focus-visible) { outline: none; }

/* Interacción: transiciones suaves y respuesta al pulsar */
:where(.btn, .nav-link, .news-card, .card-custom) {
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.news-card:hover, .card-custom:hover { transform: translateY(-4px); }

/* Imágenes: sin saltos de layout y recorte uniforme en tarjetas */
img { max-width: 100%; height: auto; }
.news-card .news-img-wrap img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #eef2f7; } /* imagen completa, sin recortar flyers */

/* Cifras y datos alineados */
.stat-number, [class*="stat"] strong { font-variant-numeric: tabular-nums lining-nums; }

/* Barra de desplazamiento discreta */
html { scrollbar-color: var(--color-border-strong, #CBD5E1) transparent; scrollbar-width: thin; }

/* Anclas: compensar el header fijo al saltar a una sección */
[id] { scroll-margin-top: 96px; }

/* Revelado al hacer scroll: evitar parpadeo si JS tarda */
@media (prefers-reduced-motion: no-preference) {
  .polish-fade { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .polish-fade.is-in { opacity: 1; transform: none; }
}

/* Respeto a "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .news-card:hover, .card-custom:hover { transform: none; }
}

/* Impresión limpia */
@media print {
  .top-bar, header, footer, #backToTop, .hero-slider-section { display: none !important; }
  body { color: #000; background: #fff; }
}

/* Enlace de salto (accesibilidad) */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 3000; background: var(--color-primary-dark, #04162B); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: top .2s ease; }
.skip-link:focus { top: 12px; outline: 3px solid var(--color-accent, #D98218); }
main:focus { outline: none; }

/* Menú desplegable de Grupos: fondo sólido (sin transparencia) */
.main-navbar .dropdown-menu,.main-navbar.navbar-scrolled .dropdown-menu{background:#fff !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important;z-index:1050}

/* ===== Móvil (sitio público) ===== */
html{-webkit-text-size-adjust:100%}
body{overflow-x:clip}
img,video,iframe,svg{max-width:100%}
iframe{border:0}
table{max-width:100%}
.rich-content table,.post-body table,article table{display:block;overflow-x:auto}
@media (max-width:767.98px){
  .top-bar .container{flex-wrap:wrap;gap:.25rem;justify-content:center !important}
  .navbar-nav .nav-link,.dropdown-item{padding-top:.7rem;padding-bottom:.7rem}
  .btn{min-height:42px}
  h1,.display-4,.display-5{word-break:break-word;hyphens:auto}
  .container{padding-left:1rem;padding-right:1rem}
  .form-control,.form-select{font-size:16px}
  section{scroll-margin-top:70px}
}

/* Paginación */
.ace-pager .page-link{color:var(--color-primary,#07294D);border-radius:8px;margin:0 2px;min-width:36px;text-align:center}
.ace-pager .page-item.active .page-link{background:var(--color-primary,#07294D);border-color:var(--color-primary,#07294D);color:#fff}
.ace-pager .page-item.disabled .page-link{opacity:.45}

/* Tarjetas de noticias: metadatos en dos líneas limpias */
.news-meta{display:flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.4}
.news-meta>span:nth-child(2){display:none}
.news-meta>span:first-child{white-space:nowrap}

/* Directorio: el texto nunca desborda la tarjeta */
.directory-card .d-flex>div{min-width:0}
.directory-card h5,.directory-card .badge{white-space:normal;overflow-wrap:anywhere}
.directory-card img{flex-shrink:0}

/* ===== Directorio: estadísticas, filtros, iniciales ===== */
.dir-stat{background:var(--color-ivory,#f8f6f1);border:1px solid rgba(0,0,0,.07);border-radius:.75rem;padding:.85rem 1rem;display:flex;flex-direction:column;line-height:1.2}
.dir-stat strong{font-size:1.6rem;color:var(--color-primary,#07294d);font-family:var(--font-serif,inherit)}
.dir-stat span{font-size:.78rem;color:#6c757d}
.dir-filters .form-select,.dir-filters .form-control{min-width:0}
.directory-avatar-ini{display:inline-flex;align-items:center;justify-content:center;background:var(--color-primary,#07294d);color:#fff;font-weight:700;letter-spacing:.04em;flex:0 0 auto}
#dirPerfil .directory-avatar{width:64px;height:64px;border-radius:50%;object-fit:cover}
@media (max-width:575px){.dir-stat strong{font-size:1.3rem}}


/* Accesibilidad: enlace de salto y foco visible */
.skip-link{position:absolute;left:-9999px;top:0;z-index:3000;background:#0d3b66;color:#fff;padding:.6rem 1rem;border-radius:0 0 .5rem 0;font-weight:600;text-decoration:none}
.skip-link:focus{left:0;color:#fff}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #f2a900;outline-offset:2px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* ── Enlaces dentro de contenido (grupos, páginas, notas): se distinguen del texto ── */
.rich-content a:not(.btn):not(.muro-file),
.pagina-contenido a:not(.btn):not(.muro-file),
.content-body a:not(.btn):not(.muro-file) {
  color: #0b5cad;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(217, 130, 24, .75);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color .15s, text-decoration-color .15s, background .15s;
}
.rich-content a:not(.btn):not(.muro-file):hover,
.pagina-contenido a:not(.btn):not(.muro-file):hover,
.content-body a:not(.btn):not(.muro-file):hover {
  color: #07294D;
  text-decoration-color: #d98218;
  background: rgba(217, 130, 24, .12);
  border-radius: 3px;
}
/* Enlaces a documentos: se muestran como botón de descarga */
.rich-content a[href$=".pdf" i], .rich-content a[href$=".doc" i], .rich-content a[href$=".docx" i],
.rich-content a[href$=".xls" i], .rich-content a[href$=".xlsx" i], .rich-content a[href$=".ppt" i],
.rich-content a[href$=".pptx" i], .rich-content a[href$=".zip" i],
.pagina-contenido a[href$=".pdf" i], .pagina-contenido a[href$=".docx" i], .pagina-contenido a[href$=".xlsx" i], .pagina-contenido a[href$=".pptx" i] {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 7px 14px; margin: 4px 0;
  border: 1px solid #c7d6ea; border-radius: 10px; background: #eef4fb;
  text-decoration: none; font-size: .9rem; line-height: 1.35;
}
.rich-content a[href$=".pdf" i]::before, .rich-content a[href$=".doc" i]::before, .rich-content a[href$=".docx" i]::before,
.rich-content a[href$=".xls" i]::before, .rich-content a[href$=".xlsx" i]::before, .rich-content a[href$=".ppt" i]::before,
.rich-content a[href$=".pptx" i]::before, .rich-content a[href$=".zip" i]::before,
.pagina-contenido a[href$=".pdf" i]::before, .pagina-contenido a[href$=".docx" i]::before, .pagina-contenido a[href$=".xlsx" i]::before, .pagina-contenido a[href$=".pptx" i]::before {
  content: "\f1c1"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #c0392b; flex-shrink: 0;
}
.rich-content a[href$=".pdf" i]:hover, .pagina-contenido a[href$=".pdf" i]:hover { background: #dbe9f9; border-color: #0b5cad; }

/* ── Movimiento y profundidad ── */
.mo-pre { opacity: 0; transform: translateY(22px); }
.mo-pre.mo-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--mo-d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--mo-d, 0ms); }
@media (prefers-reduced-motion: reduce) { .mo-pre { opacity: 1; transform: none; } }
.hero-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.18); z-index: 6; pointer-events: none; }
.hero-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #F3A847, #d98218); }
@keyframes heroProg { from { width: 0; } to { width: 100%; } }
.news-card, .card-custom, .event-card { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; will-change: transform; }
.news-card:hover, .card-custom:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -18px rgba(7,41,77,.35); }
.partners-reel-track img { filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s, transform .3s; }
.partners-reel-track img:hover { filter: none; opacity: 1; transform: scale(1.08); }
.ace-top { position: fixed; right: 18px; bottom: 18px; z-index: 1500; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #07294D; color: #fff; box-shadow: 0 8px 22px rgba(7,41,77,.4); display: inline-flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s, transform .25s, background .15s; cursor: pointer; }
.ace-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ace-top:hover { background: #d98218; }

/* Próximos eventos */
.events-section { padding: 64px 0; background: linear-gradient(180deg, #f1f5f9, #fff); }
.event-card { display: flex; gap: 16px; background: #fff; border: 1px solid #dbe3ee; border-radius: 18px; padding: 20px; box-shadow: 0 2px 4px rgba(15,23,42,.04), 0 12px 26px -14px rgba(15,23,42,.18); }
.event-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -16px rgba(7,41,77,.3); }
.event-date { width: 68px; flex-shrink: 0; align-self: flex-start; text-align: center; border-radius: 14px; overflow: hidden; background: #07294D; color: #fff; line-height: 1; box-shadow: 0 6px 14px -6px rgba(7,41,77,.5); }
.event-date strong { display: block; font-size: 1.9rem; padding: 12px 0 4px; }
.event-date span { display: block; background: #d98218; font-size: .72rem; font-weight: 700; letter-spacing: .1em; padding: 5px 0; }
.event-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.event-tipo { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #d98218; margin-bottom: 4px; }
.event-title { font-size: 1.08rem; font-weight: 700; color: #0f172a; line-height: 1.3; margin-bottom: 8px; }
.event-meta { font-size: .85rem; color: #64748b; margin: 0 0 4px; }
.event-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }

/* Migas de pan */
.ace-bc { background: #f8fafc; border-bottom: 1px solid #e8edf3; font-size: .85rem; }
.ace-bc ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.ace-bc li { color: #64748b; display: inline-flex; align-items: center; gap: 8px; }
.ace-bc li + li::before { content: "\203A"; color: #94a3b8; }
.ace-bc a { color: #0b5cad; text-decoration: none; font-weight: 600; }
.ace-bc a:hover { text-decoration: underline; }
.ace-bc [aria-current] { color: #0f172a; font-weight: 600; }

/* Sugerencias del buscador */
#searchModal form { position: relative; }
.sg-box { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #dbe3ee; border-radius: 12px; box-shadow: 0 18px 40px rgba(7,41,77,.18); z-index: 20; overflow: hidden; }
.sg-box[hidden] { display: none; }
.sg-box a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 14px; color: #0f172a; text-decoration: none; font-size: .92rem; border-bottom: 1px solid #f1f5f9; }
.sg-box a:last-child { border-bottom: 0; }
.sg-box a:hover, .sg-box a.is-sel { background: #07294D; color: #fff; }
.sg-k { color: #94a3b8; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.sg-box a:hover .sg-k, .sg-box a.is-sel .sg-k { color: #cbd5e1; }

/* Barra de progreso de lectura (fija arriba) */
.ace-readbar { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 3000; pointer-events: none; background: rgba(7,41,77,.08); opacity: 0; transition: opacity .2s; }
.ace-readbar.is-on { opacity: 1; }
.ace-readbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #F3A847, #d98218); box-shadow: 0 0 8px rgba(217,130,24,.55); border-radius: 0 3px 3px 0; transition: width .08s linear; }
@media (prefers-reduced-motion: reduce) { .ace-readbar span, .ace-readbar { transition: none; } }
@media print { .ace-readbar { display: none; } }

/* Paginación: misma tarjeta que en el panel */
body:not(.admin-body) .ace-pager { background: #fff; border: 1px solid #dbe3ee; border-radius: 14px; padding: 10px 16px; box-shadow: 0 2px 4px rgba(15,23,42,.04); }
body:not(.admin-body) .ace-pager .page-link { border: 0; font-weight: 600; color: #475569; }
body:not(.admin-body) .ace-pager .page-link:hover { background: #f0f2f5; }
body:not(.admin-body) .ace-pager .page-item.active .page-link:hover { background: var(--color-primary,#07294D); }

/* ── Ledger flotante del inicio: menos saturado ── */
.feature-square-card { padding: 30px 30px 28px; border-right-color: rgba(255,255,255,.06); gap: 26px; }
.feature-square-top { margin-bottom: 0; }
.feature-roman { color: rgba(255,255,255,.5); font-size: .68rem; letter-spacing: .14em; }
.feature-square-card img { box-sizing: content-box; width: 22px; height: 22px; padding: 9px; border-radius: 50%; background: rgba(255,255,255,.07); opacity: .9; }
.feature-square-card:hover img { background: rgba(242,106,33,.2); transform: none; }
.feature-square-title { font-size: 1.2rem; margin-bottom: 6px; letter-spacing: -.005em; }
.feature-square-sub { justify-content: flex-start; gap: 8px; font-size: .84rem; color: rgba(255,255,255,.6); }
.feature-square-sub i { opacity: 0; transform: translate(-4px, 2px); transition: opacity .2s, transform .2s; color: var(--color-accent-light); }
.feature-square-card:hover .feature-square-sub i, .feature-square-card:focus-visible .feature-square-sub i { opacity: 1; transform: none; }
.feature-square-card::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 0; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.feature-square-card:hover::after, .feature-square-card:focus-visible::after { transform: scaleX(1); }
.ledger-intro-col { padding: 36px 40px; }
.hero-floating-desc { color: rgba(255,255,255,.7); font-size: 1rem; margin-top: 10px; }
@media (max-width: 991.98px) { .feature-square-card { padding: 22px 24px; gap: 16px; } .feature-square-card::after { left: 24px; right: 24px; } }
@media (prefers-reduced-motion: reduce) { .feature-square-card::after, .feature-square-sub i { transition: none; } }

/* Imágenes redimensionadas desde el editor: proporcionales */
.rich-content figure.image { display: table; margin: 1rem auto; max-width: 100%; }
.rich-content figure.image img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.rich-content figure.image_resized { box-sizing: border-box; }
.rich-content figure.image_resized img { width: 100%; height: auto; }

/* Imagen lateral del hero sin marco ni adornos (PNG transparente) */
.hero-side-plain { display: inline-block; max-width: 100%; width: auto; height: auto; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; background: none; filter: drop-shadow(0 10px 24px rgba(0,0,0,.28)); }
.rich-content figure.image.image_resized { display: block; max-width: 100%; margin-left: auto; margin-right: auto; }
.rich-content figure.image.image_resized img { display: block; width: 100%; height: auto; }

/* ── Enlaces como botón con ícono según el tipo (URL, PDF, Word, Excel, correo…) — sin subrayado ── */
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file) {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 2px 0; padding: 5px 13px;
  border: 1px solid #c7d6ea; border-radius: 10px; background: #eef4fb; color: #0b5cad; font-weight: 600;
  font-size: .92em; line-height: 1.35; text-decoration: none !important; vertical-align: baseline; overflow-wrap: anywhere;
  transition: background .15s, border-color .15s, color .15s;
}
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file):hover { background: #dbe9f9; border-color: #0b5cad; color: #07294D; text-decoration: none !important; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file):has(> img, > figure) { display: inline; padding: 0; border: 0; background: none; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)::before {
  content: "\f0c1"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-style: normal; color: #0b5cad; flex-shrink: 0; line-height: 1;
}
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file):has(> img, > figure)::before { content: none; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href^="http"]::before { content: "\f0ac"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #0b5cad; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href^="mailto:"]::before { content: "\f0e0"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #0b5cad; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href^="tel:"]::before { content: "\f095"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #0b5cad; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".pdf" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".pdf?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".pdf#" i]::before { content: "\f1c1"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #c0392b; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".doc" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".doc?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".doc#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".docx" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".docx?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".docx#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".odt" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".odt?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".odt#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".rtf" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".rtf?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".rtf#" i]::before { content: "\f1c2"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #2b579a; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".xls" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".xls?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".xls#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".xlsx" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".xlsx?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".xlsx#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".csv" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".csv?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".csv#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".ods" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".ods?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".ods#" i]::before { content: "\f1c3"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #1e7e45; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".ppt" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".ppt?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".ppt#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".pptx" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".pptx?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".pptx#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".odp" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".odp?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".odp#" i]::before { content: "\f1c4"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #d35400; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".zip" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".zip?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".zip#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".rar" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".rar?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".rar#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".7z" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".7z?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".7z#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".gz" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".gz?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".gz#" i]::before { content: "\f1c6"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #6c757d; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".txt" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".txt?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".txt#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".md" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".md?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".md#" i]::before { content: "\f15c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #6c757d; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".jpg" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".jpg?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".jpg#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".jpeg" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".jpeg?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".jpeg#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".png" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".png?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".png#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".gif" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".gif?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".gif#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".webp" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".webp?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".webp#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".svg" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".svg?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".svg#" i]::before { content: "\f1c5"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #8e44ad; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".mp3" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".mp3?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".mp3#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".wav" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".wav?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".wav#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".ogg" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".ogg?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".ogg#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".m4a" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".m4a?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".m4a#" i]::before { content: "\f1c7"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #16a085; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".mp4" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".mp4?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".mp4#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".webm" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".webm?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".webm#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".mov" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".mov?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".mov#" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href$=".avi" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".avi?" i]::before,
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*=".avi#" i]::before { content: "\f1c8"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #c0392b; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*="youtube.com" i]::before { content: "\f167"; font-family: "Font Awesome 6 Brands"; font-weight: 400; color: #ff0000; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*="youtu.be" i]::before { content: "\f167"; font-family: "Font Awesome 6 Brands"; font-weight: 400; color: #ff0000; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*="facebook.com" i]::before { content: "\f09a"; font-family: "Font Awesome 6 Brands"; font-weight: 400; color: #1877f2; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*="linkedin.com" i]::before { content: "\f08c"; font-family: "Font Awesome 6 Brands"; font-weight: 400; color: #0a66c2; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*="instagram.com" i]::before { content: "\f16d"; font-family: "Font Awesome 6 Brands"; font-weight: 400; color: #c13584; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*="twitter.com" i]::before { content: "\e61b"; font-family: "Font Awesome 6 Brands"; font-weight: 400; color: #111; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*="x.com/" i]::before { content: "\e61b"; font-family: "Font Awesome 6 Brands"; font-weight: 400; color: #111; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*="wa.me" i]::before { content: "\f232"; font-family: "Font Awesome 6 Brands"; font-weight: 400; color: #25d366; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*="whatsapp.com" i]::before { content: "\f232"; font-family: "Font Awesome 6 Brands"; font-weight: 400; color: #25d366; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*="drive.google.com" i]::before { content: "\f3aa"; font-family: "Font Awesome 6 Brands"; font-weight: 400; color: #1a73e8; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*="docs.google.com" i]::before { content: "\f1c2"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #1a73e8; }
:is(.muro-body,.rich-content,.content-body) a:not(.btn):not(.muro-file)[href*="t.me" i]::before { content: "\f2c6"; font-family: "Font Awesome 6 Brands"; font-weight: 400; color: #229ed9; }

/* Eventos y videollamadas del muro (también en la página pública del grupo) */
.muro-event{display:flex;gap:14px;padding:14px;border:1px solid #E2E8F0;border-radius:14px;background:#F8FAFC;margin:8px 0 12px}
.muro-event.is-past{opacity:.75}
.muro-event-date{flex:0 0 58px;height:62px;border-radius:12px;background:#07294D;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.muro-event-date span{font-size:.68rem;letter-spacing:.08em;color:#E58E1A;font-weight:700}.muro-event-date strong{font-size:1.5rem}
.muro-event-info{flex:1;min-width:0}

/* Videollamada (recordatorio con enlace de Meet, Teams, Zoom…) */
.muro-event.is-meet{border-color:#bfdbfe;background:#eff6ff}
.muro-event.is-meet .muro-event-date{background:#1d4ed8}
.muro-plat{display:inline-flex;align-items:center;gap:6px;font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#1d4ed8;margin-bottom:2px}

/* Menú «Agregar al calendario» */
.cal-menu{position:relative;display:inline-block}
.cal-menu>summary{list-style:none;cursor:pointer;user-select:none}
.cal-menu>summary::-webkit-details-marker{display:none}
.cal-menu[open] .cal-chev{transform:rotate(180deg)}
.cal-chev{font-size:.65rem;transition:transform .15s}
.cal-pop{position:absolute;z-index:30;left:0;top:calc(100% + 6px);min-width:290px;max-width:min(92vw,340px);background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 10px 30px rgba(15,23,42,.18);padding:6px}
.cal-pop a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;color:#1e293b !important;font-size:.86rem;font-weight:600;text-decoration:none !important;background:none;border:0}
.cal-pop a:hover{background:#eef4fb;color:#0b5cad !important}
.cal-pop a i{width:18px;text-align:center;color:#0b5cad}

/* Hero: portada de la revista (slide 1) más grande, sin alterar el layout */
@media (min-width: 992px) {
  .hero-carousel-item:first-child .hero-side-col img { transform: scale(1.3); transform-origin: center; }
}

/* Pie de la foto de bienvenida: el texto ocupa su espacio y la etiqueta baja entera si no cabe */
.welcome-caption-bar { flex-wrap: wrap; gap: .5rem 1.25rem; line-height: 1.45; }
.welcome-caption-bar > span:first-child { flex: 1 1 280px; min-width: 0; font-size: .9rem; }
.welcome-caption-tag { flex: 0 0 auto; margin-left: auto; white-space: nowrap; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); }

/* Hero: altura fija y contenido anclado arriba para que textos y botones no "brinquen" al cambiar de slide */
.hero-carousel-item { height: 640px; min-height: 640px; align-items: flex-start; }
.hero-carousel-item .hero-slide-content { padding-top: 95px; padding-bottom: 0; width: 100%; }
@media (max-width: 991.98px) {
  .hero-carousel-item { height: 560px; min-height: 560px; }
  .hero-carousel-item .hero-slide-content { padding-top: 60px; }
}
.hero-carousel-item .hero-slide-content > .row { align-items: flex-start !important; }
.hero-carousel-item .hero-slide-content > .row > .hero-side-col { align-self: center; }

/* Barra de compartir (publicaciones) */
.share-bar { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.share-label { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-right: .35rem; }
.share-btn { position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid currentColor; background: transparent; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.share-btn:hover { transform: translateY(-2px); text-decoration: none; }
.share-btn[hidden] { display: none; }
.share-dark { color: rgba(255,255,255,.85); margin-top: 1.25rem; }
.share-dark .share-btn { border-color: rgba(255,255,255,.35); color: #fff; }
.share-dark .share-btn:hover { background: #D98218; border-color: #D98218; color: #fff; }
.share-light { color: #5b6778; }
.share-light .share-btn { border-color: #cbd5e1; color: #07294D; }
.share-light .share-btn:hover { background: #07294D; border-color: #07294D; color: #fff; }
.share-copied { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #07294D; color: #fff; font-size: .72rem; padding: .25rem .55rem; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.share-btn.is-copied .share-copied { opacity: 1; }
.share-btn.is-copied { background: #198754; border-color: #198754; color: #fff; }
.share-under-cover { display: flex; justify-content: flex-start; margin: -.5rem 0 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e5e9f0; }
.share-under-cover .share-bar { justify-content: flex-start; }

/* Columna lateral de publicaciones */
.nota-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.25rem; }
.side-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.25rem; box-shadow: 0 6px 18px rgba(7,41,77,.05); }
.side-title { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #07294D; margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 2px solid #D98218; display: flex; align-items: center; gap: .55rem; }
.side-title i { color: #D98218; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.side-post, .side-ev { display: flex; gap: .8rem; align-items: center; text-decoration: none; color: inherit; }
.side-post img { width: 74px; height: 56px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.side-post span, .side-ev > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.side-post small, .side-ev small { color: #64748b; font-size: .72rem; }
.side-post strong, .side-ev strong { font-size: .88rem; line-height: 1.35; color: #0f2a47; font-weight: 600; }
.side-post:hover strong, .side-ev:hover strong { color: #0b5cad; }
.side-date { flex: 0 0 auto; width: 48px; text-align: center; border-radius: 10px; background: #07294D; color: #fff; padding: .35rem 0; line-height: 1.1; display: flex; flex-direction: column; }
.side-date b { font-size: 1.15rem; } .side-date small { color: #f1b96a; font-size: .62rem; letter-spacing: .08em; }
.side-more { display: inline-block; margin-top: 1rem; font-size: .82rem; font-weight: 600; color: #0b5cad; text-decoration: none; }
.side-more:hover { text-decoration: underline; }
.side-cta { background: linear-gradient(135deg, #07294D, #0b3a6b); border: 0; color: #fff; }
.side-cta .side-title { color: #fff; }
.side-cta p { font-size: .88rem; opacity: .85; margin-bottom: 1rem; }
@media (max-width: 991.98px) { .nota-side { position: static; margin-top: 1rem; } }
.share-copied { display: none; } /* el aviso ahora es un toast */

/* ¿Quiénes somos? · comités: fotos más grandes y visibles */
.team-av { display: block; flex: 0 0 auto; border-radius: 50%; object-fit: cover; object-position: center 22%; background: #e8eef5; border: 0; box-shadow: 0 8px 20px rgba(7,41,77,.18); transition: transform .25s ease, box-shadow .25s ease; }
.team-av-wrap { overflow: hidden; position: relative; }
.team-av-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; transition: transform .3s ease; }
.team-av-wrap { aspect-ratio: 1 / 1; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 0 0 6px #c8832e, 0 10px 22px rgba(7,41,77,.22); }
.team-card:hover .team-av-wrap { box-shadow: 0 0 0 4px #fff, 0 0 0 6px #0b5cad, 0 12px 26px rgba(7,41,77,.28); }
/* fotos antiguas (400x460 con aro blanco incrustado): se recorta al círculo interior de la foto */
.team-av-zoom img { position: absolute; width: 178.6%; height: auto; max-width: none; left: -42.9%; top: -28.6%; object-fit: fill; transform: none; }
.team-card:hover .team-av-wrap img { transform: scale(1.06); }
.team-card:hover .team-av-zoom img { transform: none; }
.team-av-lg { width: 108px; height: 108px; }
.team-av-xl { width: 128px; height: 128px; margin: 0 auto .85rem; }
.team-av-md { width: 112px; height: 112px; margin: 0 auto .8rem; }
.team-av-ini { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #07294D, #0b5cad); color: #fff; font-weight: 700; letter-spacing: .04em; font-size: 2rem; }
.team-card { transition: transform .25s ease, box-shadow .25s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(7,41,77,.14); }
.team-card-row h5 { font-size: 1.08rem !important; }
.team-card h6 { font-size: 1rem !important; }
@media (max-width: 575.98px) { .team-av-lg { width: 92px; height: 92px; } .team-av-xl { width: 112px; height: 112px; } }
@media (prefers-reduced-motion: reduce) { .team-card, .team-av, .team-av-wrap img { transition: none; } .team-card:hover { transform: none; } }

/* Páginas del sitio (contenido importado): póster centrado, rótulos y tabla de publicaciones */
.pagina-contenido > img:first-child, .pagina-contenido > p:first-child > img:only-child { display: block; max-width: min(100%, 560px); margin: 0 auto 2rem; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(7,41,77,.35); }
.pagina-contenido h2 { font-size: 1.25rem; font-weight: 800; color: #07294D; margin: 2.2rem 0 1rem; }
.pg-table-wrap { overflow-x: auto; border: 1px solid #dbe3ee; border-radius: 14px; box-shadow: 0 6px 18px -10px rgba(7,41,77,.25); margin: .5rem 0 1.5rem; background: #fff; }
.pagina-contenido table.pg-table { display: table; width: 100%; border-collapse: collapse; margin: 0; }
.pg-table td { padding: .85rem 1rem; vertical-align: middle; border-top: 1px solid #e8eef5; font-size: .95rem; }
.pg-table tr:first-child td { border-top: 0; }
.pg-table tr:nth-child(even) td { background: #f8fafc; }
.pg-table td:first-child { font-weight: 600; color: #0f172a; }
.pg-table td:empty { display: none; }
.pg-table td a:not(.btn) { white-space: nowrap; font-size: .85rem; }
@media (max-width: 767.98px) { .pg-table td { padding: .65rem .7rem; font-size: .88rem; } }
.pagina-contenido h3.pg-callout { font-size: 1.2rem; font-weight: 800; color: #07294D; background: linear-gradient(135deg, #fff8ee, #fdeccf); border: 1px solid #f3d3a0; border-left: 5px solid #D98218; border-radius: 12px; padding: 1rem 1.2rem; margin: 0 0 1.2rem; line-height: 1.4; }
.pagina-contenido p:has(> strong:first-child + br), .pagina-contenido p:has(> br) { line-height: 1.95; }
.pagina-contenido p > strong { color: #07294D; }
.pagina-contenido ul { padding-left: 1.2rem; }
.pagina-contenido ul li { margin-bottom: .45rem; }
.pagina-contenido ul li > a:only-child { display: inline-block; }

/* Hero: fondos con movimiento suave (zoom y desplazamiento lento, estilo documental) */
.hero-carousel-item { overflow: hidden; }
.hero-carousel-item::before { content: ''; position: absolute; inset: 0; z-index: 0; background: inherit; transform: scale(1.02); will-change: transform; }
.hero-carousel-item.active::before, .hero-carousel-item.carousel-item-next::before, .hero-carousel-item.carousel-item-prev::before { animation: heroKenA 18s ease-out forwards; }
.hero-carousel-item:nth-child(even).active::before, .hero-carousel-item:nth-child(even).carousel-item-next::before, .hero-carousel-item:nth-child(even).carousel-item-prev::before { animation-name: heroKenB; }
.hero-carousel-item:nth-child(3n).active::before, .hero-carousel-item:nth-child(3n).carousel-item-next::before, .hero-carousel-item:nth-child(3n).carousel-item-prev::before { animation-name: heroKenC; }
@keyframes heroKenA { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.16) translate(-2.2%, -1.4%); } }
@keyframes heroKenB { from { transform: scale(1.16) translate(-1.8%, 1.2%); } to { transform: scale(1.03) translate(1.2%, 0); } }
@keyframes heroKenC { from { transform: scale(1.03) translate(1.8%, 0); } to { transform: scale(1.15) translate(-1.2%, -1.6%); } }
@media (prefers-reduced-motion: reduce) { .hero-carousel-item::before { animation: none !important; transform: none; } }

/* Publicaciones importadas de Facebook */
.news-img-wrap { position: relative; }
.fb-badge { position: absolute; top: .7rem; right: .7rem; z-index: 3; width: 32px; height: 32px; border-radius: 50%; background: #1877F2; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; box-shadow: 0 6px 14px -6px rgba(24,119,242,.8), 0 0 0 3px rgba(255,255,255,.9); }
.fb-origen { display: flex; align-items: center; gap: .9rem; margin: 0 0 2rem; padding: 1rem 1.2rem; border: 1px solid #cfe0fb; background: #f2f7ff; border-radius: 14px; color: #0b3a6e; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.fb-origen:hover { box-shadow: 0 12px 24px -14px rgba(24,119,242,.6); transform: translateY(-2px); color: #0b3a6e; }
.fb-origen > i:first-child { font-size: 2rem; color: #1877F2; }
.fb-origen span { display: flex; flex-direction: column; font-weight: 700; line-height: 1.25; }
.fb-origen small { font-weight: 500; color: #64748b; }
.content-body .fb-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-top: 1.5rem; }
.content-body .fb-galeria img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 1px solid #e2e8f0; }

/* Tablas y líneas en contenido enriquecido (grupos, páginas, acreditación) */
.rich-content figure.table,.content-body figure.table{display:block;margin:1rem 0;overflow-x:auto}
.rich-content table,.content-body table{border-collapse:collapse;width:100%;font-size:.95rem}
.rich-content td,.rich-content th,.content-body td,.content-body th{border:1px solid #CBD5E1;padding:.5rem .7rem;vertical-align:top}
.rich-content th,.content-body th{background:#F1F5F9;font-weight:700}
.rich-content hr,.content-body hr{border:0;border-top:2px solid #E2E8F0;margin:1.2rem 0;opacity:1}

/* ---- Botones de compartir: color de cada red social ---- */
.share-bar .share-btn.share-wa   { background: #25d366; border-color: #25d366; color: #fff; }
.share-bar .share-btn.share-x    { background: #000;    border-color: #000;    color: #fff; }
.share-bar .share-btn.share-in   { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.share-bar .share-btn.share-fb   { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-bar .share-btn.share-tg   { background: #26a5e4; border-color: #26a5e4; color: #fff; }
.share-bar .share-btn.share-mail { background: #64748b; border-color: #64748b; color: #fff; }
.share-bar .share-btn.share-copy,
.share-bar .share-btn.share-native { background: #07294D; border-color: #07294D; color: #fff; }
.share-bar .share-btn.share-wa:hover, .share-bar .share-btn.share-x:hover, .share-bar .share-btn.share-in:hover,
.share-bar .share-btn.share-fb:hover, .share-bar .share-btn.share-tg:hover, .share-bar .share-btn.share-mail:hover,
.share-bar .share-btn.share-copy:hover, .share-bar .share-btn.share-native:hover { filter: brightness(1.12); box-shadow: 0 6px 14px -4px rgba(15, 23, 42, .45); color: #fff; }
.share-bar .share-btn.share-copy.is-copied { background: #198754; border-color: #198754; }

/* Insignia de fecha sobre la imagen de las tarjetas de noticias (inicio) */
.news-img-wrap { position: relative; }
.news-img-wrap .nt-date { position: absolute; left: .8rem; top: .8rem; z-index: 2; line-height: 1.05; text-align: center; background: #fff; color: var(--color-primary); border-radius: 10px; padding: .4rem .65rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); border-top: 3px solid var(--color-accent); }
.news-img-wrap .nt-date strong { display: block; font-size: 1.3rem; letter-spacing: 0; }

/* ---- Encabezados de página: solo título, misma altura en todas las secciones ---- */
.hero-banner { min-height: 280px; display: flex; align-items: center; padding: 44px 0 !important; }
.hero-banner > .container { width: 100%; }
@media (max-width: 767.98px) { .hero-banner { min-height: 230px; padding: 36px 0 !important; } }

/* ===== Ajustes móviles: nada se corta ni se parte en dos renglones ===== */
@media (max-width: 575.98px) {
  /* Etiqueta superior de los títulos: una sola línea */
  .hero-eyebrow { font-size: .62rem; letter-spacing: .07em; gap: 6px; max-width: 100%; white-space: nowrap; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 10px; flex: 0 0 10px; }
  /* Botones: menos relleno lateral y letra un poco menor para que el texto quepa */
  .btn { white-space: nowrap; }
  .btn.px-4, .btn.px-5, .btn-lg { padding-left: 1rem !important; padding-right: 1rem !important; }
  .btn { font-size: .84rem; }
  /* Filas con separación grande: evitan el desborde de 8 px del gutter */
  .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }
}
/* Pasos numerados (Constancias): texto en bloque, no en columnas */
.ac-pasos li { display: block; position: relative; padding-left: 42px; min-height: 30px; padding-top: 3px; overflow-wrap: anywhere; }
.ac-pasos li::before { position: absolute; left: 0; top: 0; }

/* Áreas táctiles mínimas de 30 px (WCAG 2.2, criterio 2.5.8): enlaces del pie y de la barra superior */
.main-footer a:not(.footer-social-btn):not(.btn) { display: inline-block; padding-block: 6px; }
.main-footer .footer-bottom a { padding-block: 6px; }
.top-bar a { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; min-width: 30px; }
.top-bar-right { gap: .25rem !important; }
@media (pointer: coarse) {
  .main-footer a:not(.footer-social-btn):not(.btn) { padding-block: 8px; }
}

/* Indicadores del carrusel de portada: la barra se ve igual (2 px) pero el área de toque mide 30 px de alto */
.hero-carousel-indicators { bottom: 63px; }
.hero-carousel-indicators [data-bs-target] {
  box-sizing: content-box; height: 2px;
  border-top: 15px solid transparent; border-bottom: 15px solid transparent;
  background-clip: padding-box; cursor: pointer;
}
.hero-scroll { min-width: 30px; display: inline-flex; justify-content: center; }

/* ---- Redes del pie: mismo color de marca que los botones de compartir ---- */
.main-footer .footer-social-btn.fs-in { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.main-footer .footer-social-btn.fs-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.main-footer .footer-social-btn.fs-x  { background: #000;    border-color: rgba(255,255,255,.35); color: #fff; }
.main-footer .footer-social-btn.fs-yt { background: #ff0000; border-color: #ff0000; color: #fff; }
.main-footer .footer-social-btn.fs-in:hover, .main-footer .footer-social-btn.fs-fb:hover,
.main-footer .footer-social-btn.fs-x:hover, .main-footer .footer-social-btn.fs-yt:hover { filter: brightness(1.12); box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .55); color: #fff; transform: translateY(-2px); }

/* ---- Redes de la barra superior: color de marca ---- */
.top-bar .social-icons a.fs-in { background: #0a66c2; color: #fff; }
.top-bar .social-icons a.fs-fb { background: #1877f2; color: #fff; }
.top-bar .social-icons a.fs-x  { background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.top-bar .social-icons a.fs-yt { background: #ff0000; color: #fff; }
.top-bar .social-icons a.fs-in:hover, .top-bar .social-icons a.fs-fb:hover, .top-bar .social-icons a.fs-x:hover, .top-bar .social-icons a.fs-yt:hover { filter: brightness(1.15); color: #fff; transform: translateY(-1px); }
/* ---- Menú «Agregar al calendario»: íconos con su color ---- */
.cal-menu a .fa-google { color: #ea4335; }
.cal-menu a .fa-microsoft { color: #00a4ef; }
.cal-menu a .fa-building { color: #0f6cbd; }
.cal-menu a .fa-file-arrow-down { color: #475569; }
