.mc-wrapper {
    display: flex;
    flex-direction: column;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ── Encabezado ── */
.mc-header {
    background: linear-gradient(135deg, #0d1b2a, #1a3044);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.mc-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #e8a020;
    color: #1a2f4e;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: .02em;
}

.mc-google-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: .72rem;
    font-weight: 500;
    border-radius: 999px;
    padding: .2rem .65rem;
}

/* ── Cuerpo ── */
.mc-body {
    display: flex;
    min-height: 480px;
    background: #f5f7fa;
}

/* ── Sidebar ── */
.mc-sidebar {
    width: 215px;
    min-width: 215px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: .75rem 0;
}

.mc-sidebar-group {
    padding: .8rem 1.25rem .2rem;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .09em;
    color: #aab0bb;
    text-transform: uppercase;
    user-select: none;
}

.mc-sidebar-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .52rem 1.25rem;
    color: #374151;
    font-size: .875rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background .12s, color .12s;
    user-select: none;
}

.mc-sidebar-item:hover { background: #f0f4f8; color: #1a3044; }

.mc-sidebar-item.active {
    background: #1a3044;
    color: #fff;
    font-weight: 600;
    border-left-color: #5b9bd5;
}

.mc-sidebar-item.active:hover { background: #244261; color: #fff; }

.mc-sidebar-item.danger { color: #dc3545; }
.mc-sidebar-item.danger:hover { background: #fff5f5; color: #b91c1c; }

.mc-sidebar-item.danger.active {
    background: #dc3545;
    color: #fff;
    border-left-color: #b91c1c;
}

.mc-sidebar-item.danger.active:hover { background: #c82333; }

/* ── Contenido ── */
.mc-content {
    flex: 1;
    padding: 2rem;
    background: #fff;
    overflow-y: auto;
}

.mc-content-title {
    font-weight: 700;
    color: #1a3044;
    margin-bottom: 1.5rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #f3f4f6;
}

.mc-section-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e8a020;
    margin-bottom: .75rem;
    margin-top: 1.25rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid #f3f4f6;
}

.mc-section-title:first-child { margin-top: 0; }

.mc-field-readonly {
    background: #f9fafb !important;
    color: #6b7280 !important;
    cursor: default;
}

.mc-link {
    color: #5b9bd5;
    cursor: pointer;
    text-decoration: none;
}

.mc-link:hover { text-decoration: underline; }

.mc-info-block {
    background: #eef3f8;
    color: #1a3044;
    border-radius: .4rem;
    padding: .85rem 1rem;
    font-size: .9rem;
}

/* ── Botones ── */
.mc-btn-save {
    background: #1a3044;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .65rem 1rem;
    font-weight: 600;
    width: 100%;
    transition: background .15s;
    cursor: pointer;
}

.mc-btn-save:hover:not(:disabled) { background: #244261; }
.mc-btn-save:disabled { opacity: .65; cursor: not-allowed; }

.mc-btn-secondary {
    background: #1a3044;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .45rem .9rem;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}

.mc-btn-secondary:hover { background: #244261; }

.mc-btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .45rem .9rem;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}

.mc-btn-danger:hover:not(:disabled) { background: #c82333; }
.mc-btn-danger:disabled { opacity: .65; cursor: not-allowed; }

/* ── Cuentas vinculadas ── */
.mc-provider-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 1px solid #e5e7eb;
    border-radius: .4rem;
    padding: .75rem 1rem;
    margin-bottom: .6rem;
    background: #fafafa;
}

/* ── Datos personales ── */
.mc-datos-card {
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    padding: 1.25rem;
    background: #fff;
}

.mc-datos-card-danger { border-color: #f5c6cb; background: #fff8f8; }

.mc-datos-icon {
    width: 44px;
    height: 44px;
    border-radius: .4rem;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mc-confirm-box {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    border-radius: .4rem;
    padding: .85rem 1rem;
}

@media (max-width: 768px) {
    .mc-body { flex-direction: column; }
    .mc-sidebar { width: 100%; min-width: unset; border-right: none; border-bottom: 1px solid #e5e7eb; }
}
