* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f5f8;
    color: #172033;
}
/* =========================================
   HEADER
========================================= */
header {
    height: 90px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000000;
    border-bottom: 1px solid #dfe3e8;
}
.logo-header,
.logo-header2 {
    max-width: 170px;
    max-height: 60px;
    object-fit: contain;
}
.titulo-header {
    text-align: center;
}
.titulo-header h1 {
                    font-family: "Michroma", sans-serif;

    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
}
.titulo-header span {
    font-size: 14px;
    color: #c8c9ca;
}
/* =========================================
   CONTENEDOR
========================================= */
.contenedor {
    width: 94%;
    max-width: 1500px;
    margin: 30px auto;
}
/* =========================================
   BARRA SUPERIOR
========================================= */
.barra-superior {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}
.barra-superior h2 {
    margin: 0 0 5px;
    font-size: 25px;
    color: #111827;
}
.barra-superior p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}
/* =========================================
   BOTÓN NUEVO
========================================= */
.btn-nuevo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: none;
    border-radius: 7px;
    background: #0b3d91;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-nuevo:hover {
    background: #082f70;
    transform: translateY(-1px);
}
/* =========================================
   DEPARTAMENTOS
========================================= */
.departamentos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
/* =========================================
   DEPARTAMENTO
========================================= */
.departamento {
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}
/* =========================================
   CABECERA DEPARTAMENTO
========================================= */
.cabecera-departamento {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #111827;
    color: white;
}
.cabecera-departamento h3 {
    margin: 0;
    font-size: 22px;
}
.cabecera-departamento span {
    font-size: 13px;
    color: #cbd5e1;
}
/* =========================================
   ICONO DEPARTAMENTO
========================================= */
.icono-departamento {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #0b3d91;
    font-size: 21px;
}
/* =========================================
   LISTA
========================================= */
.lista-redes {
    padding: 14px;
}
/* =========================================
   TARJETA RED SOCIAL
========================================= */
.tarjeta-red {
    margin-bottom: 12px;
    border: 1px solid #e2e6eb;
    border-radius: 9px;
    overflow: hidden;
    background: #ffffff;
    transition: 0.2s;
}
.tarjeta-red:last-child {
    margin-bottom: 0;
}
.tarjeta-red:hover {
    border-color: #b8c5d8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}
/* =========================================
   ENCABEZADO RED
========================================= */
.encabezado-red {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}
.icono-red {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e8eef8;
    color: #0b3d91;
    font-size: 18px;
}
.encabezado-red h4 {
    margin: 0;
    font-size: 17px;
    color: #111827;
}
.encabezado-red span {
    font-size: 12px;
    color: #6b7280;
}
/* =========================================
   DATOS
========================================= */
.datos-red {
    padding: 8px 15px;
}
/* =========================================
   DATO
========================================= */
.dato {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f3;
}
.dato:last-child {
    border-bottom: none;
}
.etiqueta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}
.etiqueta i {
    color: #0b3d91;
}
.valor {
    color: #111827;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.password {
    letter-spacing: 2px;
    color: #4b5563;
}
/* =========================================
   ACCIONES
========================================= */
.acciones {
    display: flex;
    justify-content: flex-end;
    padding: 9px 15px;
    background: #fafafa;
    border-top: 1px solid #edf0f3;
}
.btn-editar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #0b3d91;
    border-radius: 5px;
    background: white;
    color: #0b3d91;
    font-size: 13px;
    cursor: pointer;
}
.btn-editar:hover {
    background: #0b3d91;
    color: white;
}
/* =========================================
   INPUTS AL EDITAR
========================================= */
.dato input {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
}
.dato input:focus {
    border-color: #0b3d91;
    box-shadow: 0 0 0 2px rgba(11, 61, 145, 0.12);
}
/* =========================================
   BOTONES EDITAR
========================================= */
.btn-guardar {
    padding: 6px 13px;
    border: none;
    border-radius: 5px;
    background: #198754;
    color: white;
    cursor: pointer;
}
.btn-cancelar {
    padding: 6px 13px;
    border: none;
    border-radius: 5px;
    background: #6b7280;
    color: white;
    cursor: pointer;
}
/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {
    .departamentos {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    header {
        padding: 10px 15px;
    }
    .logo-header,
    .logo-header2 {
        max-width: 90px;
        max-height: 45px;
    }
    .titulo-header h1 {
        font-size: 21px;
    }
    .titulo-header span {
        display: none;
    }
    .contenedor {
        width: 96%;
        margin-top: 20px;
    }
    .barra-superior {
        align-items: flex-start;
        gap: 15px;
    }
    .barra-superior h2 {
        font-size: 20px;
    }
    .btn-nuevo {
        padding: 9px 12px;
        font-size: 13px;
    }
    .dato {
        grid-template-columns: 105px 1fr;
    }
}
/* ===== CONTRASEÑA ===== */

.password-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.password-container .password {
    flex: 1;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 9px;
    background: #f8f8f8;
    color: #555;
    box-sizing: border-box;
}

/* Botón del ojo */
.btn-ver-password {
    width: 40px;
    height: 40px;

    border: 1px solid #ddd;
    border-radius: 9px;

    background: #f8f8f8;
    color: #666;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ver-password:hover {
    background: #eeeeee;
    color: #333;
    transform: translateY(-1px);
}

.btn-ver-password i {
    font-size: 17px;
}