/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================
   VARIABLES
========================================= */

:root {
    --white: #ffffff;
    --background: #f7f8fa;
    --border: #e7e8ec;
    --text: #17181c;
    --text-light: #777b85;
    --text-muted: #a0a3aa;

    --blue: #021B44;
    --blue-hover: #0A285B;
    --blue-light: #eef3fb;

    --green: #347044;
    --green-bg: #f1f8f3;

    --red: #b43d3d;
    --red-bg: #fff4f4;
}


/* =========================================
   BODY
========================================= */

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}


/* =========================================
   CONTENIDO
========================================= */

.configuracion-content {
    padding-bottom: 40px;
}


/* =========================================
   HEADER
========================================= */

.config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.config-header h2 {
    margin-top: 5px;
    font-size: 25px;
    font-weight: 700;
    color: var(--text);
}

.config-header p {
    margin-top: 7px;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
}

.section-label {
    display: inline-block;
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}


/* =========================================
   MENSAJES
========================================= */

.config-message {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 13px 15px;
    margin-bottom: 20px;

    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
}

.config-message.success {
    background: var(--green-bg);
    border: 1px solid #cfe8d6;
    color: var(--green);
}

.config-message.error {
    background: var(--red-bg);
    border: 1px solid #f0cccc;
    color: var(--red);
}

.message-icon {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    font-weight: 700;
}


/* =========================================
   GRID PRINCIPAL
========================================= */

.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}


/* =========================================
   CARD
========================================= */

.config-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}


/* =========================================
   CARD TITLE
========================================= */

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.title-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--blue-light);
    color: var(--blue);

    border-radius: 10px;
    font-size: 17px;
}

.card-title h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 4px;
}

.card-title p {
    color: var(--text-light);
    font-size: 12px;
}


/* =========================================
   PERFIL
========================================= */

.profile-large {
    display: flex;
    align-items: center;
    gap: 15px;

    padding-bottom: 20px;
    margin-bottom: 5px;

    border-bottom: 1px solid var(--border);
}

.profile-large-avatar {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--blue-light);
    color: var(--blue);

    border-radius: 14px;

    font-size: 22px;
    font-weight: 700;
}

.profile-large h3 {
    font-size: 17px;
    margin-bottom: 7px;
}

.role-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    background: #fff7ed;
    color: #c64b00;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 600;
}


/* =========================================
   DETALLES CUENTA
========================================= */

.account-details {
    display: flex;
    flex-direction: column;
}

.detail-item {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-bottom: 1px solid #f0f1f3;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item span {
    color: var(--text-light);
    font-size: 12px;
}

.detail-item strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}


/* =========================================
   FORMULARIO SEGURIDAD
========================================= */

.security-form {
    width: 100%;
}

.form-group {
    margin-bottom: 15px;
}

.form-group > label {
    display: block;

    margin-bottom: 6px;

    font-size: 11px;
    font-weight: 600;

    color: var(--text);
}


/* =========================================
   INPUT CONTAINER
========================================= */

.input-container {
    height: 42px;

    display: flex;
    align-items: center;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 8px;

    transition: 0.2s ease;
}

.input-container:focus-within {
    border-color: #999;

    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, 0.03);
}

.input-icon {
    width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #999;
    font-size: 13px;
}

.input-container input {
    width: 100%;
    height: 100%;

    padding: 0 10px 0 0;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text);

    font-size: 12px;
}

.input-container input::placeholder {
    color: #a0a3aa;
}


/* =========================================
   SEGURIDAD INFO
========================================= */

.security-info {
    margin-top: 17px;
    margin-bottom: 18px;

    padding: 12px 14px;

    background: #f8f9fb;
    border: 1px solid var(--border);

    border-radius: 9px;
}

.security-info strong {
    display: block;

    margin-bottom: 4px;

    color: var(--text);

    font-size: 11px;
}

.security-info p {
    color: var(--text-light);

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================
   BOTÓN PRINCIPAL
========================================= */

.primary-button {
    width: 100%;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: none;
    border-radius: 8px;

    background: var(--blue);
    color: var(--white);

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.primary-button:hover {
    background: var(--blue-hover);
}

.primary-button:active {
    transform: scale(0.99);
}


/* =========================================
   SECCIÓN ESTADO
========================================= */

.section-heading {
    margin-bottom: 17px;
}

.section-heading h2 {
    margin-top: 5px;

    font-size: 19px;
    color: var(--text);
}


/* =========================================
   ESTADÍSTICAS
========================================= */

.system-stats {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 25px;
}

.system-stat {
    min-height: 95px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 17px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--blue-light);
    color: var(--blue);

    border-radius: 10px;

    font-size: 16px;
}

.system-stat span {
    display: block;

    margin-bottom: 5px;

    color: var(--text-light);

    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.system-stat strong {
    font-size: 22px;
    color: var(--text);
}


/* =========================================
   INFORMACIÓN DEL SISTEMA
========================================= */

.system-info-card {
    margin-bottom: 20px;
}

.system-info-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}

.info-box {
    padding: 14px;

    background: #fafbfc;

    border: 1px solid var(--border);
    border-radius: 9px;
}

.info-box span {
    display: block;

    margin-bottom: 5px;

    color: var(--text-muted);

    font-size: 10px;
}

.info-box strong {
    color: var(--text);

    font-size: 12px;
}


/* =========================================
   ACCIONES RÁPIDAS
========================================= */

.quick-card {
    margin-bottom: 25px;
}

.quick-actions {
    display: flex;
    flex-direction: column;
}

.quick-action {
    min-height: 65px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 10px 5px;

    color: var(--text);

    text-decoration: none;

    border-bottom: 1px solid #f0f1f3;

    transition: 0.2s ease;
}

.quick-action:last-child {
    border-bottom: none;
}

.quick-action:hover {
    padding-left: 10px;
    background: #fafbfc;
}

.quick-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--blue-light);
    color: var(--blue);

    border-radius: 9px;

    font-size: 15px;
}

.quick-action > span:nth-child(2) {
    flex: 1;
}

.quick-action strong {
    display: block;

    margin-bottom: 3px;

    font-size: 12px;
}

.quick-action small {
    display: block;

    color: var(--text-light);

    font-size: 10px;
}

.quick-arrow {
    color: var(--text-muted);

    font-size: 17px;
}


/* =========================================
   FOOTER
========================================= */

.config-footer {
    padding-top: 20px;

    text-align: center;

    border-top: 1px solid var(--border);
}

.config-footer p {
    color: var(--text);

    font-size: 12px;
    font-weight: 600;
}

.config-footer span {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 10px;
}


/* =========================================
   OCULTAR CONTROLES PASSWORD
========================================= */

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
}

input[type="password"]::-webkit-textfield-decoration-container {
    display: none;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .config-grid {
        grid-template-columns: 1fr;
    }

    .system-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .system-info-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .config-header {
        display: block;
    }

    .system-stats {
        grid-template-columns: 1fr;
    }

    .system-info-grid {
        grid-template-columns: 1fr;
    }

    .config-card {
        padding: 18px;
    }

    .detail-item {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;

        padding: 10px 0;
        gap: 4px;
    }

    .detail-item strong {
        text-align: left;
    }
}


@media (max-width: 480px) {

    .configuracion-content {
        padding: 15px;
    }

    .config-header h2 {
        font-size: 21px;
    }

    .profile-large-avatar {
        width: 50px;
        height: 50px;
    }
}



/* =========================================================
   TEMA VISUAL: CONFIGURACION.CSS
   UNIFICADO CON PERSONAS.CSS
========================================================= */

/* COLORES PRINCIPALES */
:root {
    --blue: #111111;
    --blue-hover: #2A2A2A;
    --blue-light: #F4F5F7;

    --text: #17181C;
    --text-light: #777B85;
    --text-muted: #A0A3AA;

    --background: #F7F8FA;
    --border: #E1E2E5;
    --white: #FFFFFF;
}

/* ENCABEZADO */
.config-header h2,
.section-heading h2,
.card-title h3 {
    color: #17181C !important;
}

.config-header p,
.card-title p {
    color: #777B85 !important;
}

/* ETIQUETAS DE SECCIÓN */
.section-label {
    color: #555960 !important;
}

/* TARJETAS */
.config-card,
.system-stat {
    background: #FFFFFF !important;
    border: 1px solid #E1E2E5 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.config-card {
    padding: 24px;
}

.system-stat {
    transition: 0.2s ease;
}

.system-stat:hover {
    border-color: #DFE1E6 !important;
}

/* ICONOS DE TÍTULOS */
.title-icon,
.profile-large-avatar,
.stat-icon,
.quick-icon {
    background: #F4F5F7 !important;
    color: #17181C !important;
}

/* PERFIL */
.profile-large {
    border-bottom-color: #E1E2E5 !important;
}

.profile-large h3 {
    color: #17181C !important;
}

/* INSIGNIA DEL ROL */
.role-badge {
    background: #F1F2F4 !important;
    color: #555960 !important;
    border-radius: 6px !important;
}

/* DETALLES DE CUENTA */
.detail-item {
    border-bottom-color: #F0F1F3 !important;
}

.detail-item span {
    color: #777B85 !important;
}

.detail-item strong {
    color: #17181C !important;
}

/* ETIQUETAS DE LOS FORMULARIOS */
.form-group > label {
    color: #555960 !important;
}

/* CAMPOS DE ENTRADA */
.input-container {
    background: #FFFFFF !important;
    border: 1px solid #DCDDDF !important;
    border-radius: 8px !important;
    transition: 0.2s ease !important;
}

.input-container:focus-within {
    border-color: #BFC2C8 !important;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.04) !important;
}

.input-icon {
    color: #888C95 !important;
}

.input-container input {
    color: #17181C !important;
}

.input-container input::placeholder {
    color: #A0A3AA !important;
}

/* INFORMACIÓN DE SEGURIDAD */
.security-info {
    background: #FAFAFA !important;
    border-color: #E1E2E5 !important;
    border-radius: 9px !important;
}

.security-info strong {
    color: #17181C !important;
}

.security-info p {
    color: #777B85 !important;
}

/* BOTÓN PRINCIPAL */
.primary-button {
    background: #111111 !important;
    border: 1px solid #111111 !important;
    border-radius: 9px !important;
    color: #FFFFFF !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 600 !important;
    transition: 0.2s ease !important;
}

.primary-button:hover {
    background: #2A2A2A !important;
    border-color: #2A2A2A !important;
    color: #FFFFFF !important;
}

.primary-button:active {
    transform: scale(0.99);
}

/* ICONOS DE ESTADÍSTICAS */
.system-stat .stat-icon {
    background: #F4F5F7 !important;
    color: #17181C !important;
}

.system-stat span {
    color: #777B85 !important;
}

.system-stat strong {
    color: #17181C !important;
}

/* INFORMACIÓN DEL SISTEMA */
.info-box {
    background: #FAFAFA !important;
    border-color: #E1E2E5 !important;
    border-radius: 9px !important;
}

.info-box span {
    color: #888C95 !important;
}

.info-box strong {
    color: #17181C !important;
}

/* ACCIONES RÁPIDAS */
.quick-action {
    color: #17181C !important;
    border-bottom-color: #F0F1F3 !important;
    transition: 0.2s ease !important;
}

.quick-action:hover {
    background: #FAFBFC !important;
}

.quick-action strong {
    color: #17181C !important;
}

.quick-action small {
    color: #777B85 !important;
}

.quick-icon {
    background: #F4F5F7 !important;
    color: #17181C !important;
    border-radius: 9px !important;
}

.quick-arrow {
    color: #A0A3AA !important;
}

/* MENSAJES DE ÉXITO Y ERROR */
.config-message.success {
    background: #F0FDF4 !important;
    border-color: #BBF7D0 !important;
    color: #166534 !important;
}

.config-message.error {
    background: #FEF2F2 !important;
    border-color: #FECACA !important;
    color: #991B1B !important;
}

/* PIE DE PÁGINA */
.config-footer {
    border-top-color: #E1E2E5 !important;
}

.config-footer p {
    color: #17181C !important;
}

.config-footer span {
    color: #888C95 !important;
}

/* CONSERVAR LA ADAPTACIÓN A MÓVILES */
@media (max-width: 700px) {
    .config-card {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .config-header h2 {
        font-size: 21px;
    }

    .profile-large-avatar {
        width: 50px;
        height: 50px;
    }
}

/* LOGO */
.logo {
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    margin-bottom: 25px;
    flex-shrink: 0;
    overflow: hidden;
}
.logo-image {
    display: block;
    width: 115px;
    height: 115px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}