.cont-inscripcion {
  /* flex: 1; */
  display: flex;
  flex-direction: row;
  width: 100%;
  margin: 3%;
  height: 100vh;
}

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

.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;
}

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

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

.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 */
}



/* modal */


/* Fondo modal */
.modal {
  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%;
  /* 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 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%;
    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: 100%;
}

/* --- 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 {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1rem;
    overflow: 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;    /* evita que el texto baje de línea */
}

.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;
    }

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

    .tabla-inscripciones {
        width: 100%;
    }

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