/* Estilos para el custom layout */
.custom-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  margin: 0px 20px;
  justify-content: center;
}

.left-block,
.right-block,
.right-ini-block {
  min-width: 224px;
  flex-shrink: 1;
  padding: 5px;  
}

.right-ini-block,
.left-ini-block {
  min-width: 195px !important;
}

.center-block {
  flex: 1 1 auto;
  padding: 16px;
  max-width: 1500px;
}


.center-ini-block {
  max-width: 775px !important;
}

@media (max-width: 1200px) {
  .custom-layout {
    display: block;
  }

  .right-block {
    display: none;
  }

  .breadcrumbs {
    display: none;
  }

  .left-block,
  .center-block {
    width: 100%;
    margin-bottom: 16px;
  }
}

@media (max-width: 1400px) {
  .center-block {
    max-width: 800px;
  }
}

@media (min-width: 1400px) {
  .row.sectionBlockLayout > .container, .row.sectionBlockLayout > .container-lg, .row.sectionBlockLayout > .container-md, .row.sectionBlockLayout > .container-sm, .row.sectionBlockLayout > .container-xl, .row.sectionBlockLayout > .container-xxl {
      max-width: 100% !important;
  }
}

@media (min-width: 768px) {
  .row.sectionBlockLayout > .container, .row.sectionBlockLayout > .container-md, .row.sectionBlockLayout > .container-sm
  {
    max-width: 100% !important;
  }
}

.header-content-layout {
  margin-left: 20px;
}

/* Estilos para el breadcrumb */
.breadcrumb {
  padding: 8px 15px 8px 0px;
}
.breadcrumb ul li:first-child {
  padding-left: 0px;
}
.breadcrumb li a {
  margin-left: 0px !important;
}

.header-breadcrumb {
  display: flex;
  flex-direction: row;
  gap: 6px;
  margin-right: 5px;
}

  .header-breadcrumb img {
    width: 10px;
    height: 10px;
    margin-top: 7px;
  }

  .header-breadcrumb p {
    margin-top: 2px;
  }


/* Estilos para el sidebar de la izquierda */
/*Estilo del contenedor del sidebar*/
.div-sidebar-left {
  background: var(--portalThemeColor5);
  padding: 10px;
  border-radius: 10px;
  margin-top: 54px;
}

/* Estilo para la cabecera */
.header-left-sidebar, 
.header-right-sidebar {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 20px;
}

  .header-left-sidebar img,
  .header-right-sidebar img {
    width: 13px;
    height: 13px;
    margin-top: 4px;
  }

  .header-left-sidebar h2,
  .header-right-sidebar h2 {
    margin-top: 0px;
  }


.left-block nav.list-group {
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.left-block a {
  font-size: 13px;
}


.left-block nav.list-group ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.left-block nav.list-group > ul > li {
  padding: 4px 0;
  border-bottom: 1px dotted #ccc;
}

.left-block nav.list-group li img {
  vertical-align: middle;
  margin-right: 4px;
}

.left-block nav.list-group a {
  text-decoration: none;
}

/* Negrita para el enlace activo */
.left-block nav.list-group a[style*="font-weight: bold"] {
  color: #000;
}

.left-block :not(.btn):hover {
    text-decoration: none !important;
}

/* Estructura de <details> */
.left-block details {
  padding: 4px 0;
}

.left-block details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--portalThemeColor2);
}

/* Lista dentro del details */
.left-block details ul {
  list-style-type: none;
  padding-left: 20px;
  margin: 4px 0;
}

.left-block details ul li {
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 14px;
  padding-bottom: 5px;
  border-bottom: 1px dotted #ccc;
  color: var(--portalThemeColor12)
}
  .left-block details ul li:last-child {
    border-bottom: none;
  }

/* Estilos para el sidebar de la derecha */
.right-ini-block {
  margin-top: 54px;
}

.right-block nav,
.right-ini-block nav {
  background: var(--portalThemeColor5);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.right-block nav ul,
.right-ini-block nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.right-block nav li,
.right-ini-block nav li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 8px;
  border-bottom: 1px solid #ddd;
}

.social-elementlist {
  width: auto !important;
  border-bottom: none !important;
}

.right-block nav li:last-child {
  border-bottom: none;
}

.right-block nav li img,
.right-ini-block li img {
  width: 12px;
  height: 10px;
  margin-top: 3px;
}

.social-icon {
  width: 41px !important;
  height: 40px !important;
}

.right-block nav a,
.right-ini-block nav a {
  text-decoration: none;
  font-weight: bold;
  line-height: 1.4;
  font-size: 13px;
}

/* Estilos botón de búsqueda */
.custom-search-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  margin-top: 54px;
  width: 100%;
  max-width: 100%;
}

.custom-search-form input[type="text"] {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #aaa;
  font-weight: bold;
  border-radius: 2px;
  flex-grow: 1;
  min-width: 0;
}

.custom-search-form button {
  padding: 5px 8px;
  background-color: var(--portalThemeColor4);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.custom-search-form button:hover {
  background-color: #004a94;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

/* Estilos para el carrusel*/
.carousel-contaniner {
    max-width: 100%;
    justify-content: center;
    display: flex;
}

#carouselId {
  max-width: 1280px;
}

