/* --------------------------------------------- */
/* Estilos navbar */
/* --------------------------------------------- */

.mi-navbar {
  backdrop-filter: blur(5px);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: none !important;
}

.mi-navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

/* --------------------------------------------- */
/* Tema Claro */
/* --------------------------------------------- */

[data-bs-theme="light"] {
  --mi-text-color: #333;
  --mi-text-hover: #000;
  --mi-active-bg: rgba(211, 162, 26, 0.6);
  --mi-active-text: #fff;
  --mi-navbar-bg: rgba(255, 255, 255, 0.9);
  --mi-border-color: #ddd;
}

[data-bs-theme="light"] .mi-navbar {
  background-color: var(--mi-navbar-bg);
}

[data-bs-theme="light"] .nav-link {
  color: var(--mi-text-color);
}

[data-bs-theme="light"] .nav-link:hover {
  color: var(--mi-text-hover);
  background-color: rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .nav-link.active {
  background-color: var(--mi-active-bg);
  color: var(--mi-active-text);
  font-weight: 600;
}

/* --------------------------------------------- */
/* Tema Oscuro */
/* --------------------------------------------- */

[data-bs-theme="dark"] {
  --mi-text-color: #f8f9fa;
  --mi-text-hover: #f8f9fa;
  --mi-active-bg: rgba(211, 162, 26, 0.6);
  --mi-active-text: #fff;
  --mi-navbar-bg: #212529;
  --mi-border-color: #444;
}

[data-bs-theme="dark"] .mi-navbar {
  background-color: var(--mi-navbar-bg);
  border-bottom: 1px solid #333;
}

[data-bs-theme="dark"] .nav-link {
  color: var(--mi-text-color);
}

[data-bs-theme="dark"] .nav-link:hover {
  color: var(--mi-text-hover);
  background-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .nav-link.active {
  background-color: var(--mi-active-bg);
  color: var(--mi-active-text);
  font-weight: 600;
}

/* --------------------------------------------- */
/* Inicio */
/* --------------------------------------------- */

/*Contenedor dividido*/

.contenedor-dividido {
  display: flex;
  min-height: 60vh;
}

.izquierda {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.logo {
  max-height: 150px;
  width: auto;
  margin-bottom: 1rem;
}

.izquierda h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  padding: 0 1rem;
  margin: 0;
}

.derecha {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  margin: 1rem;
}

.carousel {
  width: 100%;
  height: cover;
  margin: 0;
}

.carousel-inner {
  height: 500px;
  position: relative;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.carousel-item.active {
  position: relative;
  opacity: 1;
  z-index: 1;
}

.carousel-item-next.carousel-item-start,
.carousel-item-prev.carousel-item-end {
  opacity: 1;
  z-index: 1;
}

.carousel-item-next,
.carousel-item-prev {
  display: block !important;
}

.carousel-item img {
  max-width: cover;
  height: 500px;
  object-fit: contain;
  object-position: center;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  justify-content: center;
  margin: 0;
  gap: 8px;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 6px;
  background-color: rgba(211, 162, 26, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.3);
  margin: 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.carousel-indicators .active {
  background-color: rgba(211, 162, 26, 0.9);
}

.carousel-control-prev,
.carousel-control-next {
  background-color: rgba(0, 0, 0, 0.808);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: 50%;
}

/* --------------------------------------------- */
/* Inicio - teléfono */
/* --------------------------------------------- */

@media (max-width: 768px) {
  .contenedor-dividido {
    flex-direction: column;
    min-height: auto;
  }

  .izquierda {
    padding: 2rem 1rem;
  }

  .derecha {
    height: 50vh;
  }

  .logo {
    max-height: cover;
  }
}

/* --------------------------------------------- */
/* Revista Rikusun */
/* --------------------------------------------- */

.revista-rikusun h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(211, 162, 26, 0.5);
}

.revista-rikusun {
  border-radius: 8px;
  will-change: contents;
}

/* Scroll horizontal - revista */

.revistas-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: auto;
  scrollbar-color: rgba(211, 162, 26, 0.5) transparent;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
}

.revistas-container {
  display: inline-flex;
  gap: 1rem;
  padding: 0 0.5rem;
  backface-visibility: hidden;
}

/* Revistas */

.revista-item {
  display: inline-block;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
  will-change: transform;
}

.revista-item:hover {
  transform: scale(1.05);
  z-index: 1;
}

.img-revista {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
}

/* Scrollbar personalizado */

.revistas-scroll::-webkit-scrollbar {
  height: 8px;
}

.revistas-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(211, 162, 26, 0.5);
  border-radius: 4px;
}

.revistas-scroll::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.05);
}

/* --------------------------------------------- */
/* Actividades y Comunicaddos - Cursos */
/* --------------------------------------------- */

.cursos-contenedor h3,
.actividades-contenedor h3 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(211, 162, 26, 0.5);
}

.cursos-contenedor,
.actividades-contenedor {
  position: relative;
}

.cursos-scroll,
.actividades-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: auto;
  scrollbar-color: rgba(211, 162, 26, 0.5) transparent;
  padding: 1rem 0;
  scroll-behavior: smooth;
  margin-bottom: 1rem;
}

.cursos-container,
.actividades-container {
  display: flex;
  gap: 1rem;
}

/* Cards de Actividades y Cursos */

.curso-card,
.actividades-card {
  display: inline-block;
  flex: 0 0 auto;
  width: 300px;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.curso-card:hover,
.actividades-card:hover {
  transform: translateY(-5px);
}

/* Configuracion general para todas las card */

.card-img-top {
  height: 160px;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-text {
  flex-grow: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Flechas de navegación index */

.cursos-prev,
.actividades-prev,
.cursos-next,
.actividades-next {
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.808);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: 50%;
}

/* Scrollbar personalizado */
.cursos-scroll::-webkit-scrollbar,
.actividades-scroll::-webkit-scrollbar {
  height: 8px;
}

.cursos-scroll::-webkit-scrollbar-thumb,
.actividades-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(211, 162, 26, 0.5);
  border-radius: 4px;
}

.cursos-scroll::-webkit-scrollbar-track,
.actividades-scroll::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Modal Cursos */

#cursos_modal .modal-content {
  border-radius: 10px;
  border: none;
}

#cursos_modal .modal-header {
  border-bottom: 1px solid var(--mi-border-color);
  background-color: var(--mi-active-bg);
  color: #333;
}

#cursos_modal .modal-body {
  padding: 2rem;
  background-color: var(--mi-navbar-bg);
  color: var(--mi-text-color);
}

#cursos_modal .modal-footer {
  border-top: 1px solid var(--mi-border-color);
  background-color: var(--mi-navbar-bg);
}

/* Modo oscuro para el modal */

[data-bs-theme="dark"] #cursos_modal .modal-header {
  background-color: rgba(211, 162, 26, 0.8);
}

[data-bs-theme="dark"] #cursos_modal .modal-body,
[data-bs-theme="dark"] #cursos_modal .modal-footer {
  background-color: #2c3034;
}

/* Responsive Actividades y Cursos */

@media (max-width: 768px) {
  .curso-item,
  .actividades-item {
    width: 280px;
  }

  .cursos-container,
  .actividades-container {
    gap: 1rem;
    padding: 0;
  }

  .cursos-prev,
  .actividades-prev,
  .cursos-next,
  .actividades-next {
    display: none; /* Ocultar flechas */
  }
}

/* Aliados Institucionales */

.aliados-contenedor h3 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(211, 162, 26, 0.5);
}

.aliados-contenedor .row {
  align-items: center;
  justify-content: center;
}

.aliados-contenedor .col {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.aliados-contenedor img {
  max-width: 180px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.aliados-contenedor {
  position: relative;
}

[data-bs-theme="dark"] .aliados-contenedor img {
  filter: grayscale(100%) invert(1);
}

/* filter: invert(1) brightness(1)*/

/* Marca de agua (k-sketch) */

.marca_de_agua {
  position: relative;
  text-align: end;
  padding: 10px 20px;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
}

[data-bs-theme="dark"] .marca_de_agua {
  color: rgba(255, 255, 255, 0.3);
}

/* Estilos para móviles */
@media (max-width: 768px) {
  .marca_de_agua {
    text-align: center;
    width: 100%;
  }
}

/* --------------------------------------------- */
/* Informacion */
/* --------------------------------------------- */

.informacion-container {
  display: flex;
  min-height: calc(100vh - 90px);
  overflow: hidden;
}

.row.h-100 {
  display: flex;
  flex: 1;
  margin: 0;
}

#navbar_informacion {
  background-color: var(--mi-navbar-bg);
  backdrop-filter: blur(5px);
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--mi-border-color);
  height: fit-content;
  position: sticky;
  top: 30px;
  align-self: flex-start;
  margin-right: 1rem;
  max-height: 80vh;
  overflow-y: auto;
}

#navbar_informacion .nav-pills .nav-link {
  background: transparent;
  color: inherit;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
}

#navbar_informacion .nav-pills .nav-link.active,
#navbar_informacion .nav-pills .show > .nav-link {
  background-color: transparent !important;
  color: inherit !important;
  font-weight: normal;
}

/*Contenido de informacion*/

.scrollspy-container-informacion {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  max-height: calc(100vh - 90px);
  background-color: var(--mi-navbar-bg);
}

.scrollspy-informacion {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem;
  scroll-margin-top: 100px;
  scroll-behavior: smooth;
}

.scrollspy-informacion h4 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--mi-text-color);
  border-bottom: 2px solid rgba(211, 162, 26, 0.5);
  padding-bottom: 0.5rem;
}

.scrollspy-informacion::-webkit-scrollbar {
  width: 8px;
}

.scrollspy-informacion::-webkit-scrollbar-thumb {
  background-color: rgba(211, 162, 26, 0.5);
  border-radius: 4px;
}

.scrollspy-informacion::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.05);
}

/*Mapa responsive*/

.mapa-responsive {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mapa-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

#Contacto .list-group-item a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

#Contacto .list-group-item a:hover {
  color: rgba(211, 162, 26, 1);
}

/* Modo claro informacion */

[data-bs-theme="light"] #navbar_informacion .nav-link:hover {
  color: var(--mi-text-hover);
  box-shadow: inset 0 -2px 0 rgba(211, 162, 26, 0.7);
  transition: box-shadow 0.3s ease;
}

/* Modo oscuro informacion*/

[data-bs-theme="dark"] #navbar_informacion .nav-link:hover {
  color: var(--mi-text-hover);
  box-shadow: inset 0 -2px 0 rgba(211, 162, 26, 0.7);
  transition: box-shadow 0.3s ease;
}

[data-bs-theme="dark"] .list-group-item {
  background-color: #2c3034;
  border-color: #444;
}

[data-bs-theme="dark"] .scrollspy-informacion,
[data-bs-theme="dark"] .list-group-item {
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .scrollspy-informacion::-webkit-scrollbar-thumb {
  background-color: rgba(211, 162, 26, 0.7);
}

[data-bs-theme="dark"] .scrollspy-informacion::-webkit-scrollbar-track {
  background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .mapa-responsive iframe {
  filter: grayscale(20%) invert(100%) hue-rotate(200deg) contrast(85%)
    brightness(90%) saturate(75%);
}

[data-bs-theme="dark"] #Contacto .list-group-item a {
  color: rgb(89, 219, 169);
}

[data-bs-theme="dark"] #Contacto .list-group-item a:hover,
[data-bs-theme="dark"] .scrollspy-informacion h4 {
  color: rgba(211, 162, 26, 1);
}

/* Responsive informacion telefono */

@media (max-width: 992px) {
  .informacion-container {
    flex-direction: column;
    min-height: auto;
    padding: 0;
  }

  #navbar_informacion {
    position: static;
    top: auto;
    transform: none;
    width: 100%;
    max-height: none;
    margin-bottom: 0;
    border-right: none;
    border-bottom: 1px solid var(--mi-border-color);
    padding: 0;
  }

  .scrollspy-container-informacion {
    max-height: calc(100vh - 90px);
    border: none;
    border-radius: 0;
  }

  .nav-pills {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    text-align: center;
  }

  .nav-pills .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    text-align: center;
    flex: 1 0 auto;
    min-width: 120px;
  }

  .scrollspy-informacion {
    padding: 0 1rem;
  }

  .mapa-responsive {
    padding-top: 75%;
  }
}

/* --------------------------------------------- */
/* Nosotros */
/* --------------------------------------------- */

.nosotros-container {
  display: flex;
}

.row.h-100 {
  display: flex;
  flex: 1;
}

#navbar_nosotros {
  background-color: var(--mi-navbar-bg);
  backdrop-filter: blur(5px);
  padding: 1rem 1rem;
  border-right: 1px solid var(--mi-border-color);
  height: fit-content;
  align-self: flex-start;
  margin-right: 1rem;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1000;
}

#navbar_nosotros .nav-pills .nav-link {
  background: transparent;
  color: inherit;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 0.25rem;
}

#navbar_nosotros .nav-pills .nav-link.active,
#navbar_nosotros .nav-pills .show > .nav-link {
  background-color: transparent !important;
  color: inherit !important;
  font-weight: normal;
}

/*Contenido de nosotros*/

.list-group-item a,
.archivos_historia {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.list-group-item a:hover,
.archivos_historia:hover {
  color: rgba(211, 162, 26, 1);
}

.scrollspy-container-nosotros {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  max-height: calc(100vh - 90px);
  background-color: var(--mi-navbar-bg);
}

.scrollspy-nosotros {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 1rem;
  scroll-margin-top: 50px;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

.scrollspy-nosotros h4 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--mi-text-color);
  border-bottom: 2px solid rgba(211, 162, 26, 0.5);
  padding-bottom: 0.5rem;
}

.scrollspy-nosotros::-webkit-scrollbar {
  width: 8px;
}

.scrollspy-nosotros::-webkit-scrollbar-thumb {
  background-color: rgba(211, 162, 26, 0.5);
  border-radius: 4px;
}

.scrollspy-nosotros::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Modo claro navbar nosotros */

[data-bs-theme="light"] #navbar_nosotros .nav-link:hover {
  color: var(--mi-text-hover);
  box-shadow: inset 0 -2px 0 rgba(211, 162, 26, 0.7);
  transition: box-shadow 0.3s ease;
}

/* Modo oscuro nosotros */

[data-bs-theme="dark"] #navbar_nosotros .nav-link:hover {
  color: var(--mi-text-hover);
  box-shadow: inset 0 -2px 0 rgba(211, 162, 26, 0.7);
  transition: box-shadow 0.3s ease;
}

[data-bs-theme="dark"] .scrollspy-nosotros,
[data-bs-theme="dark"] .list-group-item {
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] #Consejo_d .list-group-item a {
  color: rgb(89, 219, 169);
}

[data-bs-theme="dark"] #Consejo_d .list-group-item a:hover,
[data-bs-theme="dark"] .scrollspy-nosotros h4 {
  color: rgba(211, 162, 26, 1);
}

/* Responsive teléfono nosotros*/

@media (max-width: 992px) {
  #navbar_nosotros {
    position: static;
    top: auto;
    transform: none;
    width: 100%;
    max-height: none;
    margin-bottom: 0;
    border-right: none;
    border-bottom: 1px solid var(--mi-border-color);
    padding: 0;
  }

  #navbar_nosotros .navbar-brand {
    margin: auto;
    padding: 0.5rem;
  }

  #navbar_nosotros .nav {
    width: 100%;
    justify-content: center;
  }

  .scrollspy-container-nosotros {
    max-height: calc(100vh - 90px);
    border: none;
    border-radius: 0;
  }

  .nav-pills {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    text-align: center;
  }

  .nav-pills .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    text-align: center;
    flex: 1 0 auto;
    min-width: 120px;
  }
}

/* --------------------------------------------- */
/* Blog */
/* --------------------------------------------- */

#navbar_blog {
  background-color: var(--mi-navbar-bg);
  backdrop-filter: blur(5px);
}

.noticias-contenedor h3,
.articulos-contenedor h3,
.publicaciones-contenedor h3,
.videos_martes-contenedor h3,
.videos-contenedor h3 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(211, 162, 26, 0.5);
}

.noticias-contenedor,
.articulos-contenedor,
.publicaciones-contenedor,
.videos_martes-contenedor,
.videos-contenedor {
  position: relative;
}

.noticias-scroll,
.articulos-scroll,
.publicaciones-scroll,
.videos_martes-scroll,
.videos-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: auto;
  scrollbar-color: rgba(211, 162, 26, 0.5) transparent;
  padding: 1rem 0;
  scroll-behavior: smooth;
  margin-bottom: 1rem;
}

.noticias-container,
.articulos-container,
.publicaciones-container,
.videos_martes-container,
.videos-container {
  display: flex;
  gap: 1rem;
}

.noticia-card,
.articulo-card,
.publicacion-card,
.video_martes-card,
.video-card {
  display: inline-block;
  flex: 0 0 auto;
  width: 300px;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.noticia-card:hover,
.articulo-card:hover,
.publicacion-card:hover,
.video_martes-card:hover,
.video-card:hover {
  transform: translateY(-5px);
}

/* Flechas de navegación */

.noticias-prev,
.articulos-prev,
.publicaciones-prev,
.videos_martes-prev,
.videos-prev,
.noticias-next,
.articulos-next,
.publicaciones-next,
.videos_martes-next,
.videos-next {
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.808);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: 50%;
}

/* Scrollbar personalizado */
.noticias-scroll::-webkit-scrollbar,
.articulos-scroll::-webkit-scrollbar,
.publicaciones-scroll::-webkit-scrollbar,
.videos_martes-scroll::-webkit-scrollbar,
.videos-scroll::-webkit-scrollbar {
  height: 8px;
}

.noticias-scroll::-webkit-scrollbar-thumb,
.articulos-scroll::-webkit-scrollbar-thumb,
.publicaciones-scroll::-webkit-scrollbar-thumb,
.videos_martes-scroll::-webkit-scrollbar-thumb,
.videos-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(211, 162, 26, 0.5);
  border-radius: 4px;
}

.noticias-scroll::-webkit-scrollbar-track,
.articulos-scroll::-webkit-scrollbar-track,
.publicaciones-scroll::-webkit-scrollbar-track,
.videos_martes-scroll::-webkit-scrollbar-track,
.videos-scroll::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Modal Noticias y Publicaciones */

#noticia_modal .modal-content,
#publicacion_modal .modal-content {
  border-radius: 10px;
  border: none;
}

#noticia_modal .modal-header,
#publicacion_modal .modal-header {
  border-bottom: 1px solid var(--mi-border-color);
  background-color: var(--mi-active-bg);
  color: #333;
}

#noticia_modal .modal-body,
#publicacion_modal .modal-body {
  padding: 2rem;
  background-color: var(--mi-navbar-bg);
  color: var(--mi-text-color);
}

#noticia_modal .modal-footer,
#publicacion_modal .modal-footer {
  border-top: 1px solid var(--mi-border-color);
  background-color: var(--mi-navbar-bg);
}

/* Modo oscuro para el modal */

[data-bs-theme="dark"] #noticia_modal .modal-header,
[data-bs-theme="dark"] #publicacion_modal .modal-header {
  background-color: rgba(211, 162, 26, 0.8);
}

[data-bs-theme="dark"] #noticia_modal .modal-body,
[data-bs-theme="dark"] #publicacion_modal .modal-body,
[data-bs-theme="dark"] #noticia_modal .modal-footer,
[data-bs-theme="dark"] #publicacion_modal .modal-footer {
  background-color: #2c3034;
}

/* Responsive blog */

@media (max-width: 768px) {
  .noticia-card,
  .articulo-card,
  .publicacion-card,
  .video_martes-card,
  .video-card {
    width: 280px;
  }

  .noticias-container,
  .articulos-container,
  .publicaciones-container,
  .videos_martes-container,
  .videos-container {
    gap: 1rem;
    padding: 0;
  }

  .noticias-prev,
  .articulos-prev,
  .publicaciones-prev,
  .videos_martes-prev,
  .videos-prev,
  .noticias-next,
  .articulos-next,
  .publicaciones-next,
  .videos_martes-next,
  .videos-next {
    display: none;
  }
}

/* --------------------------------------------- */
/* Colegiados */
/* --------------------------------------------- */

.colegiados-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

.colegiados-container h3 {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(211, 162, 26, 0.5);
}

.search-filtro {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.search-filtro input {
  width: 100%;
  max-width: auto;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 2px solid rgba(211, 162, 26, 0.5);
  text-align: center;
}

#resultados-container {
  margin-top: 1rem;
}

#resultados .card-body {
  display: flex;
  flex-direction: row;
}

#resultados .card {
  border-radius: 10px;
  border: 1px solid var(--mi-border-color);
  background-color: var(--mi-navbar-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#resultados .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#resultados .card-title {
  color: var(--mi-text-color);
  margin-bottom: 0.75rem;
}

#resultados .badge {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
}
