body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f6f8;
    color: #222;
}

html, body {
    min-height: 100%;
    overflow-y: scroll;
}

body {
    padding-bottom: 40px;
	overflow-y: auto;
}


.header {
    height: 70px;
    background: #3f7fd5;
}

.subheader {
    height: 45px;
    background: #b7d0f1;
}

.container {
    width: 90%;
    max-width: 1700px;
    margin: 25px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border-radius: 10px;
    border: 1px solid #ececec;
    box-shadow:
        0 6px 15px rgba(0,0,0,.08),
        0 18px 40px rgba(0,0,0,.12);
}

.container-formulario {
    width: 55%;
    max-width: 1250px;
    margin: 35px auto;
    padding: 35px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ececec;
    box-shadow:
        0 6px 15px rgba(0,0,0,.08),
        0 18px 40px rgba(0,0,0,.12);
}

h1 {
    color: #2f6fc2;
    margin-bottom: 5px;
}

h2 {
    color: #666;
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 30px;
}

h3 {
    margin-top: 30px;
    color: #2f6fc2;
}

label {
    display: block;
    margin-top: 18px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="file"] {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    margin-top: 30px;
    background: #3f7fd5;
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #e8f1ff;
    color: #185abd;
    box-shadow: 0 2px 8px rgba(24, 90, 189, 0.25);
}
.topbar{
    height:85px;
    background:#3f7fd5;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 30px;
    position:relative;
}

.lado-izquierdo{
    width:260px;
    display:flex;
    align-items:center;
}

.lado-derecho{
    width:260px;
    display:flex;
    justify-content:flex-end;
    align-items:center;
}

.titulo-superior{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    color:#fff;
    font-size:28px;
    font-weight:bold;
    white-space:nowrap;
}

.btn-acceder {
    background: #ffffff;
    color: #2f6fc2;
    border: none;
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-acceder:hover {
    background: #e8f1ff;
    color: #185abd;
}

.modal-login {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background: #fff;
    width: 380px;
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,.25);
    position: relative;
}

.modal-contenido h2 {
    color: #2f6fc2;
    margin-top: 0;
}

.modal-contenido input {
    width: 100%;
    padding: 11px;
    margin: 8px 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-contenido button {
    width: 100%;
    background: #3f7fd5;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
}

.cerrar {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 26px;
    cursor: pointer;
}

/* ===========================
   TABLA POSTULANTES
=========================== */

.tabla {
    width: 100%;
    min-width: 1850px;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed;
}

/* Encabezado */

.tabla thead th{
    background:#3f7fd5;
    color:#fff;
    font-weight:600;
    padding:14px 18px;
    border-bottom:2px solid #2e6ec2;
    text-align:left;
}

.tabla tbody td{
    padding:14px 12px;
    border-bottom:1px solid #e5e5e5;
    vertical-align:middle;
    text-align:left;
	font-size:14px;
}

/* Hover */

.tabla tbody tr:hover{

    background:#f8fbff;

}

.centrado{
    text-align:center;
}

.fecha-envio{
    white-space:nowrap;
    font-weight:bold;
}

.col-rut{
    white-space:nowrap;
}

.col-correo{
    width:200px;
    white-space:nowrap;
}

.col-estado{
    width:170px;
    text-align:center;
}

.col-docs{
    width:80px;
    text-align:center;
}

.col-ver{
    width:60px;
    text-align:center;
}

/* Badge documentos */

.badge-documentos{
    display:inline-block;
    min-width:28px;
    padding:4px 10px;
    border-radius:20px;
    background:#eef2f7;
    color:#555;
    font-weight:bold;
}

/* Botón lupa */

.btn-ver-mini{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:34px;
    height:34px;
    border-radius:50%;
    background:#3f7fd5;
    color:#fff;
    text-decoration:none;
    font-size:16px;
    transition:.2s;
}

.btn-ver-mini:hover{
    background:#185abd;
    transform:scale(1.08);
}

.doc-item {
    margin-bottom: 8px;
}

.doc-item a {
    color: #2f6fc2;
    font-weight: bold;
    text-decoration: none;
}

.doc-item a:hover {
    text-decoration: underline;
}

.tabla-responsive{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    margin-top:15px;
    border:1px solid #e5e5e5;
    border-radius:6px;
}


.link-doc {
    color: #005eb8;
    font-weight: 600;
    text-decoration: none;
}

.link-doc:hover {
    text-decoration: underline;
}

.link-descarga {
    color: #555;
    font-size: 12px;
    text-decoration: none;
}

.sin-doc {
    color: #999;
    font-size: 13px;
}

.col-rut {
    min-width: 120px;
    white-space: nowrap;
}

.acciones {
    margin: 20px 0;
}

.btn-exportar {
    background: #3f7fd5;
    color: #fff;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.btn-exportar:hover {
    background: #e8f1ff;
    color: #185abd;
}

.logo-uc{
    height:68px;
}


.control-registros{
    display:flex;
    align-items:center;
    gap:8px;
    margin:15px 0 20px;
    font-size:15px;
}

.control-registros label{
    font-weight:bold;
    margin:0;
    line-height:34px;
}

.control-registros select{
    width:75px;
    height:34px;
    padding:4px 8px;
    border:1px solid #bdbdbd;
    border-radius:4px;
    font-size:14px;
    margin:0;
}

.control-registros span{
    line-height:34px;
    margin:0;
}


.footer-tabla{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:15px;
    width:100%;
}

.info-paginacion{
    font-size:14px;
    color:#555;
}

.paginacion{
    display:flex;
    gap:5px;
}

.paginacion a {
    display: inline-block;
    padding: 7px 11px;
    margin-right: 4px;
    background: #f1f1f1;
    color: #2f6fc2;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.paginacion a.activo,
.paginacion a:hover {
    background: #3f7fd5;
    color: #fff;
}

.fecha-envio{
    min-width:140px;
    white-space:nowrap;
    font-weight:700;
    color:#333;
}

.btn-ver {
    background: #3f7fd5;
    color: #fff;
    padding: 7px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.btn-ver:hover {
    background: #185abd;
}

.nombre-archivo{
    max-width:650px;
    white-space:normal;
    word-break:break-word;
    overflow-wrap:anywhere;
    line-height:1.35;
}

.form-estado{
    display:flex;
    align-items:center;
    gap:15px;
    margin:25px 0;
}

.form-estado label {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.form-estado select {
    width: 190px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #bdbdbd;
    padding: 0 10px;
    font-size: 14px;
    font-weight: bold;
}

.form-estado button{
    height:42px;
}

.estado-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.estado-revision {
    background: #e8f1ff;
    color: #185abd;
}

.estado-aceptado {
    background: #e7f6ec;
    color: #198754;
}

.estado-rechazado {
    background: #fdecec;
    color: #dc3545;
}
.estado-decreto{
    background:#dce3d3;
    color:#5c664f;
}

.form-observacion {
    margin: 20px 0;
}

.form-observacion label {
    display: block;
    margin-bottom: 8px;
}

.form-observacion textarea {
    width: 100%;
    max-width: 650px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    resize: vertical;
}

.form-observacion button {
    display: block;
    margin-top: 10px;
}

.col-observaciones {
    max-width: 260px;
    white-space: normal;
    word-break: break-word;
    font-size: 13px;
    color: #444;
}

.form-checks {
    margin: 20px 0;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.check-row label {
    width: 220px;
    font-weight: bold;
}

.check-row select {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
}

.select-si {
    background: #e7f6ec;
    color: #198754;
    border: 1px solid #198754;
}

.select-no {
    background: #fdecec;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.col-observaciones{
    max-width:220px;
    white-space:normal;
    word-break:break-word;
    font-size:13px;
    color:#555;
}

.tabla td:nth-child(9){
    vertical-align:top;
}

.si{
    color:#198754;
    font-weight:bold;
}

.no{
    color:#dc3545;
    font-weight:bold;
}

.usuario-bar {
    gap: 15px;
}

.usuario-autenticado {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.col-modificado{
    min-width:220px;
}

.col-fecha-modificacion{
    min-width:170px;
    white-space:nowrap;
}

.tabla-documentos-responsive{
    width:95%;
    overflow-x:auto;
    margin-top:15px;
}

.tabla-documentos{
    width:100%;
    min-width:800px;
    table-layout:fixed;
}

.tabla-documentos th,
.tabla-documentos td{
    padding:14px 16px;
    vertical-align:middle;
}

.tabla-documentos th:nth-child(3),
.tabla-documentos td:nth-child(3){
    text-align:center;
    white-space:nowrap;
}

.nombre-archivo{
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.4;
}

.label-buscar {
    margin-left: 14px;
}

.input-buscar{
    width:260px;      /* antes ocupaba casi todo el ancho */
    height:34px;
    padding:0 10px;
    font-size:14px;
    border:1px solid #cfcfcf;
    border-radius:4px;
}

..control-registros{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.input-buscar{
    width:220px !important;
    flex:none !important;
    height:34px;
    padding:0 10px;
    border:1px solid #bdbdbd;
    border-radius:4px;
    font-size:14px;
}

.btn-buscar,
.btn-limpiar{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    height:34px;
    min-width:78px;

    padding:0 14px;

    border-radius:4px;
    border:none;

    font-size:14px;
    font-weight:600;

    text-decoration:none;

    cursor:pointer;

    box-sizing:border-box;
}

.btn-buscar{
    background:#3f7fd5;
    color:#fff;
}

.btn-limpiar{
    background:#777;
    color:#fff;
}

.btn-buscar:hover{
    background:#326bc0;
}

.btn-limpiar:hover{
    background:#5d5d5d;
}

.carga-manual {
    max-width: 680px;
    margin-top: 24px;
    padding: 18px 20px;
    background: #f7faff;
    border: 1px solid #d9e6f7;
    border-radius: 8px;
}

.carga-manual h4 {
    margin: 0 0 14px;
    color: #2f6fc2;
    font-size: 17px;
}

.form-carga-manual {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.campo-carga-manual {
    flex: 1;
    min-width: 300px;
}

.campo-carga-manual label {
    display: block;
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: bold;
}

.campo-carga-manual input[type="file"] {
    width: 100%;
    margin: 0;
    padding: 8px;
    box-sizing: border-box;
    background: #fff;
}

.form-carga-manual .btn-ver {
    margin: 0;
    white-space: nowrap;
}

.ayuda-carga {
    margin: 10px 0 0;
    color: #666;
    font-size: 12px;
}

.mensaje-exito {
    margin: 15px 0;
    padding: 12px 16px;
    max-width: 650px;
    background: #e7f6ec;
    color: #198754;
    border: 1px solid #b9e2c7;
    border-radius: 6px;
    font-weight: bold;
}
.descarga-documentacion-uc {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 22px;
    padding: 12px 14px;
    max-width: 520px;
    background: #f3f7fd;
    border: 1px solid #c9dbf3;
    border-radius: 6px;
    font-size: 14px;
}

.descarga-documentacion-uc span {
    font-weight: 600;
    color: #333;
}

.btn-descarga-uc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background: #3f7fd5;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.btn-descarga-uc:hover {
    background: #185abd;
    color: #fff;
}

.tipo-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.tipo-nuevo {
    background: #e3f2fd;
    color: #1565c0;
}

.tipo-interno {
    background: #e8f5e9;
    color: #2e7d32;
}

.encabezado-documentos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.encabezado-documentos h3 {
    margin: 0;
}

.encabezado-documentos .btn-exportar {
    white-space: nowrap;
}

.btn-eliminar-registro {
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #dc3545;
    color: #ffffff;

    font-size: 17px;
    font-weight: bold;
    line-height: 1;

    cursor: pointer;
    transition: 0.2s;
}

.btn-eliminar-registro:hover {
    background: #b02a37;
    transform: scale(1.08);
}

    margin-top: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    text-align: right;
    color: #666;
}

.recuperar-password a {
    color: #2f70c9;
    font-weight: 600;
    text-decoration: none;
}

.recuperar-password a:hover {
    text-decoration: underline;
}

/* =========================================================
   PANEL ADMINISTRADOR
========================================================= */

.texto-panel {
    margin-bottom: 28px;
    color: #666;
}


/* ACCESOS */

.panel-accesos {
    display: flex;
    gap: 20px;
    margin: 25px 0 40px;
    flex-wrap: wrap;
}


/* TARJETAS */

.card-admin {
    flex: 1;
    min-width: 280px;
    max-width: 420px;

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #dce4ef;
    border-radius: 9px;

    text-decoration: none;

    box-shadow: 0 3px 10px rgba(0,0,0,.07);

    transition: .2s;
}


.card-admin:hover {
    border-color: #3f7fd5;
    box-shadow: 0 5px 16px rgba(63,127,213,.18);
    transform: translateY(-2px);
}


/* ICONO */

.card-admin-icono {

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e8f1ff;
    color: #2f6fc2;

    border-radius: 50%;

    font-size: 27px;
    font-weight: bold;

    flex-shrink: 0;
}


/* TEXTO */

.card-admin-contenido {

    display: flex;
    flex-direction: column;
    gap: 5px;

}


.card-admin-contenido strong {

    color: #2f6fc2;
    font-size: 17px;

}


.card-admin-contenido span {

    color: #666;
    font-size: 13px;

}


/* =========================================================
   RESUMEN
========================================================= */

.titulo-resumen {

    color: #2f6fc2;
    font-size: 20px;
    margin-bottom: 18px;

}


.resumen-formularios {

    display: flex;
    gap: 18px;
    flex-wrap: wrap;

    margin-bottom: 30px;

}


.resumen-card {

    min-width: 180px;

    padding: 20px 25px;

    background: #f8faff;

    border: 1px solid #dbe6f5;
    border-radius: 8px;

    display: flex;
    flex-direction: column;

}


.resumen-numero {

    font-size: 28px;
    font-weight: bold;
    color: #2f6fc2;

}


.resumen-label {

    margin-top: 5px;

    font-size: 13px;
    color: #666;

}


/* =========================================================
   GRÁFICO
========================================================= */

.grafico-formularios {

    max-width: 650px;

    margin-top: 20px;

    padding: 25px;

    background: #fff;

    border: 1px solid #e0e5ec;
    border-radius: 9px;

}


.grafico-formularios h3 {

    margin: 0 0 25px;

    color: #2f6fc2;

}


/* FILA */

.grafico-fila {

    margin-bottom: 22px;

}


/* ETIQUETA */

.grafico-etiqueta {

    display: flex;
    justify-content: space-between;

    margin-bottom: 7px;

    font-size: 14px;

}


/* CONTENEDOR BARRA */

.grafico-barra {

    height: 14px;

    background: #edf0f4;

    border-radius: 20px;

    overflow: hidden;

}


/* PROGRESO */

.grafico-progreso {

    height: 100%;

    border-radius: 20px;

    transition: width .4s ease;

}


/* DOCENTE NUEVO */

.grafico-nuevo {

    background: #3f7fd5;

}


/* DOCENTE INTERNO */

.grafico-interno {

    background: #5ca86a;

}

.btn-panel-admin {
    display: inline-block;
    background-color: #3f7fd5;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 8px;
}

.btn-panel-admin:hover {
    background-color: #2f69b8;
    color: #ffffff;
    text-decoration: none;
}