/* =========================================================
   UGCM · Universidad del Bío-Bío
   Tema institucional (reemplaza a styles.css de la plantilla)
   Paleta tomada del logotipo UGCM
   ========================================================= */

:root {
  --ugcm-navy: #2e3a8c;
  --ugcm-navy-dark: #1b2560;
  --ugcm-ink: #1b2e51;
  --ugcm-blue: #149be9;
  --ugcm-gold: #f8af3a;
  --ugcm-red: #e8494b;
  --ugcm-text: #4d596e;
  --ugcm-muted: #6b7689;
  --ugcm-bg-soft: #f4f6fb;
  --ugcm-border: #e3e7ef;
  --ugcm-radius: 14px;
  --ugcm-shadow: 0 6px 24px rgba(27, 46, 81, .08);
  --ugcm-shadow-hover: 0 14px 34px rgba(27, 46, 81, .16);
  --ugcm-stripe: linear-gradient(90deg,
      var(--ugcm-navy) 0 25%, var(--ugcm-blue) 25% 50%,
      var(--ugcm-gold) 50% 75%, var(--ugcm-red) 75% 100%);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ugcm-text);
  background: #fff;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: var(--ugcm-ink);
  font-weight: 600;
  line-height: 1.25;
}
p { margin-bottom: 1rem; }
a { color: var(--ugcm-navy); }
a:hover { color: var(--ugcm-blue); }
img { max-width: 100%; }
strong { color: var(--ugcm-ink); font-weight: 600; }
.text-primary { color: var(--ugcm-navy) !important; }
.lead { font-weight: 400; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--ugcm-gold); color: var(--ugcm-ink); padding: .5rem 1rem; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--ugcm-gold); outline-offset: 2px; }

/* ---------- Header ---------- */
.ubb-topbar {
  background: var(--ugcm-navy-dark);
  font-size: .8rem;
}
.ubb-topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 34px; gap: 1rem;
}
.ubb-topbar a {
  color: rgba(255,255,255,.88); text-decoration: none; font-weight: 500;
}
.ubb-topbar a:hover { color: var(--ugcm-gold); }
.ubb-topbar__links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.ubb-topbar__social { display: flex; gap: .9rem; font-size: .95rem; }

.ubb-brand { background: #fff; }
.ubb-brand .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 104px; padding-top: .75rem; padding-bottom: .75rem;
}
.ubb-brand__logo img { height: 66px; width: auto; display: block; }
.ubb-brand__meta {
  text-align: right; line-height: 1.3; color: var(--ugcm-muted); font-size: .85rem;
  border-right: 4px solid var(--ugcm-gold); padding-right: .9rem;
}
.ubb-brand__meta strong { display: block; color: var(--ugcm-ink); font-size: 1rem; }

.ubb-toggler {
  display: none; border: 1px solid var(--ugcm-border); background: #fff;
  border-radius: 10px; width: 46px; height: 46px; color: var(--ugcm-navy); font-size: 1.25rem;
}

.ubb-nav {
  background: var(--ugcm-bg-soft);
  border-top: 1px solid var(--ugcm-border);
  position: sticky; top: 0; z-index: 1030;
}
.ubb-stripe { height: 5px; background: var(--ugcm-stripe); }

.ubb-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.ubb-menu > li { position: relative; }
.ubb-menu > li > a {
  display: block; padding: 14px 18px; color: var(--ugcm-ink); font-weight: 600;
  font-size: .98rem; text-decoration: none; position: relative;
}
.ubb-menu > li > a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 3px;
  background: var(--ugcm-gold); border-radius: 2px; transform: scaleX(0); transition: transform .2s;
}
.ubb-menu > li > a:hover::after,
.ubb-menu > li.is-active > a::after { transform: scaleX(1); }
.ubb-menu > li > a:hover { color: var(--ugcm-navy); }
.ubb-menu .dropdown-toggle::after { display: none; }
.ubb-menu .dropdown-toggle .fa-chevron-down { font-size: .7rem; margin-left: .35rem; vertical-align: 1px; transition: transform .2s; }

.ubb-menu .dropdown-menu {
  border: 0; border-top: 4px solid var(--ugcm-navy); border-radius: 0 0 12px 12px;
  box-shadow: var(--ugcm-shadow-hover); padding: .4rem 0; min-width: 16rem; margin-top: 0 !important;
}
.ubb-menu .dropdown-item {
  padding: .6rem 1.2rem; color: var(--ugcm-ink); font-size: .95rem; font-weight: 500;
  transition: background .15s, padding .15s;
}
.ubb-menu .dropdown-item:hover,
.ubb-menu .dropdown-item:focus { background: var(--ugcm-bg-soft); color: var(--ugcm-navy); padding-left: 1.5rem; }
.ubb-menu .dropdown-item.active { background: var(--ugcm-navy); color: #fff; }
.ubb-menu .dropdown-item .fa-arrow-up-right-from-square { font-size: .7rem; margin-left: .3rem; opacity: .6; }

@media (min-width: 992px) {
  .ubb-nav .collapse { display: block !important; }
  .ubb-menu .dropdown:hover > .dropdown-menu { display: block; }
  .ubb-menu .dropdown:hover .fa-chevron-down { transform: rotate(180deg); }
}

@media (max-width: 991.98px) {
  .ubb-toggler { display: inline-flex; align-items: center; justify-content: center; }
  .ubb-brand__meta { display: none; }
  .ubb-brand .container { min-height: 80px; }
  .ubb-brand__logo img { height: 50px; }
  .ubb-nav { position: static; border-top: 0; }
  .ubb-menu { flex-direction: column; padding: .5rem 0 1rem; }
  .ubb-menu > li > a { padding: 12px 4px; border-bottom: 1px solid var(--ugcm-border); display: flex; justify-content: space-between; align-items: center; }
  .ubb-menu > li > a::after { display: none; }
  .ubb-menu .dropdown-menu { position: static !important; transform: none !important; box-shadow: none; border-top: 0; border-left: 3px solid var(--ugcm-gold); border-radius: 0; margin: .25rem 0 .5rem; background: #fff; }
  .ubb-topbar__links li:nth-child(n+4) { display: none; }
}
@media (max-width: 575.98px) {
  .ubb-brand__logo img { height: 42px; }
  .ubb-topbar__social { display: none; }
}

/* ---------- Encabezado de página interior ---------- */
.ubb-pagehero {
  background:
    radial-gradient(circle at 85% 20%, rgba(20,155,233,.35), transparent 45%),
    radial-gradient(circle at 5% 120%, rgba(20,155,233,.18), transparent 40%),
    linear-gradient(120deg, var(--ugcm-navy-dark), var(--ugcm-navy));
  color: #fff; padding: 2.75rem 0 2.5rem;
}
.ubb-pagehero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--ugcm-gold);
}
.ubb-pagehero__eyebrow::after { content: ""; width: 40px; height: 2px; background: var(--ugcm-gold); }
.ubb-pagehero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin: .4rem 0 .9rem; }
.ubb-pagehero .breadcrumb { margin: 0; font-size: .88rem; }
.ubb-pagehero .breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.ubb-pagehero .breadcrumb a:hover { color: #fff; text-decoration: underline; }
.ubb-pagehero .breadcrumb-item.active { color: rgba(255,255,255,.65); }
.ubb-pagehero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); content: "›"; }

/* ---------- Secciones ---------- */
.section-space { padding: 4.5rem 0; }
.section-space-top { padding-top: 4.5rem; }
main > section:nth-of-type(even) { background: var(--ugcm-bg-soft); }
main > section.py-3 + section { padding-top: 3rem; }

.section-header { margin-bottom: 2rem; }
.section-title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700; color: var(--ugcm-ink); margin-bottom: 1.25rem;
}
h4.section-title, h3.section-title { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.section-title::after {
  content: ""; display: block; width: 72px; height: 4px; margin-top: .7rem;
  background: var(--ugcm-stripe); border-radius: 2px;
}
.text-center > .section-title:not(.text-start)::after,
.section-title.text-center::after { margin-left: auto; margin-right: auto; }
.section-title.text-nowrap { white-space: normal !important; }

.text-bg-two {
  display: inline-flex; align-items: center; gap: .6rem;
  text-transform: uppercase; letter-spacing: .1em; font-size: .82rem !important;
  font-weight: 600; color: var(--ugcm-blue); margin-bottom: .5rem;
}
.text-bg-two::after { content: ""; width: 40px; height: 2px; background: var(--ugcm-gold); }

.column-gutter { margin-bottom: 1.75rem; }
.neutral-row-gutter { margin-bottom: 0; }

/* ---------- Tarjetas ---------- */
.card, .shadow.rounded, .platform-card, .video-card {
  border: 1px solid var(--ugcm-border) !important;
  border-radius: var(--ugcm-radius) !important;
  box-shadow: var(--ugcm-shadow) !important;
  background: #fff;
}
.shadow.rounded { border-top: 4px solid var(--ugcm-navy) !important; }
.project__single.card { overflow: hidden; transition: transform .2s, box-shadow .2s; height: 100%; }
.project__single.card:hover { transform: translateY(-4px); box-shadow: var(--ugcm-shadow-hover) !important; }
.project__single .card-img-top { border-radius: 0 !important; object-position: center top; }
.project__single .card-body { padding: 1.25rem 1rem 1.1rem; border-top: 4px solid var(--ugcm-gold); }
.card-title { font-weight: 600; color: var(--ugcm-ink); margin-bottom: .35rem; }
.card-text { margin-bottom: .25rem; font-size: .95rem; }
.card-text small { font-size: .88rem; }

.list-group-item { color: var(--ugcm-text); padding-left: 0; background: transparent; }
.list-group-item a { color: var(--ugcm-ink) !important; }
.list-group-item a:hover { color: var(--ugcm-blue) !important; }
.list-group-item:empty, .list-group-item:has(> strong:empty) { display: none; }

.alert-info {
  background: linear-gradient(135deg, #eef4ff, #f6f9ff);
  border: 1px solid #d6e2fb; border-left: 5px solid var(--ugcm-blue); color: var(--ugcm-text);
  border-radius: 12px;
}
.alert-info .alert-heading { color: var(--ugcm-navy); font-weight: 700; }

/* PDF / iframes */
.pdf__thumb iframe, iframe[src*="youtube"], iframe[src*="drive.google"] {
  border-radius: var(--ugcm-radius) !important; box-shadow: var(--ugcm-shadow);
  background: #fff;
}
.pdf__content { background: #fff; border-radius: var(--ugcm-radius); padding: 1.75rem; border: 1px solid var(--ugcm-border); }

/* Carrusel portada */
#miCarrusel { border-radius: var(--ugcm-radius); overflow: hidden; box-shadow: var(--ugcm-shadow-hover); }
#miCarrusel .carousel-caption {
  left: 0; right: 0; bottom: 0; text-align: left; padding: 1rem 2rem !important;
  background: linear-gradient(0deg, rgba(27,37,96,.85), rgba(27,37,96,0)) !important;
}
#miCarrusel .carousel-caption h5 { font-size: 1.25rem; margin: 0; }
#miCarrusel .carousel-caption p { display: none; }
#miCarrusel .carousel-indicators { margin-bottom: .6rem; }
#miSeccionCarrusel { padding-top: 2.5rem !important; padding-bottom: 1.5rem !important; }

/* Página en construcción */
.page-under-construction .fa-screwdriver-wrench { color: var(--ugcm-gold) !important; font-size: 3.5rem; }
.page-under-construction .display-4 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: var(--ugcm-ink); }

/* Accesos rápidos (portada) */
.ugcm-quick { padding: 1rem 0 3rem; }
.ugcm-quick__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.ugcm-quick__item {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem 1.1rem;
  background: #fff; border: 1px solid var(--ugcm-border); border-radius: var(--ugcm-radius);
  box-shadow: var(--ugcm-shadow); text-decoration: none; color: var(--ugcm-ink);
  font-weight: 600; line-height: 1.3; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.ugcm-quick__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--ugcm-navy)); }
.ugcm-quick__item i { font-size: 1.4rem; color: var(--accent, var(--ugcm-navy)); }
.ugcm-quick__item small { font-weight: 400; color: var(--ugcm-muted); font-size: .85rem; }
.ugcm-quick__item:hover { transform: translateY(-3px); box-shadow: var(--ugcm-shadow-hover); color: var(--ugcm-navy); }

/* ---------- Footer ---------- */
.ubb-footer { background: var(--ugcm-navy-dark); color: rgba(255,255,255,.8); font-size: .95rem; margin-top: 0; }
.ubb-footer .ubb-stripe { height: 6px; }
.ubb-footer__main { padding: 3.5rem 0 2rem; }
.ubb-footer h2 {
  color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 600; margin-bottom: 1.1rem;
}
.ubb-footer p { color: rgba(255,255,255,.8); }
.ubb-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.ubb-footer a:hover { color: var(--ugcm-gold); }
.ubb-footer__logo { height: 54px; width: auto; margin-bottom: 1rem; }
.ubb-footer ul { list-style: none; padding: 0; margin: 0; }
.ubb-footer li { margin-bottom: .55rem; }
.ubb-footer__contact li { display: flex; gap: .75rem; align-items: flex-start; }
.ubb-footer__contact i { color: var(--ugcm-gold); margin-top: .3rem; width: 16px; text-align: center; }
.ubb-footer__social { display: flex; gap: .6rem; margin-top: 1rem; }
.ubb-footer__social a {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); font-size: 1.05rem; transition: background .2s, color .2s;
}
.ubb-footer__social a:hover { background: var(--ugcm-gold); color: var(--ugcm-navy-dark); }
.ubb-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.1rem 0; font-size: .82rem; color: rgba(255,255,255,.65); }
.ubb-footer__bottom p { margin: 0; color: inherit; }

/* Volver arriba */
.scrollToTop {
  position: fixed; right: 20px; bottom: 20px; z-index: 1040; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--ugcm-navy); color: #fff;
  box-shadow: var(--ugcm-shadow-hover); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s; text-decoration: none;
}
.scrollToTop.active { opacity: 1; visibility: visible; transform: none; }
.scrollToTop:hover { background: var(--ugcm-gold); color: var(--ugcm-navy-dark); }

@media (max-width: 767.98px) {
  .section-space { padding: 3rem 0; }
  .pdf__content { padding: 1.25rem; }
  .pdf__thumb iframe { height: 460px; }
}

/* Tarjetas de inscripción (portada): tamaño contenido */
.container [style*="grid-template-columns:repeat(2"] { max-width: 760px; margin: 0 auto; }
.container [style*="grid-template-columns:repeat(2"] a { box-shadow: var(--ugcm-shadow); transition: transform .2s, box-shadow .2s; }
.container [style*="grid-template-columns:repeat(2"] a:hover { transform: translateY(-4px); box-shadow: var(--ugcm-shadow-hover); }
.container [style*="grid-template-columns:repeat(2"] + * , main > section.py-3 h4.section-title { text-align: left; }
@media (min-width: 992px) { main > section.py-3 .col-lg-12 > h4.section-title { max-width: 760px; margin-left: auto; margin-right: auto; } }

/* Sellos de acreditación en el footer */
.ubb-footer__seals { border-top: 1px solid rgba(255,255,255,.12); padding: 1.75rem 0; }
.ubb-footer__seals-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.ubb-footer__acred { min-height: 80px; display: flex; align-items: center; }
.ubb-footer__acred #contenedor-acreditacion { display: flex; }
.ubb-footer__cna img { width: 100%; max-width: 380px; height: auto; display: block; }
@media (max-width: 767.98px) {
  .ubb-footer__seals-row { justify-content: center; text-align: center; }
  .ubb-footer__acred { justify-content: center; width: 100%; }
}
.ubb-footer__cna { flex: 0 1 380px; max-width: 100%; }

/* =========================================================
   Mejoras de estructura y legibilidad
   ========================================================= */
main p:empty { display: none; }
h3.h4.text-primary, .shadow.rounded > h3 { font-weight: 700; font-size: 1.4rem; }
.shadow.rounded h5 { font-size: 1.08rem; color: var(--ugcm-navy); }
.lead { font-size: 1.15rem; line-height: 1.6; }
.section-content p, .pdf__content p { max-width: 72ch; }

/* Botones */
.btn-ugcm {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 999px;
  background: var(--ugcm-navy); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 2px solid var(--ugcm-navy); transition: background .2s, color .2s, transform .2s;
}
.btn-ugcm:hover { background: var(--ugcm-navy-dark); border-color: var(--ugcm-navy-dark); color: #fff; transform: translateY(-2px); }
.btn-ugcm--outline { background: transparent; color: var(--ugcm-navy); }
.btn-ugcm--outline:hover { background: var(--ugcm-navy); color: #fff; }

/* Equipo: fotos proporcionadas y correos como enlace */
.project__single .card-img-top { height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; }
.project__single .card-text a { color: var(--ugcm-navy); text-decoration: none; word-break: break-all; }
.project__single .card-text a:hover { color: var(--ugcm-blue); text-decoration: underline; }
.project__single .card-text.mb-1 { color: var(--ugcm-text); line-height: 1.4; min-height: 2.8em; }

/* PDF: texto a la izquierda y documento a la derecha en pantallas grandes */
.pdf__thumb iframe { height: min(78vh, 760px); }
@media (min-width: 1200px) {
  .pdf-viewer .row > .col-lg-8 {
    flex: 0 0 100%; max-width: 100%;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: start;
    text-align: left !important;
  }
  .pdf-viewer .pdf__content { position: sticky; top: 76px; margin: 0 !important; }
}

/* Videos: cuadrícula en vez de lista larga */
.video-viewer .row > .col-lg-8 {
  flex: 0 0 100%; max-width: 100%;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}
.video-viewer .video__content { grid-column: 1 / -1; margin-bottom: .5rem !important; }
.video-card {
  display: flex; flex-direction: column; margin: 0 !important; padding: 0 !important;
  background: #fff !important; overflow: hidden; text-align: left !important;
  transition: transform .2s, box-shadow .2s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--ugcm-shadow-hover) !important; }
.video-card > a { order: 1; }
.video-card h6 { order: 2; margin: 0 !important; padding: 1rem 1.2rem 1.25rem; font-size: 1rem; line-height: 1.4; color: var(--ugcm-ink) !important; font-weight: 600; }
.video-card img { width: 100% !important; max-width: none !important; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0 !important; display: block; }
.video-card a > div > div { width: 60px !important; height: 60px !important; background: rgba(232,73,75,.92) !important; }
.video-card a > div > div i { font-size: 28px !important; }

/* Contacto */
#contacto .display-5 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); color: var(--ugcm-ink) !important; }
#contacto .display-5::after { content: ""; display: block; width: 72px; height: 4px; margin: .7rem auto 0; background: var(--ugcm-stripe); border-radius: 2px; }
#contacto .text-info, #contacto .text-secondary { color: var(--ugcm-blue) !important; }
#contacto .fa-3x { font-size: 2.2rem; }
#contacto h5 { font-size: 1.1rem; margin-bottom: .3rem; }
#contacto a { font-weight: 500; }

/* Página en construcción */
.page-under-construction .row > div {
  background: #fff; border: 1px solid var(--ugcm-border); border-radius: var(--ugcm-radius);
  box-shadow: var(--ugcm-shadow); padding: 3rem 2rem;
}

/* Organigrama ampliable */
.ugcm-zoom { display: inline-block; position: relative; border-radius: var(--ugcm-radius); overflow: hidden; background: #fff; box-shadow: var(--ugcm-shadow); padding: 1rem; text-decoration: none; }
.ugcm-zoom__hint { display: block; margin-top: .5rem; font-size: .85rem; font-weight: 600; color: var(--ugcm-navy); text-align: center; }
.ugcm-zoom:hover .ugcm-zoom__hint { color: var(--ugcm-blue); }
.project .row > [class*="col-"]:has(> .section-header) { flex: 0 0 100%; max-width: 100%; }
.project .section-header { margin-bottom: 1.5rem; }

/* Noticia destacada (Innovación) */
.news-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff; border: 1px solid var(--ugcm-border); border-radius: var(--ugcm-radius);
  box-shadow: var(--ugcm-shadow); overflow: hidden;
}
.news-feature__media { position: relative; display: block; min-height: 100%; background: var(--ugcm-bg-soft); }
.news-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.news-feature__media:hover img { transform: scale(1.03); }
.news-feature__date {
  position: absolute; top: 1rem; left: 1rem; background: var(--ugcm-navy); color: #fff; border-radius: 10px;
  padding: .45rem .75rem; text-align: center; line-height: 1.1; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .05em; border-bottom: 4px solid var(--ugcm-gold);
}
.news-feature__date strong { display: block; font-size: 1.5rem; color: #fff; font-weight: 700; }
.news-feature__body { padding: 2rem 2.25rem; display: flex; flex-direction: column; }
.news-feature__tags { list-style: none; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.news-feature__tags li {
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ugcm-navy); background: #eaf0fb; border-radius: 999px; padding: .2rem .7rem;
}
.news-feature__title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; line-height: 1.3; margin-bottom: 1rem; }
.news-feature__title a { color: var(--ugcm-ink); text-decoration: none; }
.news-feature__title a:hover { color: var(--ugcm-navy); text-decoration: underline; }
.news-feature__body p { font-size: 1rem; }
.news-feature__facts { list-style: none; padding: 0; margin: .5rem 0 1.5rem; display: grid; gap: .6rem; }
.news-feature__facts li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; }
.news-feature__facts i {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ugcm-bg-soft); color: var(--ugcm-blue); flex-shrink: 0;
}
.news-feature__footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.news-feature__source { font-size: .8rem; color: var(--ugcm-muted); }
@media (max-width: 991.98px) {
  .news-feature { grid-template-columns: 1fr; }
  .news-feature__media { aspect-ratio: 4 / 3; }
  .news-feature__body { padding: 1.5rem; }
}

/* Noticia: imagen sin deformarse y fecha siempre abajo */
.news-feature__media { overflow: hidden; }
.news-feature__media img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.news-feature__date { top: auto; bottom: 1rem; left: 1rem; }
@media (min-width: 992px) {
  .news-feature__media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .news-feature__media { min-height: 420px; }
}
@media (max-width: 991.98px) {
  .news-feature__media { aspect-ratio: auto; }
}

/* Galería bajo la noticia */
.news-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.news-gallery a { display: block; border-radius: var(--ugcm-radius); overflow: hidden; box-shadow: var(--ugcm-shadow); }
.news-gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .4s; }
.news-gallery a:hover img { transform: scale(1.04); }
