/* =========================================================
   CONFIGURACIÓN GENERAL
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
body {
    background: #f4f6f9;
    color: #333;
}
/* =========================================================
   ENCABEZADO
========================================================= */
header {
    height: 80px;
    background: #000000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 30px;
    position: relative;
}
header h1 {
            font-family: "Michroma", sans-serif;
    font-size: 25px;
    margin: 0;
    text-align: center;
    flex: 1;
}
.logo-header2 {
    width: 120px;
    height: auto;
}
.logo-header {
    width: 110px;
    height: auto;
}
/* =========================================================
   CONTENEDOR
========================================================= */
.contenedor {
    width: 96%;
    margin: 30px auto;
}
/* =========================================================
   ENCABEZADO DE LA TABLA
========================================================= */
.encabezado {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}
/* =========================================================
   BOTÓN NUEVO REGISTRO
========================================================= */
.btn-nuevo {
    display: inline-block;
    background: #000000;
    color: white;
    padding: 11px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.btn-nuevo:hover {
    background: #333333;
    transform: translateY(-1px);
}
/* =========================================================
   TABLA
========================================================= */
.tabla {
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    overflow-x: auto;
}
/* =========================================================
   TABLA INTERNA
========================================================= */
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}
/* =========================================================
   ENCABEZADOS
========================================================= */
thead {
    background: #000000;
    color: white;
}
th {
    padding: 14px 12px;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
}
/* =========================================================
   CELDAS
========================================================= */
td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    vertical-align: middle;
}
/* =========================================================
   FILAS
========================================================= */
tbody tr {
    transition: 0.2s;
}
tbody tr:hover {
    background: #f5f5f5;
}
/* =========================================================
   INPUTS AL CREAR / EDITAR
========================================================= */
td input,
td select {
    width: 100%;
    min-width: 130px;
    padding: 8px 10px;
    border: 1px solid #bbb;
    border-radius: 5px;
    outline: none;
    font-size: 13px;
    background: white;
}
td input:focus,
td select:focus {
    border-color: #000000;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
}
/* =========================================================
   INPUT DE CONTRASEÑA
========================================================= */
.input-group {
    display: flex;
    align-items: center;
    min-width: 170px;
}
.input-group .form-control {
    min-width: 0;
    border-radius: 5px 0 0 5px;
}
.input-group button {
    height: 38px;
    border-radius: 0 5px 5px 0;
}
/* =========================================================
   BOTÓN EDITAR
========================================================= */
.btn-editar {
    background: #000000;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.btn-editar:hover {
    background: #333333;
}
/* =========================================================
   BOTÓN GUARDAR
========================================================= */
.btn-guardar {
    background: #198754;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 5px;
    transition: 0.3s;
}
.btn-guardar:hover {
    background: #146c43;
}
/* =========================================================
   BOTÓN CANCELAR
========================================================= */
.btn-cancelar {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.btn-cancelar:hover {
    background: #bb2d3b;
}
/* =========================================================
   TIPO DE CORREO
========================================================= */
td select[name="tipo_correo"] {
    min-width: 220px;
}
/* =========================================================
   CORREOS
========================================================= */
td:nth-child(4) {
    white-space: nowrap;
}
/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    header {
        height: auto;
        padding: 10px 15px;
    }
    header h1 {
        font-size: 18px;
    }
    .logo-header,
    .logo-header2 {
        width: 65px;
    }
    .contenedor {
        width: 95%;
    }
    .encabezado {
        justify-content: center;
    }
    .btn-nuevo {
        width: 100%;
        text-align: center;
    }
}
/* =========================================================
   SCROLL DE LA TABLA
========================================================= */
.tabla::-webkit-scrollbar {
    height: 10px;
}
.tabla::-webkit-scrollbar-track {
    background: #eeeeee;
}
.tabla::-webkit-scrollbar-thumb {
    background: #888888;
    border-radius: 5px;
}
.tabla::-webkit-scrollbar-thumb:hover {
    background: #555555;
}