/* general.css es la base del proyecto (reset, box-sizing, variables de color): se importa aquí
   para que cualquier módulo que cargue basics.css la reciba automáticamente sin un <link> aparte. */
@import url("general.css");

/* ---------- Global ---------- */

/* Inputs con Error y Ok */
.inputOk {
    border: 1px solid silver;
}

.inputError {
    border: 3px solid red;
}
/* Centrado Horizontal y Vertical */
.divCenterHV {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.divCenterHEnd {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
}
.divCenterHStart {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
}
.divCenterV {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}
.maximoAlto {
    height: 100%;
}

/* ---------- Header, Titulo, H2 ---------- */
.presentacionTitulo {
    color: #fefefe;
    background-color: #86b7fe;
    padding: 0.01rem;
}
.presentacionTitulo h2 {
    margin: 20px auto 10px;
}

/* ---------- Ventana Modal ---------- */
.ventanaModal {
    position: fixed;
    top: 10%;
    left: 10%;;
    width: 80%;
    height: 80%;
    background: rgba(174, 197, 201, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    border-radius: 10px;
}

/* ---------- Ventana Modal ---------- */
button > * {
pointer-events: none; /* Bloquea eventos en todos los hijos directos de botones */
}

/* Estilos mejorados para la tabla de cartera */
.btnContenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.btnContenedor .btn {
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btnContenedor .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Mejorar la apariencia de celdas en edición */
.celda-editando {
    background: rgba(25, 135, 84, 0.15) !important;
    border: 2px solid #198754 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.2) !important;
}

/* Animación suave para transiciones */
.tabla-cartera td {
    transition: all 0.2s ease;
}

/* Mejorar el diseño de los datos del estudiante */
.datosVertical > div {
    margin-bottom: 8px;
    padding: 4px 0;
}

.datosVertical > div > :first-child {
    min-width: 80px;
    font-weight: 600;
    color: #0d6efd;
}

.datosVertical > div > :nth-child(2) {
    color: #495057;
    font-weight: 500;
}

/* ---------- Reloj (js/global/basics.js) ---------- */
.reloj {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0s linear 0.2s;
}
.reloj.relojVisible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease-in-out, visibility 0s linear 0s;
}
.relojSpinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 5px solid rgba(30, 109, 255, 0.15);
    border-top-color: var(--color-primario);
    animation: relojGirar 0.8s linear infinite;
}
@keyframes relojGirar {
    to { transform: rotate(360deg); }
}
