body {
    font-family: Arial, sans-serif;
    background-color: #f1f5f9;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.tarjeta {
    width: 320px;
    min-height: 450px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);

    display: flex;
    flex-direction: column;
    align-items: center;

    overflow: hidden;
}

.foto {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.info {
    width: 100%;
    text-align: center;
}

.info h2 {
    font-size: 22px;
    margin: 10px 0;
    color: #222;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.matricula {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.info p {
    margin: 8px 0;
    line-height: 1.5;
    color: #444;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Interfaz de la práctica: navegación propia y formularios del API */
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f1f5f9; color: #242424; font-family: Arial, sans-serif; padding: 0; }
.pagina { width: min(1530px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0; }
.encabezado { text-align: center; margin-bottom: 44px; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 36px; }
.acciones-principales, .botones-formulario { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.acciones-principales { justify-content: flex-end; margin: -64px 4px 0 0; }
.acceso-rapido { align-items: center; color: #25313e; display: inline-flex; flex-direction: column; font-weight: 700; gap: 5px; min-width: 86px; text-decoration: none; }
.acceso-rapido span { align-items: center; background: #fff; border: 2px solid currentColor; border-radius: 50%; display: flex; font-family: Arial, sans-serif; font-size: 2rem; font-weight: 400; height: 54px; justify-content: center; line-height: 1; transition: transform .15s ease, box-shadow .15s ease; width: 54px; }
.acceso-rapido:hover span { box-shadow: 0 5px 12px rgba(15, 23, 42, .18); transform: translateY(-3px); }
.acceso-rapido small { font-size: .85rem; }
.acceso-nuevo { color: #236d92; } .acceso-consulta { color: #7d4d91; }
.boton { border: 0; border-radius: 14px; cursor: pointer; display: inline-block; font-size: 1.1rem; font-weight: 700; padding: 17px 36px; text-align: center; text-decoration: none; transition: transform .15s ease, filter .15s ease; }
.boton:hover { filter: brightness(.94); transform: translateY(-1px); }
.boton-buscar { background: #ff8c29; color: #272019; } .boton-guardar { background: #b2a815; color: #fff; } .boton-cancelar { background: #fee9aa; color: #5b4300; } .boton-borrar { background: #df3540; color: #fff; }
.contenedor { display: grid; gap: 38px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tarjeta { align-items: center; background: #fff; border-radius: 17px; box-shadow: 0 6px 19px rgba(15, 23, 42, .16); display: flex; flex-direction: column; min-height: 640px; overflow: hidden; padding: 30px; width: auto; }
.foto { border-radius: 50%; height: 210px; margin-bottom: 24px; object-fit: cover; width: 210px; }
.info { text-align: center; width: 100%; } .info h2 { color: #1f2937; font-size: 2rem; margin: 9px 0 24px; overflow-wrap: break-word; text-transform: uppercase; } .matricula { color: #374151; font-size: 1.25rem; margin-bottom: 22px; } .info p { color: #374151; font-size: 1.2rem; line-height: 1.5; margin: 15px 0; overflow-wrap: break-word; }
.sin-registros { background: #fff; border-radius: 17px; box-shadow: 0 6px 19px rgba(15, 23, 42, .12); margin: 0 auto 32px; max-width: 700px; padding: 30px; text-align: center; }
.panel-formulario { background: #fff; border: 1px solid #cbd5e1; margin: 0 auto; max-width: 975px; } .panel-formulario h2 { background: #135883; color: #fff; font-size: 2rem; margin: 0 0 34px; padding: 24px 32px; } .panel-formulario form { padding: 0 38px 38px; } .panel-formulario h3 { background: #e9eff7; font-size: 1rem; margin: 0 0 20px; padding: 10px; }
.campo { align-items: center; display: grid; gap: 18px; grid-template-columns: 245px 1fr; margin: 22px 0; } .campo label, .busqueda label { font-size: 1.15rem; font-weight: 700; } input, select { border: 1px solid #cbd5e1; border-radius: 7px; font: inherit; min-height: 52px; padding: 10px 14px; width: 100%; } input[readonly] { background: #edf0f4; } input[type="file"] { background: #fff; padding: 9px; } .vista-previa { border: 1px solid #cbd5e1; height: 150px; object-fit: cover; width: 150px; }
.busqueda { align-items: center; display: grid; gap: 12px; grid-template-columns: 125px 1fr auto; margin-bottom: 20px; } .busqueda .boton { border-radius: 7px; font-size: 1rem; padding: 14px 28px; } .mensaje { font-weight: 700; min-height: 24px; text-align: center; } .mensaje-exito { color: #14733c; } .mensaje-error { color: #b42318; } .oculto { display: none; }
@media (max-width: 640px) { .pagina { width: min(100% - 24px, 1530px); padding-top: 30px; } .acciones-principales { justify-content: center; margin: 0; } .encabezado h1 { margin-bottom: 22px; } .campo, .busqueda { grid-template-columns: 1fr; } .panel-formulario form { padding: 0 20px 25px; } .tarjeta { min-height: auto; } .info h2 { font-size: 1.5rem; } }

.modal { align-items: center; background: rgba(15, 23, 42, .58); backdrop-filter: blur(7px); display: flex; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 20; }
.modal.oculto { display: none; }
.modal-contenido { background: #fff; border: 1px solid #cbd5e1; border-radius: 18px; box-shadow: 0 20px 60px rgba(15, 23, 42, .35); max-height: 92vh; max-width: 850px; overflow-y: auto; padding: 32px; position: relative; width: 100%; }
.modal-contenido h2 { color: #135883; font-size: 2rem; margin: 0 0 24px; text-align: center; }
.modal-contenido form { padding: 0; }
.cerrar-modal { background: #eef2f7; border: 0; border-radius: 50%; color: #334155; cursor: pointer; font-size: 1.8rem; height: 42px; line-height: 1; position: absolute; right: 18px; top: 16px; width: 42px; }
.cerrar-modal:hover { background: #df3540; color: #fff; }
.resultado-alumno { align-items: center; background: #fff; border: 1px solid #dbe3ec; border-radius: 17px; box-shadow: 0 5px 16px rgba(15, 23, 42, .14); display: flex; flex-direction: column; margin: 24px auto; max-width: 390px; padding: 24px; text-align: center; }
.resultado-alumno.oculto { display: none; }
.resultado-alumno .foto { height: 170px; margin-bottom: 16px; width: 170px; }
.resultado-alumno .info h2 { font-size: 1.45rem; margin: 8px 0 18px; }
.resultado-alumno .info p { font-size: 1rem; margin: 10px 0; }
.resultado-acciones { display: flex; gap: 10px; margin-top: 18px; }
.resultado-acciones .boton { font-size: .9rem; padding: 10px 16px; }


