/* ============================================================
   GENERAL
   ============================================================ */

* {
    box-sizing: border-box;
}


body {
    margin: 0;
    padding: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f3f5f7;

    color: #263238;
}


/* ============================================================
   CONTENEDOR
   ============================================================ */

.contenedor {
    width: 95%;
    max-width: 1400px;

    margin: 30px auto;
}


/* ============================================================
   LOGIN
   ============================================================ */

.contenedor-login {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;
}


.login-box {

    width: 100%;

    max-width: 460px;

    background: white;

    padding: 35px;

    border-radius: 12px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.10);
}


.login-box h1 {

    margin-top: 0;

    margin-bottom: 30px;

    text-align: center;

    font-size: 26px;

    color: #263238;
}


/* ============================================================
   CAMPOS
   ============================================================ */

.campo {

    margin-bottom: 20px;
}


.campo label {

    display: block;

    margin-bottom: 7px;

    font-weight: bold;

    color: #37474f;
}


.campo input {

    width: 100%;

    height: 44px;

    padding: 10px 12px;

    border: 1px solid #cfd8dc;

    border-radius: 6px;

    font-size: 16px;

    outline: none;
}


.campo input:focus {

    border-color: #1976d2;

    box-shadow:
        0 0 0 2px
        rgba(25, 118, 210, 0.10);
}


/* ============================================================
   CLAVE
   ============================================================ */

.clave-contenedor {

    position: relative;
}


.input-clave {

    padding-right: 50px !important;
}


.boton-ojo {

    position: absolute;

    right: 5px;

    top: 50%;

    transform: translateY(-50%);

    width: 40px;

    height: 38px;

    border: none;

    background: transparent;

    cursor: pointer;

    color: #546e7a;

    display: flex;

    align-items: center;

    justify-content: center;
}


.boton-ojo:hover {

    color: #1976d2;
}


.boton-ojo svg {

    width: 23px;

    height: 23px;
}


/* ============================================================
   BOTONES
   ============================================================ */

.boton {

    display: inline-block;

    border: none;

    border-radius: 6px;

    padding: 11px 22px;

    font-size: 16px;

    text-decoration: none;

    cursor: pointer;
}


.boton-principal {

    width: 100%;

    background: #1976d2;

    color: white;
}


.boton-principal:hover {

    background: #1565c0;
}


/* ============================================================
   ENCABEZADO
   ============================================================ */

.encabezado {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    background: white;

    padding: 20px 25px;

    border-radius: 10px;

    box-shadow:
        0 3px 12px
        rgba(0, 0, 0, 0.08);

    margin-bottom: 20px;
}


.encabezado-titulo h1 {

    margin: 0;

    font-size: 25px;

    color: #263238;
}


.usuario-sesion {

    display: flex;

    align-items: center;

    gap: 12px;

    font-weight: bold;

    white-space: nowrap;
}


/* ============================================================
   CERRAR SESIÓN
   ============================================================ */

.boton-cerrar-sesion {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 6px;

    color: #c62828;

    background: #ffebee;

    text-decoration: none;
}


.boton-cerrar-sesion:hover {

    background: #ffcdd2;

}


.boton-cerrar-sesion svg {

    width: 23px;

    height: 23px;
}


/* ============================================================
   PANEL USUARIO
   ============================================================ */

.panel-usuario {

    background: white;

    padding: 25px;

    border-radius: 10px;

    box-shadow:
        0 3px 12px
        rgba(0, 0, 0, 0.08);

    margin-bottom: 20px;
}


.panel-usuario h2 {

    margin-top: 0;

    color: #263238;

    font-size: 21px;
}


.datos-usuario {

    display: flex;

    flex-wrap: wrap;

    gap: 35px;

    color: #455a64;
}


.datos-usuario strong {

    color: #263238;
}


/* ============================================================
   TABLA
   ============================================================ */

.tabla-contenedor {

    background: white;

    padding: 20px;

    border-radius: 10px;

    box-shadow:
        0 3px 12px
        rgba(0, 0, 0, 0.08);

    overflow-x: auto;
}


.tabla-archivos {

    width: 100%;

    border-collapse: collapse;

    min-width: 750px;
}


.tabla-archivos th {

    background: #1976d2;

    color: white;

    text-align: left;

    padding: 13px;

    font-size: 14px;
}


.tabla-archivos td {

    padding: 13px;

    border-bottom:
        1px solid #e0e0e0;

    vertical-align: middle;
}


.tabla-archivos tbody tr:hover {

    background: #f5f9fd;
}


.tabla-archivos th:last-child,
.tabla-archivos td:last-child {

    text-align: center;

    width: 100px;
}


/* ============================================================
   BOTÓN DESCARGAR
   ============================================================ */

.acciones {

    text-align: center;
}


.boton-descargar {

    width: 42px;

    height: 42px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: #e8f5e9;

    color: #2e7d32;

    border-radius: 6px;

    text-decoration: none;

    transition:
        background 0.2s,
        transform 0.2s;
}


.boton-descargar:hover {

    background: #c8e6c9;

    transform: scale(1.05);
}


.boton-descargar svg {

    width: 22px;

    height: 22px;
}


/* ============================================================
   SIN REGISTROS
   ============================================================ */

.sin-registros {

    text-align: center;

    padding: 30px !important;

    color: #78909c;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {

    .contenedor {

        width: 96%;

        margin-top: 15px;
    }


    .encabezado {

        flex-direction: column;

        align-items: stretch;

        text-align: center;
    }


    .usuario-sesion {

        justify-content: center;
    }


    .datos-usuario {

        flex-direction: column;

        gap: 12px;
    }


    .login-box {

        padding: 25px;
    }

}
