/*
  - #FINANAZAS
*/
.finances-content {
  text-align: center;
  margin-top: 40px;
}

.finances-content .h3 {
  color: var(--rich-black-fogra-29);
  margin-bottom: 5px;
}

.finances-content .finances-text {
  font-size: var(--fs-8);
  font-weight: var(--fw-600);
  margin-bottom: 25px;
}

.transfer-details {
  border: 2px solid var(--gray-x-11-gray);
  border-radius: var(--radius-20);
  padding: 30px;
  max-width: 500px;
  margin-inline: auto;
  text-align: left;
}

.transfer-details h4 {
  color: var(--smoky-black);
  border-bottom: 2px solid var(--yellow-green);
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: var(--fs-6);
  text-align: center;
}

.transfer-details p {
  margin-bottom: 10px;
}

.finances-note {
  margin-top: 25px;
  font-style: italic;
  font-size: var(--fs-9);
}

/*
  - #DOCUMENTOS
*/
.documents-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

.document-item {
  background-color: var(--white);
  border: 1px solid var(--pale-sky);
  border-radius: var(--radius-20);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 300px;
  transition: transform 0.3s ease;
}

.document-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
}

.document-icon {
  font-size: 50px;
  color: var(--yellow-green);
  margin-bottom: 10px;
}

.document-details {
  margin-bottom: 20px;
}

.document-title {
  color: var(--rich-black-fogra-29);
  font-size: var(--fs-6);
  margin-bottom: 5px;
}

.document-description {
  color: var(--taupe-gray);
  font-size: var(--fs-9);
}

.document-btn {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
}

.document-btn ion-icon {
  font-size: 20px;
}

/*
  - #SECCIÓN DE HORARIOS
  - Estilos base para todas las pantallas (incluye el diseño móvil)
*/
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-top: 40px;
}

.schedule-item {
  background-color: var(--white);
  border: 1px solid var(--pale-sky);
  border-radius: var(--radius-20);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.schedule-item.active {
  box-shadow: var(--shadow-3);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
}

.schedule-header .schedule-title {
  color: var(--rich-black-fogra-29);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
}

.schedule-header .accordion-icon {
  font-size: 24px;
  color: var(--yellow-green);
  transition: transform 0.3s ease;
}

.schedule-item.active .accordion-icon {
  transform: rotate(180deg);
}

.schedule-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.schedule-item.active .schedule-content {
  max-height: 1000px;
}

.schedule-courses {
  padding: 20px 30px;
}

.schedule-image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 300px; /* Puedes ajustar este valor si lo ves muy grande o muy chico */
  margin-left: auto;
  margin-right: auto;
}

/*
  - #LISTA DE CURSOS ANIDADOS
  - Diseño para móviles (por defecto)
*/
.course-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--pale-sky);
}

.course-list li:last-child {
  border-bottom: none;
}

.course-list .course-text {
  color: var(--rich-black-fogra-29);
  font-weight: var(--fw-600);
}

/*-----------------------------------*\
  #HIMNO
\*-----------------------------------*/

.himno-content {
  text-align: center; /* Centra el contenido en general */
}

.himno-letras {
  font-family: var(--ff-nunito_sans);
  font-size: var(--fs-9);
  line-height: 1.8;
  max-width: 600px;
  margin-inline: auto; /* Centra la letra en la pantalla */
  margin-block: 40px;
}

.himno-reproductor {
  max-width: 400px;
  margin-inline: auto; /* Centra el reproductor de audio */
}

.himno-reproductor audio {
  width: 100%;
}

/*-----------------------------------*\
  #NOTICIAS
\*-----------------------------------*/

.blog-list {
  display: block;
  gap: 30px;
  width: 75%;
  margin-inline: auto;
}

.blog-list li {
  margin-bottom: 50px;
  width: 100%;
}

.dependency {
  margin-bottom: 40px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.photo-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
}

/* MODAL PHOTO GALLERY */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  /* Elimina las siguientes tres líneas:
  display: flex;
  justify-content: center;
  align-items: center;
  */
}

.modal-content-galery {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  position: relative;
}

#modalImage {
  width: 100%;
  height: auto;
  display: block;
}

.close-galery {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Botones de navegación */
.prev, .next {
  cursor: pointer;
  padding: 0;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* Restablece el transform del botón completo */

  width: 45px;
  height: 45px;
  display: flex; /* Habilitamos Flexbox para el contenedor */
  justify-content: center; /* Centramos el span horizontalmente */
  align-items: center; /* Centramos el span verticalmente */
  z-index: 1; 
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* Nuevo bloque de estilos para el SPAN de la flecha */
.prev span, .next span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.prev span {
  left: -2px; /* Mueve la flecha anterior 2px a la izquierda para el centrado visual */
}
    
.next span {
  left: 2px; /* Mueve la flecha siguiente 2px a la derecha para el centrado visual */
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.ocultar-galeria {
      display: none;    
}

/*-----------------------------------*\
  #Responsive
\*-----------------------------------*/

@media (max-width: 767px) {
  
  .schedule-image {
    display: none;
  }
    
  .blog-list {
      
    width: 90%;
    
 }
  
  .blog-card .card-content {
  margin-inline-start: 0;
  padding: 30px 2px;
}

.blog-card .card-banner {
  border-radius: 30px 30px 0 0;
}

.photo-gallery {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }

  /* Nuevo ajuste para el contenedor de la sección de noticias en móviles */
  .blog .container {
    max-width: 92%;
    padding-inline: 0px; /* Aquí eliminamos el padding a los lados */
    margin-inline: auto;
  }
  
  .modal {
    padding-top: 70px;
  }
  
  .modal-content-galery {
    padding: 0;
  }
}

@media (min-width: 768px) {
    
  /*
    - Limita el ancho y centra el contenedor principal
  */
  .schedule-list {
    max-width: 850px;
    margin: 0 auto;
    gap: 15px; /* Aquí va el 'gap' para separar los elementos de la lista */
  }
  
  .schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px; /* Aquí va el 'gap' para separar las dos columnas */
    padding: 30px;
    align-items: start;
  }

  .schedule-courses {
    padding: 0;
  }

  /*
    - CORRECCIÓN: La altura se limita directamente en la imagen.
    - No lleva 'gap'
  */
  .schedule-image img {
    max-height: 100%;
    width: auto;
  }
  
  .modal-content {
    width: 100%; /* Ajusta este valor, por ejemplo, a 95% o 98% */
    max-width: none; /* Mantener esto para anular el límite de escritorio */
  }

  /* También asegúrate de que el botón de cerrar esté bien posicionado en móviles */
  .modal .close {
    top: 10px; /* Ajusta la posición del botón de cerrar */
    right: 15px; /* Para que no esté tan pegado al borde */
  }
  
  .modal-content-galery {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius-20);
  }
}