.ds-full-screen-loader{height:100vh;text-align:center;display:flex;justify-content:center;align-items:center;flex-direction:column}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(layers.ef6db8722c2c3f9a.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(layers-2x.9859cd1231006a4a.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(marker-icon.d577052aa271e13f.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.marker-cluster-small{background-color:#b5e28c99}.marker-cluster-small div{background-color:#6ecc3999}.marker-cluster-medium{background-color:#f1d35799}.marker-cluster-medium div{background-color:#f0c20c99}.marker-cluster-large{background-color:#fd9c7399}.marker-cluster-large div{background-color:#f1801799}.leaflet-oldie .marker-cluster-small{background-color:#b5e28c}.leaflet-oldie .marker-cluster-small div{background-color:#6ecc39}.leaflet-oldie .marker-cluster-medium{background-color:#f1d357}.leaflet-oldie .marker-cluster-medium div{background-color:#f0c20c}.leaflet-oldie .marker-cluster-large{background-color:#fd9c73}.leaflet-oldie .marker-cluster-large div{background-color:#f18017}.marker-cluster{background-clip:padding-box;border-radius:20px}.marker-cluster div{width:30px;height:30px;margin-left:5px;margin-top:5px;text-align:center;border-radius:15px;font:12px Helvetica Neue,Arial,Helvetica,sans-serif}.marker-cluster span{line-height:30px}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{transition:transform .3s ease-out,opacity .3s ease-in}.leaflet-cluster-spider-leg{transition:stroke-dashoffset .3s ease-out,stroke-opacity .3s ease-in}

/* ICPMX: ocultar Statistics del menú principal */
.navbar-nav .nav-item .nav-link[href$="/statistics"]{display:none!important;}
/* ICPMX: hide Statistics menu for public */
.navbar-nav a[href*="/statistics"],
[ng-reflect-router-link="/statistics"] {
  display: none !important;
}


/* ==== ICPMX: palette overrides (no tocar SSR, solo CSS) ==== */

/* Header / navbar */
.ds-header,
.navbar.navbar-expand-md {
  background-color: #003A5D !important;   /* Pantone 302 */
  border-bottom: 3px solid #00ACC8 !important;  /* turquesa */
}

.navbar.navbar-expand-md .navbar-nav .nav-link {
  color: #ffffff !important;
}

.navbar.navbar-expand-md .navbar-nav .nav-link:hover,
.navbar.navbar-expand-md .navbar-nav .nav-link:focus,
.navbar.navbar-expand-md .navbar-nav .nav-link.active {
  color: #63D0DF !important;              /* Pantone 3105 como highlight suave */
}

/* Botones primarios: Pantone 3155 con hover Pantone 3135 */
.btn-primary {
  background-color: #006072 !important;   /* Pantone 3155 */
  border-color: #006072 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #008AAB !important;   /* Pantone 3135 */
  border-color: #008AAB !important;
}

/* Botones outline usando misma lógica */
.btn-outline-primary {
  color: #006072 !important;              /* 3155 */
  border-color: #006072 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #006072 !important;
  border-color: #006072 !important;
  color: #ffffff !important;
}

/* Links: Pantone 3155 con hover 3135 */
a,
.link-primary {
  color: #006072 !important;              /* 3155 */
}

a:hover,
a:focus {
  color: #008AAB !important;              /* 3135 */
  text-decoration: underline;
}

/* Footer */
.footer,
.ds-footer {
  background-color: #003A5D !important;   /* 302 */
  color: #ffffff !important;
}

.footer a,
.ds-footer a {
  color: #63D0DF !important;              /* 3105 como acento */
}

.footer a:hover,
.ds-footer a:hover {
  color: #00ACC8 !important;              /* turquesa */
}

/* Badges y pequeños acentos */
.badge-primary,
.badge-info {
  background-color: #008AAB !important;   /* 3135 */
}

/* Tarjetas hover */
.card:hover,
.ds-card:hover {
  border-color: #63D0DF !important;       /* 3105 */
  box-shadow: 0 0.25rem 0.8rem rgba(0, 0, 0, 0.12);
}


/* ==== ICPMX: quitar verdes DSpace en footer, badges y franja ==== */

/* Footer: barra inferior */
.footer,
.footer .navbar,
.ds-footer,
.ds-footer .navbar {
  background-color: #003A5D !important;   /* Pantone 302 */
  color: #ffffff !important;
}

.bg-success {
  background-color: #006072 !important;   /* Pantone 3155 */
}

/* Franja sobre el banner: aseguramos que no quede verde */
.ds-header,
.navbar.navbar-expand-md {
  border-top: 0 !important;
  border-bottom: 3px solid #00ACC8 !important;  /* turquesa ICPMX */
}


/* ==== ICPMX: admin sidebar y botones de acción ==== */

/* Admin sidebar (menú oscuro de la izquierda) */
.admin-sidebar {
  background-color: #003A5D !important;   /* Pantone 302 */
}

.admin-sidebar .nav-link {
  color: #ffffff !important;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link:focus {
  color: #63D0DF !important;              /* Pantone 3105 */
}

/* Botoncitos tipo "Item", iconos verdes, etc. */
.badge,
.badge-success {
  background-color: #006072 !important;   /* Pantone 3155 */
  border-color: #006072 !important;
  color: #ffffff !important;
}

/* Cualquier botón/elemento con estilo "success" en verde */
.btn-success,
.bg-success {
  background-color: #006072 !important;   /* 3155 */
  border-color: #006072 !important;
  color: #ffffff !important;
}


/* ==== ICPMX: ocultar texto del banner principal de DSpace ==== */
/* Solo esconde la caja de texto sobre la imagen, sin tocar el banner ni SSR */

.background-image-container .jumbotron {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Ajuste mínimo por si quedaba espacio extra arriba */
.background-image-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ICPMX: restaurar altura del banner y ocultar crédito @inspiredimages */
.background-image-container {
  padding-top: 4rem !important;
  min-height: 420px !important;
}

.background-image-container .credits,
.background-image-container small.credits {
  display: none !important;
}

/* ICPMX: restaurar altura del banner y ocultar crédito @inspiredimages */
.background-image-container {
  padding-top: 4rem !important;
  min-height: 420px !important;
}

.background-image-container .credits,
.background-image-container small.credits {
  display: none !important;
}

/* ICPMX: banner full-height responsive (versión bonita) */
.background-image-container {
  padding-top: 4rem !important;
  min-height: 45vh !important;
}

.background-image-container .background-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

.background-image-container .background-image img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
}

/* ==== ICPMX: fuerza paleta institucional en footer, header y badges ==== */

/* Footer y barra inferior */
body .footer,
body .ds-footer,
body footer.footer {
  background-color: #003A5D !important;  /* Pantone 302 */
  color: #ffffff !important;
}

body .footer a,
body .ds-footer a {
  color: #63D0DF !important;             /* Pantone 3105 */
}

body .footer a:hover,
body .ds-footer a:hover {
  color: #00ACC8 !important;             /* Pantone 3125 */
}

/* Línea de color bajo el header */
body .ds-header,
body .navbar.navbar-expand-md {
  border-top: 0 !important;
  border-bottom: 3px solid #00ACC8 !important;  /* turquesa ICPMX */
}

/* Badges "Item" y cualquier success verde */
body .badge-success,
body .badge.text-bg-success,
body .badge.bg-success,
body .badge-success.badge {
  background-color: #006072 !important;  /* Pantone 3155 */
  border-color: #006072 !important;
  color: #ffffff !important;
}

/* Botones success */
body .btn-success {
  background-color: #006072 !important;  /* Pantone 3155 */
  border-color: #006072 !important;
  color: #ffffff !important;
}

body .btn-success:hover,
body .btn-success:focus {
  background-color: #008AAB !important;  /* Pantone 3135 */
  border-color: #008AAB !important;
}


/* ICPMX: quitar barra y recuadros verdes restantes */

/* Barra verde bajo el menú (header navbar-wrapper) */
.ds-header-navbar-wrapper {
  border-bottom: 3px solid #00ACC8 !important;  /* turquesa ICPMX */
}

/* Cuadrito verde (iconos tipo badge junto a las comunidades, RSS, etc.) */
.badge-success,
.bg-success {
  background-color: #006072 !important;  /* Pantone 3155 */
  border-color: #006072 !important;
  color: #ffffff !important;
}

/* ICPMX: botones secundarios (RSS, etc.) en paleta ICPMX */
.btn-secondary {
  background-color: #006072 !important;   /* 3155 */
  border-color:     #006072 !important;
  color: #ffffff !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #008AAB !important;   /* 3135 */
  border-color:     #008AAB !important;
  color: #ffffff !important;
}

/* ICPMX: colores del paginado (números de página) */
:root {
  --bs-pagination-color:        #006072;  /* texto enlaces */
  --bs-pagination-hover-color:  #008AAB;
  --bs-pagination-active-bg:    #006072;  /* fondo número activo */
  --bs-pagination-active-border-color: #006072;
}

/* Forzar estilos por si Bootstrap ignora las vars en algún caso */
.pagination .page-item.active .page-link,
.page-link.active {
  background-color: #006072 !important;
  border-color:     #006072 !important;
  color: #ffffff !important;
}

.pagination .page-link,
.page-link {
  color: #006072 !important;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
  color: #008AAB !important;
}

/* ICPMX: mejorar contraste del menú de administración (sidebar) */
.admin-sidebar a,
.admin-sidebar .ds-menu-item,
.admin-sidebar .ds-menu-item a {
  color: #ffffff !important;          /* texto normal blanco */
}

.admin-sidebar a:hover,
.admin-sidebar a:focus,
.admin-sidebar .ds-menu-item a:hover,
.admin-sidebar .ds-menu-item a:focus {
  color: #63D0DF !important;          /* azul claro ICPMX al pasar el mouse */
  text-decoration: none !important;
}

/* ICPMX: mejorar contraste de texto/iconos en sidebar de administración */
.admin-sidebar a,
.admin-sidebar .ds-admin-sidebar-link {
  color: #ffffff !important;           /* texto e iconos blancos */
}

.admin-sidebar a:hover,
.admin-sidebar a:focus,
.admin-sidebar .ds-admin-sidebar-link:hover {
  color: #63D0DF !important;           /* azul clarito ICPMX al pasar el mouse */
}

/* ICPMX: color para pestañas / tabs activos (Browse, filtros, etc.) */
.list-group-item.active {
  background-color: #006072 !important;  /* teal ICPMX */
  border-color: #006072 !important;
  color: #ffffff !important;
}

/* ICPMX: estilo para recuadros de aviso tipo "info" (Browse) */
.alert-info {
  background-color: #E6F7FA !important;  /* fondo azul clarito */
  border-color: #00ACC8 !important;      /* turquesa ICPMX */
  color: #003A5D !important;             /* texto azul oscuro */
}

/* ICPMX: color de texto en menús contextuales oscuros */
.ds-menu-item,
.ds-menu-item:visited {
  color: #63D0DF !important;   /* azul claro ICPMX */
}

.ds-menu-item:hover,
.ds-menu-item:focus {
  color: #FFFFFF !important;   /* blanco al pasar el mouse */
}

/* ICPMX: unificar color de texto en la barra lateral de administración */
.admin-sidebar,
.admin-sidebar a,
.admin-sidebar .nav-link,
.admin-sidebar .sidebar-section-wrapper,
.admin-sidebar .sidebar-section-wrapper span,
.admin-sidebar .sidebar-section-wrapper i {
  color: #FFFFFF !important;
}

.admin-sidebar a:hover,
.admin-sidebar a:focus,
.admin-sidebar .sidebar-section-wrapper:hover span {
  color: #63D0DF !important;  /* azul claro ICPMX */
}

/* ICPMX: forzar color uniforme en links de la barra lateral de administración */
nav#admin-sidebar {
  --ds-admin-sidebar-link-color: #FFFFFF;
}

nav#admin-sidebar a,
nav#admin-sidebar .nav-link {
  color: #FFFFFF !important;
}

nav#admin-sidebar a:hover,
nav#admin-sidebar a:focus {
  color: #63D0DF !important;  /* azul claro ICPMX */
}

/* ICPMX: hacer más alto el banner solo en pantallas grandes */
@media (min-width: 1200px) {
  .background-image-container {
    min-height: 70vh !important;
  }
}

/* ===== ICPMX: ajustes responsive header/footer (móvil / tablet) ===== */
@media (max-width: 768px) {

  /* HEADER: que pueda crecer en alto y envolver contenido */
  .ds-header-navbar-wrapper,
  .ds-header,
  .navbar.navbar-expand-md {
    height: auto !important;
    min-height: 0 !important;
  }

  .ds-header-navbar-wrapper .navbar-nav {
    flex-wrap: wrap !important;
  }

  .ds-header-navbar-wrapper .navbar-nav .nav-item {
    flex: 0 0 100%;
    text-align: center;
  }

  /* FOOTER: que el texto no se corte y se pueda ver en varias filas */
  .footer,
  .ds-footer {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .footer .navbar,
  .ds-footer .navbar {
    flex-wrap: wrap !important;
    height: auto !important;
  }

  .footer .navbar-nav .nav-item,
  .ds-footer .navbar-nav .nav-item {
    flex: 0 0 100%;
    text-align: center;
  }
}

/* ===== ICPMX: footer móvil (teléfonos) ===== */
@media (max-width: 576px) {

  /* Footer en columna, sin cortes ni scroll raro */
  .footer,
  .ds-footer {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .footer .navbar,
  .ds-footer .navbar {
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    height: auto !important;
  }

  .footer .navbar-nav,
  .ds-footer .navbar-nav {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  .footer .navbar-nav .nav-item,
  .ds-footer .navbar-nav .nav-item {
    flex: 0 0 auto !important;
    text-align: center !important;
    padding: 0.15rem 0 !important;
  }

  .footer .navbar-nav .nav-link,
  .ds-footer .navbar-nav .nav-link {
    white-space: normal !important;   /* que pueda hacer salto de línea */
    line-height: 1.3 !important;
  }
}

/* ===== ICPMX: footer móvil en 2 columnas ===== */
@media (max-width: 576px) {

  .footer .navbar-nav,
  .ds-footer .navbar-nav {
    flex-wrap: wrap !important;
  }

  .footer .navbar-nav .nav-item,
  .ds-footer .navbar-nav .nav-item {
    flex: 0 0 50% !important;   /* 2 columnas */
    max-width: 50% !important;
    text-align: center !important;
    padding: 0.15rem 0 !important;
  }
}

/* ===== ICPMX: footer móvil en 2 columnas (forzado) ===== */
@media (max-width: 576px) {

  /* Forzamos que la lista pueda hacer wrap */
  .footer .navbar-nav.navbar-nav,
  .ds-footer .navbar-nav.navbar-nav {
    flex-wrap: wrap !important;
  }

  /* Cada item ocupa 50% (2 columnas) */
  .footer .navbar-nav .nav-item.nav-item,
  .ds-footer .navbar-nav .nav-item.nav-item {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    text-align: center !important;
    padding: 0.15rem 0 !important;
  }
}

/* ===== ICPMX: footer móvil (1 enlace por fila, sin scroll) ===== */
@media (max-width: 576px) {

  footer.bottom-footer,
  .bottom-footer {
    overflow-x: hidden !important;
  }

  /* Contenedor de los enlaces del footer */
  footer.bottom-footer .navbar-nav,
  footer.bottom-footer .nav,
  footer.bottom-footer ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    padding-left: 0 !important;
    margin: 0 !important;
  }

  /* Cada <li> ocupa todo el ancho */
  footer.bottom-footer li {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    list-style: none !important;
    text-align: center !important;
  }

  /* El enlace como bloque centrado */
  footer.bottom-footer a {
    display: block !important;
    padding: 0.25rem 0 !important;
  }
}

/* ICPMX: footer responsive en móvil (2 columnas) */
@media (max-width: 576px) {
  .bottom-footer .content-footer-info {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .bottom-footer .content-footer-info > li {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    text-align: center !important;
    margin-bottom: 0.25rem !important;
  }

  .bottom-footer .content-footer-info > li a {
    display: inline-block !important;
    white-space: normal !important;
    line-height: 1.2;
    padding: 0.15rem 0.25rem !important;
  }
}
