/* ========================================
   ESTILOS PERSONALIZADOS - INFO UNSJ
   ======================================== */

/* Estilo de prueba para verificar que el archivo se carga */
body {
  /* background-color: red !important; */
}

/* ========================================
   HEADER Y NAVBAR
   ======================================== */

.navbar.no-shadow {
  box-shadow: none;
  border-bottom: none;
}

/* Estilo base para el contenedor de búsqueda */
.search-container {
  position: relative;
  top: -1px;
  /* Elimina pequeño espacio entre navbar y searchbar */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s ease-in-out,
    padding 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease;
  opacity: 0;
  background: #1b5277 !important;
  /* Mismo color que el navbar - importante para mantener durante transición */
  box-shadow: none;
  /* Sin sombra por defecto */
  z-index: 999;
  /* Justo debajo del navbar */
  padding: 0;
  /* Sin padding inicial */
}

/* Clase para mostrar el contenedor de búsqueda */
.search-container.show {
  max-height: 100px;
  /* Altura máxima para expandirse */
  opacity: 1;
  /* padding: 1rem 0; */
  /* Padding suave */
  background: #1b5277 !important;
  /* Mantener el mismo color que el navbar */
  box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
  /* Misma sombra que el navbar */
  /* border-bottom: 0.2px solid rgb(214, 214, 214); */
}

/* Efecto en el icono de búsqueda */
#searchToggle {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    color 0.3s ease;
  position: relative;
}

#searchToggle:hover {
  color: #f8f9fa !important;
  transform: scale(1.1);
}

#searchToggle.active {
  transform: rotate(45deg) scale(1.1);
  color: #f8f9fa !important;
}

/* Asegura que el contenedor de búsqueda tenga un estilo coherente */
.search-container .container {
  max-width: 900px;
  /* O el ancho que prefieras */
}

/* Estilos para el input del buscador */
.search-container input {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.search-container input:focus {
  border-color: #f8f9fa;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.25);
}

.search-container input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-container .btn {
  transition: all 0.3s ease;
  border-color: #f8f9fa;
  color: #f8f9fa;
}

.search-container .btn:hover {
  background-color: #f8f9fa;
  color: #1b5277;
  transform: translateY(-1px);
}

/* Asegurar que no se vea fondo blanco durante transiciones */
.search-container * {
  background-color: transparent !important;
}

.search-container .container {
  background-color: transparent !important;
}

.search-container .form-control {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========================================
   SECCIÓN AGENDA MINIMALISTA
   ======================================== */

.agenda-section {
  background: #1b5277;
  padding: 2px 0;
  border-bottom: 1px solid #34495e;
}

.agenda-section .row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.btn-agenda {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, #1b5277 0%, #1b5277 100%);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
  white-space: nowrap;
  min-width: 90px;
  justify-content: center;
  height: 32px;
}

.btn-agenda:hover {
  background: #1b5277;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-agenda i {
  font-size: 14px;
}

.btn-agenda-claro {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, #f1f6f9 0%, #f1f6f9 100%);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
  white-space: nowrap;
  min-width: 90px;
  justify-content: center;
  height: 32px;
}

.btn-agenda-claro:hover {
  background: #1b5277;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* ========================================
   ESTILOS PARA TICKER DE AGENDA
   ======================================== */

.agenda-ticker {
  overflow: hidden;
  white-space: nowrap;
  height: 32px;
  display: flex;
  align-items: center;
  width: 100%;
}

.ticker-content {
  display: flex;
  align-items: center;
  animation: ticker 25s linear infinite;
  width: max-content;
}

.ticker-item {
  display: inline-block;
  margin-right: 50px;
  flex-shrink: 0;
}

.ticker-link {
  text-decoration: none;
  color: #ecf0f1;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.3s ease;
  height: 32px;
}

.ticker-link:hover {
  color: #3498db;
  text-decoration: none;
}

.ticker-date {
  font-weight: 600;
  margin-right: 8px;
}

.ticker-separator {
  color: #7f8c8d;
  margin: 0 8px;
  font-weight: bold;
}

.ticker-unit {
  color: #ecf0f1;
  font-weight: 600;
  margin-right: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticker-title {
  color: #ecf0f1;
  font-weight: 400;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pausar animación al hacer hover */
.agenda-ticker:hover .ticker-content {
  animation-play-state: paused;
}

/* ========================================
   NOTICIAS SECUNDARIAS
   ======================================== */
@media (max-width: 768px) {
  .noticias-secundarias {
    padding-bottom: 5px;
    }
}

@media (min-width: 769px) {
  .noticias-secundarias {
  padding-bottom: 5px;
  padding-left: 70px;
  padding-right: 70px;
}
}

.contenedor-noticias-secundarias {
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 10px;
}

.noticias-container {
  text-align: left;
  /* Alinea el texto a la izquierda */
  padding-bottom: 25px;
  padding-top: 10px;
}

.noticias-text {
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 22px;
  font-weight: bold;
}


/* Estilo más específico para asegurar que se aplique */
.noticias-container .noticias-hr {
  margin: 0.5rem 0 !important;
  border: none !important;
  height: 2px !important;
  background: linear-gradient(90deg, #9b9c9c, transparent) !important;
}

/* Estilo aún más específico para sobrescribir Bootstrap */
div.noticias-container hr.noticias-hr {
  margin: 0.3rem 0 !important;
  border: none !important;
  height: 1px !important;
  background: linear-gradient(90deg, #5f7f9e, transparent) !important;
  opacity: 1 !important;
}

/* ========================================
   TARJETAS DE NOTICIAS
   ======================================== */

.card-more {
  transition: all 0.3s ease;
  background-color: white;
  border: 1px solid #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.card-more:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #e9ecef;
}

.card-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1b5277, #3498db);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-more:hover::before {
  opacity: 1;
}

.card-more a {
  text-decoration: none;
  /* Elimina el subrayado del enlace */
  color: inherit;
  /* Mantiene los colores del texto */
}

.card-more-text {
  padding: 8px 15px 5px 15px;
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
}

.card-more-title {
  padding: 0 15px 15px 15px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

.card-more-body {
  cursor: pointer;
  /* Indica que el card es clickeable */
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Responsive para móviles */
@media (max-width: 768px) {
  .agenda-section {
    padding: 2px 0;
  }

  .btn-agenda {
    padding: 5px 10px;
    font-size: 10px;
    min-width: 80px;
    height: 28px;
  }

  .agenda-ticker {
    height: 28px;
  }

  .ticker-content {
    animation: ticker 25s linear infinite;
  }

  .ticker-link {
    font-size: 11px;
    height: 28px;
  }

  .ticker-title {
    max-width: 200px;
  }

  .ticker-item {
    margin-right: 35px;
  }
}

@media (max-width: 576px) {
  .btn-agenda {
    padding: 4px 8px;
    font-size: 9px;
    min-width: 70px;
    height: 26px;
  }

  .agenda-ticker {
    height: 26px;
  }

  .ticker-content {
    animation: ticker 25s linear infinite;
  }

  .ticker-link {
    font-size: 10px;
    height: 26px;
  }

  .ticker-title {
    max-width: 100px;
  }

  .ticker-item {
    margin-right: 25px;
  }
}

@media (max-width: 480px) {
  .btn-agenda {
    padding: 3px 6px;
    font-size: 8px;
    min-width: 60px;
    height: 24px;
  }

  .agenda-ticker {
    height: 24px;
    overflow: hidden;
  }

  .ticker-content {
    animation: ticker 25s linear infinite;
  }

  .ticker-link {
    font-size: 9px;
    height: 24px;
  }

  .ticker-title {
    max-width: 80px;
  }

  .ticker-item {
    margin-right: 20px;
  }
}

@media (max-width: 360px) {
  .btn-agenda {
    padding: 2px 4px;
    font-size: 7px;
    min-width: 50px;
    height: 22px;
  }

  .agenda-ticker {
    height: 22px;
  }

  .ticker-content {
    animation: ticker 25s linear infinite;
  }

  .ticker-link {
    font-size: 8px;
    height: 22px;
  }

  .ticker-title {
    max-width: 60px;
  }

  .ticker-item {
    margin-right: 15px;
  }
}

/* Responsive para header */
@media (max-width: 1400px) {
  .fecha-clima[style*="padding-left: 100px"] {
    padding-left: 100px !important;
  }
  .iconos-redes[style*="padding-right: 100px"] {
    padding-right: 100px !important;
  }
}

@media (max-width: 1200px) {
  .fecha-clima[style*="padding-left: 100px"] {
    padding-left: 100px !important;
  }
  .iconos-redes[style*="padding-right: 100px"] {
    padding-right: 100px !important;
  }
}

@media (max-width: 992px) {
  .fecha-clima[style*="padding-left: 100px"] {
    padding-left: 50px !important;
  }
  .iconos-redes[style*="padding-right: 100px"] {
    padding-right: 50px !important;
  }
}

/* Mejoras adicionales para el header */
.header .row {
  flex-wrap: nowrap;
}

.header .col-3 {
  flex-shrink: 1;
  min-width: 0;
}

.header .col-6 {
  flex-shrink: 0;
}

/* Estilos para evitar salto de línea en fecha */
.fecha-clima p {
  margin: 0;
  font-size: 14px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.fecha-clima {
  min-width: 0;
  flex-shrink: 1;
}

/* Responsive para header */
@media (max-width: 1200px) {
  .fecha-clima p {
    font-size: 13px;
  }
}

@media (max-width: 992px) {
  .fecha-clima p {
    font-size: 12px;
  }
}

/* @media (max-width: 1366px) {
  .galeria-container {
      padding-top: 10px;
  }
}

@media (min-width: 1367px) {
  .galeria-container {
      padding-top: 10px;
  }
} */

/* ========================================
   SECCIÓN AGENDA MINIMALISTA
   ======================================== */

.agenda-section {
  background: #1b5277;
  padding: 2px 0;
  border-bottom: 1px solid #34495e;
}

.agenda-section .row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.btn-agenda {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, #1b5277 0%, #1b5277 100%);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
  white-space: nowrap;
  min-width: 90px;
  justify-content: center;
  height: 32px;
}

.btn-agenda:hover {
  background: #1b5277;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-agenda i {
  font-size: 14px;
}

.btn-agenda-claro {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, #f1f6f9 0%, #f1f6f9 100%);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
  white-space: nowrap;
  min-width: 90px;
  justify-content: center;
  height: 32px;
}

.btn-agenda-claro:hover {
  background: #1b5277;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* ========================================
   ESTILOS PARA TICKER DE AGENDA
   ======================================== */

/* Layouts responsive */
.agenda-mobile-layout {
  display: block !important;
}

.agenda-desktop-layout {
  display: flex !important;
  align-items: center;
  gap: 15px;
}

.agenda-button-container {
  text-align: center;
  margin-bottom: 15px;
}

.agenda-button-desktop {
  flex-shrink: 0;
  width: 80px;
}

.agenda-ticker-container {
  width: 100%;
}

.agenda-ticker-desktop {
  flex-grow: 1;
}

.agenda-ticker {
  overflow: hidden;
  white-space: nowrap;
  height: 32px;
  display: flex;
  align-items: center;
  width: 100%;
}

.ticker-content {
  display: flex;
  align-items: center;
  animation: ticker 25s linear infinite;
  width: max-content;
  max-width: 4000px; /* Limitar ancho máximo para evitar overflow en pantallas grandes */
}

.ticker-item {
  display: inline-block;
  margin-right: 50px;
  flex-shrink: 0;
}

/* Ajustes específicos para pantallas muy grandes */
@media (min-width: 1920px) {
  .ticker-content {
    max-width: 5000px;
    animation: ticker-limited 25s linear infinite; /* Usar animación limitada */
  }

  .ticker-item {
    margin-right: 40px; /* Reducir margen en pantallas grandes */
  }

  .ticker-title {
    max-width: 400px; /* Permitir títulos más largos */
  }
}

/* Ajustes para pantallas ultra-wide (2560px+) */
@media (min-width: 2560px) {
  .ticker-content {
    max-width: 6000px;
    animation: ticker 25s linear infinite;
  }

  .ticker-item {
    margin-right: 60px; /* Un poco más de espacio en ultra-wide */
  }

  .ticker-title {
    max-width: 500px;
  }
}

.ticker-link {
  text-decoration: none;
  color: #ecf0f1;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.3s ease;
  height: 32px;
}

.ticker-link:hover {
  color: #3498db;
  text-decoration: none;
}

.ticker-date {
  font-weight: 600;
  margin-right: 8px;
}

.ticker-separator {
  color: #7f8c8d;
  margin: 0 8px;
  font-weight: bold;
}

.ticker-unit {
  color: #ecf0f1;
  font-weight: 600;
  margin-right: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ticker-title {
  color: #ecf0f1;
  font-weight: 400;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes ticker {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Animación alternativa para contenido limitado */
@keyframes ticker-limited {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% + 100vw));
  }
}

/* Pausar animación al hacer hover */
.agenda-ticker:hover .ticker-content {
  animation-play-state: paused;
}

/* ========================================
   RESPONSIVE DESIGN PARA TICKER
   ======================================== */

@media (max-width: 768px) {
  .agenda-section {
    padding: 6px 0;
  }

  .btn-agenda {
    padding: 5px 10px;
    font-size: 10px;
    min-width: 80px;
    height: 28px;
  }

  .agenda-ticker {
    height: 28px;
  }

  .ticker-content {
    animation: ticker 25s linear infinite;
  }

  .ticker-link {
    font-size: 11px;
    height: 28px;
  }

  .ticker-title {
    max-width: 200px;
  }

  .ticker-item {
    margin-right: 35px;
  }

  /* Mejoras adicionales de responsividad para móviles */
  .agenda-mobile-layout {
    display: block !important;
  }

  .agenda-desktop-layout {
    display: none !important;
  }

  .agenda-button-container {
    text-align: center;
    margin-bottom: 15px;
  }

  .agenda-button-container .btn-agenda {
    margin-bottom: 15px;
    width: auto;
    display: inline-block;
  }

  .agenda-ticker-container .agenda-ticker {
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
  }

  .agenda-ticker-container .ticker-content {
    padding: 0 15px;
  }

  .agenda-ticker-container .ticker-item {
    margin-right: 30px;
  }

  .agenda-ticker-container .ticker-title {
    max-width: 180px;
  }
}

@media (min-width: 769px) {
  /* Layout para desktop/tablet - mostrar horizontal, ocultar móvil */
  .agenda-mobile-layout {
    display: none !important;
  }

  .agenda-desktop-layout {
    display: flex !important;
    align-items: center;
    gap: 15px;
  }

  .agenda-button-desktop {
    flex-shrink: 0;
    width: 80px;
  }

  .agenda-ticker-desktop {
    flex-grow: 1;
  }

  .agenda-ticker-desktop .agenda-ticker {
    width: 100%;
  }

  .agenda-ticker-desktop .ticker-content {
    width: max-content;
    max-width: 3000px; /* Limitar ancho en desktop también */
    animation: ticker-limited 25s linear infinite;
  }

  /* Mejoras para tablets y desktop */
  .text-content .titulo {
    font-size: clamp(1.5rem, 2.2vw, 2.5rem);
    transition: font-size 0.3s ease;
  }

  .text-content .descripcion {
    font-size: clamp(0.9rem, 1.9vw, 1.2rem);
    transition: font-size 0.3s ease;
  }
}

@media (max-width: 480px) {
  .agenda-mobile-layout {
    display: block !important;
  }

  .agenda-desktop-layout {
    display: none !important;
  }

  .agenda-button-container {
    text-align: center;
    margin-bottom: 10px;
  }

  .agenda-button-container .btn-agenda {
    padding: 3px 6px;
    font-size: 8px;
    min-width: 60px;
    height: 24px;
  }

  .agenda-ticker-container .agenda-ticker {
    height: 24px;
    overflow: hidden;
  }

  .agenda-ticker-container .ticker-content {
    animation: ticker 25s linear infinite;
  }

  .agenda-ticker-container .ticker-link {
    font-size: 9px;
    height: 24px;
  }

  .agenda-ticker-container .ticker-title {
    max-width: 80px;
  }

  .agenda-ticker-container .ticker-item {
    margin-right: 20px;
  }
}

@media (max-width: 360px) {
  .agenda-mobile-layout {
    display: block !important;
  }

  .agenda-desktop-layout {
    display: none !important;
  }

  .agenda-button-container .btn-agenda {
    padding: 2px 4px;
    font-size: 7px;
    min-width: 50px;
    height: 22px;
  }

  .agenda-ticker-container .agenda-ticker {
    height: 22px;
  }

  .agenda-ticker-container .ticker-content {
    animation: ticker 25s linear infinite;
  }

  .agenda-ticker-container .ticker-link {
    font-size: 8px;
    height: 22px;
  }

  .agenda-ticker-container .ticker-title {
    max-width: 60px;
  }

  .agenda-ticker-container .ticker-item {
    margin-right: 15px;
  }
}

/* Media query adicional para pantallas muy pequeñas */
@media (max-width: 480px) {
  .text-content .titulo {
    font-size: clamp(1rem, 6vw, 1.4rem);
    line-height: 1.1;
  }

  .text-content .descripcion {
    font-size: clamp(0.75rem, 4vw, 0.9rem);
    line-height: 1.3;
  }

  .text-content {
    margin: clamp(5px, 3vw, 15px);
    padding: clamp(8px, 3vw, 15px);
  }

  /* Mejoras específicas para agenda en móviles pequeños */
  .agenda-mobile-layout {
    display: block !important;
  }

  .agenda-desktop-layout {
    display: none !important;
  }

  .agenda-button-container {
    text-align: center;
    margin-bottom: 10px;
  }

  .agenda-button-container .btn-agenda {
    padding: 6px 12px;
    font-size: 9px;
    min-width: 70px;
    height: 28px;
    margin-bottom: 10px;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .agenda-button-container .btn-agenda i {
    font-size: 11px;
  }

  .agenda-ticker-container .agenda-ticker {
    height: 28px;
    width: 100% !important;
    display: block !important;
  }

  .agenda-ticker-container .ticker-content {
    animation: ticker 25s linear infinite;
    padding: 0 10px;
    width: 100% !important;
  }

  .agenda-ticker-container .ticker-link {
    font-size: 10px;
    height: 28px;
    display: inline-block !important;
  }

  .agenda-ticker-container .ticker-title {
    max-width: 120px;
  }

  .agenda-ticker-container .ticker-item {
    margin-right: 20px;
    display: inline-block !important;
  }

  .agenda-ticker-container .ticker-unit {
    font-size: 9px;
  }

  .agenda-ticker-container .ticker-date {
    font-size: 10px;
  }
}

/* Media query para pantallas muy grandes */
@media (min-width: 1440px) {
  .text-content .titulo {
    font-size: clamp(2rem, 2.1vw, 3.5rem);
    max-width: 800px;
  }

  .text-content .descripcion {
    font-size: clamp(1.1rem, 1.1vw, 1.5rem);
    max-width: 700px;
  }

  /* Ajustes para ticker en pantallas de 1440px */
  .ticker-content {
    max-width: 3600px;
    animation: ticker-limited 25s linear infinite;
  }

  .ticker-item {
    margin-right: 45px;
  }

  .ticker-title {
    max-width: 350px;
  }
}

@media (max-width: 576px) {
  .agenda-mobile-layout {
    display: block !important;
  }

  .agenda-desktop-layout {
    display: none !important;
  }

  .agenda-button-container .btn-agenda {
    padding: 4px 8px;
    font-size: 9px;
    min-width: 70px;
    height: 26px;
  }

  .agenda-ticker-container .agenda-ticker {
    height: 26px;
  }

  .agenda-ticker-container .ticker-content {
    animation: ticker 25s linear infinite;
  }

  .agenda-ticker-container .ticker-link {
    font-size: 10px;
    height: 26px;
  }

  .agenda-ticker-container .ticker-title {
    max-width: 100px;
  }

  .agenda-ticker-container .ticker-item {
    margin-right: 25px;
  }
}

@media (max-width: 767px) {
  .agenda-section .row {
      flex-direction: column;
  }
}

/* ========================================
   ESTILOS MIGRADOS DESDE TEMPLATE_NUEVO.PHP
   ======================================== */

.contenedor-fluid .row {
    display: flex;
    /* Asegura que los elementos hijos se alineen horizontalmente */
    align-items: stretch;
    /* Estira los elementos hijos para que tengan la misma altura */
}

.contenedor-fluid .carousel {
    height: 100%;
    /* Asegura que la galería ocupe el 100% de la altura */
}

.contenedor-fluid .carousel-inner {
    height: 100%;
    /* Asegura que el contenido de la galería ocupe el 100% de la altura */
}

.contenedor-fluid .carousel-item {
    height: 100%;
    /* Asegura que cada diapositiva ocupe el 100% de la altura */
}

.contenedor-fluid .carousel-item img {
    height: 100%;
    /* Asegura que la imagen ocupe el 100% de la altura */
    object-fit: cover;
    /* Recorta la imagen para llenar el espacio sin distorsionar */
}

.bg-image {
    /* background-image: url('https://www.unsj.edu.ar/img/lateral.jpeg');  */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100%;
    width: 100%;
}

.bg-image a:first-child {
    flex-grow: 2;
}

.bg-image a:not(:first-child) {
    flex-grow: 1;
}

.contenedor {
    overflow: hidden;
    height: 100%;
}

.imagen {
    transition: transform 1s ease;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contenedor:hover .imagen {
    -webkit-transform: scale(1.3);
    transform: scale(1.3);
}

.bg-multiple-images {
    background:
        url('https://www.unsj.edu.ar/img/columna-lateral1.png') top center / 100% auto no-repeat,
        url('https://www.unsj.edu.ar/img/columna-lateral2.png') center center / 100% auto no-repeat,
        url('https://www.unsj.edu.ar/img/columna-lateral3.png') bottom center / 100% auto no-repeat;
    background-color: #000;
    /* Color de fondo opcional */
    height: 100vh;
    /* Alto de la columna */
    width: 100%;
}

body {
    font-family: 'Alegreya Sans', sans-serif;
    background-color: #f0f1f2;
    max-width: 100%;
    overflow-x: hidden;
    /* Aplicar la fuente a todo el cuerpo */
}

h2 {
    font-family: 'Alegreya Sans', sans-serif;
}

h1 {
    font-family: 'Alegreya Sans', sans-serif;
    /* Aplicar la fuente a todo el cuerpo */
    font-weight: 800;
    font-size: 45px;
}

h3 {
    font-family: 'Alegreya Sans', sans-serif;
    /* Aplicar la fuente a todo el cuerpo */
    font-weight: 600;
}

h5 {
    font-family: 'Alegreya Sans', sans-serif;
    /* Aplicar la fuente a todo el cuerpo */
}

a {
    font-family: 'Alegreya Sans', sans-serif;
    /* Aplicar la fuente a todo el cuerpo */
}

p {
    font-family: 'Alegreya Sans', sans-serif;
    /* Aplicar la fuente a todo el cuerpo */
    font-weight: 500;
}

.header p {
    color: white;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #1b5277;
    /* Color de fondo del navbar */
    box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.2);
    /* Sombra solo en la parte inferior */
    border-top: 0.2px solid rgb(214, 214, 214, 0.34);
    /* Ajusta el grosor según necesites */
}

.wrap-img {
    position: relative;
    /* Necesario para posicionar el overlay */
}

.img-icon {
    width: 28px;
    height: 28px;
}

/* Estilo para imágenes */
.carousel-inner .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Recorta la imagen para cubrir el contenedor */
}

.carousel-caption.text-new {
    background: rgba(0, 0, 0, 0.5);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

@media (max-width: 768px) {
    /* Slider Agenda */
    .slider {
        /* padding-top: 10px;
        padding-bottom: 5px; */
        max-width: 2050px;
        width: 100%;
        /* Hace que tome el ancho del contenedor */
        margin: auto;
    }

    .slider.owl-carousel .card {
        height: 8vh;
    }

    .slider.owl-carousel .card-content {
        height: 100%;
    }

    /* Cuadro de color con la fecha */
    .card-date {
        width: 35px;
        height: 35px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        border-radius: 5px;
        text-align: center;
        flex-shrink: 0;
        /* Evita que el cuadro se reduzca */
    }

    /* Nombre de la sección (arriba del título) */
    .news-section {
        text-align: start;
        font-size: 11px;
        font-weight: bold;
        color: #666;
        margin-bottom: 2px;
    }

    /* Título del evento (máximo 2 líneas) */
    .news-title-slider {
        font-size: 13px;
        font-weight: bold;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* Máximo 2 líneas */
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 35px;
        text-align: start;
        color: #1b5277;
        /* Ajusta según necesites */
    }

    /* Fin Slider Agenda */

    /* Columna lateral derecha Accesos Directos */
    .contenedor {
        height: 80px !important;
        /* Altura fija más pequeña para móvil */
    }

    .imagen {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        /* Centra la imagen para mostrar el texto central */
    }

    /* Fin Columna lateral derecha Accesos Directos */

    .overlay-titulo {
        position: relative;
        background: #f8f9fa;
        /* Fondo claro para móvil */
        color: #212529;
        /* Texto oscuro para móvil */
    }

    .carousel-item .wrap-img {
        display: flex;
        flex-direction: column;
    }

    .carousel-control-prev,
    .carousel-control-next {
        top: calc(50% - 40px);
        /* Ajusta la posición de los controles */
        transform: translateY(-50%);
        height: 80px;
    }

    .text-content {
        text-align: left;
        margin: 15px;
    }

    .text-content .titulo {
        text-align: start;
        font-size: clamp(1.5rem, 4vw, 2.8rem);
        font-family: 'Alegreya Sans', sans-serif;
        color: #3a3a3a;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .text-content .descripcion {
        font-family: 'Alegreya Sans', sans-serif;
        color: #767676;
        padding-bottom: clamp(1rem, 3vw, 2rem);
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        line-height: 1.4;
        opacity: 0.9;
    }

    .carousel-indicators {
        background-color: rgb(33 37 41 / 14%);
    }

    /* Footer */

    .contenedor-footer {
        padding-left: 50px;
        padding-right: 50px;
    }

    .footer-columna-uno {
        padding-right: 0px !important;
        border-right: 0px solid white;
        padding-right: 0px !important;
    }

    .footer-info {
        padding-left: 0px;
        font-size: 0.9rem;
        /* Ajusta el tamaño de la fuente */
        line-height: 1;
        /* Reduce el espacio entre líneas */
        margin-bottom: 0;
        /* Elimina el margen inferior */
    }

    /* Fin Footer */

    .carousel-control-next-icon {
        display: none;
    }

    .carousel-control-prev-icon {
        display: none;
    }

    .navbar-nav {
        align-items: start;
        padding-left: 25px;
    }

    .logo-principal-navbar {
        max-height: 60px;
    }

    .offcanvas {
        max-width: 280px;
    }

    .offcanvas-body .nav-link {
        color: #ffffff;
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }

    .social-icons-mobile a {
        font-size: 1.2rem;
        color: #fff;
    }

    .mobile-info {
        font-size: 1rem;
        color: #333;
    }

    #searchBarMobile {
        background-color: #216196;
    }

    .contenedor-instituciones {
        margin: 20px 30px;
        /* padding-left: 30px; */
    }

    .faculty-grid-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Dos columnas */
        grid-gap: 15px;
        overflow-x: visible;
        /* Quitar scroll horizontal */
    }

    .img-container {
        width: 100%;
        /* Ancho completo dentro de su celda de grid */
        margin: 0;
        /* Eliminar márgenes que podrían causar problemas */
    }

    /* Asegurarse que las imágenes estén en la posición correcta */
    .img-container:nth-child(1),
    .img-container:nth-child(3),
    .img-container:nth-child(5),
    .img-container:nth-child(7),
    .img-container:nth-child(9) {
        grid-column: 1;
        /* Primera columna */
    }

    .img-container:nth-child(2),
    .img-container:nth-child(4),
    .img-container:nth-child(6),
    .img-container:nth-child(8),
    .img-container:nth-child(10) {
        grid-column: 2;
        /* Segunda columna */
    }

    /* Establecer explícitamente las filas */
    .img-container:nth-child(1),
    .img-container:nth-child(2) {
        grid-row: 1;
    }

    .img-container:nth-child(3),
    .img-container:nth-child(4) {
        grid-row: 2;
    }

    .img-container:nth-child(5),
    .img-container:nth-child(6) {
        grid-row: 3;
    }

    .img-container:nth-child(7),
    .img-container:nth-child(8) {
        grid-row: 4;
    }

    .img-container:nth-child(9),
    .img-container:nth-child(10) {
        grid-row: 5;
    }

    .img-container a {
        height: 35px;
        /* Ajusta esta altura según necesites */
        display: flex;
        align-items: start;
        justify-content: start;
    }

    .img-container a img {
        max-height: 90%;
        width: auto;
        object-fit: contain;
    }

    .contenedor-noticias-secundarias {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 20px;
    }
}

/* Efecto de transición para el buscador */
.search-bar,
#searchBarMobile {
    transition: all 0.3s ease-in-out;
}

@media (min-width: 480px) and (max-width: 768px) {

    h2 {
        font-size: 1.5em;
    }

    .card-button {
        padding: 15px;
    }

    .card-button a {
        font-size: 1em;
    }

    /* noticias secundarias */

    .noticias-secundarias {
        /* padding-top: 25px; */
        padding-bottom: 5px;
        padding-left: 10px;
        padding-right: 10px;
        /* background-color: #80808021; */
    }

    .text-content {
        text-align: left;
        padding-left: clamp(15px, 3vw, 50px);
        padding-right: clamp(15px, 3vw, 50px);
        padding-top: clamp(180px, 35vh, 300px);
    }

    .text-content .titulo {
        font-size: clamp(1.2rem, 3vw, 2rem);
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .text-content .descripcion {
        font-size: clamp(0.85rem, 2vw, 1rem);
        display: block;
        padding-bottom: clamp(0.8rem, 2.5vw, 1.5rem);
        line-height: 1.4;
        opacity: 0.85;
    }

    .carousel-caption.text-new .titulo {
        font-size: 0.975rem;
        line-height: 1.2;
        margin-bottom: 0;
    }

    .carousel-caption.text-new .descripcion {
        display: none;
    }

    .slider {
        /* padding-top: 5px;
        padding-bottom: 5px; */
        max-width: 500px;
        width: 100%;
        /* Hace que tome el ancho del contenedor */
        margin: auto;
    }

    .card {
        display: flex;
        background: #fff;
        /* box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); */
        height: 100%;
        border-top: none;
        /* Elimina el borde superior */
        border-bottom: none;
        /* Elimina el borde inferior */
        border-left: none;
        /* Agrega un borde lateral izquierdo */
        border-right: 1px solid #d7d7d7;
        /* Agrega un borde lateral derecho */
        border-radius: 0px;
    }

    .card-content {
        display: flex;
        width: 100%;
        height: 100%;
        /* Asegura que el contenido ocupe toda la altura */
    }

    .card-image {
        width: 100px;
        /* Tamaño fijo para que sea cuadrado */
        height: 100px;
        /* Tamaño fijo para que sea cuadrado */
        margin: auto;
        /* Centra horizontalmente */
        display: flex;
        justify-content: center;
    }

    .card-image img {
        padding: 10px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        /* Agrega un radio a la imagen */
    }

    .card-info {
        width: 40%;
        padding: 5px;
        /* Ajusta el padding para que se vea bien en menos espacio */
        display: flex;
        flex-direction: column;
        /* Coloca los elementos en columna */
        justify-content: center;
        /* Centra verticalmente el contenido */
    }

    .news-title-slider {
        font-size: 14px;
        /* Ajusta el tamaño del título */
        font-weight: 600;
        margin-bottom: 5px;
        /* Reduce el margen inferior */
        text-align: start;
        font-family: Tahoma;
    }

    .news-date {
        font-size: 10px;
        /* Ajusta el tamaño de la fecha */
        color: #666;
        margin-bottom: 5px;
        /* Reduce el margen inferior */
        text-align: start;
    }

    .news-summary {
        text-align: start;
        margin-bottom: 10px;
        /* Reduce el margen inferior */
    }

    .contenedor-footer {
        padding-left: 70px;
        padding-right: 70px;
    }

    .footer-columna-uno {
        padding-right: 40px !important;
        border-right: 1px solid white;
    }

    .footer-info {
        font-size: 0.9rem;
        /* Ajusta el tamaño de la fuente */
        line-height: 0.4;
        /* Reduce el espacio entre líneas */
        margin-bottom: 0;
        /* Elimina el margen inferior */
    }
}

/* Laptops/Notebooks */
@media (min-width: 768px) and (max-width: 1366px) {

    .img-container a {
        height: 35px;
        /* Ajusta esta altura según necesites */
        display: flex;
        align-items: start;
        justify-content: start;
    }

    .img-container a img {
        max-height: 70%;
        width: auto;
        object-fit: contain;
    }

    .contenedor-instituciones {
        margin: 20px 20px;
    }

    /* Estilos para la estructura de una fila en escritorio */
    .faculty-grid-container {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        gap: 10px;
        overflow-x: auto;
        /* Por si las imágenes no caben completamente en pantallas más pequeñas */
    }

    .img-container {
        flex: 0 0 auto;
        width: calc(10% - 9px);
        /* Ancho aproximado para 10 imágenes en una fila con gap de 10px */
        min-width: 80px;
        /* Ancho mínimo para asegurar visibilidad */
    }

    .img-container img {
        width: 100%;
        height: auto;
        display: block;
    }

    .accesos-derecha .d-flex.flex-column {
        height: 100%;
    }

    .accesos-derecha .contenedor {
        height: calc(33.333% - 5px) !important;
        /* Distribuye equitativamente */
    }

    .accesos-derecha .imagen {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .logo-principal-navbar {
        max-height: 50px;
    }

    .nav-link {
        font-size: 12px;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .galeria-accesos-seccom {
        padding-left: 100px;
        padding-right: 100px;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    /* Cuadro de color con la fecha */
    .card-date {
        width: 35px;
        height: 35px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        border-radius: 5px;
        text-align: center;
        flex-shrink: 0;
        /* Evita que el cuadro se reduzca */
    }

    /* Nombre de la sección (arriba del título) */
    .news-section {
        text-align: start;
        font-size: 11px;
        font-weight: bold;
        color: #666;
        margin-bottom: 2px;
    }

    /* Título del evento (máximo 2 líneas) */
    .news-title-slider {
        font-size: 13px;
        font-weight: bold;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* Máximo 2 líneas */
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 35px;
        text-align: start;
        color: #1b5277;
        /* Ajusta según necesites */
    }

    .slider {
        padding-top: 10px;
        padding-bottom: 5px;
        max-width: 2050px;
        width: 100%;
        /* Hace que tome el ancho del contenedor */
        margin: auto;
    }

    .header {
        /* height: 15vh; */
        /* Ajusta a 90% de la altura de la pantalla */
    }

    .iconos-redes {
        padding-bottom: 15px;
    }

    .slider.owl-carousel .card {
        height: 8vh;
    }

    .slider.owl-carousel .card-content {
        height: 100%;
    }

    #carouselExample,
    .carousel-inner,
    .carousel-item,
    .wrap-img {
        height: 100%;
    }

    .carousel-item img {
        height: 100%;
        object-fit: cover;
    }

    .bg-image,
    .bg-image .d-flex {
        height: 100%;
    }

    .imagen {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .fecha-clima {
        padding-bottom: 15px;
    }

    .logo-central {
        height: 70%;
        width: 70%;
    }

    .overlay-titulo {
        position: absolute;
        top: 0;
        left: 0;
        /* Alinear a la izquierda para cubrir toda la imagen */
        height: 100%;
        width: 100%;
        /* Ocupa todo el ancho */
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.8) 100%);
        /* Capa oscura con opacidad */
        color: white;
        /* Color del texto */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Centra verticalmente el contenido */
        padding: 30px;
        /* Espaciado interno */
    }

    .text-content {
        text-align: left;
        padding-left: clamp(20px, 4vw, 100px);
        padding-right: clamp(20px, 4vw, 100px);
        padding-top: clamp(200px, 40vh, 360px);
    }

    .text-content .titulo {
        font-size: clamp(1.8rem, 4.5vw, 2rem);
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .text-content .descripcion {
        font-size: clamp(1rem, 2.8vw, 1.2rem);
        line-height: 1.4;
        opacity: 0.9;
    }

    .noticias-secundarias {
        /* padding-top: 50px; */
        padding-bottom: 15px;
        /* background-color: #80808021; */
    }

    .redes {
        display: none;
    }

    .logos-unsj {
        padding: 30px;
    }

    .contenedor-footer {
        padding-left: 70px;
        padding-right: 70px;
    }

    .footer-columna-uno {
        padding-right: 40px !important;
        border-right: 1px solid white;
    }

    .footer-info {
        font-size: 0.9rem;
        /* Ajusta el tamaño de la fuente */
        line-height: 0.4;
        /* Reduce el espacio entre líneas */
        margin-bottom: 0;
        /* Elimina el margen inferior */
    }

    .contenedor-noticias-secundarias {
        padding-left: 100px;
        padding-right: 100px;
    }
}

/* Carrusel para pantallas mayores a 1366px */
@media (min-width: 1367px) {

    /*  MONITOR */

    .contenedor-noticias-secundarias {
        padding-left: 70px;
        padding-right: 70px;
    }

    .img-container a {
        height: 35px;
        /* Ajusta esta altura según necesites */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .img-container a img {
        max-height: 90%;
        width: auto;
        object-fit: contain;
    }

    .contenedor-instituciones {
        margin: 20px 30px;
    }

    /* Estilos para la estructura de una fila en escritorio */
    .faculty-grid-container {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        gap: 10px;
        overflow-x: auto;
        /* Por si las imágenes no caben completamente en pantallas más pequeñas */
    }

    .img-container {
        flex: 0 0 auto;
        width: calc(10% - 9px);
        /* Ancho aproximado para 10 imágenes en una fila con gap de 10px */
        min-width: 80px;
        /* Ancho mínimo para asegurar visibilidad */
    }

    .img-container img {
        width: 100%;
        height: auto;
        display: block;
    }

    .contenedor-footer {
        padding-left: 70px;
        padding-right: 70px;
    }

    .footer-columna-uno {
        border-right: 1px solid white;
        padding-right: 40px !important;
    }

    .footer-info {
        font-size: 0.9rem;
        /* Ajusta el tamaño de la fuente */
        line-height: 0.4;
        /* Reduce el espacio entre líneas */
        margin-bottom: 0;
        /* Elimina el margen inferior */
    }

    .logo-principal-navbar {
        max-height: 50px;
    }

    .nav-link {
        font-size: 14px;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .galeria-accesos-seccom {
        padding-left: 70px;
        padding-right: 70px;
        padding-bottom: 10px;
        padding-top: 10px;
    }

    .galeria-izquierda {
        height: 70vh;
    }

    .accesos-derecha {
        height: 80vh;
    }

    /* noticias secundarias */

    .noticias-secundarias {
        /* padding-top: 30px; */
        padding-bottom: 15px;
        /* background-color: #80808021; */
    }

    .logos-unsj {
        padding: 30px;
    }

    .fecha-clima {
        padding-top: 15px;
    }

    .slider {
        max-width: 2050px;
        width: 100%;
        /* Hace que tome el ancho del contenedor */
        margin: auto;
    }

    /* Cuadro de color con la fecha */
    .card-date {
        width: 50px;
        height: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        border-radius: 5px;
        text-align: center;
        flex-shrink: 0;
        /* Evita que el cuadro se reduzca */
    }

    /* Nombre de la sección (arriba del título) */
    .news-section {
        text-align: start;
        font-size: 12px;
        font-weight: bold;
        color: #666;
        margin-bottom: 5px;
    }

    /* Título del evento (máximo 2 líneas) */
    .news-title-slider {
        font-size: 14px;
        font-weight: bold;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* Máximo 2 líneas */
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 35px;
        /* Ajusta según necesites */
    }

    .carousel-inner .carousel-item {
        height: 80vh;
    }

    .carrusel-seccion {
        height: 6vh;
    }

    .carousel-inner .carousel-item img {
        object-fit: contain;
        /* Evita que la imagen se recorte y la ajusta al contenedor */
    }

    /* Estilo para el texto del carrusel */
    .carousel-caption {
        /* background-color: rgba(20, 97, 143, 0.6); */
        /* Fondo con opacidad */
        left: 0;
        right: 0;
        bottom: 0;
    }

    .overlay-titulo {
        position: absolute;
        top: 0;
        left: 0;
        /* Alinear a la izquierda para cubrir toda la imagen */
        height: 100%;
        width: 100%;
        /* Ocupa todo el ancho */
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.8) 100%);
        /* Capa oscura con opacidad */
        color: white;
        /* Color del texto */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Centra verticalmente el contenido */
        padding: 40px;
        /* Espaciado interno */
    }

    .text-content {
        text-align: left;
        /* Alinear texto a la derecha */
        padding-left: 105px;
        padding-right: 100px;
        padding-top: 100px;
    }
}

/* Media query para tablets en modo paisaje (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .faculty-grid-container {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 15px;
    }

    .img-container {
        width: calc(20% - 12px); /* 5 imágenes por fila = 20% de ancho */
        min-width: 100px;
    }

    /* Asegurarse que las primeras 5 imágenes estén en la primera fila */
    .img-container:nth-child(-n+5) {
        order: 0;
    }

    /* Asegurarse que las siguientes 5 imágenes estén en la segunda fila */
    .img-container:nth-child(n+6):nth-child(-n+10) {
        order: 1;
    }
}

/* Media query para tablets en modo retrato y móviles grandes (600px - 768px) */

.container-fluid {
    /* height: 100vh; Ocupa todo el alto de la ventana */
    padding: 0;
    /* Elimina relleno del contenedor */
}

.info-card,
.news-card {
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover,
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.noticias-box {
    background-color: #216196;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}

.wrap-img-sec {
    width: 300px;
    /* Establece un ancho fijo */
    height: 200px;
    /* Establece una altura fija */
    overflow: hidden;
    /* Oculta cualquier parte de la imagen que sobresalga */
    margin-bottom: 1px;
    /* Espacio entre las noticias */
}

.wrap-img-sec .img-sec {
    width: 100%;
    /* Asegura que la imagen ocupe todo el ancho del contenedor */
    height: auto;
    /* Mantiene la proporción de la imagen */
    display: block;
    /* Elimina el espacio debajo de la imagen */
    border-radius: 5px;
    /* Ajusta el valor según el efecto deseado */
}

.wrap-text-sec {
    padding: 10px;
    /* Espaciado interno para el texto */
}

/* Estilo de los botones sociales */
.btn-social {
    display: inline-block;
    padding: 0.5rem;
    border-radius: 50%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-social img {
    width: 42px;
    /* Ajustar tamaño del ícono */
    height: 42px;
    border-radius: 50%;
}

.btn-social:hover {
    transform: scale(1.1);
    /* Efecto hover de agrandamiento */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Sombra para resaltar */
}

.card-header {
    background: linear-gradient(145deg, #e6e9ef, #ffffff);
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.info-list li {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.info-value {
    color: #2c3e50;
    font-weight: 500;
}

.action-buttons a {
    color: #495057;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    border-radius: 6px;
}

.action-buttons a:hover {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.news-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.news-list li:last-child {
    border-bottom: none;
}

.news-date {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-title {
    text-align: start;
    color: #2c3e50;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.news-title:hover {
    color: #0d6efd;
}

.view-all {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.view-all:hover {
    text-decoration: underline;
}

.custom-bg-color {
    background-color: rgb(217, 217, 217);
}

.custom-bg-color-f1 {
    background-color: rgb(217, 217, 217, 0.57);
}

.fixed-height {
    height: 100px;
    /* Ajusta la altura deseada */
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-img {
    max-height: 100%;
    /* Asegura que la imagen no exceda el contenedor */
    max-width: 100%;
    /* Mantiene la proporción */
    object-fit: contain;
    /* Ajusta la imagen para que no se distorsione */
}

.institutional-button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    margin: 10px 0;
    text-decoration: none;
    color: #212529;
    text-transform: uppercase;
}

.institutional-button:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.button-content {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wrap-text {
    flex-grow: 1;
}

.wrap-event {
    font-size: 24px;
    font-weight: bold;
    margin-left: 15px;
}

/* Mas noticias */

.large,
.title {
    text-transform: uppercase;
    font-family: 'Alegreya Sans', sans-serif;
    /* Aplicar la fuente a todo el cuerpo */
    font-weight: 700;
}

/* botones */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.card-button {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
    overflow: hidden;

    /* Centrado del contenido */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    /* Ajusta la altura según necesites */
}

.card-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-button a {
    font-family: 'Alegreya Sans', sans-serif;
    /* Aplicar la fuente a todo el cuerpo */
    text-decoration: none;
    color: #2980b9;
    font-weight: bold;
    font-size: 0.74em;
    transition: color 0.2s;
    position: relative;
    z-index: 2;
}

.card-button:hover a {
    color: #fff;
}

.card-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-image: var(--bg);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    border-radius: 10px;
}

.card-button:hover::before {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 10px;
}

.card-button:hover .overlay {
    opacity: 1;
}

/* Boton de cargar mas noticias */
.hr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
    /* Espaciado entre el hr y el botón */
}

.hr-container hr {
    flex-grow: 1;
    border: none;
    border-top: 0.5px solid black;
}

.btn-center {
    border-radius: 10px;
    background: white;
    color: gray;
    border: 0.5px solid grey;
    padding: 5px 10px;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    position: relative;
    z-index: 1;
}

.btn-center:hover {
    background: #216196;
    color: white;
    border-color: #216196;
}

.card-img img {
    width: 100%;
    /* Asegura que la imagen ocupe el ancho del card */
    height: 200px;
    /* Ajusta la altura según necesites */
    object-fit: cover;
    /* Recorta la imagen sin distorsionarla */
    padding: 10px;
    border-radius: 5px;
}

.card-more {
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
}

.card-more:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-more a {
    text-decoration: none;
    /* Elimina el subrayado del enlace */
    color: inherit;
    /* Mantiene los colores del texto */
}

.card-more-text {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    align-items: start;
}

.card-more-title {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 14px;
    text-transform: uppercase;
    /* Convierte el título a mayúsculas */
    font-weight: bold;
    /* Negrita */
}

.card-more-body {
    cursor: pointer;
    /* Indica que el card es clickeable */
}

.linea-azul {
    width: 5px;
    /* Grosor del palito */
    height: 20px;
    /* Altura del palito */
    background-color: blue;
    /* Color del palito */
    margin-right: 10px;
    /* Espacio entre el palito y el texto */
}

.titulo-noticias {
    font-weight: bold;
    color: #333;
    /* Color del texto */
}

.hover-shadow {
    transition: box-shadow 0.3s ease-in-out;
}

.hover-shadow:hover {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    /* Aumenta la sombra en hover */
}

.social-icons i {
    font-size: 20px;
    /* Tamaño más grande */
    color: white;
    /* Color blanco */
    transition: color 0.3s ease-in-out;
    /* Efecto suave al pasar el mouse */
}

.social-icons i:hover {
    color: #ccc;
    /* Cambia a un gris claro en hover */
}

.text-line-height {
    line-height: 0.7;
}

.noticias-container {
    text-align: left;
    /* Alinea el texto a la izquierda */
    padding-bottom: 10px;
}

.noticias-text {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 22px;
    font-weight: bold;
}

.noticias-hr {
    margin: 0.5rem 0;
    border: none;
    height: 2px;
    background-color: rgb(198, 200, 201);
    /* Color gris para la línea */
    position: relative;
    opacity: 1;
}

.noticias-hr::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    /* Alinea el segmento azul a la izquierda */
    width: 110px;
    /* Ajusta este valor según el largo del texto */
    height: 2px;
    background-color: #216196;
    /* Color azul para el segmento */
}

@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Alegreya Sans', sans-serif;
}

html,
body {
    /* display: grid; */
    /* height: 100%; */
    /* place-items: center; */
    text-align: center;
    background: #f2f2f2;
}

.card {
    display: flex;
    background: #fff;
    /* box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); */
    height: 100%;
    border-top: none;
    /* Elimina el borde superior */
    border-bottom: none;
    /* Elimina el borde inferior */
    border-left: none;
    /* Agrega un borde lateral izquierdo */
    border-right: 1px solid #d7d7d7;
    /* Agrega un borde lateral derecho */
    border-radius: 0px;
}

.card-content {
    display: flex;
    width: 100%;
    height: 100%;
    /* Asegura que el contenido ocupe toda la altura */
}

.card-image {
    width: 100px;
    /* Tamaño fijo para que sea cuadrado */
    height: 100px;
    /* Tamaño fijo para que sea cuadrado */
    margin: auto;
    /* Centra horizontalmente */
    display: flex;
    justify-content: center;
}

.card-image img {
    padding: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    /* Agrega un radio a la imagen */
}

.card-info {
    width: 70%;
    padding: 5px;
    /* Ajusta el padding para que se vea bien en menos espacio */
    display: flex;
    flex-direction: column;
    /* Coloca los elementos en columna */
    justify-content: center;
    /* Centra verticalmente el contenido */
}

.news-date {
    font-size: 10px;
    /* Ajusta el tamaño de la fecha */
    color: #666;
    margin-bottom: 5px;
    /* Reduce el margen inferior */
    text-align: start;
}

.news-summary {
    text-align: start;
    margin-bottom: 10px;
    /* Reduce el margen inferior */
}

.btn button {
    background: #e74c3c;
    color: #fff;
    border: none;
    outline: none;
    font-size: 14px;
    /* Ajusta el tamaño del botón */
    padding: 5px 10px;
    /* Ajusta el padding del botón */
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.btn button:hover {
    transform: scale(0.9);
}

/* Asegurar que todas las tarjetas tengan la misma altura */
.slider .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.slider .card-content {
    flex-grow: 1;
    /* Hace que el contenido ocupe todo el espacio disponible */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Contenedor para la fecha y el título */
.card-header {
    display: flex;
    align-items: center;
    /* Alinea verticalmente */
    justify-content: start;
    /* Alinea a la izquierda */
    gap: 10px;
    /* Espacio entre el cuadro y el texto */
}

/* Ocultar los puntos de navegación de Owl Carousel */
.owl-dots {
    display: none !important;
}

/* Navbar sin sombra cuando el searchbar está abierto */
.navbar.no-shadow {
    box-shadow: none;
    border-bottom: none;
}

/* Estilo base para el contenedor de búsqueda */
.search-container {
    position: relative;
    top: -1px;
    /* Elimina pequeño espacio entre navbar y searchbar */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.215, 0.61, 0.355, 1),
        opacity 0.4s cubic-bezier(0.215, 0.61, 0.355, 1),
        box-shadow 0.3s ease;
    opacity: 0;
    background: #1b5277;
    /* Mismo color que el navbar */
    box-shadow: none;
    /* Sin sombra por defecto */
    z-index: 999;
    /* Justo debajo del navbar */
}

/* Clase para mostrar el contenedor de búsqueda */
.search-container.show {
    max-height: 80px;
    /* Altura máxima para expandirse */
    opacity: 1;
    box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
    /* Misma sombra que el navbar */
    border-bottom: 0.5px solid rgb(214, 214, 214);
}

/* Efecto en el icono de búsqueda */
#searchToggle {
    transition: transform 0.3s ease;
}

#searchToggle.active {
    transform: rotate(90deg);
}

/* Asegura que el contenedor de búsqueda tenga un estilo coherente */
.search-container .container {
    max-width: 900px;
    /* O el ancho que prefieras */
}

/* Ocultar la ventana del datepicker por defecto */
.datepicker {
    display: none !important;
}

/* Mostrar solo cuando el contenedor tenga la clase hover-active */
.hover-active .datepicker {
    display: block !important;
}

.contenedor-noticias-secundarias {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;
}

.noticias-container {
    text-align: left;
    /* Alinea el texto a la izquierda */
    padding-bottom: 25px;
    padding-top: 10px;
}

.noticias-text {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 22px;
    font-weight: bold;
}

.noticias-hr {
    margin: 0.5rem 0;
    border: none;
    height: 2px;
    background-color: rgb(198, 200, 201);
    /* Color gris para la línea */
    position: relative;
    opacity: 1;
}

.noticias-hr::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    /* Alinea el segmento azul a la izquierda */
    width: 110px;
    /* Ajusta este valor según el largo del texto */
    height: 2px;
    background-color: #216196;
    /* Color azul para el segmento */
}

/* Estilo más específico para asegurar que se aplique */
.noticias-container .noticias-hr {
    margin: 0.5rem 0 !important;
    border: none !important;
    height: 2px !important;
    background: linear-gradient(90deg, #9b9c9c, transparent) !important;
}

/* Estilo aún más específico para sobrescribir Bootstrap */
div.noticias-container hr.noticias-hr {
    margin: 0.3rem 0 !important;
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, #5f7f9e, transparent) !important;
    opacity: 1 !important;
}

/* ========================================
   TARJETAS DE NOTICIAS
   ======================================== */

.card-more {
    transition: all 0.3s ease;
    background-color: white;
    border: 1px solid #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.card-more:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #e9ecef;
}

.card-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1b5277, #3498db);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-more:hover::before {
    opacity: 1;
}

.card-more a {
    text-decoration: none;
    /* Elimina el subrayado del enlace */
    color: inherit;
    /* Mantiene los colores del texto */
}

.card-more-text {
    padding: 8px 15px 5px 15px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.card-more-title {
    padding: 0 15px 15px 15px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.card-more-body {
    cursor: pointer;
    /* Indica que el card es clickeable */
}

.contenedor-noticias-secundarias {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;
}

.noticias-container {
    text-align: left;
    /* Alinea el texto a la izquierda */
    padding-bottom: 25px;
    padding-top: 10px;
}

.noticias-text {
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 22px;
    font-weight: bold;
}

.noticias-hr {
    margin: 0.5rem 0;
    border: none;
    height: 2px;
    background-color: rgb(198, 200, 201);
    /* Color gris para la línea */
    position: relative;
    opacity: 1;
}

.noticias-hr::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    /* Alinea el segmento azul a la izquierda */
    width: 110px;
    /* Ajusta este valor según el largo del texto */
    height: 2px;
    background-color: #216196;
    /* Color azul para el segmento */
}

/* Estilo más específico para asegurar que se aplique */
.noticias-container .noticias-hr {
    margin: 0.5rem 0 !important;
    border: none !important;
    height: 2px !important;
    background: linear-gradient(90deg, #9b9c9c, transparent) !important;
}

/* Estilo aún más específico para sobrescribir Bootstrap */
div.noticias-container hr.noticias-hr {
    margin: 0.3rem 0 !important;
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg, #5f7f9e, transparent) !important;
    opacity: 1 !important;
}
