/*
 * ============================================================
 * ADMINISTRACIÓN
 * FERIA NAVIDEÑA 2026 - CUREPTO
 * HOJA DE ESTILOS GENERAL
 * ============================================================
 */


/* ============================================================
   RESET GENERAL
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f6f9;

    color: #263238;

    line-height: 1.5;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


/* ============================================================
   LOGIN
   ============================================================ */

.login-body {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        radial-gradient(
            circle at top left,
            rgba(255,255,255,.12),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #0f5132,
            #198754
        );
}


.login-contenedor {

    width: 100%;

    max-width: 450px;

    padding: 20px;
}


.login-card {

    background: #ffffff;

    border-radius: 18px;

    padding: 40px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, .20);

    text-align: center;
}


.login-logo img {

    width: 110px;

    height: 110px;

    max-height: 110px;

    object-fit: contain;
}


.login-card h1 {

    margin:
        20px 0 8px;

    color: #12372a;

    font-size: 28px;
}


.login-subtitulo {

    color: #6c757d;

    line-height: 1.6;

    margin-bottom: 20px;
}


.campo-admin {

    text-align: left;

    margin-top: 20px;
}


.campo-admin label {

    display: block;

    margin-bottom: 7px;

    color: #495057;

    font-size: 13px;

    font-weight: 700;
}


.campo-admin input,
.campo-admin select,
.campo-admin textarea {

    width: 100%;

    padding:
        12px 14px;

    border:
        1px solid #ced4da;

    border-radius: 9px;

    background: #ffffff;

    color: #212529;

    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.campo-admin input {

    min-height: 44px;
}


.campo-admin input:focus,
.campo-admin select:focus,
.campo-admin textarea:focus {

    outline: none;

    border-color: #198754;

    box-shadow:
        0 0 0 3px
        rgba(25, 135, 84, .12);
}


.btn-login {

    width: 100%;

    margin-top: 25px;

    padding: 14px;

    border: 0;

    border-radius: 9px;

    background: #198754;

    color: #ffffff;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.btn-login:hover {

    background: #146c43;

    transform: translateY(-1px);

    box-shadow:
        0 6px 16px
        rgba(20, 108, 67, .20);
}


.volver-web {

    display: inline-block;

    margin-top: 25px;

    color: #198754;

    text-decoration: none;

    font-weight: 600;
}


.volver-web:hover {

    color: #146c43;

    text-decoration: underline;
}


.alerta-error {

    background: #fcebea;

    border:
        1px solid #f1b8b5;

    color: #b42318;

    padding: 12px;

    border-radius: 8px;

    margin-top: 20px;

    font-size: 13px;
}


/* ============================================================
   LAYOUT ADMINISTRATIVO
   ============================================================ */

.admin-layout {

    min-height: 100vh;

    display: flex;
}


.admin-sidebar {

    width: 260px;

    background:
        linear-gradient(
            180deg,
            #12372a 0%,
            #0d2d22 100%
        );

    color: #ffffff;

    position: fixed;

    left: 0;

    top: 0;

    bottom: 0;

    overflow-y: auto;

    z-index: 1000;

    box-shadow:
        4px 0 18px
        rgba(0, 0, 0, .08);
}


.admin-brand {

    padding: 28px 20px;

    text-align: center;

    border-bottom:
        1px solid
        rgba(255,255,255,.10);
}


.admin-brand img {

    width: 80px;

    height: 80px;

    object-fit: contain;

    margin-bottom: 10px;
}


.admin-brand strong {

    display: block;

    font-size: 17px;

    line-height: 1.3;
}


.admin-brand span {

    display: block;

    margin-top: 7px;

    color: #b8d8ca;

    font-size: 13px;
}


.admin-menu {

    padding: 15px;
}


.admin-menu a {

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 13px 15px;

    margin-bottom: 5px;

    border-radius: 8px;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;
}


.admin-menu a:hover {

    background:
        rgba(25, 135, 84, .65);

    transform: translateX(2px);
}


.admin-menu a.activo {

    background: #198754;

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, .12);
}


/* ============================================================
   CONTENIDO PRINCIPAL
   ============================================================ */

.admin-contenido {

    margin-left: 260px;

    width: calc(100% - 260px);

    min-width: 0;

    padding: 30px;
}


.admin-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 30px;
}


.admin-header h1 {

    margin: 0;

    color: #12372a;

    font-size: 30px;

    line-height: 1.2;
}


.admin-header p {

    margin:
        8px 0 0;

    color: #6c757d;

    font-size: 14px;

    line-height: 1.6;
}


.rol-usuario {

    display: inline-block;

    margin-left: 10px;

    padding: 5px 10px;

    border-radius: 20px;

    background: #e7f5ec;

    color: #146c43;

    font-size: 11px;

    font-weight: 700;

    vertical-align: middle;
}


/* ============================================================
   ESTADÍSTICAS DASHBOARD
   ============================================================ */

.estadisticas {

    display: grid;

    grid-template-columns:
        repeat(
            6,
            minmax(150px, 1fr)
        );

    gap: 18px;

    margin-bottom: 25px;
}


.stat-card {

    position: relative;

    background: #ffffff;

    border-radius: 14px;

    padding: 22px;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, .06);

    border-left: 5px solid;

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.stat-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, .08);
}


.stat-card span {

    display: block;

    color: #6c757d;

    font-size: 13px;

    font-weight: 600;
}


.stat-card strong {

    display: block;

    margin-top: 10px;

    color: #212529;

    font-size: 30px;

    line-height: 1;
}


.stat-card.azul {
    border-color: #0d6efd;
}

.stat-card.amarillo {
    border-color: #ffc107;
}

.stat-card.morado {
    border-color: #6f42c1;
}

.stat-card.verde {
    border-color: #198754;
}

.stat-card.naranja {
    border-color: #fd7e14;
}

.stat-card.rojo {
    border-color: #dc3545;
}


/* ============================================================
   BLOQUES GENERALES
   ============================================================ */

.bloque-dashboard {

    background: #ffffff;

    border-radius: 15px;

    padding: 25px;

    margin-bottom: 25px;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, .05);

    border:
        1px solid rgba(0, 0, 0, .02);
}


.bloque-titulo {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}


.bloque-titulo h2 {

    margin: 0;

    color: #212529;

    font-size: 20px;
}


.bloque-titulo p {

    color: #6c757d;

    margin:
        7px 0 0;

    font-size: 13px;

    line-height: 1.5;
}


.btn-ver-todas {

    white-space: nowrap;
}


/* ============================================================
   CONDICIONES DASHBOARD
   ============================================================ */

.condiciones-dashboard {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


.condicion-dashboard {

    position: relative;

    padding: 25px;

    border-radius: 12px;

    overflow: hidden;
}


.condicion-dashboard::after {

    content: '';

    position: absolute;

    width: 100px;

    height: 100px;

    right: -30px;

    bottom: -40px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.35);
}


.condicion-dashboard span {

    display: block;

    font-weight: 600;

    font-size: 14px;
}


.condicion-dashboard strong {

    display: block;

    font-size: 36px;

    line-height: 1;

    margin-top: 10px;
}


.condicion-dashboard small {

    display: block;

    margin-top: 8px;

    opacity: .75;

    font-size: 12px;
}


.condicion-dashboard.cureptano {

    background:
        linear-gradient(
            135deg,
            #e7f5ec,
            #d8f0e2
        );

    color: #146c43;
}


.condicion-dashboard.no-cureptano {

    background:
        linear-gradient(
            135deg,
            #e8f1ff,
            #dfeaff
        );

    color: #0d6efd;
}


/* ============================================================
   RESUMEN DE ESTADOS DEL DASHBOARD
   ============================================================ */

.resumen-estados {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px, 1fr)
        );

    gap: 12px;
}


.resumen-estado {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    border:
        1px solid #e9ecef;

    border-radius: 11px;

    background: #ffffff;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.resumen-estado:hover {

    transform: translateY(-2px);

    box-shadow:
        0 5px 16px
        rgba(0,0,0,.06);
}


.resumen-estado-color {

    width: 10px;

    min-width: 10px;

    height: 42px;

    border-radius: 10px;

    background:
        var(--estado-color, #6c757d);
}


.resumen-estado-info {

    min-width: 0;
}


.resumen-estado-info span {

    display: block;

    color: #6c757d;

    font-size: 12px;

    font-weight: 600;

    word-break: break-word;
}


.resumen-estado-info strong {

    display: block;

    margin-top: 3px;

    color: #212529;

    font-size: 23px;
}


/* ============================================================
   TABLAS
   ============================================================ */

.tabla-responsive {

    width: 100%;

    overflow-x: auto;

    border-radius: 10px;

    scrollbar-width: thin;

    scrollbar-color:
        #b8c2cc
        #f1f3f5;
}


.tabla-responsive::-webkit-scrollbar {

    height: 8px;
}


.tabla-responsive::-webkit-scrollbar-track {

    background: #f1f3f5;
}


.tabla-responsive::-webkit-scrollbar-thumb {

    background: #b8c2cc;

    border-radius: 10px;
}


.tabla-admin {

    width: 100%;

    border-collapse: separate;

    border-spacing: 0;

    background: #ffffff;
}


.tabla-admin th {

    text-align: left;

    background: #f8f9fa;

    padding: 13px;

    font-size: 12px;

    color: #495057;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .2px;

    border-bottom:
        1px solid #e9ecef;

    white-space: nowrap;
}


.tabla-admin th:first-child {

    border-top-left-radius: 8px;
}


.tabla-admin th:last-child {

    border-top-right-radius: 8px;
}


.tabla-admin td {

    padding: 14px 13px;

    border-top:
        1px solid #eeeeee;

    font-size: 13px;

    vertical-align: middle;
}


.tabla-admin tbody tr {

    transition:
        background-color .15s ease;
}


.tabla-admin tbody tr:hover {

    background: #fafcfb;
}


.tabla-admin tbody tr:first-child td {

    border-top: none;
}


.tabla-admin td strong {

    color: #212529;
}


.btn-tabla,
.btn-ver-todas {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 34px;

    padding:
        7px 12px;

    background: #198754;

    color: #ffffff;

    border-radius: 7px;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;
}


.btn-tabla:hover,
.btn-ver-todas:hover {

    background: #146c43;

    color: #ffffff;

    transform: translateY(-1px);
}


.sin-registros {

    text-align: center;

    padding: 30px !important;

    color: #6c757d;
}


.sin-registros-icono {

    font-size: 40px;

    margin-bottom: 12px;
}


.sin-registros strong {

    color: #495057;
}


.sin-registros span {

    display: inline-block;

    margin-top: 8px;

    color: #6c757d;

    font-size: 13px;
}


/* ============================================================
   ESTADOS DE POSTULACIÓN
   ============================================================ */

.estado {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 27px;

    padding:
        5px 10px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;
}


.estado-ingresada {

    background: #fff3cd;

    color: #856404;
}


.estado-en-revisión {

    background: #e7ddff;

    color: #59359a;
}


.estado-aprobada {

    background: #d1e7dd;

    color: #0f5132;
}


.estado-observada {

    background: #ffe5d0;

    color: #984c0c;
}


.estado-rechazada {

    background: #f8d7da;

    color: #842029;
}


/* ============================================================
   FILTROS DE POSTULACIONES / REPORTES
   ============================================================ */

.filtros-card {

    background: #ffffff;

    border-radius: 15px;

    padding: 25px;

    margin-bottom: 25px;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, .05);

    border:
        1px solid #eef0f2;
}


.filtro-busqueda {

    margin-bottom: 20px;
}


.filtro-busqueda label,
.campo-filtro label {

    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    font-weight: 700;

    color: #495057;
}


.filtro-busqueda input,
.campo-filtro select {

    width: 100%;

    min-height: 44px;

    padding:
        10px 13px;

    border:
        1px solid #ced4da;

    border-radius: 8px;

    background: #ffffff;

    color: #212529;

    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.filtro-busqueda input::placeholder {

    color: #adb5bd;
}


.filtro-busqueda input:focus,
.campo-filtro select:focus {

    outline: none;

    border-color: #198754;

    box-shadow:
        0 0 0 3px
        rgba(25, 135, 84, .12);
}


.filtros-grid {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(150px, 1fr)
        );

    gap: 15px;
}


.campo-filtro {

    min-width: 0;
}


.filtros-acciones {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 20px;

    flex-wrap: wrap;
}


.btn-principal-admin,
.btn-secundario-admin {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding:
        0 18px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 700;

    font-size: 13px;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.btn-principal-admin {

    border:
        1px solid #198754;

    background: #198754;

    color: #ffffff;
}


.btn-principal-admin:hover {

    background: #146c43;

    border-color: #146c43;

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px
        rgba(25, 135, 84, .18);
}


.btn-secundario-admin {

    background: #f1f3f5;

    color: #495057;

    border:
        1px solid #dee2e6;
}


.btn-secundario-admin:hover {

    background: #e9ecef;

    border-color: #ced4da;

    color: #343a40;
}


/* ============================================================
   TABLA DE POSTULACIONES
   ============================================================ */

.tabla-postulaciones {

    min-width: 1250px;
}


.tabla-postulaciones th {

    white-space: nowrap;
}


.tabla-postulaciones td {

    vertical-align: middle;
}


.dato-secundario {

    display: block;

    margin-top: 4px;

    color: #6c757d;

    font-size: 11px;

    line-height: 1.3;
}


.etiqueta-condicion {

    display: inline-block;

    padding:
        5px 9px;

    border-radius: 20px;

    background: #f1f8f4;

    color: #146c43;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;
}


.puestos-badge {

    display: inline-block;

    padding:
        5px 9px;

    border-radius: 20px;

    background: #eef3ff;

    color: #3157a5;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;
}


.fecha-postulacion {

    display: block;

    white-space: nowrap;

    font-size: 13px;

    color: #343a40;
}


/* ============================================================
   PAGINACIÓN
   ============================================================ */

.paginacion {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    margin-top: 25px;

    flex-wrap: wrap;
}


.pagina-btn {

    min-width: 38px;

    height: 38px;

    padding:
        0 10px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid #dee2e6;

    border-radius: 7px;

    background: #ffffff;

    color: #495057;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;
}


.pagina-btn:hover {

    background: #f1f8f4;

    border-color: #198754;

    color: #146c43;
}


.pagina-btn.pagina-activa {

    background: #198754;

    border-color: #198754;

    color: #ffffff;

    box-shadow:
        0 4px 10px
        rgba(25, 135, 84, .18);
}


.pagina-puntos {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 30px;

    color: #6c757d;
}


/* ============================================================
   RESUMEN DE POSTULACIONES
   ============================================================ */

.resumen-postulaciones {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                160px,
                1fr
            )
        );

    gap: 14px;

    margin-bottom: 25px;
}


.resumen-postulacion {

    position: relative;

    display: flex;

    align-items: center;

    gap: 13px;

    min-height: 90px;

    padding: 17px;

    background: #ffffff;

    border-radius: 13px;

    border:
        1px solid #e9ecef;

    box-shadow:
        0 3px 15px
        rgba(0, 0, 0, .04);

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.resumen-postulacion:hover {

    transform: translateY(-2px);

    box-shadow:
        0 7px 20px
        rgba(0, 0, 0, .07);
}


.resumen-postulacion::before {

    content: '';

    position: absolute;

    left: 0;

    top: 0;

    bottom: 0;

    width: 4px;

    background:
        var(
            --color-estado,
            #198754
        );
}


.resumen-postulacion.total::before {

    background: #198754;
}


.resumen-icono {

    width: 43px;

    height: 43px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: #f1f8f4;

    color:
        var(
            --color-estado,
            #198754
        );

    font-size: 20px;

    font-weight: 800;
}


.resumen-postulacion.total
.resumen-icono {

    background: #eaf7ef;

    color: #198754;
}


.resumen-postulacion strong {

    display: block;

    color: #212529;

    font-size: 24px;

    line-height: 1;
}


.resumen-postulacion span {

    display: block;

    margin-top: 5px;

    color: #6c757d;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .2px;
}


/* ============================================================
   REPORTES
   ============================================================ */

.detalle-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 20px;

    margin-bottom: 25px;
}


.detalle-card {

    background: #ffffff;

    border-radius: 15px;

    padding: 24px;

    margin-bottom: 25px;

    border:
        1px solid #eef0f2;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, .05);
}


.detalle-grid .detalle-card {

    margin-bottom: 0;
}


.detalle-card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}


.detalle-card-header > div {

    display: flex;

    align-items: center;

    gap: 12px;
}


.detalle-card-header h2 {

    margin: 0;

    color: #212529;

    font-size: 18px;
}


.detalle-card-header p {

    margin: 4px 0 0;

    color: #6c757d;

    font-size: 12px;
}


.detalle-numero {

    width: 34px;

    height: 34px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #198754,
            #146c43
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0 4px 10px
        rgba(25, 135, 84, .18);
}


.detalle-datos {

    display: flex;

    flex-direction: column;

    gap: 9px;
}


.dato {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    min-height: 46px;

    padding:
        10px 13px;

    border:
        1px solid #edf0f2;

    border-radius: 9px;

    background: #fafbfc;
}


.dato span {

    color: #495057;

    font-size: 13px;

    font-weight: 600;
}


.dato strong {

    min-width: 35px;

    padding:
        4px 8px;

    border-radius: 20px;

    background: #eaf7ef;

    color: #146c43;

    text-align: center;

    font-size: 13px;
}


.detalle-card > p {

    color: #6c757d;

    font-size: 13px;

    line-height: 1.6;

    margin:
        0 0 10px;
}


/* ============================================================
   EXPORTACIÓN DE REPORTES
   ============================================================ */

.detalle-card .revision-acciones {

    justify-content: flex-start;

    margin-top: 20px;
}


.detalle-card .revision-acciones
.btn-principal-admin {

    min-width: 170px;
}


/* ============================================================
   FICHA DE POSTULACIÓN
   ============================================================ */

.ficha-header {

    align-items: flex-start;
}


.volver-postulaciones {

    display: inline-block;

    margin-bottom: 10px;

    color: #198754;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;
}


.volver-postulaciones:hover {

    color: #146c43;

    text-decoration: underline;
}


.estado-grande {

    padding:
        9px 15px;

    font-size: 13px;
}


.ficha-card {

    background: #ffffff;

    border-radius: 15px;

    padding: 25px;

    margin-bottom: 25px;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, .05);

    border:
        1px solid #eef0f2;
}


.ficha-card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


.ficha-card-header > div {

    display: flex;

    align-items: center;

    gap: 14px;
}


.ficha-numero {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #198754;

    color: #ffffff;

    font-weight: 800;
}


.ficha-card h2 {

    margin: 0;

    color: #212529;

    font-size: 19px;
}


.ficha-card-header p {

    margin:
        4px 0 0;

    color: #6c757d;

    font-size: 13px;
}


/* ============================================================
   DATOS DE FICHA
   ============================================================ */

.datos-grid {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                180px,
                1fr
            )
        );

    gap: 16px;
}


.dato-item {

    padding: 15px;

    border:
        1px solid #e9ecef;

    border-radius: 10px;

    background: #fafbfc;
}


.dato-item span {

    display: block;

    margin-bottom: 6px;

    color: #6c757d;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .3px;
}


.dato-item strong {

    display: block;

    color: #212529;

    font-size: 14px;

    line-height: 1.4;

    word-break: break-word;
}


.dato-item strong a {

    color: #198754;

    text-decoration: none;
}


.dato-item strong a:hover {

    text-decoration: underline;
}


.dato-item.destacado {

    background:
        linear-gradient(
            135deg,
            #f1f8f4,
            #ffffff
        );

    border-color:
        #cfe8da;
}


.dato-item.destacado strong {

    color: #146c43;
}


/* ============================================================
   DOCUMENTOS
   ============================================================ */

.documentos-resumen {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            1fr
        );

    gap: 12px;

    margin-bottom: 20px;
}


.documento-resumen {

    padding: 16px;

    border-radius: 10px;

    text-align: center;
}


.documento-resumen strong {

    display: block;

    font-size: 25px;
}


.documento-resumen span {

    font-size: 12px;

    font-weight: 700;
}


.documento-resumen.pendiente {

    background: #fff8e1;

    color: #9a6700;
}


.documento-resumen.validado {

    background: #eaf7ef;

    color: #146c43;
}


.documento-resumen.observado {

    background: #fff3cd;

    color: #856404;
}


.documento-resumen.rechazado {

    background: #fcebea;

    color: #b42318;
}


.documentos-lista {

    display: flex;

    flex-direction: column;

    gap: 12px;
}


.documento-item {

    display: grid;

    grid-template-columns:
        48px
        minmax(250px, 1fr)
        150px
        auto;

    gap: 15px;

    align-items: center;

    padding: 15px;

    border:
        1px solid #e9ecef;

    border-radius: 11px;

    background: #ffffff;

    transition:
        border-color .2s ease,
        background-color .2s ease;
}


.documento-item:hover {

    border-color: #cfe8da;

    background: #fcfffd;
}


.documento-icono {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: #f1f8f4;

    font-size: 20px;
}


.documento-informacion h3 {

    margin:
        0 0 4px;

    color: #212529;

    font-size: 14px;
}


.documento-informacion p {

    margin: 0;

    color: #495057;

    font-size: 12px;

    word-break: break-word;
}


.documento-informacion small {

    display: block;

    margin-top: 5px;

    color: #868e96;
}


.documento-obligatorio {

    display: inline-block;

    margin-left: 6px;

    padding: 3px 6px;

    border-radius: 4px;

    background: #fff3cd;

    color: #856404;

    font-size: 9px;

    text-transform: uppercase;
}


.documento-estado {

    text-align: center;
}


.documento-estado small {

    display: block;

    margin-top: 5px;

    color: #868e96;

    font-size: 10px;
}


.estado-documento {

    display: inline-block;

    padding:
        5px 8px;

    border-radius: 20px;

    font-size: 10px;

    font-weight: 800;
}


.estado-documento.pendiente {

    background: #fff8e1;

    color: #9a6700;
}


.estado-documento.validado {

    background: #eaf7ef;

    color: #146c43;
}


.estado-documento.observado {

    background: #fff3cd;

    color: #856404;
}


.estado-documento.rechazado {

    background: #fcebea;

    color: #b42318;
}


.documento-acciones {

    display: flex;

    gap: 7px;
}


.btn-documento {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 35px;

    padding:
        0 10px;

    border:
        1px solid #dee2e6;

    border-radius: 7px;

    background: #ffffff;

    color: #495057;

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;
}


.btn-documento:hover {

    border-color: #198754;

    color: #146c43;

    background: #f1f8f4;
}


.sin-documentos {

    padding: 35px;

    border-radius: 10px;

    background: #f8f9fa;

    color: #6c757d;

    text-align: center;
}


/* ============================================================
   REVISIÓN
   ============================================================ */

.revision-grid {

    display: grid;

    grid-template-columns:
        280px
        1fr;

    gap: 20px;
}


.campo-admin select,
.campo-admin textarea {

    width: 100%;

    padding:
        11px 13px;

    border:
        1px solid #ced4da;

    border-radius: 8px;

    background: #ffffff;

    color: #212529;

    font-family: inherit;

    font-size: 13px;
}


.campo-admin select {

    min-height: 44px;
}


.campo-admin textarea {

    resize: vertical;

    min-height: 130px;
}


.ultima-revision {

    margin-top: 20px;

    padding: 12px 15px;

    border-radius: 8px;

    background: #f8f9fa;

    color: #6c757d;

    font-size: 12px;
}


.ultima-revision strong {

    color: #495057;
}


.revision-acciones {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;
}


/* ============================================================
   ALERTAS
   ============================================================ */

.alerta-admin {

    padding: 14px 18px;

    margin-bottom: 20px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 600;
}


.alerta-exito {

    background: #eaf7ef;

    border: 1px solid #b7dfc6;

    color: #146c43;
}


.alerta-error {

    background: #fcebea;

    border: 1px solid #f1b8b5;

    color: #b42318;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {

    .estadisticas {

        grid-template-columns:
            repeat(
                3,
                1fr
            );
    }

}


@media (max-width: 1100px) {

    .detalle-grid {

        grid-template-columns:
            1fr;
    }

}


@media (max-width: 1000px) {

    .filtros-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(
                    150px,
                    1fr
                ));
    }


    .datos-grid {

        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }


    .documento-item {

        grid-template-columns:
            48px
            1fr;
    }


    .documento-estado,
    .documento-acciones {

        grid-column: 2;
    }


    .documentos-resumen {

        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }


    .revision-grid {

        grid-template-columns:
            1fr;
    }

}


@media (max-width: 768px) {

    .admin-sidebar {

        width: 220px;
    }


    .admin-contenido {

        margin-left: 220px;

        width:
            calc(
                100% - 220px
            );

        padding: 20px;
    }


    .admin-header h1 {

        font-size: 25px;
    }


    .estadisticas {

        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }


    .condiciones-dashboard {

        grid-template-columns:
            1fr;
    }


    .resumen-estados {

        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }


    .bloque-dashboard,
    .filtros-card,
    .detalle-card,
    .ficha-card {

        padding: 20px;
    }

}


@media (max-width: 600px) {

    .admin-sidebar {

        position: static;

        width: 100%;

        min-height: auto;

        box-shadow: none;
    }


    .admin-layout {

        display: block;
    }


    .admin-contenido {

        margin-left: 0;

        width: 100%;

        padding: 16px;
    }


    .admin-header {

        margin-bottom: 22px;
    }


    .admin-header h1 {

        font-size: 23px;
    }


    .admin-header p {

        font-size: 13px;
    }


    .estadisticas {

        grid-template-columns:
            1fr;
    }


    .resumen-estados {

        grid-template-columns:
            1fr;
    }


    .condiciones-dashboard {

        grid-template-columns:
            1fr;
    }


    .bloque-titulo {

        align-items: flex-start;

        flex-direction: column;
    }


    .btn-ver-todas {

        width: 100%;
    }


    .filtros-grid {

        grid-template-columns:
            1fr;
    }


    .filtros-acciones {

        flex-direction: column;

        align-items: stretch;
    }


    .btn-principal-admin,
    .btn-secundario-admin {

        width: 100%;
    }


    .resumen-postulaciones {

        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }


    .datos-grid {

        grid-template-columns:
            1fr;
    }


    .documentos-resumen {

        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }


    .documento-item {

        grid-template-columns:
            40px
            1fr;
    }


    .documento-estado,
    .documento-acciones {

        grid-column:
            1 / -1;
    }


    .documento-acciones {

        flex-wrap: wrap;
    }


    .btn-documento {

        flex: 1;
    }


    .revision-acciones {

        flex-direction: column;
    }


    .revision-acciones a,
    .revision-acciones button {

        width: 100%;
    }


    .detalle-card {

        padding: 18px;
    }

}


@media (max-width: 450px) {

    .resumen-postulaciones {

        grid-template-columns:
            1fr;
    }


    .documentos-resumen {

        grid-template-columns:
            1fr 1fr;
    }


    .login-card {

        padding: 28px 20px;
    }


    .admin-brand {

        padding:
            22px 15px;
    }

}


/* ============================================================
   UTILIDADES VISUALES
   ============================================================ */

.text-muted {

    color: #6c757d;
}


.text-success {

    color: #198754;
}


.text-danger {

    color: #dc3545;
}


.text-warning {

    color: #856404;
}


.text-center {

    text-align: center;
}

/* ============================================================
   FICHA DE POSTULACIÓN
   ESTILOS ESPECÍFICOS PARA ver_postulacion.php
   ============================================================ */


/* ============================================================
   ESTADO ACTUAL
   ============================================================ */

.estado-actual-card {
    position: relative;
    overflow: hidden;
}

.estado-actual-card .detalle-card-header {
    margin-bottom: 18px;
}


/* ============================================================
   INFORMACIÓN DEL REVISOR
   ============================================================ */

.revisor-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    padding: 13px 15px;
    margin-top: 5px;

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

    background: #f8f9fa;
    color: #6c757d;

    font-size: 12px;
    line-height: 1.5;
}

.revisor-info strong {
    color: #495057;
}

.revisor-info span {
    color: #868e96;
}


/* ============================================================
   OBSERVACIÓN ACTUAL
   ============================================================ */

.observacion-actual {
    margin-top: 15px;
    padding: 15px 17px;

    border: 1px solid #ffe5b4;
    border-left: 4px solid #fd7e14;
    border-radius: 9px;

    background: #fffaf2;
}

.observacion-actual strong {
    display: block;

    color: #984c0c;
    font-size: 13px;
}

.observacion-actual p {
    margin: 8px 0 0;

    color: #495057;
    font-size: 13px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}


/* ============================================================
   DOCUMENTOS
   ============================================================ */


/* ------------------------------------------------------------
   LISTA DE DOCUMENTOS
   ------------------------------------------------------------ */

.documentos-lista {
    display: flex;
    flex-direction: column;

    gap: 16px;

    margin-top: 5px;
}


/* ------------------------------------------------------------
   ITEM INDIVIDUAL DEL DOCUMENTO
   ------------------------------------------------------------ */

.documento-item {
    display: grid;

    grid-template-columns:
        58px
        minmax(0, 1fr)
        300px;

    gap: 18px;

    align-items: start;

    width: 100%;
    min-width: 0;

    padding: 18px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 2px 7px
        rgba(0, 0, 0, 0.03);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.documento-item:hover {
    border-color: #cfe3d7;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.06);

    transform: translateY(-1px);
}


/* ------------------------------------------------------------
   ICONO DEL DOCUMENTO
   ------------------------------------------------------------ */

.documento-icono {
    display: flex;

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

    width: 58px;
    height: 58px;

    flex-shrink: 0;

    border: 1px solid #e9ecef;
    border-radius: 12px;

    background: #f8f9fa;

    font-size: 27px;

    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, 0.5);
}


/* ------------------------------------------------------------
   INFORMACIÓN DEL DOCUMENTO
   ------------------------------------------------------------ */

.documento-info {
    min-width: 0;

    padding-top: 1px;
}

.documento-info > strong {
    display: block;

    margin-bottom: 6px;

    color: #212529;

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

    line-height: 1.4;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.documento-info > small {
    display: block;

    margin-top: 4px;

    color: #6c757d;

    font-size: 11px;
    line-height: 1.5;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* ------------------------------------------------------------
   ESTADO DEL DOCUMENTO
   ------------------------------------------------------------ */

.documento-info > div[style*="margin-top"] {
    margin-top: 10px !important;
}

.documento-info .estado {
    display: inline-flex !important;

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

    min-height: 27px;

    padding: 5px 11px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.3px;
}


/* ------------------------------------------------------------
   OBSERVACIÓN DEL DOCUMENTO
   ------------------------------------------------------------ */

.documento-observacion {
    margin-top: 11px !important;
    padding: 10px 12px;

    border: 1px solid #ffe5b4;
    border-left: 3px solid #fd7e14;
    border-radius: 8px;

    background: #fffaf2;
    color: #495057;

    font-size: 11px;
    line-height: 1.55;

    overflow-wrap: anywhere;
}

.documento-observacion strong {
    color: #984c0c;
}


/* ------------------------------------------------------------
   INFORMACIÓN DEL VALIDADOR
   ------------------------------------------------------------ */

.documento-info > small:last-child {
    margin-top: 12px !important;

    padding-top: 10px;

    border-top: 1px solid #f0f1f2;

    color: #868e96;

    line-height: 1.5;
}

.documento-info > small:last-child strong {
    color: #495057;
}


/* ------------------------------------------------------------
   COLUMNA DE ACCIONES
   ------------------------------------------------------------ */

.documento-acciones {
    display: flex;
    flex-direction: column;

    align-items: stretch;

    gap: 10px;

    min-width: 0;
}


/* ------------------------------------------------------------
   BOTÓN DESCARGAR
   ------------------------------------------------------------ */

.documento-acciones > .btn-tabla {
    display: flex;

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

    width: 100%;
    min-height: 40px;

    padding: 9px 13px;

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

    background: #ffffff;
    color: #198754;

    font-size: 12px;
    font-weight: 700;

    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.documento-acciones > .btn-tabla:hover {
    background: #198754;
    border-color: #198754;
    color: #ffffff;

    transform: translateY(-1px);
}


/* ------------------------------------------------------------
   FORMULARIO DE VALIDACIÓN
   ------------------------------------------------------------ */

.form-validar-documento {
    display: flex;
    flex-direction: column;

    gap: 9px;

    width: 100%;
    min-width: 0;

    margin-top: 0 !important;
    padding: 14px;

    border: 1px solid #e9ecef;
    border-radius: 10px;

    background: #f8f9fa;
}

.form-validar-documento label {
    display: block;

    margin-bottom: 1px;

    color: #495057;

    font-size: 11px;
    font-weight: 800;
}

.form-validar-documento select,
.form-validar-documento textarea {
    display: block;

    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    border: 1px solid #ced4da;
    border-radius: 7px;

    background: #ffffff;
    color: #212529;

    font-family: inherit;
    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-validar-documento select {
    min-height: 40px;

    padding: 9px 10px;

    cursor: pointer;
}

.form-validar-documento textarea {
    min-height: 82px;

    padding: 10px;

    resize: vertical;

    line-height: 1.45;
}

.form-validar-documento select:focus,
.form-validar-documento textarea:focus {
    outline: none;

    border-color: #198754;

    box-shadow:
        0 0 0 3px
        rgba(25, 135, 84, 0.12);
}


/* ------------------------------------------------------------
   BOTÓN GUARDAR VALIDACIÓN
   ------------------------------------------------------------ */

.form-validar-documento .btn-principal-admin {
    width: 100%;
    min-height: 40px;

    padding: 9px 12px;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}


/* ------------------------------------------------------------
   SIN DOCUMENTOS
   ------------------------------------------------------------ */

.sin-documentos {
    display: flex;
    flex-direction: column;

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

    padding: 45px 25px;

    border: 1px dashed #ced4da;
    border-radius: 11px;

    background: #f8f9fa;

    color: #6c757d;

    text-align: center;
}

.sin-documentos > div {
    display: flex;

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

    width: 65px;
    height: 65px;

    margin-bottom: 12px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.05);

    font-size: 32px !important;
}

.sin-documentos strong {
    color: #495057;

    font-size: 13px;
}

.sin-documentos p {
    max-width: 450px;

    margin: 7px 0 0;

    color: #868e96;

    font-size: 11px;
    line-height: 1.5;
}


/* ============================================================
   REVISIÓN DE POSTULACIÓN
   ============================================================ */

.form-revision {
    display: grid;

    grid-template-columns:
        280px
        minmax(0, 1fr);

    gap: 20px;

    align-items: start;
}

.campo-revision {
    min-width: 0;
}

.campo-revision label {
    display: block;

    margin-bottom: 7px;

    color: #495057;

    font-size: 13px;
    font-weight: 700;
}

.campo-revision select,
.campo-revision textarea {
    width: 100%;
    box-sizing: border-box;

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

    background: #ffffff;
    color: #212529;

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.campo-revision select {
    min-height: 44px;

    padding: 10px 13px;
}

.campo-revision textarea {
    min-height: 130px;

    padding: 11px 13px;

    resize: vertical;

    line-height: 1.5;
}

.campo-revision select:focus,
.campo-revision textarea:focus {
    outline: none;

    border-color: #198754;

    box-shadow:
        0 0 0 3px
        rgba(25, 135, 84, 0.12);
}

.campo-revision small {
    display: block;

    margin-top: 7px;

    color: #868e96;

    font-size: 11px;
    line-height: 1.4;
}

.obligatorio {
    color: #dc3545;

    font-weight: 800;
}


/* ------------------------------------------------------------
   ACCIONES DE REVISIÓN
   ------------------------------------------------------------ */

.form-revision .revision-acciones {
    grid-column: 1 / -1;

    display: flex;

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

    gap: 10px;

    margin-top: 0;
}


/* ============================================================
   HISTORIAL
   ============================================================ */

.historial {
    position: relative;

    display: flex;
    flex-direction: column;

    gap: 0;
}

.historial-item {
    position: relative;

    display: grid;

    grid-template-columns:
        20px
        minmax(0, 1fr);

    gap: 15px;

    min-height: 90px;
}

.historial-linea {
    position: relative;

    width: 12px;
    height: 12px;

    margin-top: 5px;

    border: 3px solid #198754;
    border-radius: 50%;

    background: #ffffff;

    z-index: 2;
}

.historial-item:not(:last-child) .historial-linea::after {
    content: '';

    position: absolute;

    top: 9px;
    left: 50%;

    width: 2px;
    height: calc(100% + 80px);

    min-height: 75px;

    transform: translateX(-50%);

    background: #d8e8df;

    z-index: -1;
}

.historial-contenido {
    min-width: 0;

    margin-bottom: 20px;
    padding: 15px 17px;

    border: 1px solid #e9ecef;
    border-radius: 10px;

    background: #fafbfc;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.historial-contenido:hover {
    border-color: #cfe8da;

    box-shadow:
        0 4px 14px
        rgba(0, 0, 0, 0.04);
}

.historial-cabecera {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 10px;
}

.historial-cabecera > div {
    min-width: 0;
}

.historial-cabecera strong {
    display: block;

    color: #212529;

    font-size: 13px;

    overflow-wrap: anywhere;
}

.historial-cabecera small {
    display: block;

    margin-top: 3px;

    color: #868e96;

    font-size: 10px;

    overflow-wrap: anywhere;
}

.historial-cabecera time {
    flex-shrink: 0;

    color: #868e96;

    font-size: 11px;

    white-space: nowrap;
}


/* ------------------------------------------------------------
   ESTADOS DEL HISTORIAL
   ------------------------------------------------------------ */

.historial-estados {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 10px;
}

.historial-estados > span:first-child {
    display: inline-flex;

    align-items: center;

    min-height: 27px;

    padding: 5px 9px;

    border-radius: 20px;

    background: #f1f3f5;
    color: #495057;

    font-size: 11px;
    font-weight: 700;
}

.historial-estados b {
    color: #adb5bd;

    font-size: 13px;
}

.estado-historial {
    display: inline-flex;

    align-items: center;

    min-height: 27px;

    padding: 5px 10px;

    border-radius: 20px;

    background: #eaf7ef;
    color: #146c43;

    font-size: 11px;
    font-weight: 800;
}


/* ------------------------------------------------------------
   COMENTARIO DEL HISTORIAL
   ------------------------------------------------------------ */

.historial-comentario {
    padding: 10px 12px;

    border: 1px solid #e9ecef;
    border-radius: 7px;

    background: #ffffff;
    color: #495057;

    font-size: 12px;
    line-height: 1.6;

    overflow-wrap: anywhere;
}


/* ------------------------------------------------------------
   SIN HISTORIAL
   ------------------------------------------------------------ */

.sin-historial {
    padding: 35px 20px;

    border: 1px dashed #ced4da;
    border-radius: 10px;

    background: #f8f9fa;
    color: #6c757d;

    text-align: center;
}

.sin-historial > div {
    margin-bottom: 8px;

    font-size: 32px;
}

.sin-historial strong {
    display: block;

    color: #495057;

    font-size: 13px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */


/* ------------------------------------------------------------
   TABLETS / PANTALLAS MEDIANAS
   ------------------------------------------------------------ */

@media (max-width: 1100px) {

    .documento-item {
        grid-template-columns:
            52px
            minmax(0, 1fr)
            250px;

        gap: 15px;

        padding: 16px;
    }

    .documento-icono {
        width: 52px;
        height: 52px;

        font-size: 24px;
    }

    .form-validar-documento {
        padding: 12px;
    }

}


/* ------------------------------------------------------------
   TABLETS
   ------------------------------------------------------------ */

@media (max-width: 1000px) {

    .form-revision {
        grid-template-columns: 1fr;
    }

    .form-revision .revision-acciones {
        grid-column: auto;
    }


    /*
     * Los documentos pasan a dos columnas:
     * información + acciones.
     */

    .documento-item {
        grid-template-columns:
            52px
            minmax(0, 1fr);
    }

    .documento-acciones {
        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            minmax(180px, 0.8fr)
            minmax(250px, 1.2fr);

        gap: 12px;

        align-items: start;

        padding-top: 13px;

        border-top: 1px solid #edf0f2;
    }

    .documento-acciones > .btn-tabla {
        width: 100%;
    }

    .form-validar-documento {
        width: 100%;
    }

}


/* ------------------------------------------------------------
   MÓVILES GRANDES
   ------------------------------------------------------------ */

@media (max-width: 768px) {

    .estado-actual-card .detalle-card-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .estado-actual-card .detalle-card-header > .estado {
        align-self: flex-start;
    }


    /* DOCUMENTOS */

    .documentos-lista {
        gap: 13px;
    }

    .documento-item {
        grid-template-columns:
            48px
            minmax(0, 1fr);

        gap: 13px;

        padding: 14px;
    }

    .documento-icono {
        width: 48px;
        height: 48px;

        border-radius: 10px;

        font-size: 22px;
    }

    .documento-info > strong {
        font-size: 13px;
    }

    .documento-acciones {
        grid-template-columns: 1fr;

        gap: 10px;

        padding-top: 12px;
    }

    .form-validar-documento {
        padding: 12px;
    }


    /* HISTORIAL */

    .historial-cabecera {
        flex-direction: column;

        gap: 6px;
    }

    .historial-cabecera time {
        order: -1;
    }

}


/* ------------------------------------------------------------
   MÓVILES
   ------------------------------------------------------------ */

@media (max-width: 600px) {

    .revisor-info {
        align-items: flex-start;

        flex-direction: column;

        gap: 2px;
    }

    .observacion-actual {
        padding: 13px 14px;
    }


    /* DOCUMENTOS */

    .documento-item {
        grid-template-columns:
            42px
            minmax(0, 1fr);

        gap: 10px;

        padding: 13px;
    }

    .documento-icono {
        width: 42px;
        height: 42px;

        font-size: 19px;
    }

    .documento-info > strong {
        font-size: 12px;
    }

    .documento-info > small {
        font-size: 10px;
    }

    .documento-acciones {
        grid-column: 1 / -1;

        width: 100%;
    }

    .documento-acciones > .btn-tabla,
    .documento-acciones .form-validar-documento {
        width: 100%;
    }

    .form-validar-documento {
        margin-top: 0 !important;

        padding: 11px;
    }

    .form-validar-documento textarea {
        min-height: 75px;
    }


    /* REVISIÓN */

    .form-revision .revision-acciones {
        flex-direction: column;

        align-items: stretch;
    }

    .form-revision .revision-acciones .btn-principal-admin {
        width: 100%;
    }


    /* HISTORIAL */

    .historial-item {
        grid-template-columns:
            16px
            minmax(0, 1fr);

        gap: 10px;
    }

    .historial-contenido {
        padding: 13px 14px;
    }

    .historial-estados {
        align-items: flex-start;

        flex-direction: column;
    }

    .historial-estados b {
        display: none;
    }

}


/* ------------------------------------------------------------
   MÓVILES PEQUEÑOS
   ------------------------------------------------------------ */

@media (max-width: 450px) {

    .documentos-lista {
        gap: 10px;
    }

    .documento-item {
        padding: 11px;
    }

    .documento-icono {
        width: 40px;
        height: 40px;

        font-size: 18px;
    }

    .documento-info > strong {
        font-size: 11px;
    }

    .documento-info > small {
        font-size: 10px;
    }

    .documento-observacion {
        padding: 9px 10px;

        font-size: 10px;
    }

    .form-validar-documento .btn-principal-admin {
        font-size: 10px;
    }


    /* HISTORIAL */

    .historial-cabecera strong {
        font-size: 12px;
    }

    .historial-comentario {
        font-size: 11px;
    }

}

/* ============================================================
   ALERTAS DE VALIDACIÓN
   ============================================================ */

.alerta {
    margin-bottom: 20px;
    padding: 13px 16px;

    border-radius: 9px;

    font-size: 13px;
    line-height: 1.5;
}

.alert-success {
    border: 1px solid #badbcc;
    background: #d1e7dd;
    color: #0f5132;
}

.alert-error {
    border: 1px solid #f1aeb5;
    background: #f8d7da;
    color: #842029;
}


/* ============================================================
   GESTIÓN DE USUARIOS
   FERIA NAVIDEÑA 2026 - CUREPTO
   ============================================================ */


/* ============================================================
   RESUMEN DE USUARIOS
   ============================================================ */

.usuarios-resumen {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 20px;
}


/* ============================================================
   TARJETA DE RESUMEN
   ============================================================ */

.usuario-resumen-card {
    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;

    padding: 18px 20px;

    border: 1px solid #e9ecef;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.035);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.usuario-resumen-card:hover {
    transform: translateY(-2px);

    border-color: #d8e8df;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.06);
}


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

.usuario-resumen-icono {
    display: flex;

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

    flex-shrink: 0;

    width: 46px;
    height: 46px;

    border-radius: 12px;

    background: #eaf4ee;

    color: #198754;

    font-size: 20px;
    font-weight: 800;
}


.usuario-resumen-icono.activo {
    background: #eaf7ef;

    color: #198754;
}


.usuario-resumen-icono.inactivo {
    background: #fff1f2;

    color: #dc3545;
}


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

.usuario-resumen-card > div {
    min-width: 0;
}


.usuario-resumen-card > div > span {
    display: block;

    margin-bottom: 3px;

    color: #6c757d;

    font-size: 11px;
    font-weight: 600;
}


.usuario-resumen-card > div > strong {
    display: block;

    color: #212529;

    font-size: 24px;
    font-weight: 800;

    line-height: 1.1;
}


/* ============================================================
   CONTADOR DEL LISTADO
   ============================================================ */

.usuarios-contador {
    display: inline-flex;

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

    min-height: 29px;

    padding: 5px 11px;

    border: 1px solid #d8e8df;
    border-radius: 20px;

    background: #f1f8f4;

    color: #198754;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;
}


/* ============================================================
   CONTENEDOR DE TABLA
   ============================================================ */

.usuarios-tabla-contenedor {
    width: 100%;

    overflow-x: auto;

    border: 1px solid #e9ecef;
    border-radius: 10px;

    background: #ffffff;

    -webkit-overflow-scrolling: touch;
}


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

.usuarios-tabla {
    width: 100%;

    min-width: 920px;

    border-collapse: separate;

    border-spacing: 0;
}


/* ============================================================
   ENCABEZADOS
   ============================================================ */

.usuarios-tabla thead th {
    padding: 13px 15px;

    border-bottom: 1px solid #dee2e6;

    background: #f8f9fa;

    color: #6c757d;

    font-size: 10px;
    font-weight: 800;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: 0.03em;

    white-space: nowrap;
}


.usuarios-tabla thead th:first-child {
    border-top-left-radius: 9px;
}


.usuarios-tabla thead th:last-child {
    border-top-right-radius: 9px;
}


/* ============================================================
   CELDAS
   ============================================================ */

.usuarios-tabla tbody td {
    padding: 15px;

    border-bottom: 1px solid #f0f1f2;

    background: #ffffff;

    color: #495057;

    font-size: 12px;

    vertical-align: middle;
}


.usuarios-tabla tbody tr:last-child td {
    border-bottom: none;
}


/* ============================================================
   EFECTO HOVER FILA
   ============================================================ */

.usuarios-tabla tbody tr {
    transition:
        background-color 0.15s ease;
}


.usuarios-tabla tbody tr:hover td {
    background: #fbfdfc;
}


/* ============================================================
   USUARIO INACTIVO
   ============================================================ */

.usuarios-tabla tbody tr.usuario-inactivo td {
    background: #fcfcfc;

    color: #868e96;
}


.usuarios-tabla tbody tr.usuario-inactivo:hover td {
    background: #f8f9fa;
}


/* ============================================================
   NOMBRE DEL USUARIO
   ============================================================ */

.usuario-tabla-nombre {
    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 190px;
}


.usuario-tabla-nombre > div:last-child {
    min-width: 0;
}


/* ============================================================
   AVATAR
   ============================================================ */

.usuario-avatar {
    display: flex;

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

    flex-shrink: 0;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #198754,
            #157347
        );

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    box-shadow:
        0 2px 6px
        rgba(25, 135, 84, 0.18);
}


/* ============================================================
   NOMBRE
   ============================================================ */

.usuario-tabla-nombre strong {
    display: block;

    max-width: 210px;

    overflow: hidden;

    color: #212529;

    font-size: 12px;
    font-weight: 800;

    line-height: 1.4;

    text-overflow: ellipsis;
}


.usuario-inactivo .usuario-tabla-nombre strong {
    color: #6c757d;
}


/* ============================================================
   USUARIO ACTUAL
   ============================================================ */

.usuario-actual {
    display: inline-flex;

    align-items: center;

    min-height: 18px;

    margin-top: 3px;

    padding: 2px 7px;

    border-radius: 10px;

    background: #eaf7ef;

    color: #198754;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}


/* ============================================================
   EMAIL
   ============================================================ */

.usuario-email {
    display: inline-block;

    max-width: 220px;

    overflow: hidden;

    color: #495057;

    font-size: 11px;

    text-decoration: none;

    text-overflow: ellipsis;

    white-space: nowrap;

    transition:
        color 0.15s ease;
}


.usuario-email:hover {
    color: #198754;

    text-decoration: underline;
}


/* ============================================================
   ROL
   ============================================================ */

.usuario-rol {
    display: inline-flex;

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

    min-height: 27px;

    padding: 5px 10px;

    border: 1px solid transparent;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}


/* ============================================================
   ESTADO
   ============================================================ */

.usuario-estado {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    min-height: 27px;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}


.usuario-estado > span {
    font-size: 8px;
}


.usuario-estado.activo {
    border: 1px solid #b7e4c7;

    background: #eaf7ef;

    color: #146c43;
}


.usuario-estado.inactivo {
    border: 1px solid #f1b0b7;

    background: #fff1f2;

    color: #b02a37;
}


/* ============================================================
   ÚLTIMO ACCESO
   ============================================================ */

.usuario-fecha {
    display: flex;

    flex-direction: column;

    gap: 2px;

    color: #495057;

    font-size: 11px;

    white-space: nowrap;
}


.usuario-fecha small {
    color: #868e96;

    font-size: 10px;
}


.usuario-sin-acceso {
    display: inline-flex;

    align-items: center;

    min-height: 25px;

    padding: 4px 8px;

    border-radius: 6px;

    background: #f1f3f5;

    color: #868e96;

    font-size: 10px;
}


/* ============================================================
   ACCIONES
   ============================================================ */

.usuario-acciones {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 6px;

    min-width: 190px;
}


.usuario-acciones form {
    margin: 0;
}


/* ============================================================
   BOTONES DE TABLA
   ============================================================ */

.usuario-acciones .btn-tabla {
    display: inline-flex;

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

    min-height: 32px;

    padding: 6px 10px;

    border: 1px solid #dee2e6;
    border-radius: 7px;

    background: #ffffff;

    color: #495057;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}


.usuario-acciones .btn-tabla:hover {
    border-color: #198754;

    background: #f1f8f4;

    color: #198754;

    transform: translateY(-1px);
}


/* ============================================================
   BOTÓN PELIGRO
   ============================================================ */

.usuario-acciones .btn-tabla-peligro {
    border-color: #f1b0b7;

    background: #fff8f8;

    color: #dc3545;
}


.usuario-acciones .btn-tabla-peligro:hover {
    border-color: #dc3545;

    background: #fff1f2;

    color: #b02a37;
}


/* ============================================================
   BOTÓN ÉXITO
   ============================================================ */

.usuario-acciones .btn-tabla-exito {
    border-color: #b7e4c7;

    background: #f4fbf6;

    color: #198754;
}


.usuario-acciones .btn-tabla-exito:hover {
    border-color: #198754;

    background: #eaf7ef;

    color: #146c43;
}


/* ============================================================
   SESIÓN ACTUAL
   ============================================================ */

.usuario-accion-propia {
    display: inline-flex;

    align-items: center;

    min-height: 32px;

    padding: 6px 9px;

    border: 1px dashed #ced4da;
    border-radius: 7px;

    background: #f8f9fa;

    color: #868e96;

    font-size: 9px;
    font-weight: 700;

    white-space: nowrap;
}


/* ============================================================
   SIN USUARIOS
   ============================================================ */

.sin-usuarios {
    display: flex;

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

    padding: 55px 25px;

    border: 1px dashed #ced4da;
    border-radius: 10px;

    background: #f8f9fa;

    text-align: center;
}


.sin-usuarios-icono {
    display: flex;

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

    width: 64px;
    height: 64px;

    margin-bottom: 15px;

    border-radius: 50%;

    background: #eaf4ee;

    font-size: 28px;
}


.sin-usuarios strong {
    display: block;

    color: #495057;

    font-size: 14px;
    font-weight: 800;
}


.sin-usuarios p {
    max-width: 430px;

    margin: 8px 0 20px;

    color: #868e96;

    font-size: 12px;
    line-height: 1.6;
}


/* ============================================================
   INFORMACIÓN
   ============================================================ */

.usuarios-info {
    display: flex;

    align-items: flex-start;

    gap: 13px;

    margin-top: 20px;

    padding: 15px 17px;

    border: 1px solid #cfe8da;
    border-left: 4px solid #198754;
    border-radius: 9px;

    background: #f5fbf7;
}


.usuarios-info-icono {
    display: flex;

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

    flex-shrink: 0;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: #e0f1e7;

    font-size: 15px;
}


.usuarios-info > div:last-child {
    min-width: 0;
}


.usuarios-info strong {
    display: block;

    margin-bottom: 5px;

    color: #146c43;

    font-size: 12px;
    font-weight: 800;
}


.usuarios-info p {
    margin: 0;

    color: #495057;

    font-size: 11px;
    line-height: 1.6;
}


.usuarios-info p strong {
    display: inline;

    margin: 0;

    color: #198754;

    font-size: inherit;
}


/* ============================================================
   ALERTAS
   ============================================================ */

.alerta-exito-admin,
.alerta-error-admin {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

    padding: 12px 15px;

    border-radius: 8px;

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

    line-height: 1.5;
}


.alerta-exito-admin {
    border: 1px solid #b7e4c7;

    background: #eaf7ef;

    color: #146c43;
}


.alerta-error-admin {
    border: 1px solid #f1b0b7;

    background: #fff1f2;

    color: #b02a37;
}


/* ============================================================
   BOTÓN NUEVO USUARIO
   ============================================================ */

.admin-header-acciones .btn-principal-admin {
    display: inline-flex;

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

    min-height: 40px;

    padding: 0 15px;

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

    background: #198754;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 3px 8px
        rgba(25, 135, 84, 0.15);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.admin-header-acciones .btn-principal-admin:hover {
    border-color: #157347;

    background: #157347;

    transform: translateY(-1px);

    box-shadow:
        0 5px 12px
        rgba(25, 135, 84, 0.22);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {

    .usuarios-resumen {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 12px;
    }


    .usuario-resumen-card {
        padding: 15px;
    }


    .usuario-resumen-icono {
        width: 40px;
        height: 40px;

        font-size: 17px;
    }


    .usuario-resumen-card > div > strong {
        font-size: 21px;
    }

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 768px) {

    .usuarios-resumen {
        grid-template-columns: 1fr;
    }


    .usuario-resumen-card {
        padding: 15px 17px;
    }


    .usuario-resumen-icono {
        width: 42px;
        height: 42px;
    }


    .usuarios-tabla-contenedor {
        border-radius: 8px;
    }


    .usuarios-tabla {
        min-width: 850px;
    }


    .usuarios-info {
        padding: 13px 14px;
    }


    .admin-header-acciones .btn-principal-admin {
        min-height: 38px;

        padding: 0 13px;

        font-size: 11px;
    }

}


/* ============================================================
   MÓVIL
   ============================================================ */

@media (max-width: 600px) {

    .usuarios-contador {
        margin-top: 5px;
    }


    .usuario-tabla-nombre {
        min-width: 170px;
    }


    .usuario-avatar {
        width: 36px;
        height: 36px;

        font-size: 12px;
    }


    .usuario-tabla-nombre strong {
        max-width: 170px;
    }


    .usuario-email {
        max-width: 180px;
    }


    .usuario-acciones {
        min-width: 170px;
    }


    .sin-usuarios {
        padding: 40px 18px;
    }


    .sin-usuarios-icono {
        width: 55px;
        height: 55px;

        font-size: 24px;
    }


    .usuarios-info {
        align-items: flex-start;

        gap: 10px;
    }


    .usuarios-info-icono {
        width: 29px;
        height: 29px;

        font-size: 13px;
    }


    .usuarios-info p {
        font-size: 10px;
    }

}


/* ============================================================
   MÓVIL PEQUEÑO
   ============================================================ */

@media (max-width: 450px) {

    .usuario-resumen-card > div > span {
        font-size: 10px;
    }


    .usuario-resumen-card > div > strong {
        font-size: 20px;
    }


    .usuarios-info {
        padding: 12px;
    }


    .usuarios-info strong {
        font-size: 11px;
    }


    .usuarios-info p {
        font-size: 10px;

        line-height: 1.5;
    }


    .admin-header-acciones .btn-principal-admin {
        width: 100%;
    }

}


/* ============================================================
   REEMPLAZAR ARCHIVO
   ============================================================ */

.form-reemplazar-documento {

    width: 100%;

    margin-top: 0;

    padding: 15px;

    border:
        1px solid #e3e8e5;

    border-radius: 11px;

    background:
        linear-gradient(
            180deg,
            #fbfdfc 0%,
            #f7f9f8 100%
        );

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, .025);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.form-reemplazar-documento:hover {

    border-color: #cfe3d7;

    box-shadow:
        0 4px 14px
        rgba(0, 0, 0, .05);
}


/* ============================================================
   ENCABEZADO
   ============================================================ */

.reemplazar-header {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 14px;

    padding-bottom: 12px;

    border-bottom:
        1px solid #e9ecef;
}


.reemplazar-icono {

    width: 36px;

    height: 36px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background: #eaf7ef;

    color: #198754;

    font-size: 17px;
}


.reemplazar-header strong {

    display: block;

    color: #343a40;

    font-size: 12px;

    font-weight: 800;

    line-height: 1.3;
}


.reemplazar-header span {

    display: block;

    margin-top: 2px;

    color: #868e96;

    font-size: 10px;

    line-height: 1.4;
}


/* ============================================================
   CAMPO DE ARCHIVO
   ============================================================ */

.reemplazar-campo {

    margin-bottom: 11px;
}


.reemplazar-campo label {

    display: block;

    margin-bottom: 6px;

    color: #495057;

    font-size: 11px;

    font-weight: 800;
}


.archivo-input-wrapper {

    position: relative;

    width: 100%;
}


.archivo-input-wrapper input[type="file"] {

    display: block;

    width: 100%;

    min-width: 0;

    padding: 8px;

    border:
        1px solid #ced4da;

    border-radius: 8px;

    background: #ffffff;

    color: #495057;

    font-family: inherit;

    font-size: 11px;

    cursor: pointer;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}


.archivo-input-wrapper input[type="file"]:hover {

    border-color: #aeb8b2;

    background: #fcfefd;
}


.archivo-input-wrapper input[type="file"]:focus {

    outline: none;

    border-color: #198754;

    box-shadow:
        0 0 0 3px
        rgba(25, 135, 84, .10);
}


.archivo-input-wrapper input[type="file"]::file-selector-button {

    margin-right: 8px;

    padding:
        7px 10px;

    border: 0;

    border-radius: 6px;

    background: #eaf7ef;

    color: #146c43;

    font-family: inherit;

    font-size: 10px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease;
}


.archivo-input-wrapper input[type="file"]::file-selector-button:hover {

    background: #d8f0e2;

    color: #0f5132;
}


.reemplazar-campo small {

    display: block;

    margin-top: 5px;

    color: #868e96;

    font-size: 9px;

    line-height: 1.4;
}


/* ============================================================
   BOTÓN
   ============================================================ */

.btn-reemplazar {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    width: 100%;

    min-height: 38px;

    padding:
        8px 12px;

    border:
        1px solid #d8a229;

    border-radius: 7px;

    background: #fff8e1;

    color: #856404;

    font-family: inherit;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.btn-reemplazar:hover {

    background: #ffc107;

    border-color: #e0a800;

    color: #5f4700;

    transform: translateY(-1px);

    box-shadow:
        0 4px 10px
        rgba(224, 168, 0, .15);
}


.btn-reemplazar:active {

    transform: translateY(0);

    box-shadow: none;
}


.btn-reemplazar span {

    font-size: 13px;

    line-height: 1;
}


/* ============================================================
   AVISO
   ============================================================ */

.reemplazar-aviso {

    display: flex;

    align-items: flex-start;

    gap: 7px;

    margin-top: 10px;

    padding:
        8px 9px;

    border:
        1px solid #ffe5b4;

    border-radius: 7px;

    background: #fffaf2;

    color: #856404;
}


.reemplazar-aviso > span {

    flex-shrink: 0;

    font-size: 12px;

    line-height: 1.4;
}


.reemplazar-aviso p {

    margin: 0;

    font-size: 9px;

    line-height: 1.5;
}


.reemplazar-aviso strong {

    color: #984c0c;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {

    .form-reemplazar-documento {

        padding: 14px;
    }

}


@media (max-width: 600px) {

    .form-reemplazar-documento {

        padding: 13px;
    }


    .reemplazar-header {

        align-items: flex-start;
    }


    .archivo-input-wrapper input[type="file"] {

        padding: 7px;

        font-size: 10px;
    }


    .archivo-input-wrapper
    input[type="file"]::file-selector-button {

        display: block;

        width: 100%;

        margin-right: 0;

        margin-bottom: 6px;
    }


    .btn-reemplazar {

        min-height: 42px;

        font-size: 12px;
    }

}

/* ============================================================
   ACCIONES INFERIORES DEL DOCUMENTO
   ============================================================ */

.documento-acciones-inferiores {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 14px;

    width: 100%;

    margin-top: 15px;

    /* Ocupa todo el ancho del documento */
    grid-column: 1 / -1;
}


/* El formulario de reemplazo mantiene
   su diseño original */

.documento-acciones-inferiores
.form-reemplazar-documento {

    width: 100%;

    margin-top: 0;
}


/* Validación ocupa su propia columna */

.documento-acciones-inferiores
.form-validar-documento {

    width: 100%;

    margin-top: 0 !important;
}


/* Descargar queda debajo */

.documento-acciones {

    grid-column: 1 / -1;

    margin-top: 10px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 800px) {

    .documento-acciones-inferiores {

        grid-template-columns: 1fr;

        gap: 12px;

    }

}
