.cont-inscripcion {
  /* flex: 1; */
  display: flex;
  justify-content: center;
  flex-direction: row;
  /* padding-top: 25px; */
  padding-bottom: 25px;
  width: 90%;
  margin: auto;
  height: 100vh;
  background-color: white;
  overflow-y: scroll;
}

.insc-cardestudiante input[readonly],
.insc-card input[readonly] {
  background-color: #d1d1d1;
  color: #000;
  font-weight: normal;
}

.insc-cardestudiante h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.datos-inscripcion {
  display: flex;
  flex-direction: column;

}


.insc-cardestudiante {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  flex: 1;
  width: 800px;
  overflow-y: scroll;
}

.nombreEstudianteinput {
  font-size: 15px !important;
  font-weight: bold !important;
  border: 1px solid black !important;
}

.insc-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
}

.insc-card-ciclo {
  position: sticky;
  z-index: 10;
  top: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  grid-template-columns: 150px 1fr 1fr 1fr;
  height: 110px;
}

.insc-card input {
  z-index: auto !important;
}

/* .insc-card-ciclo {
  position: sticky;
  top: 0;
  background-color: #fff; /* o el color de fondo de tu vista 
  z-index: 10;  para que quede encima del contenido 
  padding: 10px;
  border-bottom: 2px solid #ccc; /* opcional, para diferenciarlo 
} */



.insc-grid-ciclo {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */
  gap: 12px;
  margin-bottom: 10px;
  grid-template-columns: 150px 2fr 1fr 1fr;

}

.insc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 10px;

}



.insc-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.insc-card label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #444;
}

.insc-card input,
.insc-card select {
  padding: 6px;
  border: 1px solid #aaa;
  border-radius: 4px;
  margin-top: 4px;
}

.insc-card button {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 6px;
}

.insc-card button:hover {
  background: #004999;
}

/* Responsivo: en pantallas chicas, 1 sola columna */
@media (max-width: 768px) {
  .insc-row {
    grid-template-columns: 1fr;
  }
}


.form-fila {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.form-fila label {
  flex: 0 0 160px;
  white-space: nowrap;
}

.form-fila input {
  flex: 1;
  min-width: 0;
  padding: 6;
}

.form-fila button {
  flex: 0 0 100px;
  padding: 6px;
}

.form-columna {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: column;
  width: 100%;
}



.insc-grid label {
  display: flex;
  flex-direction: column;
  /* Para que el texto y el select se alineen de arriba a abajo */
}

.insc-grid select {
  width: 100%;
  /* Asegura que el select ocupe todo el ancho disponible */
  padding: 8px;
  margin-top: 5px;
}

.insc-grid .insc-ciclo,
.insc-grid .insc-carrera {
  grid-column: span 2;
  /* Esto hace que el ciclo y carrera ocupen dos columnas, y no una */
}

#mensajeInfo {
  opacity: 0;
  transition: opacity 0.5s;
}

#mensajeInfo.mostrar {
  display: inline;
  opacity: 1;
}

.becasyretiros input {
  color: black !important;
}




/* modal */


/* Fondo modal */
.modal-inscripciones {
  display: none;
  /* oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 600px;
  /* más ancha */
  max-width: 90%;
  /* no se pase de la pantalla */
  max-height: 80%;
  min-height: 80%;

  /* no ocupe toda la pantalla */
  overflow-y: auto;
  position: relative;
}

#buscarEstudiante {
  width: 100%;
  /* input ocupa todo el ancho */
  padding: 10px;
  margin-bottom: 15px;
  font-size: 1rem;
  border: 1px solid #aaa;
  border-radius: 4px;
}

#listaResultados li {
  padding: 10px;
  font-size: 1rem;
}


/* Botón cerrar */
.close-btn,
.close-btn-tarifario {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
}


/* Lista de resultados */
#listaResultados {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}



#listaResultados li:hover {
  background: #f0f0f0;
}


hr {
  border: none;
  border-top: 0.5px solid #aaa;
  margin: 10px 0;
}

.h1 {
  color: #333;
}



/* 

modal apra crear incricpion

*/

/* === Fondo del modal === */
.modal-insc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;

}

/* === Contenedor principal === */
.modal-insc {
  background: #fff;
  width: 90%;
  max-width: 700px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: modal-insc-fadeIn 0.3s ease;
  overflow: hidden;

}

.tabla-container1 {
  max-height: 250px;
  min-height: 200px;
  overflow: auto;
}

.tabla-container2 {
  max-height: 120px;
  overflow: auto;
}

/* === Header === */
.modal-insc-header {
  padding: 1rem 1.5rem;
  background: #0056b3;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-insc-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* === Body === */
.modal-insc-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-insc-body label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #333;
}

.modal-insc-body input[type="text"],
.modal-insc-body input[type="number"],
.modal-insc-body select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.modal-insc-body input:focus,
.modal-insc-body select:focus {
  border-color: #007bff;
  outline: none;
}

/* Lista resultados */
.modal-insc-lista {
  border: 1px solid #ddd;
  border-radius: 6px;
  max-height: 180px;
  overflow-y: auto;
  margin-top: 0.5rem;
  background: #fafafa;
}

.modal-insc-item {
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.modal-insc-item:hover {
  background: #e9f1ff;
}

/* === Footer === */
.modal-insc-footer {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  background: #f7f7f7;
  border-top: 1px solid #ddd;
}

.btncrearymodificar {
  display: flex;
  flex: 1;
  justify-content: left;
  flex-direction: row;
}

.btncrearymodificar button {
  height: 37.19px;
  width: auto;
  border-radius: 20px;
  background-color: rgb(42, 110, 211);
  display: flex;
  align-items: center;
}


.modal-insc-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.modal-insc-btn.primary {
  background: #007bff;
  color: #fff;
}

.modal-insc-btn.success {
  background: #28a745;
  color: #fff;
}

.modal-insc-btn:hover {
  opacity: 0.9;
}

/* === Animación === */
@keyframes modal-insc-fadeIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === Mostrar modal === */
.modal-insc-overlay.active {
  display: flex;
}


/* seleccion de estudiantes */
#listaResultados,
#listaResultados-inscripciones {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  border: 1px solid #ccc;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 6px;
}

#listaResultados li {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

#listaResultados li:hover {
  background: #f3f3f3;
}

#listaResultados li.seleccionado {
  background: #007bff;
  color: white;
  font-weight: bold;
}


#listaResultadosbuscar {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  border: 1px solid #ccc;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 6px;
}

#listaResultadosbuscar li {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

#listaResultadosbuscar li:hover {
  background: #f3f3f3;
}

#listaResultadosbuscar li.seleccionado {
  background: #007bff;
  color: white;
  font-weight: bold;
}

.tablaDatos-inscripciones tr.seleccionado {
  background-color: #007bff;
  color: white;
}



/* Botón guardar */
#btnActualizarCambios {
  background-color: #2196F3;
  /* azul */
  color: white;
}

/* Botón buscar inscripción */
#abrirModalInscbuscar {
  background-color: #FF9800;
  /* naranja */
  color: white;
}


#listaResultadosPersona {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  border: 1px solid #ccc;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 6px;
}

#listaResultadosPersona li {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

#listaResultadosPersona li:hover {
  background: #f3f3f3;
}

#listaResultadosPersona li.seleccionado {
  background: #007bff;
  color: white;
  font-weight: bold;
}



/* estilos para la vista de lista de inscripciones */


/* ===== VISTA INSCRIPCIONES ===== */

.vista-inscripciones {
  display: flex;
  flex-direction: column;
  width: 95%;
  height: 100%;
  /* max-height: 90%; */
  box-sizing: border-box;
  margin-left: 15px;
}

/* --- Barra superior (filtros) --- */
.filtros-inscripciones {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.filtro-fechas {
  display: flex;
  flex-direction: row;
}

.filtro-fechas label {
  display: flex;
  margin-right: 0.5rem;
  font-weight: 600;
  align-items: center;
}

.filtro-fechas input[type="date"] {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-right: 1rem;
}

.filtro-botones {
  flex: 1;
}

.filtro-botones .btn-insc {
  background-color: #0078D7;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease-in-out;
}

.filtro-botones .btn-insc:hover {
  background-color: #005fa3;
}

/* --- Contenedor inferior --- */
.contenedor-inferior {
  display: flex;
  flex: 1;
  gap: 1rem;
  height: 90%;
}

/* --- Panel lateral (izquierda) --- */
.panel-ciclos {
  width: 15%;
  background-color: #fafafa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  overflow-y: auto;
}

.panel-ciclos h3 {
  margin-bottom: 0.5rem;
  text-align: center;
}

.tabla-ciclos {
  width: 100%;
  border-collapse: collapse;
}

.tabla-ciclos th,
.tabla-ciclos td {
  text-align: center;
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
}

/* Fila seleccionada en tabla de ciclos */
.tabla-ciclos tr.seleccionada {
  background-color: #d1e7dd;
  cursor: pointer;
}

/* --- Tabla principal (derecha) --- */
.tabla-inscripciones {
  position: relative;
  flex: 1;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  overflow-y: auto;
}



/* Fila seleccionada en tabla de ciclos */
.tabla-inscripcioneslista tr.seleccionada {
  background-color: #d1e7dd;
  cursor: pointer;
}

.tabla-inscripciones h3 {
  margin-bottom: 1rem;
}

.tabla-inscripciones table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  white-space: nowrap;
  /* overflow-y: auto; */
}

.tabla-inscripciones th,
.tabla-inscripciones td {
  border-right: 1px solid #ccc;
  /* línea vertical entre celdas */
  font-size: 15px;
  padding: 0.75rem;
  /* padding: 4px; */
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.tabla-inscripciones th {
  background-color: #f0f0f0;
}

/* --- Responsivo --- */
@media (max-width: 900px) {
  .contenedor-inferior {
    flex-direction: column;
    /* height: 100%; */
  }

  .panel-ciclos {
    width: 100%;
    max-height: 200px;
  }

  .tabla-inscripciones {
    width: 100%;
  }

  .filtros-inscripciones {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* modal confirmacion de eiliminacion */

.modal-confirmacion {
  display: none;
  /* oculto por defecto */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* fondo semi-transparente */
  justify-content: center;
  align-items: center;
}

.modal-content-confirmacion {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  text-align: center;
}

.modal-content-confirmacion h1 {
  color: red;
}

.modal-buttons-confirmacion {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.modal-buttons-confirmacion button {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#confirmYes {
  background-color: #e74c3c;
  color: #fff;
}

#confirmNo {
  background-color: #95a5a6;
  color: #fff;
}


/* ubicar loader de inscripciones */
.loader-overlay-inscripciones {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.spinner-inscripciones {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* botones de la tabla */
.botones-scroll {
  position: absolute;
  bottom: 30px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
}

/* --- Botones flotantes --- */
.scroll-btn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: #3498db;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s, transform 0.2s;
  opacity: 0;
  pointer-events: none;
}

.scroll-btn.down.show {
  display: block;
  opacity: 1;
  pointer-events: all;
}

.scroll-btn.up.show {
  display: block;
  opacity: 1;
  pointer-events: all;
}

.scroll-btn.down {
  display: none;
}

.scroll-btn.up {
  display: none;
}

.scroll-btn:hover {
  transform: scale(1.1);
}

/* modo de seleccion para la busqueda estudiante/codigoinscripcion */

/* Contenedor del modo de búsqueda */
.modo-busqueda {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

/* Botones de modo (nombre / código) */
.modo-busqueda button {
  background: #424242;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover y enfoque */
.modo-busqueda button:hover {
  background: #8baaff;
}

/* Botón activo (modo seleccionado) */
.modo-busqueda button.activo {
  background: #0078d7;
  color: white;
  border-color: #0078d7;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* Entrada para búsqueda por código */
#buscarCodigobuscar {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}


#resultadoCodigo {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  border: 1px solid #ccc;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 6px;
}

#resultadoCodigo li {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

#resultadoCodigo li:hover {
  background: #f3f3f3;
}

#resultadoCodigo li.seleccionado {
  background: #007bff;
  color: white;
  font-weight: bold;
}