* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #eef1f5;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Encabezado */

header {
    width: 100%;
    height: 82px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 2px solid #1c3554;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
    margin: 0 0 28px 0;
    border-radius: 0;
}
header h1 {
    font-family: "Michroma", sans-serif;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(139, 134, 134, 0.12);
}

.logo-header {
    position: absolute;
    right: 28px;
    top: 13px;
    width: 125px;
    height: 55px;
    object-fit: contain;
}

.logo-header2 {
    position: absolute;
    left: 20px;
    top: 8px;
    width: 125px;
    height: 65px;
    object-fit: contain;
}

/* Contenedor */

.contenedor {
    width: 100%;
    max-width: 1500px;
    margin: auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
    border: 1px solid #e2e6eb;
}

.encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    gap: 15px;
}

.titulo-directorio h2 {
    font-size: 22px;
    color: #202124;
    margin-bottom: 5px;
    font-weight: 700;
}

.titulo-directorio p {
    font-size: 13px;
    color: #7a8088;
}

/* Botón nuevo */

.btn-nuevo {
    border: none;
    background: #111827;
    color: white;
    border-radius: 7px;
    padding: 10px 17px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: .2s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}

.btn-nuevo:hover {
    background: #263449;
    transform: translateY(-1px);
}

/* Tabla */

.tabla {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
}

table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
    background: white;
}

thead {
    background: #17191c;
    color: white;
}

th {
    padding: 14px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
    white-space: nowrap;
}

th:first-child {
    border-radius: 9px 0 0 0;
}

th:last-child {
    border-radius: 0 9px 0 0;
}

td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf0f2;
    font-size: 13px;
    color: #3f444a;
    vertical-align: middle;
}

tbody tr {
    transition: .18s;
}

tbody tr:hover {
    background: #f7f9fb;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Numeración */

.col-numero {
    width: 65px;
    text-align: center;
}

.numero {
    width: 65px;
    text-align: center;
    color: #7b8189;
    font-weight: 700;
    font-size: 12px;
}

/* Departamento */

.departamento {
    display: inline-block;
    background: #eef2f6;
    color: #344054;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 600;
}

.correo {
    color: #4d5d70;
}

/* Acciones */

.col-acciones {
    width: 120px;
    text-align: center;
}

.acciones {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.acciones button {
    border: none;
    border-radius: 6px;
    padding: 7px 11px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: .2s;
}

.btn-editar {
    background: #e8eef7;
    color: #29466b;
}

.btn-editar:hover {
    background: #d5e0ef;
    transform: translateY(-1px);
}

.btn-guardar {
    background: #1f5f8b;
    color: white;
}

.btn-guardar:hover {
    background: #174a6d;
}

.btn-cancelar {
    background: #e5e7eb;
    color: #454b53;
}

.btn-cancelar:hover {
    background: #d1d5db;
}

/* Registro nuevo */

.fila-nueva {
    background: #f7fafc;
}

.fila-nueva .numero {
    color: #1f5f8b;
}

/* Inputs */

td input,
td select,
td textarea {
    width: 100%;
    padding: 8px 9px;
    border: 1px solid #d5dae0;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: .2s;
}

td input:focus,
td select:focus,
td textarea:focus {
    border-color: #4776a8;
    box-shadow: 0 0 0 2px rgba(71,118,168,.10);
}

td input::placeholder {
    color: #9aa1a9;
}

/* Scroll */

.tabla::-webkit-scrollbar {
    height: 8px;
}

.tabla::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.tabla::-webkit-scrollbar-thumb {
    background: #b8bec6;
    border-radius: 10px;
}

.tabla::-webkit-scrollbar-thumb:hover {
    background: #9299a2;
}

/* Responsive */

@media (max-width: 900px) {

    body {
        padding: 15px;
    }

    .contenedor {
        padding: 18px;
    }

    .encabezado {
        align-items: flex-start;
    }

    .logo-header {
        width: 105px;
        right: 15px;
    }

    .logo-header2 {
        width: 105px;
        left: 12px;
    }

    header h1 {
        font-size: 17px;
    }
}

@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    header {
        height: 72px;
        margin-bottom: 18px;
    }

    header h1 {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .logo-header {
        width: 75px;
        height: 45px;
        right: 8px;
    }

    .logo-header2 {
        width: 75px;
        height: 50px;
        left: 5px;
    }

    .contenedor {
        padding: 14px;
        border-radius: 9px;
    }

    .encabezado {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-nuevo {
        width: 100%;
    }

    .titulo-directorio h2 {
        font-size: 19px;
    }
}