/* Tipografía global GOV.CO */

html,
body {
  font-weight: 400;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Work Sans', sans-serif !important;
  color: #2b2b2b;
}

.bg-header {
  background: url(../images/fondo-header.png);
  color: #fff
}
.ajuste {
  margin-top: 15px;
}

.theme-box {
  position: relative;
  padding: 15px;
  margin-bottom: 30px;
  -webkit-box-shadow: 0px 0px 5px 2px #CBCBCB;
  box-shadow: 0px 0px 5px 2px #CBCBCB;
  overflow: hidden;
  transition: all 0.3s ease;
}

.theme-box:hover {
  -webkit-box-shadow: 0px 0px 5px 6px #CBCBCB;
  box-shadow: 0px 0px 5px 6px #CBCBCB;

}

.theme-box h2 {
  color: #00176c;
  font-size: 20px;
}

.theme-box img {
  margin-bottom: 30px;
}

.theme-box span {
  color: #666666;
  font-size: 12px;
}

.theme-box p {
  color: #000000;
  font-size: 12px;
}

.borde-derecho {

  border-right: 1px solid #e6e6e6;

}

.right h2 {
  color: #000000;
  font-size: 20px;
  text-transform: uppercase;
}

.right .cat {
  list-style: none;
  color: #575756;
  margin-left: 0;
  padding-left: 10px;
}

.right .cat a {

  color: #575756;
}

.cat li {
  border-bottom: 1px dotted #efefef;
  margin: 5px 0 0 0;
  padding-bottom: 5px;
}

.interna h2 {
  color: #00176c;
  font-size: 30px;
}

.interna span {
  color: #666666;
  font-size: 12px;
}

.interna p {
  color: #000000;
  font-size: 16px;
  line-height: 30px;
  margin-top: 40px;
}

.cont-box {
  margin-bottom: 30px;
}

.cont-box a {
  color: #000000;
  font-size: 16px;
}

.theme-box-2 {
  padding: 20px 10px;
  border: solid 1px #ececec;
  transition: all 0.3s ease;

}

.theme-box-2:hover {
  -webkit-box-shadow: 0px 0px 5px 6px #CBCBCB;
  box-shadow: 0px 0px 5px 6px #CBCBCB;

}

.custom-navbar {
  background: url(../images/fondo-header.png);
  color: #fff;
  padding: 10px 5px
}

.nav-link {
  color: #fff !important;
}

.custom-toggler.navbar-toggler {
  border-color: rgb(255, 255, 255);
  background-color: #09a6a1;
}

.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.custom-toggler .navbar-toggler-icon {
  width: 18px !important;
}

.custom-toggler:hover {
  border-color: rgb(255, 255, 255);
  background-color: #098e87;
}

.navbar-toggler-icon:hover {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

#logo_custom {
  margin-top: -6px;
}

@media only screen and (max-width: 760px) {
  #logo_custom {
    width: 40%;
  }
}

.vinculo-boton a {
  color: #fff !important;

}

.vinculo-boton a:hover {
  color: #fff !important;
  background-color: #0076a5;
}

/* ===========================
   LÍNEA 1: GOV.CO
   =========================== */
.site-header-govco .gov-strip {
  background-color: #2f5fd9;
  /* azul GOV.CO */
}

.site-header-govco .gov-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  justify-content: flex-start;
  /* <--- IZQUIERDA */
  align-items: center;
}


.site-header-govco .gov-strip__logo {
  height: 26px;
  display: block;
}

/* ===========================
   LÍNEA 2: ES TU FUTURO
   =========================== */
.site-header-govco .brand-bar {
  background-color: #4B4B4B;
  /* como la franja negra de ICETEX */
}

.site-header-govco .brand-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: flex-start;
  /* <--- IZQUIERDA */
  align-items: center;
}


.site-header-govco .brand-bar__logo {
  height: 70px;
  /* ajusta según cómo lo veas */
  display: block;
}

/* ===========================
   LÍNEA 3: MENÚ PRINCIPAL
   =========================== */
.site-header-govco .main-nav-bar {
  background-color: #003a8c;
  /* azul oscuro para el menú (tipo ICETEX) */
}

.site-header-govco .main-nav-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Menú */


.site-header-govco .main-nav-bar__list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.site-header-govco .main-nav-bar__list a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.site-header-govco .main-nav-bar__list a:hover {
  color: #dbe8ff;
}

/* Botón BUSCAR EN EL SITIO */
.site-header-govco .main-nav-bar__search {
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.site-header-govco .main-nav-bar__search:hover {
  background-color: #1a52b8;
}

/* ===========================
   RESPONSIVE BÁSICO
   =========================== */

/* ===========================
   RESPONSIVE MENÚ HAMBURGUESA
   =========================== */
@media (max-width: 991.98px) {

  /* El contenedor del nav en columna */
  .site-header-govco .main-nav-bar__inner {
    flex-direction: column;
    align-items: stretch;
  }

  /* Mostrar hamburguesa arriba a la derecha */
  .main-nav-bar__toggle {
    display: inline-flex;
    align-self: flex-end;
    margin-bottom: 6px;
  }

  /* 🔹 Por defecto, ocultar menú y botón en móvil */
  .site-header-govco .main-nav-bar__list,
  .site-header-govco .main-nav-bar__search {
    display: none !important;
  }

  /* 🔹 Cuando el nav tenga .is-open, mostrar menú y botón */
  .site-header-govco .main-nav-bar.is-open .main-nav-bar__list {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
  }

  .site-header-govco .main-nav-bar.is-open .main-nav-bar__search {
    display: inline-flex !important;
    justify-content: center;
    margin-top: 8px;
  }

  /* Cada enlace ocupa todo el ancho en móvil */
  .site-header-govco .main-nav-bar__list a {
    display: block;
  }
}

/* En escritorio: ocultar la hamburguesa */
@media (min-width: 992px) {
  .main-nav-bar__toggle {
    display: none !important;
  }
}


/* ===== Botones GOV.CO básicos ===== */

.btn-govco {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  font-family: inherit;
}

/* Estado foco accesible */
.btn-govco:focus {
  outline: 2px solid #2f5fd9;
  outline-offset: 2px;
}

/* Relleno primario */
.fill-btn-govco {
  background-color: #2f5fd9;
  /* azul GOV.CO */
  border-color: #2f5fd9;
  color: #ffffff;
}

.fill-btn-govco:hover {
  background-color: #254bb3;
  border-color: #254bb3;
  color: #ffffff;
}

/* Contorno primario */
.outline-btn-govco {
  background-color: transparent;
  border-color: #2f5fd9;
  color: #2f5fd9;
}

.outline-btn-govco:hover {
  background-color: #e5edff;
  color: #254bb3;
}

/* Pastilla (para botones “Más”) */
.btn-pill {
  border-radius: 999px !important;
}

/* =============================
   Corrección de texto en botones
   ============================= */
.btn-govco {
  font-size: 1rem !important;
  /* tamaño oficial GOV.CO */
  line-height: 1.2 !important;
  /* centrado vertical correcto */
  padding: 0.55rem 1.4rem !important;
  /* botones con mejor relación ancho/alto */
  text-align: center;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Botones de contorno GOV.CO (ancho mínimo para que no queden aplastados) */
.outline-btn-govco {
  border-width: 2px !important;
}

/* Botón redondo (Más) */
.btn-pill {
  padding: 0.55rem 1.4rem !important;
  min-width: 80px;
  /* ayuda a que no se vea "bolita" */
  border-radius: 999px !important;
}


/* Link activo en el menú principal */
.site-header-govco .main-nav-bar__list a.active {
  border-bottom: 3px solid #ffffff;
  padding-bottom: 4px;
}

/* Aplica solo a contenido que venga del CKEditor */
/* ===== CKEditor content render (front público) ===== */
/* ====== Estilos para contenido que viene de CKEditor ====== */
.ck-content {
  line-height: 1.5;
  color: #212529;
}

/* Headings */
.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4 {
  margin: 0.75rem 0 0.5rem;
  font-weight: 700;
}

/* Párrafos */
.ck-content p {
  margin: 0 0 0.75rem;
}

/* Listas (esto es lo que normalmente te están “matando”) */
.ck-content ul,
.ck-content ol {
  padding-left: 1.5rem !important;
  margin: 0 0 1rem !important;
  list-style-position: outside !important;
}

.ck-content ul {
  list-style-type: disc !important;
}

.ck-content ol {
  list-style-type: decimal !important;
}

.ck-content li {
  margin: 0.25rem 0;
}

/* Tablas */
.ck-content figure.table {
  margin: 1rem 0;
  overflow-x: auto;
  /* por si la tabla es ancha */
}

.ck-content table {
  width: 100%;
  border-collapse: collapse !important;
}

.ck-content table td,
.ck-content table th {
  border: 1px solid #d0d7de !important;
  padding: 8px 10px !important;
  vertical-align: top;
}

/* Imágenes dentro del contenido */
.ck-content figure.image,
.ck-content figure.image img {
  max-width: 100% !important;
  height: auto !important;
}

/* Blockquote */
.ck-content blockquote {
  border-left: 4px solid #d0d7de;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
}

.ck-content table ul {
  list-style-type: disc !important;
}

.ck-content table ol {
  list-style-type: decimal !important;
}

/**/
.marker-yellow {
  background-color: #fdfd77
}

.marker-green {
  background-color: #63f963
}

.marker-pink {
  background-color: #fc7999
}

.marker-blue {
  background-color: #72cdfd
}

.pen-red {
  color: #e91313
}

.pen-green,
.pen-red {
  background-color: transparent
}

.pen-green {
  color: #180
}

.text-tiny {
  font-size: .7em !important;
}

.text-small {
  font-size: .85em !important;
}

.text-big {
  font-size: 1.4em !important;
}

.text-huge {
  font-size: 1.8em !important;
}

/* Contenedor donde pintas el HTML del CKEditor */
.ck-content table,
.contenido-html table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
}

/* Evita que una palabra larga rompa el layout */
.ck-content td,
.ck-content th,
.contenido-html td,
.contenido-html th {
  /*  word-break: break-word;*/
  white-space: normal;
}

/* Responsive real: scroll horizontal SOLO en móvil */
@media (max-width: 576px) {

  .ck-content figure.table,
  .contenido-html figure.table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ck-content figure.table table,
  .contenido-html figure.table table {
    min-width: 520px;
    /* fuerza scroll si hay muchas columnas */
  }
}

.ck-content table {
  display: table !important;
}

b,
strong {
  font-weight: 700 !important;
}

/*ESTILOS DE LAS NUEVAS PLANTILLAS*/
/* Sticky footer elegante */


.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
}

/* Active automático */
.main-nav-bar__list a.active {
  font-weight: 700;
  border-bottom: 3px solid #3366CC;
}


/* Contenedor centrado estilo portal ICETEX */
.snibce-footer-inner {
  max-width: 1200px;
  /* 1140 / 1200 / 1320 según quieras */
  margin: 0 auto;
  padding: 0 16px;
}

/*FOOTER*/
.icetex-footer__bg {
  background: #0b5a8f;
  /* azul similar al screenshot */
}

/* Tarjeta blanca centrada */
.icetex-footer__card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 2px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 28px 34px;
}

/* Header del footer */
.icetex-footer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.icetex-footer__title {
  font-weight: 600;
  font-size: 20px;
  color: #36c;
  letter-spacing: .5px;
  margin-top: 2px;
}

.icetex-footer__logo {
  height: 32px;
  /* ← ajusta aquí */
  width: auto;
  display: block;
}

/* Texto */
.icetex-footer__content {
  font-size: 12px;
  line-height: 1.45;
  color: #2b2b2b;
}

.icetex-footer__content p {
  margin-bottom: 14px;
}

/* axe "link-in-text-block": un enlace dentro de un bloque de texto debe
   distinguirse por algo MAS que el color (subrayado), no solo por el azul.
   Por eso va subrayado por defecto (antes era text-decoration:none). */
.icetex-footer__link {
  color: #2563eb;
  text-decoration: underline;
}

.icetex-footer__link:hover,
.icetex-footer__link:focus {
  text-decoration: underline;
  color: #1d4ed8;
}

/* Redes / fila de links con “estilo portal” */
.icetex-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 22px;
  padding-top: 14px;
}
/*
.icetex-footer__social-link {
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
}*/

.icetex-footer__social-link{
  display:flex;
  align-items:center;
  gap:.5rem;
  line-height:1.2;
}

.icetex-footer__icon{
  width:16px;
  height:16px;
  flex:0 0 16px;     /* 🔥 evita que empuje o se estire */
  display:inline-block;
  fill: currentColor;
}

.icetex-footer__social-link:hover {
  text-decoration: underline;
}

/* Links inferiores centrados */
.icetex-footer__bottomlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 22px;
  padding-top: 18px;
}

.icetex-footer__bottomlink {
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.icetex-footer__bottomlink:hover {
  text-decoration: underline;
}

/* Accesibilidad foco visible */
:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

/* Bug59442 (HU58529 / WCAG 2.4.7): el foco NO debe perderse en el acordeon del
   detalle de oferta ("Dirigido a" / "Financiacion" / "Requisitos..."). El anillo
   global usa outline-offset:2px (se dibuja por fuera del boton), pero
   .govco-accordion y .govco-accordion__item tienen overflow:hidden (para el
   border-radius), asi que ese anillo externo queda RECORTADO -> el foco existe
   (Enter despliega la seccion) pero no se ve. Solucion: dibujar el anillo HACIA
   ADENTRO (outline-offset negativo) para que no lo recorte el overflow. */
.govco-accordion__trigger:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: -3px;
}

/* HU58529 (WCAG 2.4.1 / 2.1.1): "Saltar al contenido principal".
   Oculto fuera de pantalla; visible solo cuando recibe foco por teclado (Tab). */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 2000;
  display: inline-block;
  padding: 10px 18px;
  background: #fff;
  color: #06357a;
  font-weight: 600;
  border: 2px solid #06357a;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top .15s ease-in-out;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

/* El <main> es un contenedor: al recibir foco vía skip link no debe dibujar
   un recuadro enorme alrededor de todo el contenido. */
main:focus {
  outline: none;
}

/*MENU NAV BAR*/
.icetex-nav {
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.icetex-nav__list .nav-link {
  font-weight: 500;
  padding: 10px 12px;
  color: #1d1d1d;
}

.icetex-nav__list .nav-link:hover {
  color: #0d6efd;
}

.icetex-nav__list .nav-link.is-active {
  font-weight: 700;
  position: relative;
}

@media (min-width: 992px) {
  .icetex-nav__list .nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 3px;
    background: #0d6efd;
    border-radius: 99px;
  }
}


/* =========================
   BARRA DE MARCA GRIS
========================= */

.icetex-brandbar {
/*  background-color: #4B4B4B;*/
  /* gris suave institucional */
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  position: relative;
  z-index: 10;
}

/* Contenedor */
.icetex-brandbar .container {
  min-height: 72px;
  /* altura tipo portal */
}

/* ===============================
   NAV INSTITUCIONAL ICETEX
=============================== */

.icetex-nav {
  background-color: #003f8c;
  /* azul institucional */
  padding: 8px 0;
  border-bottom: none;
}

/* Links */
.icetex-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 12px 14px;
  transition: background-color .2s ease;
}

/* Hover */
.icetex-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

/* Activo */
.icetex-nav .nav-link.is-active {
  font-weight: 700;
  position: relative;
}

@media (min-width: 992px) {
  .icetex-nav .nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 3px;
    background: #ffffff;
    border-radius: 50px;
  }
}

/* CTA blanco */
.icetex-nav .btn-primary {
  background-color: #ffffff;
  color: #003f8c;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 16px;
}

.icetex-nav .btn-primary:hover {
  background-color: #f1f3f5;
}

/* Toggle móvil */
.icetex-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, .4);
}

.icetex-nav .navbar-toggler-icon {
  filter: invert(1);
  /* hace el icono blanco */
}

:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

.icetex-nav .container {
  max-width: 1200px;
}

/* Horizontal scroll “tipo carrusel” pero nativo */
.hs-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hs-scroll>.hs-item {
  scroll-snap-align: start;
}

.hs-scroll::-webkit-scrollbar {
  height: 10px;
}

/*HOME*/
/* HERO full width */
/* HERO full width */
.home-hero {
  width: 100%;
  position: relative;
}

/* cada slide con altura fija */
.home-hero .carousel-item {
  position: relative;
  height: 520px;
  overflow: hidden;
}

/* FOTO DE ESTUDIANTES COMO FONDO ESTATICO (HU58528: <img> con alt; no se mueve con el slide) */
.home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  z-index: 0;
}

/* OVERLAY AZUL ICETEX estatico sobre la imagen de fondo */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 75, 147, 0.28);
  /* ajusta 0.20 - 0.40 */
  z-index: 1;
  pointer-events: none;
}

/* tinte morado estatico sobre toda la imagen */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(0, 75, 147, 0.65),
      rgba(0, 75, 147, 0.25));
  z-index: 1;
  pointer-events: none;
}

/* el carrusel (captions/controles/indicadores) va por encima de los tintes;
   asi la imagen de fondo queda fija y solo se desliza el slide */
.home-hero #homeCarousel {
  position: relative;
  z-index: 2;
}

.home-hero .hero-box {
  background: rgba(0, 0, 0, 0.5);
  /* HU58535 (WCAG 1.4.3): fallback conforme sobre fotos claras -> texto blanco >= 4.5:1 */
}

/* caption centrado */
.home-hero .carousel-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0 16px;
  pointer-events: none;
}

/* caja central oscura (como la del anterior) */
.home-hero .hero-box {
  width: min(900px, 92vw);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  padding: 28px 32px;
  text-align: center;
  color: #fff;
  pointer-events: auto;
}

/* HU58535 (WCAG 1.4.3): CTA "Consultar" en azul ICETEX -> blanco 8.6:1
   (el btn-primary default de Bootstrap #0d6efd daba 4.5:1 al limite) */
.home-hero .hero-box .btn-primary {
  --bs-btn-bg: #004b93;
  --bs-btn-border-color: #004b93;
  --bs-btn-hover-bg: #003a73;
  --bs-btn-hover-border-color: #003a73;
  --bs-btn-active-bg: #003a73;
  --bs-btn-active-border-color: #003a73;
}

/* tipografías similares */
.home-hero .hero-box h2 {
  font-weight: 700;
  margin-bottom: 12px;
}

.home-hero .hero-box p {
  margin: 0 auto 16px auto;
  max-width: 720px;
  opacity: .95;
}

/* indicadores un poco más visibles sobre fondo */
.home-hero .carousel-indicators [data-bs-target] {
  width: 28px;
  height: 3px;
  border-radius: 999px;
}

/* responsive */
@media (max-width: 768px) {
  .home-hero .carousel-item {
    height: 340px;
  }

  .home-hero .hero-box {
    padding: 18px 16px;
  }

  .home-hero .hero-box h2 {
    font-size: 1.25rem;
  }
}

/* Overlay no debe capturar clics */
.home-hero::before,
.home-hero::after {
  pointer-events: none;
}

/* Controles siempre clickeables */
.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
  z-index: 5;
}

/* Bug59442 (HU58529 / WCAG 2.4.7): el foco NO debe perderse en el carrusel. Las
   flechas Anterior/Siguiente ocupan el 15% de ancho x 520px de alto, asi que el
   anillo de foco global trazaba un rectangulo enorme pegado al borde de la foto
   -> practicamente invisible. El usuario percibia "foco perdido" y necesitaba un
   Tab extra para ver el foco recien en el boton Pausar. Solucion: anillo compacto
   alrededor del ICONO de la flecha (donde el usuario mira), no en todo el control. */
.home-hero .carousel-control-prev:focus-visible,
.home-hero .carousel-control-next:focus-visible {
  outline: none;
}
.home-hero .carousel-control-prev:focus-visible .carousel-control-prev-icon,
.home-hero .carousel-control-next:focus-visible .carousel-control-next-icon {
  outline: 3px solid #ffbf47;
  outline-offset: 6px;
  border-radius: 4px;
}

/* HU58530 (WCAG 2.2.2): botones Pausar / Reproducir el paso automatico de contenidos */
.home-hero .carousel-playpause {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-hero .carousel-playpause__btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 1rem;
  line-height: 1;
  transition: background-color .15s ease;
}

.home-hero .carousel-playpause__btn:hover,
.home-hero .carousel-playpause__btn:focus {
  background: rgba(0, 0, 0, 0.7);
}

/* el boton del estado actual: color + anillo (cue de forma, no solo color -> WCAG 1.4.1) */
.home-hero .carousel-playpause__btn.is-active {
  background: #004b93;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #004b93;
}

/* etiqueta de estado visible: indicador NO dependiente del color (WCAG 1.4.1) */
.home-hero .carousel-playpause__status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: .85rem;
  line-height: 1;
  white-space: nowrap;
}

/* Indicadores siempre clickeables */
.home-hero .carousel-indicators {
  z-index: 6;
}

/* Si tu caption ocupa todo el slide, NO dejes que capture clicks */
.home-hero .carousel-caption {
  pointer-events: none;
}

/* Pero el botón "Consultar" sí debe ser clickeable */
.home-hero .hero-box,
.home-hero .hero-box a {
  pointer-events: auto;
}

.home-hero .carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, .75);
}

.home-hero .carousel-indicators .active {
  background-color: #fff;
}


/* ===== Espaciado general ===== */
.home-section {
  padding: 60px 0;
}

/* Fondo alternado */
.home-section--light {
  background-color: #f5f7fa;
}

/* Filtros con fondo suave */
.home-section--filters {
  margin-top: -40px;
  position: relative;
  z-index: 3;
}

/* Títulos */
.section-title {
  font-weight: 700;
  font-size: 1.4rem;
  /*  color: #003b70;*/
  margin-bottom: 0.5rem;
}

.section-subtitle {
  /*  color: #6c757d;*/
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: #0d6efd;
}

.section-link:hover {
  text-decoration: underline;
}

/* Scroll horizontal ofertas */
.hs-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 8px;
}

.hs-scroll::-webkit-scrollbar {
  height: 6px;
}

.hs-scroll::-webkit-scrollbar-thumb {
  background: #cbd3da;
  border-radius: 10px;
}


/**/
/* Cards dentro del carrusel */
.offers-slide-row {
  display: grid;
  gap: 24px;
}

/* 3 columnas en desktop, 2 en tablet, 1 en móvil */
@media (min-width: 992px) {
  .offers-slide-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .offers-slide-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .offers-slide-row {
    grid-template-columns: 1fr;
  }
}

.offer-card {
  border: 1px solid #e9eef5;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 24, 40, .06);
  height: 100%;
}

.offer-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.offer-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #0b3d91;
  font-size: .9rem;
}

.offer-card .meta .date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b3d91;
}

.offer-card .flag {
  height: 18px;
  width: auto;
  border-radius: 2px;
}

.offer-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #1a1a1a;
  text-transform: uppercase;
  line-height: 1.25;
}

.offer-card .inst {
  font-weight: 700;
  margin-bottom: 8px;
}

.offer-card .area a {
  color: #0b3d91;
  text-decoration: none;
}

.offer-card .area a:hover {
  text-decoration: underline;
}

/* Noticias: imagen uniforme */
.news-card__img {
  height: 180px;
  object-fit: cover;
}

/* Noticias: título uniforme (máx 2 líneas) */
.news-card__title {
  /*  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;*/
  display: -webkit-box;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #1a1a1a;
  text-transform: uppercase;
  line-height: 1.25;
}

.home-quicklinks {
  background: #fff;
}

/* Card tipo banner */
.quick-card {
  position: relative;
  display: block;
  height: 170px;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(16, 24, 40, .08);
}

/* Fondo imagen */
.quick-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

/* Oscurecer suave para que el texto se lea */
.quick-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0));
}

/* Franja azul con el texto */
.quick-card__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  margin: 0 16px;
  background: #0b3d91;
  /* azul institucional */
  color: #fff;
  padding: 10px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;

  /* limitar a 2 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hover */
.quick-card:hover {
  transform: translateY(-2px);
  transition: transform .15s ease;
}

/* Tarjeta informativa */
.info-card {
  position: relative;
  display: block;
  height: 220px;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(16, 24, 40, .08);
  transition: transform .15s ease;
}

.info-card:hover {
  transform: translateY(-3px);
}

/* Imagen (HU58528: <img> con alt en vez de background-image; mismo recorte cover) */
.info-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Franja azul inferior */
.info-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  background: #0b3d91;
  /* azul institucional */
}

.info-card__overlay h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0;
  font-weight: 700;

  /* máximo 2 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/*** CONTENT.HTML */

#section_body img {
  max-width: 100%;
  height: auto;
}

#section_body figure {
  max-width: 100%;
}

#section_body table {
  width: 100%;
}

/* Si viene table dentro de figure.table del CKEditor */
#section_body figure.table,
#section_body .table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

/* Header de página */


/* Breadcrumb más pequeño y con aire */
.page-head {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.page-head .breadcrumb {
  margin-bottom: 1rem;
}

.page-head .page-title {
  margin-top: 0.5rem;
}

/* Título más controlado (no tan pegado arriba) */
.page-title {
  font-weight: 600;
  letter-spacing: -0.3px;
}


/* En pantallas grandes, que no sea exagerado */
@media (min-width: 992px) {
  .page-title {
    font-size: 2rem;
  }
}


/* Contenido editor */
#section_body {
  font-size: 1rem;
  line-height: 1.7;
}

/* Espaciado consistente */
#section_body p {
  margin: 0 0 1rem;
}

#section_body h2 {
  margin: 1.5rem 0 .75rem;
  font-size: 1.35rem;
}

#section_body h3 {
  margin: 1.25rem 0 .5rem;
  font-size: 1.15rem;
}

#section_body ul,
#section_body ol {
  margin: 0 0 1rem 1.25rem;
}

#section_body li {
  margin-bottom: .35rem;
}

/* Imágenes y tablas no rompen */
#section_body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

#section_body figure {
  max-width: 100%;
}

#section_body figure.table,
#section_body .table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

#section_body table {
  width: 100%;
}


/*SEARCH*/
.offer-desc {
  max-height: 6.5em;
  overflow: hidden;
}

.offers-list img {
  height: 170px  !important;
  width: 170px  !important;
  object-fit: cover;
  display: block;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.subtitulo-2 {
  color: #222221;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.icetex-footer__social img {
  width: 25px;
  padding: 0 5px 0 5px;
}

/* --- FOOTER SOCIAL GRID --- */
.icetex-footer__social {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.icetex-footer__social-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 10px 18px;
  align-items: center;
}

.icetex-footer__social-link {

  align-items: center;
  gap: 2px;
  text-decoration: none;
  font-size: 10px;
  color: #0B3D91;
  /* azul institucional */
  font-weight: 600;
  white-space: nowrap;
  padding-bottom: 10px;
  padding-right: 40px;
}

.icetex-footer__social-link:hover {
  text-decoration: underline;
}

.icetex-footer__social-link .fa {
  width: 18px;
  text-align: center;
  font-size: 15px;
  color: #0B3D91;
}

.icetex-footer__social-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.icetex-footer__social-tt {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icetex-footer__social-tt svg {
  display: block;
  fill: #0B3D91;
}

/* Responsive */
@media (max-width: 1200px) {
  .icetex-footer__social-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }
}

@media (max-width: 992px) {
  .icetex-footer__social-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 576px) {
  .icetex-footer__social-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}


/*OFFERS LIST*/
.offers-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.offers-meta {
  color: #4B5563;
  font-size: .95rem;
}

.offers-filters-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
}

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
}

.offer-card__title {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 6px 0;
}

.offer-card__title a {
  color: #0B3D91;
  text-decoration: none;
}

.offer-card__title a:hover {
  text-decoration: underline;
}

.offer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #4B5563;
  font-size: .9rem;
  margin-bottom: 8px;
}

.offer-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #EEF4FF;
  border: 1px solid rgba(11, 61, 145, .12);
  color: #0B3D91;
  font-weight: 700;
  font-size: .78rem;
}

.offer-desc {
  color: #4B5563;
  line-height: 1.55;
  margin: 0;
}

.offer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/*informative notes detail*/
.content-card,
.media-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #EEF4FF;
  border: 1px solid rgba(11, 61, 145, .12);
  color: #0B3D91;
  font-weight: 700;
  font-size: .82rem;
}

.rich-content img {
  max-width: 100%;
  height: auto;
}

.rich-content figure {
  max-width: 100%;
}

.rich-content table {
  width: 100%;
}

.rich-content ul,
.rich-content ol {
  padding-left: 1.2rem;
}

.rich-content a {
  color: #0B3D91;
}

/*INFORMATIVE NOTES LIST*/
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 576px) {
  .notes-grid {
    grid-template-columns: 1fr;
  }
}

.note-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.note-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #f3f4f6;
}

.note-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-card__title {
  font-weight: 800;
  font-size: 1rem;
  margin: 0;
}

.note-card__title a {
  color: #0B3D91;
  text-decoration: none;
}

.note-card__title a:hover {
  text-decoration: underline;
}

.note-card__meta {
  color: #4B5563;
  font-size: .85rem;
}

.note-card__excerpt {
  color: #4B5563;
  font-size: .92rem;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/*GLOSARIO*/
/* ===== Glosario – pulido visual ===== */
.glossary-card .card-body {
  padding: 16px 16px 14px;
}

.glossary-term {
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}

.glossary-definition {
  font-size: .92rem;
  line-height: 1.35rem;
}

/* truncado suave con fade */
.glossary-clamp {
  position: relative;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glossary-clamp::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

/* listas del contenido HTML (CKEditor) */
.glossary-definition ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: .5rem;
}

.glossary-definition ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin-bottom: .5rem;
}

.glossary-definition p {
  margin-bottom: .5rem;
}

.glossary-definition p:last-child {
  margin-bottom: 0;
}

/* acción */
.glossary-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}


/*css del template general*/
.list-toolbar {
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  padding-bottom: 12px;
}

.list-card {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 8px;
  transition: all .2s ease;
}

.list-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/**/
/* ===== Aliados – Cards institucionales ===== */
.allies-card {
  text-align: center;
  padding: 16px;
}

.allies-logo {
  width: 100%;
  height: 72px;
  object-fit: contain;
  margin-bottom: 12px;
}

.allies-name {
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.allies-meta {
  font-size: .875rem;
  color: #6c757d;
}

.allies-links a {
  text-decoration: none;
}

.allies-links a:hover {
  text-decoration: underline;
}

/* ===== Breadcrumb moderno (Bootstrap 5 compatible) ===== */
.page-head .breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.page-head .breadcrumb a {
  color: #6c757d;
  text-decoration: none;
}

.page-head .breadcrumb a:hover {
  text-decoration: underline;
}

.page-head .breadcrumb .active {
  color: #495057;
}
.section-title {
  font-weight: 700;
  color: #0B3D91;
  letter-spacing: -0.2px;
}

.page-body section {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.page-body section:last-child {
  border-bottom: none;
}
.rich-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #2b2b2b;
}
.content-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 18px;
  background: #fff;
}

/* ===== Offers Cards (compat) CSS: estilo para “vencida” (rojo institucional suave)===== */
.offer-card.is-expired{
  border: 1px solid rgba(220,53,69,.35);
  background: rgba(220,53,69,.03);
}
.offer-card .offer-badge-expired{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
  color:#dc3545;
  background: rgba(220,53,69,.10);
}

/*Cargando*/
.loading-overlay{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(2px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 2000;
}
.loading-box{
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px 16px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:#fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  font-weight:600;
}
#searchForm.is-loading { pointer-events:none; opacity:.75; }

/* ============================================================================
   HU58535 (WCAG 1.4.3 — Contraste de color)
   Widget lateral derecho (estilo ICETEX) + tema de ALTO CONTRASTE activable.
   El control vive en layout.js (existe en todas las paginas). El tema se aplica
   con body.high-contrast mediante un filtro INVERT (negativo) global (estilo
   ICETEX) que invierte TODO el contenido, imagenes incluidas (quedan en negativo).
   ============================================================================ */

/* --- Widget de accesibilidad (barra vertical fija al borde derecho) --- */
.a11y-widget {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.a11y-widget__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  padding: 10px 4px;
  border: none;
  background: #06357a;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, .25);
  transition: background-color .15s ease;
}

.a11y-widget__label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Lector del nivel de texto actual (100%..200%) entre A- y A+. No es un boton:
   solo muestra el porcentaje vigente (apoyo visual del criterio HU58536). */
.a11y-widget__level {
  align-self: stretch;
  text-align: center;
  padding: 5px 4px;
  background: #04265a;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, .25);
}

.a11y-widget__btn:hover,
.a11y-widget__btn:focus {
  background: #04265a;
}

/* estado activo: ademas del color, invierte fondo (cue no dependiente solo del color) */
.a11y-widget__btn[aria-pressed="true"] {
  background: #ffbf00;
  color: #000;
}

@media (max-width: 576px) {
  .a11y-widget__btn { width: 46px; font-size: 1.05rem; }
  .a11y-widget__label { display: none; }
}

/* Botones A-/A+ deshabilitados en el limite (100% no reduce, 200% no aumenta):
   se atenuan y bloquean el cursor -> cue visual del tope (no solo por color). */
.a11y-widget__btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ============================================================================
   HU58536 (WCAG 1.4.4 — Cambio de tamaño del texto)
   Controles A-/A+ del widget: escalan el CONTENIDO de 100% a 200% en pasos de
   25% mediante la variable --a11y-zoom (la fija layout.js y persiste en
   localStorage). Se usa `zoom` — y no solo font-size en la raiz — porque el
   contenido mezcla px, rem y em; `zoom` los escala TODOS de forma uniforme y
   REFLUYE el texto (sin scroll horizontal), cumpliendo "hasta 200% sin perder
   contenido ni funcionalidad". Se aplica a los HIJOS DIRECTOS de <body> EXCEPTO
   el widget y el skip link, que deben quedar a tamano real (igual criterio de
   exclusion que el filtro de alto contraste). --a11y-zoom por defecto = 1 (sin
   efecto) hasta que el usuario aumente la letra. */
body > *:not(.a11y-widget):not(.skip-link) {
  zoom: var(--a11y-zoom, 1);
}

/* ----------------------------------------------------------------------------
   HU58536 — Anti-solapamiento al ampliar el texto (Bug60310 @200% / Bug60334 @150%)
   `zoom` escala px y texto por igual, PERO los anchos en `vw` (ej. la caja del
   hero `min(900px,92vw)`) NO escalan con zoom: el texto envuelve en mas lineas y
   desborda cualquier caja de ALTURA FIJA o con hijos en `position:absolute`. Aqui
   se relajan esas alturas fijas y los recortes (`nowrap`, `line-clamp`,
   `max-height`, `overflow:hidden`) SOLO cuando el usuario amplio la letra
   (`body.a11y-zoomed`, la marca layout.js si escala > 100%). Asi la vista al 100%
   queda intacta y el contenido ampliado refluye sin solaparse (WCAG 1.4.4 / 1.4.10).
   ------------------------------------------------------------------------- */

/* 1) HOME — Banner/carrusel: el slide crece con el caption en vez de recortarlo.
   El caption pasa a flujo (relative) para que su alto empuje el del slide. */
body.a11y-zoomed .home-hero .carousel-item {
  height: auto;
  min-height: 520px;
  overflow: visible;
}
body.a11y-zoomed .home-hero .carousel-caption {
  position: relative;
  inset: auto;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* 2) HOME — Pastilla "Reproduciendo": que la etiqueta pueda envolver (no nowrap)
   para no montarse sobre los controles/caption del carrusel. */
body.a11y-zoomed .home-hero .carousel-playpause__status {
  white-space: normal;
  line-height: 1.2;
}

/* 3) HOME — Tarjeta de filtros: quitar el tiron negativo que la solapa con el
   hero cuando ambos crecen. */
body.a11y-zoomed .home-section--filters {
  margin-top: 0;
}

/* 4) HOME + BUSCADOR/HISTORIAL — Formulario de filtros (Nivel academico, Tipo de
   oferta, Area de conocimiento, Modalidad). Las etiquetas dejan de pegarse al
   control y los <select>/Tom Select crecen y envuelven el texto largo (ej.
   "Credito educativo reembolsable") en vez de encimarlo. */
body.a11y-zoomed .form-label {
  margin-bottom: .5rem;
  line-height: 1.3;
}
body.a11y-zoomed .form-select,
body.a11y-zoomed .ts-control {
  height: auto;
  min-height: calc(1.5em + .75rem + 2px);
}
body.a11y-zoomed .ts-control {
  flex-wrap: wrap;
}
body.a11y-zoomed .ts-control > .item,
body.a11y-zoomed .ts-dropdown .option {
  white-space: normal;
}
/* No forzar el fondo de columnas a alinearse abajo: una etiqueta de 2 lineas
   empujaba su control a la fila siguiente. */
body.a11y-zoomed .home-section--filters .row.align-items-end {
  align-items: flex-start !important;
}
/* Que el texto del <select> no se monte con la flecha al ampliar. */
body.a11y-zoomed .form-select {
  text-overflow: ellipsis;
}

/* 4 bis) WIDGET de accesibilidad: es `position:fixed` a la derecha y NO se amplia,
   asi que al ampliar el contenido la ultima columna del buscador (u otro contenido
   a media altura) quedaba DEBAJO del widget. Se reserva a la derecha un hueco del
   ancho del widget para el contenido de la pagina; se divide por --a11y-zoom para
   que el hueco FISICO sea ~constante pese a que el contenido esta ampliado. Los
   fondos a sangre (nav/hero/footer) no se ven afectados: solo se corre el contenido
   interno de .container. */
body.a11y-zoomed main .container,
body.a11y-zoomed footer .container {
  padding-right: calc(96px / var(--a11y-zoom, 1));
}

/* 4 ter) BUSCADOR del home: al ampliar, pasar de 4 a 3 columnas por fila para que
   "Area de conocimiento" baje al inicio de la 2a fila (no apretada contra el
   widget de la derecha). Solo en desktop (lg+); en tablet/movil Bootstrap ya
   apila los campos. */
@media (min-width: 992px) {
  body.a11y-zoomed #homeFilters > [class*="col-"] {
    flex: 0 0 auto;
    width: 33.3333%;
    max-width: 33.3333%;
  }
}

/* 5) HOME — "Noticias destacadas" y tarjetas tipo banner: el titulo se muestra
   completo (sin -webkit-box/line-clamp) y las tarjetas con imagen+overlay crecen
   pasando la imagen y el overlay a flujo normal. */
body.a11y-zoomed .news-card__title {
  display: block;
}
body.a11y-zoomed .info-card,
body.a11y-zoomed .quick-card {
  height: auto;
  min-height: 170px;
  overflow: visible;
}
body.a11y-zoomed .info-card__img {
  position: relative;
  height: 180px;
}
body.a11y-zoomed .quick-card__img {
  position: relative;
  height: 130px;
}
body.a11y-zoomed .info-card__overlay {
  position: relative;
}
body.a11y-zoomed .quick-card__title {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 10px;
}
body.a11y-zoomed .info-card__overlay h3,
body.a11y-zoomed .quick-card__title {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

/* 5 bis) NAVBAR — CTA "Oferentes": al ampliar, los items del menu pueden envolver
   a varias filas en vez de que el CTA de la derecha quede cortado por el
   overflow-x:hidden global. */
body.a11y-zoomed .icetex-nav__list {
  flex-wrap: wrap;
  row-gap: 4px;
}

/* 6) FOOTER — "Redes sociales" (Facebook … Apple, Spotify): permitir que las
   etiquetas envuelvan en lugar de recortarse/encimarse (quita el nowrap). */
body.a11y-zoomed .icetex-footer__social-link {
  white-space: normal;
  padding-right: 20px;
}

/* 7) BUSCADOR/RESULTADOS y DETALLE DE LA OFERTA — no recortar la descripcion ni
   el contenido del acordeon govco al ampliar. */
body.a11y-zoomed .offer-desc {
  max-height: none;
  overflow: visible;
}
body.a11y-zoomed .govco-accordion,
body.a11y-zoomed .govco-accordion__item {
  overflow: visible;
}

/* --- TEMA ALTO CONTRASTE (estilo ICETEX: filtro calido + mayor contraste) ---
   En vez de redefinir color por color, se transforma TODO el contenido con un
   unico filtro (sepia + saturacion + contraste). Asi imagenes, footer, tarjetas,
   banderas y banners participan del MISMO efecto de forma uniforme, igual que el
   portal ICETEX (fondo durazno, caja de pie de pagina oscura, tinte calido).

   IMPORTANTE: el filtro NO se aplica al <body> directo, porque un ancestro con
   `filter` rompe `position: fixed` (el widget de accesibilidad se posicionaria
   respecto al body y se iria con el scroll). Se aplica a los HIJOS DIRECTOS de
   <body> (header, main, #app-footer) EXCEPTO el widget y el skip link, que deben
   quedar fijos y nitidos. */
body.high-contrast {
  background: #0d0d0d !important; /* fondo oscuro detras de los bloques invertidos */
}
/* invert(1) = NEGATIVO real (como ICETEX): los fondos claros pasan a oscuros, el
   texto a claro y las IMAGENES quedan en negativo. Se excluye el widget y el skip
   link, que deben quedar fijos y sin invertir. */
body.high-contrast > *:not(.a11y-widget):not(.skip-link) {
  filter: invert(1) contrast(1.04);
}

/* El widget de accesibilidad queda FUERA del filtro (fijo y nitido). En modo
   activo se resalta -> cue de estado ademas del color (WCAG 1.4.1). */
body.high-contrast .a11y-widget__btn,
body.high-contrast .a11y-widget__level {
  background: #000;
  color: #ffbf00;
}
body.high-contrast .a11y-widget__btn[aria-pressed="true"] {
  background: #ffbf00;
  color: #000;
}

/* Botones CTA en DORADO/MOSTAZA tipo ICETEX. Como el contenido esta invertido por
   el filtro, se define el color PRE-invertido: el azul #365dd8 tras invert(1) se
   ve como dorado ~#c9a227, y el texto #fff se ve negro. Acotado a .btn (no toca el
   acordeon, el carrusel ni el navbar-toggler, que no usan esa clase). */
body.high-contrast .btn,
body.high-contrast .btn-primary,
body.high-contrast .btn-govco {
  background-color: #365dd8 !important; /* -> dorado tras invert */
  border-color: #365dd8 !important;
  color: #ffffff !important;            /* -> negro tras invert */
}

/* hover/focus: ICETEX aclara el boton a crema/dorado claro. Pre-invertido: el azul
   oscuro #1a2a5c tras invert(1) se ve crema ~#e5d5a3 (texto sigue negro). */
body.high-contrast .btn:hover,
body.high-contrast .btn:focus,
body.high-contrast .btn-primary:hover,
body.high-contrast .btn-primary:focus,
body.high-contrast .btn-govco:hover,
body.high-contrast .btn-govco:focus {
  background-color: #1a2a5c !important; /* -> crema/dorado claro tras invert */
  border-color: #1a2a5c !important;
  color: #ffffff !important;            /* -> negro tras invert */
}

/* Bug59893 — Contraste del selector de "registros por pagina" en alto contraste.
   #pageSizeSelect es un <select> NATIVO (a diferencia de los combos de filtro,
   que usan TomSelect y renderizan su lista como HTML, por eso si participan del
   invert). Su lista desplegable la pinta el navegador y NO recibe el filtro
   invert del tema, por lo que en alto contraste quedaba como una caja BLANCA
   sobre el fondo oscuro: el control no adoptaba el contraste de la pagina
   (Aliados, Historial de ofertas, Glosario).

   Solucion: aplicarle un invert(1) PROPIO que anula el invert heredado del
   ancestro (doble invert = identidad). Asi el control Y su lista usan los
   colores reales definidos aqui -> fondo oscuro + texto/flecha claros, con
   contraste AA tanto en el boton como en las opciones. */
body.high-contrast #pageSizeSelect {
  filter: invert(1);
  background-color: #1b1b1b;
  color: #ffffff;
  border-color: #6c6c6c;
  /* flecha clara visible sobre fondo oscuro (reemplaza la flecha oscura de Bootstrap) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}
body.high-contrast #pageSizeSelect option {
  background-color: #1b1b1b;
  color: #ffffff;
}
body.high-contrast #pageSizeSelect:focus {
  border-color: #ffbf00;
  box-shadow: 0 0 0 .2rem rgba(255, 191, 0, .45);
}

/* Evitar que URLs largas se salgan del contenedor */
p a {
  overflow-wrap: anywhere;   /* lo parte donde sea */
  word-break: break-word;    /* fallback */
}